2025-10-03 14:45:52 -04:00
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package dexv1
import (
v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
v1beta11 "cosmossdk.io/api/cosmos/base/v1beta1"
2025-10-21 12:04:29 -04:00
fmt "fmt"
2025-10-03 14:45:52 -04:00
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"
2025-10-21 12:04:29 -04:00
io "io"
reflect "reflect"
sync "sync"
2025-10-03 14:45:52 -04:00
)
var (
md_QueryParamsRequest protoreflect . MessageDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryParamsRequest = File_dex_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_dex_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: dex.v1.QueryParamsRequest" ))
}
panic ( fmt . Errorf ( "message dex.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: dex.v1.QueryParamsRequest" ))
}
panic ( fmt . Errorf ( "message dex.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: dex.v1.QueryParamsRequest" ))
}
panic ( fmt . Errorf ( "message dex.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: dex.v1.QueryParamsRequest" ))
}
panic ( fmt . Errorf ( "message dex.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: dex.v1.QueryParamsRequest" ))
}
panic ( fmt . Errorf ( "message dex.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: dex.v1.QueryParamsRequest" ))
}
panic ( fmt . Errorf ( "message dex.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 dex.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_dex_v1_query_proto_init ()
md_QueryParamsResponse = File_dex_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_dex_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 "dex.v1.QueryParamsResponse.params" :
return x . Params != nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryParamsResponse" ))
}
panic ( fmt . Errorf ( "message dex.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 "dex.v1.QueryParamsResponse.params" :
x . Params = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryParamsResponse" ))
}
panic ( fmt . Errorf ( "message dex.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 "dex.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: dex.v1.QueryParamsResponse" ))
}
panic ( fmt . Errorf ( "message dex.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 "dex.v1.QueryParamsResponse.params" :
x . Params = value . Message (). Interface ().( * Params )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryParamsResponse" ))
}
panic ( fmt . Errorf ( "message dex.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 "dex.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: dex.v1.QueryParamsResponse" ))
}
panic ( fmt . Errorf ( "message dex.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 "dex.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: dex.v1.QueryParamsResponse" ))
}
panic ( fmt . Errorf ( "message dex.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 dex.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 (
md_QueryAccountRequest protoreflect . MessageDescriptor
fd_QueryAccountRequest_did protoreflect . FieldDescriptor
fd_QueryAccountRequest_connection_id protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryAccountRequest = File_dex_v1_query_proto . Messages (). ByName ( "QueryAccountRequest" )
fd_QueryAccountRequest_did = md_QueryAccountRequest . Fields (). ByName ( "did" )
fd_QueryAccountRequest_connection_id = md_QueryAccountRequest . Fields (). ByName ( "connection_id" )
}
var _ protoreflect . Message = ( * fastReflection_QueryAccountRequest )( nil )
type fastReflection_QueryAccountRequest QueryAccountRequest
func ( x * QueryAccountRequest ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryAccountRequest )( x )
}
func ( x * QueryAccountRequest ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryAccountRequest_messageType fastReflection_QueryAccountRequest_messageType
var _ protoreflect . MessageType = fastReflection_QueryAccountRequest_messageType {}
type fastReflection_QueryAccountRequest_messageType struct {}
func ( x fastReflection_QueryAccountRequest_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryAccountRequest )( nil )
}
func ( x fastReflection_QueryAccountRequest_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryAccountRequest )
}
func ( x fastReflection_QueryAccountRequest_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryAccountRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryAccountRequest ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryAccountRequest
}
// 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_QueryAccountRequest ) Type () protoreflect . MessageType {
return _fastReflection_QueryAccountRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryAccountRequest ) New () protoreflect . Message {
return new ( fastReflection_QueryAccountRequest )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryAccountRequest ) Interface () protoreflect . ProtoMessage {
return ( * QueryAccountRequest )( 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_QueryAccountRequest ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_QueryAccountRequest_did , value ) {
return
}
}
if x . ConnectionId != "" {
value := protoreflect . ValueOfString ( x . ConnectionId )
if ! f ( fd_QueryAccountRequest_connection_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_QueryAccountRequest ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryAccountRequest.did" :
return x . Did != ""
case "dex.v1.QueryAccountRequest.connection_id" :
return x . ConnectionId != ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountRequest 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_QueryAccountRequest ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryAccountRequest.did" :
x . Did = ""
case "dex.v1.QueryAccountRequest.connection_id" :
x . ConnectionId = ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountRequest 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_QueryAccountRequest ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryAccountRequest.did" :
value := x . Did
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryAccountRequest.connection_id" :
value := x . ConnectionId
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountRequest 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_QueryAccountRequest ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryAccountRequest.did" :
x . Did = value . Interface ().( string )
case "dex.v1.QueryAccountRequest.connection_id" :
x . ConnectionId = value . Interface ().( string )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountRequest 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_QueryAccountRequest ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryAccountRequest.did" :
panic ( fmt . Errorf ( "field did of message dex.v1.QueryAccountRequest is not mutable" ))
case "dex.v1.QueryAccountRequest.connection_id" :
panic ( fmt . Errorf ( "field connection_id of message dex.v1.QueryAccountRequest is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountRequest 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_QueryAccountRequest ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryAccountRequest.did" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryAccountRequest.connection_id" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountRequest 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_QueryAccountRequest ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryAccountRequest" , 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_QueryAccountRequest ) 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_QueryAccountRequest ) 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_QueryAccountRequest ) 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_QueryAccountRequest ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryAccountRequest )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
l = len ( x . Did )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . ConnectionId )
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 ().( * QueryAccountRequest )
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 . ConnectionId ) > 0 {
i -= len ( x . ConnectionId )
copy ( dAtA [ i :], x . ConnectionId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . ConnectionId )))
i --
dAtA [ i ] = 0x12
}
if len ( x . Did ) > 0 {
i -= len ( x . Did )
copy ( dAtA [ i :], x . Did )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Did )))
i --
dAtA [ i ] = 0xa
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ().( * QueryAccountRequest )
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: QueryAccountRequest: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryAccountRequest: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Did" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Did = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field ConnectionId" , 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 . ConnectionId = 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_QueryAccountResponse protoreflect . MessageDescriptor
fd_QueryAccountResponse_account protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryAccountResponse = File_dex_v1_query_proto . Messages (). ByName ( "QueryAccountResponse" )
fd_QueryAccountResponse_account = md_QueryAccountResponse . Fields (). ByName ( "account" )
}
var _ protoreflect . Message = ( * fastReflection_QueryAccountResponse )( nil )
type fastReflection_QueryAccountResponse QueryAccountResponse
func ( x * QueryAccountResponse ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryAccountResponse )( x )
}
func ( x * QueryAccountResponse ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryAccountResponse_messageType fastReflection_QueryAccountResponse_messageType
var _ protoreflect . MessageType = fastReflection_QueryAccountResponse_messageType {}
type fastReflection_QueryAccountResponse_messageType struct {}
func ( x fastReflection_QueryAccountResponse_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryAccountResponse )( nil )
}
func ( x fastReflection_QueryAccountResponse_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryAccountResponse )
}
func ( x fastReflection_QueryAccountResponse_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryAccountResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryAccountResponse ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryAccountResponse
}
// 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_QueryAccountResponse ) Type () protoreflect . MessageType {
return _fastReflection_QueryAccountResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryAccountResponse ) New () protoreflect . Message {
return new ( fastReflection_QueryAccountResponse )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryAccountResponse ) Interface () protoreflect . ProtoMessage {
return ( * QueryAccountResponse )( 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_QueryAccountResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Account != nil {
value := protoreflect . ValueOfMessage ( x . Account . ProtoReflect ())
if ! f ( fd_QueryAccountResponse_account , 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_QueryAccountResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryAccountResponse.account" :
return x . Account != nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountResponse 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_QueryAccountResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryAccountResponse.account" :
x . Account = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountResponse 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_QueryAccountResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryAccountResponse.account" :
value := x . Account
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountResponse 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_QueryAccountResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryAccountResponse.account" :
x . Account = value . Message (). Interface ().( * InterchainDEXAccount )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountResponse 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_QueryAccountResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryAccountResponse.account" :
if x . Account == nil {
x . Account = new ( InterchainDEXAccount )
}
return protoreflect . ValueOfMessage ( x . Account . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountResponse 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_QueryAccountResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryAccountResponse.account" :
m := new ( InterchainDEXAccount )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountResponse 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_QueryAccountResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryAccountResponse" , 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_QueryAccountResponse ) 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_QueryAccountResponse ) 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_QueryAccountResponse ) 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_QueryAccountResponse ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryAccountResponse )
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 . Account != nil {
l = options . Size ( x . Account )
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 ().( * QueryAccountResponse )
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 . Account != nil {
encoded , err := options . Marshal ( x . Account )
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 ().( * QueryAccountResponse )
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: QueryAccountResponse: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryAccountResponse: 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 Account" , 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 . Account == nil {
x . Account = & InterchainDEXAccount {}
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Account ); 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_QueryAccountsRequest protoreflect . MessageDescriptor
fd_QueryAccountsRequest_did protoreflect . FieldDescriptor
fd_QueryAccountsRequest_pagination protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryAccountsRequest = File_dex_v1_query_proto . Messages (). ByName ( "QueryAccountsRequest" )
fd_QueryAccountsRequest_did = md_QueryAccountsRequest . Fields (). ByName ( "did" )
fd_QueryAccountsRequest_pagination = md_QueryAccountsRequest . Fields (). ByName ( "pagination" )
}
var _ protoreflect . Message = ( * fastReflection_QueryAccountsRequest )( nil )
type fastReflection_QueryAccountsRequest QueryAccountsRequest
func ( x * QueryAccountsRequest ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryAccountsRequest )( x )
}
func ( x * QueryAccountsRequest ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryAccountsRequest_messageType fastReflection_QueryAccountsRequest_messageType
var _ protoreflect . MessageType = fastReflection_QueryAccountsRequest_messageType {}
type fastReflection_QueryAccountsRequest_messageType struct {}
func ( x fastReflection_QueryAccountsRequest_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryAccountsRequest )( nil )
}
func ( x fastReflection_QueryAccountsRequest_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryAccountsRequest )
}
func ( x fastReflection_QueryAccountsRequest_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryAccountsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryAccountsRequest ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryAccountsRequest
}
// 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_QueryAccountsRequest ) Type () protoreflect . MessageType {
return _fastReflection_QueryAccountsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryAccountsRequest ) New () protoreflect . Message {
return new ( fastReflection_QueryAccountsRequest )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryAccountsRequest ) Interface () protoreflect . ProtoMessage {
return ( * QueryAccountsRequest )( 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_QueryAccountsRequest ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_QueryAccountsRequest_did , value ) {
return
}
}
if x . Pagination != nil {
value := protoreflect . ValueOfMessage ( x . Pagination . ProtoReflect ())
if ! f ( fd_QueryAccountsRequest_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_QueryAccountsRequest ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryAccountsRequest.did" :
return x . Did != ""
case "dex.v1.QueryAccountsRequest.pagination" :
return x . Pagination != nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsRequest 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_QueryAccountsRequest ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryAccountsRequest.did" :
x . Did = ""
case "dex.v1.QueryAccountsRequest.pagination" :
x . Pagination = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsRequest 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_QueryAccountsRequest ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryAccountsRequest.did" :
value := x . Did
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryAccountsRequest.pagination" :
value := x . Pagination
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsRequest 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_QueryAccountsRequest ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryAccountsRequest.did" :
x . Did = value . Interface ().( string )
case "dex.v1.QueryAccountsRequest.pagination" :
x . Pagination = value . Message (). Interface ().( * v1beta1 . PageRequest )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsRequest 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_QueryAccountsRequest ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryAccountsRequest.pagination" :
if x . Pagination == nil {
x . Pagination = new ( v1beta1 . PageRequest )
}
return protoreflect . ValueOfMessage ( x . Pagination . ProtoReflect ())
case "dex.v1.QueryAccountsRequest.did" :
panic ( fmt . Errorf ( "field did of message dex.v1.QueryAccountsRequest is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsRequest 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_QueryAccountsRequest ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryAccountsRequest.did" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryAccountsRequest.pagination" :
m := new ( v1beta1 . PageRequest )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsRequest 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_QueryAccountsRequest ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryAccountsRequest" , 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_QueryAccountsRequest ) 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_QueryAccountsRequest ) 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_QueryAccountsRequest ) 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_QueryAccountsRequest ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryAccountsRequest )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
l = len ( x . Did )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
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 ().( * QueryAccountsRequest )
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 . Did ) > 0 {
i -= len ( x . Did )
copy ( dAtA [ i :], x . Did )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Did )))
i --
dAtA [ i ] = 0xa
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ().( * QueryAccountsRequest )
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: QueryAccountsRequest: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryAccountsRequest: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Did" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Did = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field 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 = ( * _QueryAccountsResponse_1_list )( nil )
type _QueryAccountsResponse_1_list struct {
list * [] * InterchainDEXAccount
}
func ( x * _QueryAccountsResponse_1_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _QueryAccountsResponse_1_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _QueryAccountsResponse_1_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * InterchainDEXAccount )
( * x . list )[ i ] = concreteValue
}
func ( x * _QueryAccountsResponse_1_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * InterchainDEXAccount )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _QueryAccountsResponse_1_list ) AppendMutable () protoreflect . Value {
v := new ( InterchainDEXAccount )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _QueryAccountsResponse_1_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _QueryAccountsResponse_1_list ) NewElement () protoreflect . Value {
v := new ( InterchainDEXAccount )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _QueryAccountsResponse_1_list ) IsValid () bool {
return x . list != nil
}
var (
md_QueryAccountsResponse protoreflect . MessageDescriptor
fd_QueryAccountsResponse_accounts protoreflect . FieldDescriptor
fd_QueryAccountsResponse_pagination protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryAccountsResponse = File_dex_v1_query_proto . Messages (). ByName ( "QueryAccountsResponse" )
fd_QueryAccountsResponse_accounts = md_QueryAccountsResponse . Fields (). ByName ( "accounts" )
fd_QueryAccountsResponse_pagination = md_QueryAccountsResponse . Fields (). ByName ( "pagination" )
}
var _ protoreflect . Message = ( * fastReflection_QueryAccountsResponse )( nil )
type fastReflection_QueryAccountsResponse QueryAccountsResponse
func ( x * QueryAccountsResponse ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryAccountsResponse )( x )
}
func ( x * QueryAccountsResponse ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryAccountsResponse_messageType fastReflection_QueryAccountsResponse_messageType
var _ protoreflect . MessageType = fastReflection_QueryAccountsResponse_messageType {}
type fastReflection_QueryAccountsResponse_messageType struct {}
func ( x fastReflection_QueryAccountsResponse_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryAccountsResponse )( nil )
}
func ( x fastReflection_QueryAccountsResponse_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryAccountsResponse )
}
func ( x fastReflection_QueryAccountsResponse_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryAccountsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryAccountsResponse ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryAccountsResponse
}
// 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_QueryAccountsResponse ) Type () protoreflect . MessageType {
return _fastReflection_QueryAccountsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryAccountsResponse ) New () protoreflect . Message {
return new ( fastReflection_QueryAccountsResponse )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryAccountsResponse ) Interface () protoreflect . ProtoMessage {
return ( * QueryAccountsResponse )( 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_QueryAccountsResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if len ( x . Accounts ) != 0 {
value := protoreflect . ValueOfList ( & _QueryAccountsResponse_1_list { list : & x . Accounts })
if ! f ( fd_QueryAccountsResponse_accounts , value ) {
return
}
}
if x . Pagination != nil {
value := protoreflect . ValueOfMessage ( x . Pagination . ProtoReflect ())
if ! f ( fd_QueryAccountsResponse_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_QueryAccountsResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryAccountsResponse.accounts" :
return len ( x . Accounts ) != 0
case "dex.v1.QueryAccountsResponse.pagination" :
return x . Pagination != nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsResponse 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_QueryAccountsResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryAccountsResponse.accounts" :
x . Accounts = nil
case "dex.v1.QueryAccountsResponse.pagination" :
x . Pagination = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsResponse 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_QueryAccountsResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryAccountsResponse.accounts" :
if len ( x . Accounts ) == 0 {
return protoreflect . ValueOfList ( & _QueryAccountsResponse_1_list {})
}
listValue := & _QueryAccountsResponse_1_list { list : & x . Accounts }
return protoreflect . ValueOfList ( listValue )
case "dex.v1.QueryAccountsResponse.pagination" :
value := x . Pagination
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsResponse 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_QueryAccountsResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryAccountsResponse.accounts" :
lv := value . List ()
clv := lv .( * _QueryAccountsResponse_1_list )
x . Accounts = * clv . list
case "dex.v1.QueryAccountsResponse.pagination" :
x . Pagination = value . Message (). Interface ().( * v1beta1 . PageResponse )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsResponse 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_QueryAccountsResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryAccountsResponse.accounts" :
if x . Accounts == nil {
x . Accounts = [] * InterchainDEXAccount {}
}
value := & _QueryAccountsResponse_1_list { list : & x . Accounts }
return protoreflect . ValueOfList ( value )
case "dex.v1.QueryAccountsResponse.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: dex.v1.QueryAccountsResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsResponse 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_QueryAccountsResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryAccountsResponse.accounts" :
list := [] * InterchainDEXAccount {}
return protoreflect . ValueOfList ( & _QueryAccountsResponse_1_list { list : & list })
case "dex.v1.QueryAccountsResponse.pagination" :
m := new ( v1beta1 . PageResponse )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryAccountsResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryAccountsResponse 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_QueryAccountsResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryAccountsResponse" , 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_QueryAccountsResponse ) 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_QueryAccountsResponse ) 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_QueryAccountsResponse ) 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_QueryAccountsResponse ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryAccountsResponse )
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 . Accounts ) > 0 {
for _ , e := range x . Accounts {
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 ().( * QueryAccountsResponse )
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 . Accounts ) > 0 {
for iNdEx := len ( x . Accounts ) - 1 ; iNdEx >= 0 ; iNdEx -- {
encoded , err := options . Marshal ( x . Accounts [ 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 ().( * QueryAccountsResponse )
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: QueryAccountsResponse: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryAccountsResponse: 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 Accounts" , 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 . Accounts = append ( x . Accounts , & InterchainDEXAccount {})
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Accounts [ len ( x . Accounts ) - 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_QueryBalanceRequest protoreflect . MessageDescriptor
fd_QueryBalanceRequest_did protoreflect . FieldDescriptor
fd_QueryBalanceRequest_connection_id protoreflect . FieldDescriptor
fd_QueryBalanceRequest_denom protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryBalanceRequest = File_dex_v1_query_proto . Messages (). ByName ( "QueryBalanceRequest" )
fd_QueryBalanceRequest_did = md_QueryBalanceRequest . Fields (). ByName ( "did" )
fd_QueryBalanceRequest_connection_id = md_QueryBalanceRequest . Fields (). ByName ( "connection_id" )
fd_QueryBalanceRequest_denom = md_QueryBalanceRequest . Fields (). ByName ( "denom" )
}
var _ protoreflect . Message = ( * fastReflection_QueryBalanceRequest )( nil )
type fastReflection_QueryBalanceRequest QueryBalanceRequest
func ( x * QueryBalanceRequest ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryBalanceRequest )( x )
}
func ( x * QueryBalanceRequest ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryBalanceRequest_messageType fastReflection_QueryBalanceRequest_messageType
var _ protoreflect . MessageType = fastReflection_QueryBalanceRequest_messageType {}
type fastReflection_QueryBalanceRequest_messageType struct {}
func ( x fastReflection_QueryBalanceRequest_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryBalanceRequest )( nil )
}
func ( x fastReflection_QueryBalanceRequest_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryBalanceRequest )
}
func ( x fastReflection_QueryBalanceRequest_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryBalanceRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryBalanceRequest ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryBalanceRequest
}
// 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_QueryBalanceRequest ) Type () protoreflect . MessageType {
return _fastReflection_QueryBalanceRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryBalanceRequest ) New () protoreflect . Message {
return new ( fastReflection_QueryBalanceRequest )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryBalanceRequest ) Interface () protoreflect . ProtoMessage {
return ( * QueryBalanceRequest )( 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_QueryBalanceRequest ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_QueryBalanceRequest_did , value ) {
return
}
}
if x . ConnectionId != "" {
value := protoreflect . ValueOfString ( x . ConnectionId )
if ! f ( fd_QueryBalanceRequest_connection_id , value ) {
return
}
}
if x . Denom != "" {
value := protoreflect . ValueOfString ( x . Denom )
if ! f ( fd_QueryBalanceRequest_denom , 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_QueryBalanceRequest ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryBalanceRequest.did" :
return x . Did != ""
case "dex.v1.QueryBalanceRequest.connection_id" :
return x . ConnectionId != ""
case "dex.v1.QueryBalanceRequest.denom" :
return x . Denom != ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceRequest 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_QueryBalanceRequest ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryBalanceRequest.did" :
x . Did = ""
case "dex.v1.QueryBalanceRequest.connection_id" :
x . ConnectionId = ""
case "dex.v1.QueryBalanceRequest.denom" :
x . Denom = ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceRequest 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_QueryBalanceRequest ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryBalanceRequest.did" :
value := x . Did
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryBalanceRequest.connection_id" :
value := x . ConnectionId
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryBalanceRequest.denom" :
value := x . Denom
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceRequest 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_QueryBalanceRequest ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryBalanceRequest.did" :
x . Did = value . Interface ().( string )
case "dex.v1.QueryBalanceRequest.connection_id" :
x . ConnectionId = value . Interface ().( string )
case "dex.v1.QueryBalanceRequest.denom" :
x . Denom = value . Interface ().( string )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceRequest 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_QueryBalanceRequest ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryBalanceRequest.did" :
panic ( fmt . Errorf ( "field did of message dex.v1.QueryBalanceRequest is not mutable" ))
case "dex.v1.QueryBalanceRequest.connection_id" :
panic ( fmt . Errorf ( "field connection_id of message dex.v1.QueryBalanceRequest is not mutable" ))
case "dex.v1.QueryBalanceRequest.denom" :
panic ( fmt . Errorf ( "field denom of message dex.v1.QueryBalanceRequest is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceRequest 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_QueryBalanceRequest ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryBalanceRequest.did" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryBalanceRequest.connection_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryBalanceRequest.denom" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceRequest 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_QueryBalanceRequest ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryBalanceRequest" , 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_QueryBalanceRequest ) 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_QueryBalanceRequest ) 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_QueryBalanceRequest ) 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_QueryBalanceRequest ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryBalanceRequest )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
l = len ( x . Did )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . ConnectionId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Denom )
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 ().( * QueryBalanceRequest )
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 . Denom ) > 0 {
i -= len ( x . Denom )
copy ( dAtA [ i :], x . Denom )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Denom )))
i --
dAtA [ i ] = 0x1a
}
if len ( x . ConnectionId ) > 0 {
i -= len ( x . ConnectionId )
copy ( dAtA [ i :], x . ConnectionId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . ConnectionId )))
i --
dAtA [ i ] = 0x12
}
if len ( x . Did ) > 0 {
i -= len ( x . Did )
copy ( dAtA [ i :], x . Did )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Did )))
i --
dAtA [ i ] = 0xa
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ().( * QueryBalanceRequest )
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: QueryBalanceRequest: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryBalanceRequest: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Did" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Did = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field ConnectionId" , 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 . ConnectionId = 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 Denom" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Denom = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
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 = ( * _QueryBalanceResponse_1_list )( nil )
type _QueryBalanceResponse_1_list struct {
list * [] * v1beta11 . Coin
}
func ( x * _QueryBalanceResponse_1_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _QueryBalanceResponse_1_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _QueryBalanceResponse_1_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * v1beta11 . Coin )
( * x . list )[ i ] = concreteValue
}
func ( x * _QueryBalanceResponse_1_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * v1beta11 . Coin )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _QueryBalanceResponse_1_list ) AppendMutable () protoreflect . Value {
v := new ( v1beta11 . Coin )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _QueryBalanceResponse_1_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _QueryBalanceResponse_1_list ) NewElement () protoreflect . Value {
v := new ( v1beta11 . Coin )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _QueryBalanceResponse_1_list ) IsValid () bool {
return x . list != nil
}
var (
md_QueryBalanceResponse protoreflect . MessageDescriptor
fd_QueryBalanceResponse_balances protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryBalanceResponse = File_dex_v1_query_proto . Messages (). ByName ( "QueryBalanceResponse" )
fd_QueryBalanceResponse_balances = md_QueryBalanceResponse . Fields (). ByName ( "balances" )
}
var _ protoreflect . Message = ( * fastReflection_QueryBalanceResponse )( nil )
type fastReflection_QueryBalanceResponse QueryBalanceResponse
func ( x * QueryBalanceResponse ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryBalanceResponse )( x )
}
func ( x * QueryBalanceResponse ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryBalanceResponse_messageType fastReflection_QueryBalanceResponse_messageType
var _ protoreflect . MessageType = fastReflection_QueryBalanceResponse_messageType {}
type fastReflection_QueryBalanceResponse_messageType struct {}
func ( x fastReflection_QueryBalanceResponse_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryBalanceResponse )( nil )
}
func ( x fastReflection_QueryBalanceResponse_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryBalanceResponse )
}
func ( x fastReflection_QueryBalanceResponse_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryBalanceResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryBalanceResponse ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryBalanceResponse
}
// 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_QueryBalanceResponse ) Type () protoreflect . MessageType {
return _fastReflection_QueryBalanceResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryBalanceResponse ) New () protoreflect . Message {
return new ( fastReflection_QueryBalanceResponse )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryBalanceResponse ) Interface () protoreflect . ProtoMessage {
return ( * QueryBalanceResponse )( 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_QueryBalanceResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if len ( x . Balances ) != 0 {
value := protoreflect . ValueOfList ( & _QueryBalanceResponse_1_list { list : & x . Balances })
if ! f ( fd_QueryBalanceResponse_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_QueryBalanceResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryBalanceResponse.balances" :
return len ( x . Balances ) != 0
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceResponse 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_QueryBalanceResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryBalanceResponse.balances" :
x . Balances = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceResponse 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_QueryBalanceResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryBalanceResponse.balances" :
if len ( x . Balances ) == 0 {
return protoreflect . ValueOfList ( & _QueryBalanceResponse_1_list {})
}
listValue := & _QueryBalanceResponse_1_list { list : & x . Balances }
return protoreflect . ValueOfList ( listValue )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceResponse 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_QueryBalanceResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryBalanceResponse.balances" :
lv := value . List ()
clv := lv .( * _QueryBalanceResponse_1_list )
x . Balances = * clv . list
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceResponse 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_QueryBalanceResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryBalanceResponse.balances" :
if x . Balances == nil {
x . Balances = [] * v1beta11 . Coin {}
}
value := & _QueryBalanceResponse_1_list { list : & x . Balances }
return protoreflect . ValueOfList ( value )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceResponse 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_QueryBalanceResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryBalanceResponse.balances" :
list := [] * v1beta11 . Coin {}
return protoreflect . ValueOfList ( & _QueryBalanceResponse_1_list { list : & list })
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryBalanceResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryBalanceResponse 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_QueryBalanceResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryBalanceResponse" , 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_QueryBalanceResponse ) 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_QueryBalanceResponse ) 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_QueryBalanceResponse ) 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_QueryBalanceResponse ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryBalanceResponse )
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 ().( * QueryBalanceResponse )
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 ().( * QueryBalanceResponse )
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: QueryBalanceResponse: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryBalanceResponse: 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 , & v1beta11 . Coin {})
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 (
md_QueryPoolRequest protoreflect . MessageDescriptor
fd_QueryPoolRequest_connection_id protoreflect . FieldDescriptor
fd_QueryPoolRequest_pool_id protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryPoolRequest = File_dex_v1_query_proto . Messages (). ByName ( "QueryPoolRequest" )
fd_QueryPoolRequest_connection_id = md_QueryPoolRequest . Fields (). ByName ( "connection_id" )
fd_QueryPoolRequest_pool_id = md_QueryPoolRequest . Fields (). ByName ( "pool_id" )
}
var _ protoreflect . Message = ( * fastReflection_QueryPoolRequest )( nil )
type fastReflection_QueryPoolRequest QueryPoolRequest
func ( x * QueryPoolRequest ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryPoolRequest )( x )
}
func ( x * QueryPoolRequest ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryPoolRequest_messageType fastReflection_QueryPoolRequest_messageType
var _ protoreflect . MessageType = fastReflection_QueryPoolRequest_messageType {}
type fastReflection_QueryPoolRequest_messageType struct {}
func ( x fastReflection_QueryPoolRequest_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryPoolRequest )( nil )
}
func ( x fastReflection_QueryPoolRequest_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryPoolRequest )
}
func ( x fastReflection_QueryPoolRequest_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryPoolRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryPoolRequest ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryPoolRequest
}
// 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_QueryPoolRequest ) Type () protoreflect . MessageType {
return _fastReflection_QueryPoolRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryPoolRequest ) New () protoreflect . Message {
return new ( fastReflection_QueryPoolRequest )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryPoolRequest ) Interface () protoreflect . ProtoMessage {
return ( * QueryPoolRequest )( 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_QueryPoolRequest ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . ConnectionId != "" {
value := protoreflect . ValueOfString ( x . ConnectionId )
if ! f ( fd_QueryPoolRequest_connection_id , value ) {
return
}
}
if x . PoolId != "" {
value := protoreflect . ValueOfString ( x . PoolId )
if ! f ( fd_QueryPoolRequest_pool_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_QueryPoolRequest ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryPoolRequest.connection_id" :
return x . ConnectionId != ""
case "dex.v1.QueryPoolRequest.pool_id" :
return x . PoolId != ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolRequest 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_QueryPoolRequest ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryPoolRequest.connection_id" :
x . ConnectionId = ""
case "dex.v1.QueryPoolRequest.pool_id" :
x . PoolId = ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolRequest 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_QueryPoolRequest ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryPoolRequest.connection_id" :
value := x . ConnectionId
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryPoolRequest.pool_id" :
value := x . PoolId
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolRequest 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_QueryPoolRequest ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryPoolRequest.connection_id" :
x . ConnectionId = value . Interface ().( string )
case "dex.v1.QueryPoolRequest.pool_id" :
x . PoolId = value . Interface ().( string )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolRequest 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_QueryPoolRequest ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryPoolRequest.connection_id" :
panic ( fmt . Errorf ( "field connection_id of message dex.v1.QueryPoolRequest is not mutable" ))
case "dex.v1.QueryPoolRequest.pool_id" :
panic ( fmt . Errorf ( "field pool_id of message dex.v1.QueryPoolRequest is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolRequest 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_QueryPoolRequest ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryPoolRequest.connection_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryPoolRequest.pool_id" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolRequest 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_QueryPoolRequest ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryPoolRequest" , 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_QueryPoolRequest ) 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_QueryPoolRequest ) 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_QueryPoolRequest ) 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_QueryPoolRequest ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryPoolRequest )
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 . ConnectionId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . PoolId )
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 ().( * QueryPoolRequest )
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 . PoolId ) > 0 {
i -= len ( x . PoolId )
copy ( dAtA [ i :], x . PoolId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . PoolId )))
i --
dAtA [ i ] = 0x12
}
if len ( x . ConnectionId ) > 0 {
i -= len ( x . ConnectionId )
copy ( dAtA [ i :], x . ConnectionId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . ConnectionId )))
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 ().( * QueryPoolRequest )
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: QueryPoolRequest: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryPoolRequest: 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 ConnectionId" , 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 . ConnectionId = 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 PoolId" , 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 . PoolId = 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_QueryPoolResponse protoreflect . MessageDescriptor
fd_QueryPoolResponse_pool protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryPoolResponse = File_dex_v1_query_proto . Messages (). ByName ( "QueryPoolResponse" )
fd_QueryPoolResponse_pool = md_QueryPoolResponse . Fields (). ByName ( "pool" )
}
var _ protoreflect . Message = ( * fastReflection_QueryPoolResponse )( nil )
type fastReflection_QueryPoolResponse QueryPoolResponse
func ( x * QueryPoolResponse ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryPoolResponse )( x )
}
func ( x * QueryPoolResponse ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryPoolResponse_messageType fastReflection_QueryPoolResponse_messageType
var _ protoreflect . MessageType = fastReflection_QueryPoolResponse_messageType {}
type fastReflection_QueryPoolResponse_messageType struct {}
func ( x fastReflection_QueryPoolResponse_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryPoolResponse )( nil )
}
func ( x fastReflection_QueryPoolResponse_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryPoolResponse )
}
func ( x fastReflection_QueryPoolResponse_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryPoolResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryPoolResponse ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryPoolResponse
}
// 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_QueryPoolResponse ) Type () protoreflect . MessageType {
return _fastReflection_QueryPoolResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryPoolResponse ) New () protoreflect . Message {
return new ( fastReflection_QueryPoolResponse )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryPoolResponse ) Interface () protoreflect . ProtoMessage {
return ( * QueryPoolResponse )( 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_QueryPoolResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Pool != nil {
value := protoreflect . ValueOfMessage ( x . Pool . ProtoReflect ())
if ! f ( fd_QueryPoolResponse_pool , 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_QueryPoolResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryPoolResponse.pool" :
return x . Pool != nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolResponse 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_QueryPoolResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryPoolResponse.pool" :
x . Pool = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolResponse 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_QueryPoolResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryPoolResponse.pool" :
value := x . Pool
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolResponse 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_QueryPoolResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryPoolResponse.pool" :
x . Pool = value . Message (). Interface ().( * PoolInfo )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolResponse 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_QueryPoolResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryPoolResponse.pool" :
if x . Pool == nil {
x . Pool = new ( PoolInfo )
}
return protoreflect . ValueOfMessage ( x . Pool . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolResponse 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_QueryPoolResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryPoolResponse.pool" :
m := new ( PoolInfo )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryPoolResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryPoolResponse 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_QueryPoolResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryPoolResponse" , 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_QueryPoolResponse ) 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_QueryPoolResponse ) 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_QueryPoolResponse ) 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_QueryPoolResponse ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryPoolResponse )
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 . Pool != nil {
l = options . Size ( x . Pool )
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 ().( * QueryPoolResponse )
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 . Pool != nil {
encoded , err := options . Marshal ( x . Pool )
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 ().( * QueryPoolResponse )
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: QueryPoolResponse: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryPoolResponse: 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 Pool" , 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 . Pool == nil {
x . Pool = & PoolInfo {}
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Pool ); 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 = ( * _PoolInfo_2_list )( nil )
type _PoolInfo_2_list struct {
list * [] * v1beta11 . Coin
}
func ( x * _PoolInfo_2_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _PoolInfo_2_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _PoolInfo_2_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * v1beta11 . Coin )
( * x . list )[ i ] = concreteValue
}
func ( x * _PoolInfo_2_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * v1beta11 . Coin )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _PoolInfo_2_list ) AppendMutable () protoreflect . Value {
v := new ( v1beta11 . Coin )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _PoolInfo_2_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _PoolInfo_2_list ) NewElement () protoreflect . Value {
v := new ( v1beta11 . Coin )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _PoolInfo_2_list ) IsValid () bool {
return x . list != nil
}
var (
md_PoolInfo protoreflect . MessageDescriptor
fd_PoolInfo_pool_id protoreflect . FieldDescriptor
fd_PoolInfo_assets protoreflect . FieldDescriptor
fd_PoolInfo_total_shares protoreflect . FieldDescriptor
fd_PoolInfo_swap_fee protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_PoolInfo = File_dex_v1_query_proto . Messages (). ByName ( "PoolInfo" )
fd_PoolInfo_pool_id = md_PoolInfo . Fields (). ByName ( "pool_id" )
fd_PoolInfo_assets = md_PoolInfo . Fields (). ByName ( "assets" )
fd_PoolInfo_total_shares = md_PoolInfo . Fields (). ByName ( "total_shares" )
fd_PoolInfo_swap_fee = md_PoolInfo . Fields (). ByName ( "swap_fee" )
}
var _ protoreflect . Message = ( * fastReflection_PoolInfo )( nil )
type fastReflection_PoolInfo PoolInfo
func ( x * PoolInfo ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_PoolInfo )( x )
}
func ( x * PoolInfo ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_PoolInfo_messageType fastReflection_PoolInfo_messageType
var _ protoreflect . MessageType = fastReflection_PoolInfo_messageType {}
type fastReflection_PoolInfo_messageType struct {}
func ( x fastReflection_PoolInfo_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_PoolInfo )( nil )
}
func ( x fastReflection_PoolInfo_messageType ) New () protoreflect . Message {
return new ( fastReflection_PoolInfo )
}
func ( x fastReflection_PoolInfo_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_PoolInfo
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_PoolInfo ) Descriptor () protoreflect . MessageDescriptor {
return md_PoolInfo
}
// 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_PoolInfo ) Type () protoreflect . MessageType {
return _fastReflection_PoolInfo_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_PoolInfo ) New () protoreflect . Message {
return new ( fastReflection_PoolInfo )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_PoolInfo ) Interface () protoreflect . ProtoMessage {
return ( * PoolInfo )( 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_PoolInfo ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . PoolId != "" {
value := protoreflect . ValueOfString ( x . PoolId )
if ! f ( fd_PoolInfo_pool_id , value ) {
return
}
}
if len ( x . Assets ) != 0 {
value := protoreflect . ValueOfList ( & _PoolInfo_2_list { list : & x . Assets })
if ! f ( fd_PoolInfo_assets , value ) {
return
}
}
if x . TotalShares != "" {
value := protoreflect . ValueOfString ( x . TotalShares )
if ! f ( fd_PoolInfo_total_shares , value ) {
return
}
}
if x . SwapFee != "" {
value := protoreflect . ValueOfString ( x . SwapFee )
if ! f ( fd_PoolInfo_swap_fee , 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_PoolInfo ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.PoolInfo.pool_id" :
return x . PoolId != ""
case "dex.v1.PoolInfo.assets" :
return len ( x . Assets ) != 0
case "dex.v1.PoolInfo.total_shares" :
return x . TotalShares != ""
case "dex.v1.PoolInfo.swap_fee" :
return x . SwapFee != ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.PoolInfo" ))
}
panic ( fmt . Errorf ( "message dex.v1.PoolInfo 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_PoolInfo ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.PoolInfo.pool_id" :
x . PoolId = ""
case "dex.v1.PoolInfo.assets" :
x . Assets = nil
case "dex.v1.PoolInfo.total_shares" :
x . TotalShares = ""
case "dex.v1.PoolInfo.swap_fee" :
x . SwapFee = ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.PoolInfo" ))
}
panic ( fmt . Errorf ( "message dex.v1.PoolInfo 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_PoolInfo ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.PoolInfo.pool_id" :
value := x . PoolId
return protoreflect . ValueOfString ( value )
case "dex.v1.PoolInfo.assets" :
if len ( x . Assets ) == 0 {
return protoreflect . ValueOfList ( & _PoolInfo_2_list {})
}
listValue := & _PoolInfo_2_list { list : & x . Assets }
return protoreflect . ValueOfList ( listValue )
case "dex.v1.PoolInfo.total_shares" :
value := x . TotalShares
return protoreflect . ValueOfString ( value )
case "dex.v1.PoolInfo.swap_fee" :
value := x . SwapFee
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.PoolInfo" ))
}
panic ( fmt . Errorf ( "message dex.v1.PoolInfo 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_PoolInfo ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.PoolInfo.pool_id" :
x . PoolId = value . Interface ().( string )
case "dex.v1.PoolInfo.assets" :
lv := value . List ()
clv := lv .( * _PoolInfo_2_list )
x . Assets = * clv . list
case "dex.v1.PoolInfo.total_shares" :
x . TotalShares = value . Interface ().( string )
case "dex.v1.PoolInfo.swap_fee" :
x . SwapFee = value . Interface ().( string )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.PoolInfo" ))
}
panic ( fmt . Errorf ( "message dex.v1.PoolInfo 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_PoolInfo ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.PoolInfo.assets" :
if x . Assets == nil {
x . Assets = [] * v1beta11 . Coin {}
}
value := & _PoolInfo_2_list { list : & x . Assets }
return protoreflect . ValueOfList ( value )
case "dex.v1.PoolInfo.pool_id" :
panic ( fmt . Errorf ( "field pool_id of message dex.v1.PoolInfo is not mutable" ))
case "dex.v1.PoolInfo.total_shares" :
panic ( fmt . Errorf ( "field total_shares of message dex.v1.PoolInfo is not mutable" ))
case "dex.v1.PoolInfo.swap_fee" :
panic ( fmt . Errorf ( "field swap_fee of message dex.v1.PoolInfo is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.PoolInfo" ))
}
panic ( fmt . Errorf ( "message dex.v1.PoolInfo 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_PoolInfo ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.PoolInfo.pool_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.PoolInfo.assets" :
list := [] * v1beta11 . Coin {}
return protoreflect . ValueOfList ( & _PoolInfo_2_list { list : & list })
case "dex.v1.PoolInfo.total_shares" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.PoolInfo.swap_fee" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.PoolInfo" ))
}
panic ( fmt . Errorf ( "message dex.v1.PoolInfo 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_PoolInfo ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.PoolInfo" , 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_PoolInfo ) 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_PoolInfo ) 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_PoolInfo ) 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_PoolInfo ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * PoolInfo )
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 . PoolId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
if len ( x . Assets ) > 0 {
for _ , e := range x . Assets {
l = options . Size ( e )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
}
l = len ( x . TotalShares )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . SwapFee )
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 ().( * PoolInfo )
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 . SwapFee ) > 0 {
i -= len ( x . SwapFee )
copy ( dAtA [ i :], x . SwapFee )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . SwapFee )))
i --
dAtA [ i ] = 0x22
}
if len ( x . TotalShares ) > 0 {
i -= len ( x . TotalShares )
copy ( dAtA [ i :], x . TotalShares )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . TotalShares )))
i --
dAtA [ i ] = 0x1a
}
if len ( x . Assets ) > 0 {
for iNdEx := len ( x . Assets ) - 1 ; iNdEx >= 0 ; iNdEx -- {
encoded , err := options . Marshal ( x . Assets [ iNdEx ])
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0x12
}
}
if len ( x . PoolId ) > 0 {
i -= len ( x . PoolId )
copy ( dAtA [ i :], x . PoolId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . PoolId )))
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 ().( * PoolInfo )
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: PoolInfo: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: PoolInfo: 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 PoolId" , 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 . PoolId = 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 Assets" , 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 . Assets = append ( x . Assets , & v1beta11 . Coin {})
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Assets [ len ( x . Assets ) - 1 ]); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
iNdEx = postIndex
case 3 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field TotalShares" , 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 . TotalShares = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 4 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field SwapFee" , 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 . SwapFee = 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_QueryOrdersRequest protoreflect . MessageDescriptor
fd_QueryOrdersRequest_did protoreflect . FieldDescriptor
fd_QueryOrdersRequest_connection_id protoreflect . FieldDescriptor
fd_QueryOrdersRequest_status protoreflect . FieldDescriptor
fd_QueryOrdersRequest_pagination protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryOrdersRequest = File_dex_v1_query_proto . Messages (). ByName ( "QueryOrdersRequest" )
fd_QueryOrdersRequest_did = md_QueryOrdersRequest . Fields (). ByName ( "did" )
fd_QueryOrdersRequest_connection_id = md_QueryOrdersRequest . Fields (). ByName ( "connection_id" )
fd_QueryOrdersRequest_status = md_QueryOrdersRequest . Fields (). ByName ( "status" )
fd_QueryOrdersRequest_pagination = md_QueryOrdersRequest . Fields (). ByName ( "pagination" )
}
var _ protoreflect . Message = ( * fastReflection_QueryOrdersRequest )( nil )
type fastReflection_QueryOrdersRequest QueryOrdersRequest
func ( x * QueryOrdersRequest ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryOrdersRequest )( x )
}
func ( x * QueryOrdersRequest ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryOrdersRequest_messageType fastReflection_QueryOrdersRequest_messageType
var _ protoreflect . MessageType = fastReflection_QueryOrdersRequest_messageType {}
type fastReflection_QueryOrdersRequest_messageType struct {}
func ( x fastReflection_QueryOrdersRequest_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryOrdersRequest )( nil )
}
func ( x fastReflection_QueryOrdersRequest_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryOrdersRequest )
}
func ( x fastReflection_QueryOrdersRequest_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryOrdersRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryOrdersRequest ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryOrdersRequest
}
// 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_QueryOrdersRequest ) Type () protoreflect . MessageType {
return _fastReflection_QueryOrdersRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryOrdersRequest ) New () protoreflect . Message {
return new ( fastReflection_QueryOrdersRequest )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryOrdersRequest ) Interface () protoreflect . ProtoMessage {
return ( * QueryOrdersRequest )( 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_QueryOrdersRequest ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_QueryOrdersRequest_did , value ) {
return
}
}
if x . ConnectionId != "" {
value := protoreflect . ValueOfString ( x . ConnectionId )
if ! f ( fd_QueryOrdersRequest_connection_id , value ) {
return
}
}
if x . Status != "" {
value := protoreflect . ValueOfString ( x . Status )
if ! f ( fd_QueryOrdersRequest_status , value ) {
return
}
}
if x . Pagination != nil {
value := protoreflect . ValueOfMessage ( x . Pagination . ProtoReflect ())
if ! f ( fd_QueryOrdersRequest_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_QueryOrdersRequest ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryOrdersRequest.did" :
return x . Did != ""
case "dex.v1.QueryOrdersRequest.connection_id" :
return x . ConnectionId != ""
case "dex.v1.QueryOrdersRequest.status" :
return x . Status != ""
case "dex.v1.QueryOrdersRequest.pagination" :
return x . Pagination != nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersRequest 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_QueryOrdersRequest ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryOrdersRequest.did" :
x . Did = ""
case "dex.v1.QueryOrdersRequest.connection_id" :
x . ConnectionId = ""
case "dex.v1.QueryOrdersRequest.status" :
x . Status = ""
case "dex.v1.QueryOrdersRequest.pagination" :
x . Pagination = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersRequest 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_QueryOrdersRequest ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryOrdersRequest.did" :
value := x . Did
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryOrdersRequest.connection_id" :
value := x . ConnectionId
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryOrdersRequest.status" :
value := x . Status
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryOrdersRequest.pagination" :
value := x . Pagination
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersRequest 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_QueryOrdersRequest ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryOrdersRequest.did" :
x . Did = value . Interface ().( string )
case "dex.v1.QueryOrdersRequest.connection_id" :
x . ConnectionId = value . Interface ().( string )
case "dex.v1.QueryOrdersRequest.status" :
x . Status = value . Interface ().( string )
case "dex.v1.QueryOrdersRequest.pagination" :
x . Pagination = value . Message (). Interface ().( * v1beta1 . PageRequest )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersRequest 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_QueryOrdersRequest ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryOrdersRequest.pagination" :
if x . Pagination == nil {
x . Pagination = new ( v1beta1 . PageRequest )
}
return protoreflect . ValueOfMessage ( x . Pagination . ProtoReflect ())
case "dex.v1.QueryOrdersRequest.did" :
panic ( fmt . Errorf ( "field did of message dex.v1.QueryOrdersRequest is not mutable" ))
case "dex.v1.QueryOrdersRequest.connection_id" :
panic ( fmt . Errorf ( "field connection_id of message dex.v1.QueryOrdersRequest is not mutable" ))
case "dex.v1.QueryOrdersRequest.status" :
panic ( fmt . Errorf ( "field status of message dex.v1.QueryOrdersRequest is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersRequest 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_QueryOrdersRequest ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryOrdersRequest.did" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryOrdersRequest.connection_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryOrdersRequest.status" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryOrdersRequest.pagination" :
m := new ( v1beta1 . PageRequest )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersRequest 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_QueryOrdersRequest ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryOrdersRequest" , 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_QueryOrdersRequest ) 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_QueryOrdersRequest ) 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_QueryOrdersRequest ) 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_QueryOrdersRequest ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryOrdersRequest )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
l = len ( x . Did )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . ConnectionId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Status )
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 ().( * QueryOrdersRequest )
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 ] = 0x22
}
if len ( x . Status ) > 0 {
i -= len ( x . Status )
copy ( dAtA [ i :], x . Status )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Status )))
i --
dAtA [ i ] = 0x1a
}
if len ( x . ConnectionId ) > 0 {
i -= len ( x . ConnectionId )
copy ( dAtA [ i :], x . ConnectionId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . ConnectionId )))
i --
dAtA [ i ] = 0x12
}
if len ( x . Did ) > 0 {
i -= len ( x . Did )
copy ( dAtA [ i :], x . Did )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Did )))
i --
dAtA [ i ] = 0xa
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ().( * QueryOrdersRequest )
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: QueryOrdersRequest: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryOrdersRequest: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Did" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Did = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field ConnectionId" , 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 . ConnectionId = 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 Status" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Status = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 4 :
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 = ( * _QueryOrdersResponse_1_list )( nil )
type _QueryOrdersResponse_1_list struct {
list * [] * Order
}
func ( x * _QueryOrdersResponse_1_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _QueryOrdersResponse_1_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _QueryOrdersResponse_1_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * Order )
( * x . list )[ i ] = concreteValue
}
func ( x * _QueryOrdersResponse_1_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * Order )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _QueryOrdersResponse_1_list ) AppendMutable () protoreflect . Value {
v := new ( Order )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _QueryOrdersResponse_1_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _QueryOrdersResponse_1_list ) NewElement () protoreflect . Value {
v := new ( Order )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _QueryOrdersResponse_1_list ) IsValid () bool {
return x . list != nil
}
var (
md_QueryOrdersResponse protoreflect . MessageDescriptor
fd_QueryOrdersResponse_orders protoreflect . FieldDescriptor
fd_QueryOrdersResponse_pagination protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryOrdersResponse = File_dex_v1_query_proto . Messages (). ByName ( "QueryOrdersResponse" )
fd_QueryOrdersResponse_orders = md_QueryOrdersResponse . Fields (). ByName ( "orders" )
fd_QueryOrdersResponse_pagination = md_QueryOrdersResponse . Fields (). ByName ( "pagination" )
}
var _ protoreflect . Message = ( * fastReflection_QueryOrdersResponse )( nil )
type fastReflection_QueryOrdersResponse QueryOrdersResponse
func ( x * QueryOrdersResponse ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryOrdersResponse )( x )
}
func ( x * QueryOrdersResponse ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryOrdersResponse_messageType fastReflection_QueryOrdersResponse_messageType
var _ protoreflect . MessageType = fastReflection_QueryOrdersResponse_messageType {}
type fastReflection_QueryOrdersResponse_messageType struct {}
func ( x fastReflection_QueryOrdersResponse_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryOrdersResponse )( nil )
}
func ( x fastReflection_QueryOrdersResponse_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryOrdersResponse )
}
func ( x fastReflection_QueryOrdersResponse_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryOrdersResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryOrdersResponse ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryOrdersResponse
}
// 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_QueryOrdersResponse ) Type () protoreflect . MessageType {
return _fastReflection_QueryOrdersResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryOrdersResponse ) New () protoreflect . Message {
return new ( fastReflection_QueryOrdersResponse )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryOrdersResponse ) Interface () protoreflect . ProtoMessage {
return ( * QueryOrdersResponse )( 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_QueryOrdersResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if len ( x . Orders ) != 0 {
value := protoreflect . ValueOfList ( & _QueryOrdersResponse_1_list { list : & x . Orders })
if ! f ( fd_QueryOrdersResponse_orders , value ) {
return
}
}
if x . Pagination != nil {
value := protoreflect . ValueOfMessage ( x . Pagination . ProtoReflect ())
if ! f ( fd_QueryOrdersResponse_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_QueryOrdersResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryOrdersResponse.orders" :
return len ( x . Orders ) != 0
case "dex.v1.QueryOrdersResponse.pagination" :
return x . Pagination != nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersResponse 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_QueryOrdersResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryOrdersResponse.orders" :
x . Orders = nil
case "dex.v1.QueryOrdersResponse.pagination" :
x . Pagination = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersResponse 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_QueryOrdersResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryOrdersResponse.orders" :
if len ( x . Orders ) == 0 {
return protoreflect . ValueOfList ( & _QueryOrdersResponse_1_list {})
}
listValue := & _QueryOrdersResponse_1_list { list : & x . Orders }
return protoreflect . ValueOfList ( listValue )
case "dex.v1.QueryOrdersResponse.pagination" :
value := x . Pagination
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersResponse 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_QueryOrdersResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryOrdersResponse.orders" :
lv := value . List ()
clv := lv .( * _QueryOrdersResponse_1_list )
x . Orders = * clv . list
case "dex.v1.QueryOrdersResponse.pagination" :
x . Pagination = value . Message (). Interface ().( * v1beta1 . PageResponse )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersResponse 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_QueryOrdersResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryOrdersResponse.orders" :
if x . Orders == nil {
x . Orders = [] * Order {}
}
value := & _QueryOrdersResponse_1_list { list : & x . Orders }
return protoreflect . ValueOfList ( value )
case "dex.v1.QueryOrdersResponse.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: dex.v1.QueryOrdersResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersResponse 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_QueryOrdersResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryOrdersResponse.orders" :
list := [] * Order {}
return protoreflect . ValueOfList ( & _QueryOrdersResponse_1_list { list : & list })
case "dex.v1.QueryOrdersResponse.pagination" :
m := new ( v1beta1 . PageResponse )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryOrdersResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryOrdersResponse 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_QueryOrdersResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryOrdersResponse" , 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_QueryOrdersResponse ) 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_QueryOrdersResponse ) 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_QueryOrdersResponse ) 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_QueryOrdersResponse ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryOrdersResponse )
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 . Orders ) > 0 {
for _ , e := range x . Orders {
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 ().( * QueryOrdersResponse )
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 . Orders ) > 0 {
for iNdEx := len ( x . Orders ) - 1 ; iNdEx >= 0 ; iNdEx -- {
encoded , err := options . Marshal ( x . Orders [ 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 ().( * QueryOrdersResponse )
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: QueryOrdersResponse: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryOrdersResponse: 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 Orders" , 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 . Orders = append ( x . Orders , & Order {})
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Orders [ len ( x . Orders ) - 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_Order protoreflect . MessageDescriptor
fd_Order_order_id protoreflect . FieldDescriptor
fd_Order_order_type protoreflect . FieldDescriptor
fd_Order_sell_denom protoreflect . FieldDescriptor
fd_Order_buy_denom protoreflect . FieldDescriptor
fd_Order_amount protoreflect . FieldDescriptor
fd_Order_price protoreflect . FieldDescriptor
fd_Order_status protoreflect . FieldDescriptor
fd_Order_created_at protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_Order = File_dex_v1_query_proto . Messages (). ByName ( "Order" )
fd_Order_order_id = md_Order . Fields (). ByName ( "order_id" )
fd_Order_order_type = md_Order . Fields (). ByName ( "order_type" )
fd_Order_sell_denom = md_Order . Fields (). ByName ( "sell_denom" )
fd_Order_buy_denom = md_Order . Fields (). ByName ( "buy_denom" )
fd_Order_amount = md_Order . Fields (). ByName ( "amount" )
fd_Order_price = md_Order . Fields (). ByName ( "price" )
fd_Order_status = md_Order . Fields (). ByName ( "status" )
fd_Order_created_at = md_Order . Fields (). ByName ( "created_at" )
}
var _ protoreflect . Message = ( * fastReflection_Order )( nil )
type fastReflection_Order Order
func ( x * Order ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_Order )( x )
}
func ( x * Order ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_Order_messageType fastReflection_Order_messageType
var _ protoreflect . MessageType = fastReflection_Order_messageType {}
type fastReflection_Order_messageType struct {}
func ( x fastReflection_Order_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_Order )( nil )
}
func ( x fastReflection_Order_messageType ) New () protoreflect . Message {
return new ( fastReflection_Order )
}
func ( x fastReflection_Order_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_Order
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_Order ) Descriptor () protoreflect . MessageDescriptor {
return md_Order
}
// 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_Order ) Type () protoreflect . MessageType {
return _fastReflection_Order_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_Order ) New () protoreflect . Message {
return new ( fastReflection_Order )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_Order ) Interface () protoreflect . ProtoMessage {
return ( * Order )( 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_Order ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . OrderId != "" {
value := protoreflect . ValueOfString ( x . OrderId )
if ! f ( fd_Order_order_id , value ) {
return
}
}
if x . OrderType != "" {
value := protoreflect . ValueOfString ( x . OrderType )
if ! f ( fd_Order_order_type , value ) {
return
}
}
if x . SellDenom != "" {
value := protoreflect . ValueOfString ( x . SellDenom )
if ! f ( fd_Order_sell_denom , value ) {
return
}
}
if x . BuyDenom != "" {
value := protoreflect . ValueOfString ( x . BuyDenom )
if ! f ( fd_Order_buy_denom , value ) {
return
}
}
if x . Amount != "" {
value := protoreflect . ValueOfString ( x . Amount )
if ! f ( fd_Order_amount , value ) {
return
}
}
if x . Price != "" {
value := protoreflect . ValueOfString ( x . Price )
if ! f ( fd_Order_price , value ) {
return
}
}
if x . Status != "" {
value := protoreflect . ValueOfString ( x . Status )
if ! f ( fd_Order_status , value ) {
return
}
}
if x . CreatedAt != "" {
value := protoreflect . ValueOfString ( x . CreatedAt )
if ! f ( fd_Order_created_at , 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_Order ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.Order.order_id" :
return x . OrderId != ""
case "dex.v1.Order.order_type" :
return x . OrderType != ""
case "dex.v1.Order.sell_denom" :
return x . SellDenom != ""
case "dex.v1.Order.buy_denom" :
return x . BuyDenom != ""
case "dex.v1.Order.amount" :
return x . Amount != ""
case "dex.v1.Order.price" :
return x . Price != ""
case "dex.v1.Order.status" :
return x . Status != ""
case "dex.v1.Order.created_at" :
return x . CreatedAt != ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Order" ))
}
panic ( fmt . Errorf ( "message dex.v1.Order 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_Order ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.Order.order_id" :
x . OrderId = ""
case "dex.v1.Order.order_type" :
x . OrderType = ""
case "dex.v1.Order.sell_denom" :
x . SellDenom = ""
case "dex.v1.Order.buy_denom" :
x . BuyDenom = ""
case "dex.v1.Order.amount" :
x . Amount = ""
case "dex.v1.Order.price" :
x . Price = ""
case "dex.v1.Order.status" :
x . Status = ""
case "dex.v1.Order.created_at" :
x . CreatedAt = ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Order" ))
}
panic ( fmt . Errorf ( "message dex.v1.Order 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_Order ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.Order.order_id" :
value := x . OrderId
return protoreflect . ValueOfString ( value )
case "dex.v1.Order.order_type" :
value := x . OrderType
return protoreflect . ValueOfString ( value )
case "dex.v1.Order.sell_denom" :
value := x . SellDenom
return protoreflect . ValueOfString ( value )
case "dex.v1.Order.buy_denom" :
value := x . BuyDenom
return protoreflect . ValueOfString ( value )
case "dex.v1.Order.amount" :
value := x . Amount
return protoreflect . ValueOfString ( value )
case "dex.v1.Order.price" :
value := x . Price
return protoreflect . ValueOfString ( value )
case "dex.v1.Order.status" :
value := x . Status
return protoreflect . ValueOfString ( value )
case "dex.v1.Order.created_at" :
value := x . CreatedAt
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Order" ))
}
panic ( fmt . Errorf ( "message dex.v1.Order 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_Order ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.Order.order_id" :
x . OrderId = value . Interface ().( string )
case "dex.v1.Order.order_type" :
x . OrderType = value . Interface ().( string )
case "dex.v1.Order.sell_denom" :
x . SellDenom = value . Interface ().( string )
case "dex.v1.Order.buy_denom" :
x . BuyDenom = value . Interface ().( string )
case "dex.v1.Order.amount" :
x . Amount = value . Interface ().( string )
case "dex.v1.Order.price" :
x . Price = value . Interface ().( string )
case "dex.v1.Order.status" :
x . Status = value . Interface ().( string )
case "dex.v1.Order.created_at" :
x . CreatedAt = value . Interface ().( string )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Order" ))
}
panic ( fmt . Errorf ( "message dex.v1.Order 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_Order ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.Order.order_id" :
panic ( fmt . Errorf ( "field order_id of message dex.v1.Order is not mutable" ))
case "dex.v1.Order.order_type" :
panic ( fmt . Errorf ( "field order_type of message dex.v1.Order is not mutable" ))
case "dex.v1.Order.sell_denom" :
panic ( fmt . Errorf ( "field sell_denom of message dex.v1.Order is not mutable" ))
case "dex.v1.Order.buy_denom" :
panic ( fmt . Errorf ( "field buy_denom of message dex.v1.Order is not mutable" ))
case "dex.v1.Order.amount" :
panic ( fmt . Errorf ( "field amount of message dex.v1.Order is not mutable" ))
case "dex.v1.Order.price" :
panic ( fmt . Errorf ( "field price of message dex.v1.Order is not mutable" ))
case "dex.v1.Order.status" :
panic ( fmt . Errorf ( "field status of message dex.v1.Order is not mutable" ))
case "dex.v1.Order.created_at" :
panic ( fmt . Errorf ( "field created_at of message dex.v1.Order is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Order" ))
}
panic ( fmt . Errorf ( "message dex.v1.Order 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_Order ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.Order.order_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Order.order_type" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Order.sell_denom" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Order.buy_denom" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Order.amount" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Order.price" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Order.status" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Order.created_at" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Order" ))
}
panic ( fmt . Errorf ( "message dex.v1.Order 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_Order ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.Order" , 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_Order ) 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_Order ) 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_Order ) 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_Order ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * Order )
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 . OrderId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . OrderType )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . SellDenom )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . BuyDenom )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Amount )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Price )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Status )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . CreatedAt )
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 ().( * Order )
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 . CreatedAt ) > 0 {
i -= len ( x . CreatedAt )
copy ( dAtA [ i :], x . CreatedAt )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . CreatedAt )))
i --
dAtA [ i ] = 0x42
}
if len ( x . Status ) > 0 {
i -= len ( x . Status )
copy ( dAtA [ i :], x . Status )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Status )))
i --
dAtA [ i ] = 0x3a
}
if len ( x . Price ) > 0 {
i -= len ( x . Price )
copy ( dAtA [ i :], x . Price )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Price )))
i --
dAtA [ i ] = 0x32
}
if len ( x . Amount ) > 0 {
i -= len ( x . Amount )
copy ( dAtA [ i :], x . Amount )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Amount )))
i --
dAtA [ i ] = 0x2a
}
if len ( x . BuyDenom ) > 0 {
i -= len ( x . BuyDenom )
copy ( dAtA [ i :], x . BuyDenom )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . BuyDenom )))
i --
dAtA [ i ] = 0x22
}
if len ( x . SellDenom ) > 0 {
i -= len ( x . SellDenom )
copy ( dAtA [ i :], x . SellDenom )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . SellDenom )))
i --
dAtA [ i ] = 0x1a
}
if len ( x . OrderType ) > 0 {
i -= len ( x . OrderType )
copy ( dAtA [ i :], x . OrderType )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . OrderType )))
i --
dAtA [ i ] = 0x12
}
if len ( x . OrderId ) > 0 {
i -= len ( x . OrderId )
copy ( dAtA [ i :], x . OrderId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . OrderId )))
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 ().( * Order )
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: Order: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: Order: 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 OrderId" , 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 . OrderId = 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 OrderType" , 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 . OrderType = 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 SellDenom" , 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 . SellDenom = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 4 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field BuyDenom" , 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 . BuyDenom = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 5 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Amount" , 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 . Amount = 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 Price" , 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 . Price = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 7 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Status" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Status = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 8 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field CreatedAt" , 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 . CreatedAt = 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_QueryHistoryRequest protoreflect . MessageDescriptor
fd_QueryHistoryRequest_did protoreflect . FieldDescriptor
fd_QueryHistoryRequest_connection_id protoreflect . FieldDescriptor
fd_QueryHistoryRequest_operation_type protoreflect . FieldDescriptor
fd_QueryHistoryRequest_pagination protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryHistoryRequest = File_dex_v1_query_proto . Messages (). ByName ( "QueryHistoryRequest" )
fd_QueryHistoryRequest_did = md_QueryHistoryRequest . Fields (). ByName ( "did" )
fd_QueryHistoryRequest_connection_id = md_QueryHistoryRequest . Fields (). ByName ( "connection_id" )
fd_QueryHistoryRequest_operation_type = md_QueryHistoryRequest . Fields (). ByName ( "operation_type" )
fd_QueryHistoryRequest_pagination = md_QueryHistoryRequest . Fields (). ByName ( "pagination" )
}
var _ protoreflect . Message = ( * fastReflection_QueryHistoryRequest )( nil )
type fastReflection_QueryHistoryRequest QueryHistoryRequest
func ( x * QueryHistoryRequest ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryHistoryRequest )( x )
}
func ( x * QueryHistoryRequest ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryHistoryRequest_messageType fastReflection_QueryHistoryRequest_messageType
var _ protoreflect . MessageType = fastReflection_QueryHistoryRequest_messageType {}
type fastReflection_QueryHistoryRequest_messageType struct {}
func ( x fastReflection_QueryHistoryRequest_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryHistoryRequest )( nil )
}
func ( x fastReflection_QueryHistoryRequest_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryHistoryRequest )
}
func ( x fastReflection_QueryHistoryRequest_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryHistoryRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryHistoryRequest ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryHistoryRequest
}
// 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_QueryHistoryRequest ) Type () protoreflect . MessageType {
return _fastReflection_QueryHistoryRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryHistoryRequest ) New () protoreflect . Message {
return new ( fastReflection_QueryHistoryRequest )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryHistoryRequest ) Interface () protoreflect . ProtoMessage {
return ( * QueryHistoryRequest )( 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_QueryHistoryRequest ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_QueryHistoryRequest_did , value ) {
return
}
}
if x . ConnectionId != "" {
value := protoreflect . ValueOfString ( x . ConnectionId )
if ! f ( fd_QueryHistoryRequest_connection_id , value ) {
return
}
}
if x . OperationType != "" {
value := protoreflect . ValueOfString ( x . OperationType )
if ! f ( fd_QueryHistoryRequest_operation_type , value ) {
return
}
}
if x . Pagination != nil {
value := protoreflect . ValueOfMessage ( x . Pagination . ProtoReflect ())
if ! f ( fd_QueryHistoryRequest_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_QueryHistoryRequest ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryHistoryRequest.did" :
return x . Did != ""
case "dex.v1.QueryHistoryRequest.connection_id" :
return x . ConnectionId != ""
case "dex.v1.QueryHistoryRequest.operation_type" :
return x . OperationType != ""
case "dex.v1.QueryHistoryRequest.pagination" :
return x . Pagination != nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryRequest 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_QueryHistoryRequest ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryHistoryRequest.did" :
x . Did = ""
case "dex.v1.QueryHistoryRequest.connection_id" :
x . ConnectionId = ""
case "dex.v1.QueryHistoryRequest.operation_type" :
x . OperationType = ""
case "dex.v1.QueryHistoryRequest.pagination" :
x . Pagination = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryRequest 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_QueryHistoryRequest ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryHistoryRequest.did" :
value := x . Did
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryHistoryRequest.connection_id" :
value := x . ConnectionId
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryHistoryRequest.operation_type" :
value := x . OperationType
return protoreflect . ValueOfString ( value )
case "dex.v1.QueryHistoryRequest.pagination" :
value := x . Pagination
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryRequest 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_QueryHistoryRequest ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryHistoryRequest.did" :
x . Did = value . Interface ().( string )
case "dex.v1.QueryHistoryRequest.connection_id" :
x . ConnectionId = value . Interface ().( string )
case "dex.v1.QueryHistoryRequest.operation_type" :
x . OperationType = value . Interface ().( string )
case "dex.v1.QueryHistoryRequest.pagination" :
x . Pagination = value . Message (). Interface ().( * v1beta1 . PageRequest )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryRequest 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_QueryHistoryRequest ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryHistoryRequest.pagination" :
if x . Pagination == nil {
x . Pagination = new ( v1beta1 . PageRequest )
}
return protoreflect . ValueOfMessage ( x . Pagination . ProtoReflect ())
case "dex.v1.QueryHistoryRequest.did" :
panic ( fmt . Errorf ( "field did of message dex.v1.QueryHistoryRequest is not mutable" ))
case "dex.v1.QueryHistoryRequest.connection_id" :
panic ( fmt . Errorf ( "field connection_id of message dex.v1.QueryHistoryRequest is not mutable" ))
case "dex.v1.QueryHistoryRequest.operation_type" :
panic ( fmt . Errorf ( "field operation_type of message dex.v1.QueryHistoryRequest is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryRequest 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_QueryHistoryRequest ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryHistoryRequest.did" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryHistoryRequest.connection_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryHistoryRequest.operation_type" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.QueryHistoryRequest.pagination" :
m := new ( v1beta1 . PageRequest )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryRequest" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryRequest 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_QueryHistoryRequest ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryHistoryRequest" , 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_QueryHistoryRequest ) 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_QueryHistoryRequest ) 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_QueryHistoryRequest ) 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_QueryHistoryRequest ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryHistoryRequest )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
l = len ( x . Did )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . ConnectionId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . OperationType )
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 ().( * QueryHistoryRequest )
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 ] = 0x22
}
if len ( x . OperationType ) > 0 {
i -= len ( x . OperationType )
copy ( dAtA [ i :], x . OperationType )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . OperationType )))
i --
dAtA [ i ] = 0x1a
}
if len ( x . ConnectionId ) > 0 {
i -= len ( x . ConnectionId )
copy ( dAtA [ i :], x . ConnectionId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . ConnectionId )))
i --
dAtA [ i ] = 0x12
}
if len ( x . Did ) > 0 {
i -= len ( x . Did )
copy ( dAtA [ i :], x . Did )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Did )))
i --
dAtA [ i ] = 0xa
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ().( * QueryHistoryRequest )
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: QueryHistoryRequest: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryHistoryRequest: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Did" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Did = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field ConnectionId" , 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 . ConnectionId = 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 OperationType" , 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 . OperationType = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 4 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field 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 = ( * _QueryHistoryResponse_1_list )( nil )
type _QueryHistoryResponse_1_list struct {
list * [] * Transaction
}
func ( x * _QueryHistoryResponse_1_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _QueryHistoryResponse_1_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _QueryHistoryResponse_1_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * Transaction )
( * x . list )[ i ] = concreteValue
}
func ( x * _QueryHistoryResponse_1_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * Transaction )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _QueryHistoryResponse_1_list ) AppendMutable () protoreflect . Value {
v := new ( Transaction )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _QueryHistoryResponse_1_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _QueryHistoryResponse_1_list ) NewElement () protoreflect . Value {
v := new ( Transaction )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _QueryHistoryResponse_1_list ) IsValid () bool {
return x . list != nil
}
var (
md_QueryHistoryResponse protoreflect . MessageDescriptor
fd_QueryHistoryResponse_transactions protoreflect . FieldDescriptor
fd_QueryHistoryResponse_pagination protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_QueryHistoryResponse = File_dex_v1_query_proto . Messages (). ByName ( "QueryHistoryResponse" )
fd_QueryHistoryResponse_transactions = md_QueryHistoryResponse . Fields (). ByName ( "transactions" )
fd_QueryHistoryResponse_pagination = md_QueryHistoryResponse . Fields (). ByName ( "pagination" )
}
var _ protoreflect . Message = ( * fastReflection_QueryHistoryResponse )( nil )
type fastReflection_QueryHistoryResponse QueryHistoryResponse
func ( x * QueryHistoryResponse ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_QueryHistoryResponse )( x )
}
func ( x * QueryHistoryResponse ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_QueryHistoryResponse_messageType fastReflection_QueryHistoryResponse_messageType
var _ protoreflect . MessageType = fastReflection_QueryHistoryResponse_messageType {}
type fastReflection_QueryHistoryResponse_messageType struct {}
func ( x fastReflection_QueryHistoryResponse_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_QueryHistoryResponse )( nil )
}
func ( x fastReflection_QueryHistoryResponse_messageType ) New () protoreflect . Message {
return new ( fastReflection_QueryHistoryResponse )
}
func ( x fastReflection_QueryHistoryResponse_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryHistoryResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_QueryHistoryResponse ) Descriptor () protoreflect . MessageDescriptor {
return md_QueryHistoryResponse
}
// 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_QueryHistoryResponse ) Type () protoreflect . MessageType {
return _fastReflection_QueryHistoryResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_QueryHistoryResponse ) New () protoreflect . Message {
return new ( fastReflection_QueryHistoryResponse )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_QueryHistoryResponse ) Interface () protoreflect . ProtoMessage {
return ( * QueryHistoryResponse )( 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_QueryHistoryResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if len ( x . Transactions ) != 0 {
value := protoreflect . ValueOfList ( & _QueryHistoryResponse_1_list { list : & x . Transactions })
if ! f ( fd_QueryHistoryResponse_transactions , value ) {
return
}
}
if x . Pagination != nil {
value := protoreflect . ValueOfMessage ( x . Pagination . ProtoReflect ())
if ! f ( fd_QueryHistoryResponse_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_QueryHistoryResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.QueryHistoryResponse.transactions" :
return len ( x . Transactions ) != 0
case "dex.v1.QueryHistoryResponse.pagination" :
return x . Pagination != nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryResponse 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_QueryHistoryResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.QueryHistoryResponse.transactions" :
x . Transactions = nil
case "dex.v1.QueryHistoryResponse.pagination" :
x . Pagination = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryResponse 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_QueryHistoryResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.QueryHistoryResponse.transactions" :
if len ( x . Transactions ) == 0 {
return protoreflect . ValueOfList ( & _QueryHistoryResponse_1_list {})
}
listValue := & _QueryHistoryResponse_1_list { list : & x . Transactions }
return protoreflect . ValueOfList ( listValue )
case "dex.v1.QueryHistoryResponse.pagination" :
value := x . Pagination
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryResponse 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_QueryHistoryResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.QueryHistoryResponse.transactions" :
lv := value . List ()
clv := lv .( * _QueryHistoryResponse_1_list )
x . Transactions = * clv . list
case "dex.v1.QueryHistoryResponse.pagination" :
x . Pagination = value . Message (). Interface ().( * v1beta1 . PageResponse )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryResponse 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_QueryHistoryResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryHistoryResponse.transactions" :
if x . Transactions == nil {
x . Transactions = [] * Transaction {}
}
value := & _QueryHistoryResponse_1_list { list : & x . Transactions }
return protoreflect . ValueOfList ( value )
case "dex.v1.QueryHistoryResponse.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: dex.v1.QueryHistoryResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryResponse 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_QueryHistoryResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.QueryHistoryResponse.transactions" :
list := [] * Transaction {}
return protoreflect . ValueOfList ( & _QueryHistoryResponse_1_list { list : & list })
case "dex.v1.QueryHistoryResponse.pagination" :
m := new ( v1beta1 . PageResponse )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.QueryHistoryResponse" ))
}
panic ( fmt . Errorf ( "message dex.v1.QueryHistoryResponse 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_QueryHistoryResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.QueryHistoryResponse" , 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_QueryHistoryResponse ) 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_QueryHistoryResponse ) 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_QueryHistoryResponse ) 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_QueryHistoryResponse ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * QueryHistoryResponse )
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 . Transactions ) > 0 {
for _ , e := range x . Transactions {
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 ().( * QueryHistoryResponse )
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 . Transactions ) > 0 {
for iNdEx := len ( x . Transactions ) - 1 ; iNdEx >= 0 ; iNdEx -- {
encoded , err := options . Marshal ( x . Transactions [ 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 ().( * QueryHistoryResponse )
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: QueryHistoryResponse: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: QueryHistoryResponse: 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 Transactions" , 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 . Transactions = append ( x . Transactions , & Transaction {})
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Transactions [ len ( x . Transactions ) - 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_Transaction protoreflect . MessageDescriptor
fd_Transaction_tx_id protoreflect . FieldDescriptor
fd_Transaction_operation_type protoreflect . FieldDescriptor
fd_Transaction_connection_id protoreflect . FieldDescriptor
fd_Transaction_details protoreflect . FieldDescriptor
fd_Transaction_status protoreflect . FieldDescriptor
fd_Transaction_timestamp protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_query_proto_init ()
md_Transaction = File_dex_v1_query_proto . Messages (). ByName ( "Transaction" )
fd_Transaction_tx_id = md_Transaction . Fields (). ByName ( "tx_id" )
fd_Transaction_operation_type = md_Transaction . Fields (). ByName ( "operation_type" )
fd_Transaction_connection_id = md_Transaction . Fields (). ByName ( "connection_id" )
fd_Transaction_details = md_Transaction . Fields (). ByName ( "details" )
fd_Transaction_status = md_Transaction . Fields (). ByName ( "status" )
fd_Transaction_timestamp = md_Transaction . Fields (). ByName ( "timestamp" )
}
var _ protoreflect . Message = ( * fastReflection_Transaction )( nil )
type fastReflection_Transaction Transaction
func ( x * Transaction ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_Transaction )( x )
}
func ( x * Transaction ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_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_Transaction_messageType fastReflection_Transaction_messageType
var _ protoreflect . MessageType = fastReflection_Transaction_messageType {}
type fastReflection_Transaction_messageType struct {}
func ( x fastReflection_Transaction_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_Transaction )( nil )
}
func ( x fastReflection_Transaction_messageType ) New () protoreflect . Message {
return new ( fastReflection_Transaction )
}
func ( x fastReflection_Transaction_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_Transaction
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_Transaction ) Descriptor () protoreflect . MessageDescriptor {
return md_Transaction
}
// 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_Transaction ) Type () protoreflect . MessageType {
return _fastReflection_Transaction_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_Transaction ) New () protoreflect . Message {
return new ( fastReflection_Transaction )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_Transaction ) Interface () protoreflect . ProtoMessage {
return ( * Transaction )( 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_Transaction ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . TxId != "" {
value := protoreflect . ValueOfString ( x . TxId )
if ! f ( fd_Transaction_tx_id , value ) {
return
}
}
if x . OperationType != "" {
value := protoreflect . ValueOfString ( x . OperationType )
if ! f ( fd_Transaction_operation_type , value ) {
return
}
}
if x . ConnectionId != "" {
value := protoreflect . ValueOfString ( x . ConnectionId )
if ! f ( fd_Transaction_connection_id , value ) {
return
}
}
if x . Details != "" {
value := protoreflect . ValueOfString ( x . Details )
if ! f ( fd_Transaction_details , value ) {
return
}
}
if x . Status != "" {
value := protoreflect . ValueOfString ( x . Status )
if ! f ( fd_Transaction_status , value ) {
return
}
}
if x . Timestamp != "" {
value := protoreflect . ValueOfString ( x . Timestamp )
if ! f ( fd_Transaction_timestamp , value ) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func ( x * fastReflection_Transaction ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.Transaction.tx_id" :
return x . TxId != ""
case "dex.v1.Transaction.operation_type" :
return x . OperationType != ""
case "dex.v1.Transaction.connection_id" :
return x . ConnectionId != ""
case "dex.v1.Transaction.details" :
return x . Details != ""
case "dex.v1.Transaction.status" :
return x . Status != ""
case "dex.v1.Transaction.timestamp" :
return x . Timestamp != ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Transaction" ))
}
panic ( fmt . Errorf ( "message dex.v1.Transaction 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_Transaction ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.Transaction.tx_id" :
x . TxId = ""
case "dex.v1.Transaction.operation_type" :
x . OperationType = ""
case "dex.v1.Transaction.connection_id" :
x . ConnectionId = ""
case "dex.v1.Transaction.details" :
x . Details = ""
case "dex.v1.Transaction.status" :
x . Status = ""
case "dex.v1.Transaction.timestamp" :
x . Timestamp = ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Transaction" ))
}
panic ( fmt . Errorf ( "message dex.v1.Transaction 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_Transaction ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.Transaction.tx_id" :
value := x . TxId
return protoreflect . ValueOfString ( value )
case "dex.v1.Transaction.operation_type" :
value := x . OperationType
return protoreflect . ValueOfString ( value )
case "dex.v1.Transaction.connection_id" :
value := x . ConnectionId
return protoreflect . ValueOfString ( value )
case "dex.v1.Transaction.details" :
value := x . Details
return protoreflect . ValueOfString ( value )
case "dex.v1.Transaction.status" :
value := x . Status
return protoreflect . ValueOfString ( value )
case "dex.v1.Transaction.timestamp" :
value := x . Timestamp
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Transaction" ))
}
panic ( fmt . Errorf ( "message dex.v1.Transaction 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_Transaction ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.Transaction.tx_id" :
x . TxId = value . Interface ().( string )
case "dex.v1.Transaction.operation_type" :
x . OperationType = value . Interface ().( string )
case "dex.v1.Transaction.connection_id" :
x . ConnectionId = value . Interface ().( string )
case "dex.v1.Transaction.details" :
x . Details = value . Interface ().( string )
case "dex.v1.Transaction.status" :
x . Status = value . Interface ().( string )
case "dex.v1.Transaction.timestamp" :
x . Timestamp = value . Interface ().( string )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Transaction" ))
}
panic ( fmt . Errorf ( "message dex.v1.Transaction 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_Transaction ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.Transaction.tx_id" :
panic ( fmt . Errorf ( "field tx_id of message dex.v1.Transaction is not mutable" ))
case "dex.v1.Transaction.operation_type" :
panic ( fmt . Errorf ( "field operation_type of message dex.v1.Transaction is not mutable" ))
case "dex.v1.Transaction.connection_id" :
panic ( fmt . Errorf ( "field connection_id of message dex.v1.Transaction is not mutable" ))
case "dex.v1.Transaction.details" :
panic ( fmt . Errorf ( "field details of message dex.v1.Transaction is not mutable" ))
case "dex.v1.Transaction.status" :
panic ( fmt . Errorf ( "field status of message dex.v1.Transaction is not mutable" ))
case "dex.v1.Transaction.timestamp" :
panic ( fmt . Errorf ( "field timestamp of message dex.v1.Transaction is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Transaction" ))
}
panic ( fmt . Errorf ( "message dex.v1.Transaction 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_Transaction ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.Transaction.tx_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Transaction.operation_type" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Transaction.connection_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Transaction.details" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Transaction.status" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Transaction.timestamp" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Transaction" ))
}
panic ( fmt . Errorf ( "message dex.v1.Transaction 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_Transaction ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.Transaction" , 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_Transaction ) 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_Transaction ) 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_Transaction ) 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_Transaction ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * Transaction )
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 . TxId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . OperationType )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . ConnectionId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Details )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Status )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Timestamp )
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 ().( * Transaction )
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 . Timestamp ) > 0 {
i -= len ( x . Timestamp )
copy ( dAtA [ i :], x . Timestamp )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Timestamp )))
i --
dAtA [ i ] = 0x32
}
if len ( x . Status ) > 0 {
i -= len ( x . Status )
copy ( dAtA [ i :], x . Status )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Status )))
i --
dAtA [ i ] = 0x2a
}
if len ( x . Details ) > 0 {
i -= len ( x . Details )
copy ( dAtA [ i :], x . Details )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Details )))
i --
dAtA [ i ] = 0x22
}
if len ( x . ConnectionId ) > 0 {
i -= len ( x . ConnectionId )
copy ( dAtA [ i :], x . ConnectionId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . ConnectionId )))
i --
dAtA [ i ] = 0x1a
}
if len ( x . OperationType ) > 0 {
i -= len ( x . OperationType )
copy ( dAtA [ i :], x . OperationType )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . OperationType )))
i --
dAtA [ i ] = 0x12
}
if len ( x . TxId ) > 0 {
i -= len ( x . TxId )
copy ( dAtA [ i :], x . TxId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . TxId )))
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 ().( * Transaction )
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: Transaction: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: Transaction: 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 TxId" , 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 . TxId = 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 OperationType" , 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 . OperationType = 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 ConnectionId" , 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 . ConnectionId = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 4 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Details" , 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 . Details = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 5 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Status" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Status = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 6 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Timestamp" , 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 . Timestamp = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx :])
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct {}{},
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: dex/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 Query/Params RPC method
type QueryParamsRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
}
func ( x * QueryParamsRequest ) Reset () {
* x = QueryParamsRequest {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_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_dex_v1_query_proto_rawDescGZIP (), [] int { 0 }
}
// QueryParamsResponse is response type for Query/Params RPC method
type QueryParamsResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// params holds all the parameters of this module
Params * Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func ( x * QueryParamsResponse ) Reset () {
* x = QueryParamsResponse {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_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_dex_v1_query_proto_rawDescGZIP (), [] int { 1 }
}
func ( x * QueryParamsResponse ) GetParams () * Params {
if x != nil {
return x . Params
}
return nil
}
// QueryAccountRequest is request type for Query/Account RPC method
type QueryAccountRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// DID of the account owner
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
// IBC connection ID
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
}
func ( x * QueryAccountRequest ) Reset () {
* x = QueryAccountRequest {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 2 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryAccountRequest ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryAccountRequest ) ProtoMessage () {}
// Deprecated: Use QueryAccountRequest.ProtoReflect.Descriptor instead.
func ( * QueryAccountRequest ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 2 }
}
func ( x * QueryAccountRequest ) GetDid () string {
if x != nil {
return x . Did
}
return ""
}
func ( x * QueryAccountRequest ) GetConnectionId () string {
if x != nil {
return x . ConnectionId
}
return ""
}
// QueryAccountResponse is response type for Query/Account RPC method
type QueryAccountResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// The DEX account
Account * InterchainDEXAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}
func ( x * QueryAccountResponse ) Reset () {
* x = QueryAccountResponse {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 3 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryAccountResponse ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryAccountResponse ) ProtoMessage () {}
// Deprecated: Use QueryAccountResponse.ProtoReflect.Descriptor instead.
func ( * QueryAccountResponse ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 3 }
}
func ( x * QueryAccountResponse ) GetAccount () * InterchainDEXAccount {
if x != nil {
return x . Account
}
return nil
}
// QueryAccountsRequest is request type for Query/Accounts RPC method
type QueryAccountsRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// DID of the account owner
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
// pagination defines optional pagination
Pagination * v1beta1 . PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func ( x * QueryAccountsRequest ) Reset () {
* x = QueryAccountsRequest {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 4 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryAccountsRequest ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryAccountsRequest ) ProtoMessage () {}
// Deprecated: Use QueryAccountsRequest.ProtoReflect.Descriptor instead.
func ( * QueryAccountsRequest ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 4 }
}
func ( x * QueryAccountsRequest ) GetDid () string {
if x != nil {
return x . Did
}
return ""
}
func ( x * QueryAccountsRequest ) GetPagination () * v1beta1 . PageRequest {
if x != nil {
return x . Pagination
}
return nil
}
// QueryAccountsResponse is response type for Query/Accounts RPC method
type QueryAccountsResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// List of DEX accounts
Accounts [] * InterchainDEXAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
// pagination defines the pagination in the response
Pagination * v1beta1 . PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func ( x * QueryAccountsResponse ) Reset () {
* x = QueryAccountsResponse {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 5 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryAccountsResponse ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryAccountsResponse ) ProtoMessage () {}
// Deprecated: Use QueryAccountsResponse.ProtoReflect.Descriptor instead.
func ( * QueryAccountsResponse ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 5 }
}
func ( x * QueryAccountsResponse ) GetAccounts () [] * InterchainDEXAccount {
if x != nil {
return x . Accounts
}
return nil
}
func ( x * QueryAccountsResponse ) GetPagination () * v1beta1 . PageResponse {
if x != nil {
return x . Pagination
}
return nil
}
// QueryBalanceRequest is request type for Query/Balance RPC method
type QueryBalanceRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// DID of the account owner
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
// IBC connection ID
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// Optional specific denom to query
Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}
func ( x * QueryBalanceRequest ) Reset () {
* x = QueryBalanceRequest {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 6 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryBalanceRequest ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryBalanceRequest ) ProtoMessage () {}
// Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead.
func ( * QueryBalanceRequest ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 6 }
}
func ( x * QueryBalanceRequest ) GetDid () string {
if x != nil {
return x . Did
}
return ""
}
func ( x * QueryBalanceRequest ) GetConnectionId () string {
if x != nil {
return x . ConnectionId
}
return ""
}
func ( x * QueryBalanceRequest ) GetDenom () string {
if x != nil {
return x . Denom
}
return ""
}
// QueryBalanceResponse is response type for Query/Balance RPC method
type QueryBalanceResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Balances on the remote chain
Balances [] * v1beta11 . Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
}
func ( x * QueryBalanceResponse ) Reset () {
* x = QueryBalanceResponse {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 7 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryBalanceResponse ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryBalanceResponse ) ProtoMessage () {}
// Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead.
func ( * QueryBalanceResponse ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 7 }
}
func ( x * QueryBalanceResponse ) GetBalances () [] * v1beta11 . Coin {
if x != nil {
return x . Balances
}
return nil
}
// QueryPoolRequest is request type for Query/Pool RPC method
type QueryPoolRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// IBC connection ID
ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// Pool ID to query
PoolId string `protobuf:"bytes,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}
func ( x * QueryPoolRequest ) Reset () {
* x = QueryPoolRequest {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 8 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryPoolRequest ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryPoolRequest ) ProtoMessage () {}
// Deprecated: Use QueryPoolRequest.ProtoReflect.Descriptor instead.
func ( * QueryPoolRequest ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 8 }
}
func ( x * QueryPoolRequest ) GetConnectionId () string {
if x != nil {
return x . ConnectionId
}
return ""
}
func ( x * QueryPoolRequest ) GetPoolId () string {
if x != nil {
return x . PoolId
}
return ""
}
// QueryPoolResponse is response type for Query/Pool RPC method
type QueryPoolResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Pool information
Pool * PoolInfo `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
}
func ( x * QueryPoolResponse ) Reset () {
* x = QueryPoolResponse {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 9 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryPoolResponse ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryPoolResponse ) ProtoMessage () {}
// Deprecated: Use QueryPoolResponse.ProtoReflect.Descriptor instead.
func ( * QueryPoolResponse ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 9 }
}
func ( x * QueryPoolResponse ) GetPool () * PoolInfo {
if x != nil {
return x . Pool
}
return nil
}
// PoolInfo contains pool information
type PoolInfo struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Pool ID
PoolId string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
// Pool assets
Assets [] * v1beta11 . Coin `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"`
// Total shares
TotalShares string `protobuf:"bytes,3,opt,name=total_shares,json=totalShares,proto3" json:"total_shares,omitempty"`
// Swap fee
SwapFee string `protobuf:"bytes,4,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"`
}
func ( x * PoolInfo ) Reset () {
* x = PoolInfo {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 10 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * PoolInfo ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * PoolInfo ) ProtoMessage () {}
// Deprecated: Use PoolInfo.ProtoReflect.Descriptor instead.
func ( * PoolInfo ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 10 }
}
func ( x * PoolInfo ) GetPoolId () string {
if x != nil {
return x . PoolId
}
return ""
}
func ( x * PoolInfo ) GetAssets () [] * v1beta11 . Coin {
if x != nil {
return x . Assets
}
return nil
}
func ( x * PoolInfo ) GetTotalShares () string {
if x != nil {
return x . TotalShares
}
return ""
}
func ( x * PoolInfo ) GetSwapFee () string {
if x != nil {
return x . SwapFee
}
return ""
}
// QueryOrdersRequest is request type for Query/Orders RPC method
type QueryOrdersRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// DID of the account owner
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
// IBC connection ID
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// Filter by status (optional)
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
// pagination defines optional pagination
Pagination * v1beta1 . PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func ( x * QueryOrdersRequest ) Reset () {
* x = QueryOrdersRequest {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 11 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryOrdersRequest ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryOrdersRequest ) ProtoMessage () {}
// Deprecated: Use QueryOrdersRequest.ProtoReflect.Descriptor instead.
func ( * QueryOrdersRequest ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 11 }
}
func ( x * QueryOrdersRequest ) GetDid () string {
if x != nil {
return x . Did
}
return ""
}
func ( x * QueryOrdersRequest ) GetConnectionId () string {
if x != nil {
return x . ConnectionId
}
return ""
}
func ( x * QueryOrdersRequest ) GetStatus () string {
if x != nil {
return x . Status
}
return ""
}
func ( x * QueryOrdersRequest ) GetPagination () * v1beta1 . PageRequest {
if x != nil {
return x . Pagination
}
return nil
}
// QueryOrdersResponse is response type for Query/Orders RPC method
type QueryOrdersResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// List of orders
Orders [] * Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
// pagination defines the pagination in the response
Pagination * v1beta1 . PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func ( x * QueryOrdersResponse ) Reset () {
* x = QueryOrdersResponse {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 12 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryOrdersResponse ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryOrdersResponse ) ProtoMessage () {}
// Deprecated: Use QueryOrdersResponse.ProtoReflect.Descriptor instead.
func ( * QueryOrdersResponse ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 12 }
}
func ( x * QueryOrdersResponse ) GetOrders () [] * Order {
if x != nil {
return x . Orders
}
return nil
}
func ( x * QueryOrdersResponse ) GetPagination () * v1beta1 . PageResponse {
if x != nil {
return x . Pagination
}
return nil
}
// Order represents a DEX order
type Order struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Order ID
OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
// Order type
OrderType string `protobuf:"bytes,2,opt,name=order_type,json=orderType,proto3" json:"order_type,omitempty"`
// Sell token
SellDenom string `protobuf:"bytes,3,opt,name=sell_denom,json=sellDenom,proto3" json:"sell_denom,omitempty"`
// Buy token
BuyDenom string `protobuf:"bytes,4,opt,name=buy_denom,json=buyDenom,proto3" json:"buy_denom,omitempty"`
// Amount
Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
// Price
Price string `protobuf:"bytes,6,opt,name=price,proto3" json:"price,omitempty"`
// Status
Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
// Creation time
CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}
func ( x * Order ) Reset () {
* x = Order {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 13 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * Order ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * Order ) ProtoMessage () {}
// Deprecated: Use Order.ProtoReflect.Descriptor instead.
func ( * Order ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 13 }
}
func ( x * Order ) GetOrderId () string {
if x != nil {
return x . OrderId
}
return ""
}
func ( x * Order ) GetOrderType () string {
if x != nil {
return x . OrderType
}
return ""
}
func ( x * Order ) GetSellDenom () string {
if x != nil {
return x . SellDenom
}
return ""
}
func ( x * Order ) GetBuyDenom () string {
if x != nil {
return x . BuyDenom
}
return ""
}
func ( x * Order ) GetAmount () string {
if x != nil {
return x . Amount
}
return ""
}
func ( x * Order ) GetPrice () string {
if x != nil {
return x . Price
}
return ""
}
func ( x * Order ) GetStatus () string {
if x != nil {
return x . Status
}
return ""
}
func ( x * Order ) GetCreatedAt () string {
if x != nil {
return x . CreatedAt
}
return ""
}
// QueryHistoryRequest is request type for Query/History RPC method
type QueryHistoryRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// DID of the account owner
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
// Optional connection filter
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// Optional operation type filter
OperationType string `protobuf:"bytes,3,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
// pagination defines optional pagination
Pagination * v1beta1 . PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func ( x * QueryHistoryRequest ) Reset () {
* x = QueryHistoryRequest {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 14 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryHistoryRequest ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryHistoryRequest ) ProtoMessage () {}
// Deprecated: Use QueryHistoryRequest.ProtoReflect.Descriptor instead.
func ( * QueryHistoryRequest ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 14 }
}
func ( x * QueryHistoryRequest ) GetDid () string {
if x != nil {
return x . Did
}
return ""
}
func ( x * QueryHistoryRequest ) GetConnectionId () string {
if x != nil {
return x . ConnectionId
}
return ""
}
func ( x * QueryHistoryRequest ) GetOperationType () string {
if x != nil {
return x . OperationType
}
return ""
}
func ( x * QueryHistoryRequest ) GetPagination () * v1beta1 . PageRequest {
if x != nil {
return x . Pagination
}
return nil
}
// QueryHistoryResponse is response type for Query/History RPC method
type QueryHistoryResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// List of historical transactions
Transactions [] * Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
// pagination defines the pagination in the response
Pagination * v1beta1 . PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func ( x * QueryHistoryResponse ) Reset () {
* x = QueryHistoryResponse {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 15 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * QueryHistoryResponse ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QueryHistoryResponse ) ProtoMessage () {}
// Deprecated: Use QueryHistoryResponse.ProtoReflect.Descriptor instead.
func ( * QueryHistoryResponse ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 15 }
}
func ( x * QueryHistoryResponse ) GetTransactions () [] * Transaction {
if x != nil {
return x . Transactions
}
return nil
}
func ( x * QueryHistoryResponse ) GetPagination () * v1beta1 . PageResponse {
if x != nil {
return x . Pagination
}
return nil
}
// Transaction represents a historical transaction
type Transaction struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Transaction ID
TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
// Operation type (swap, provide_liquidity, etc.)
OperationType string `protobuf:"bytes,2,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
// Connection ID
ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// Transaction details (JSON)
Details string `protobuf:"bytes,4,opt,name=details,proto3" json:"details,omitempty"`
// Status
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
// Timestamp
Timestamp string `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}
func ( x * Transaction ) Reset () {
* x = Transaction {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_query_proto_msgTypes [ 16 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * Transaction ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * Transaction ) ProtoMessage () {}
// Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func ( * Transaction ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_query_proto_rawDescGZIP (), [] int { 16 }
}
func ( x * Transaction ) GetTxId () string {
if x != nil {
return x . TxId
}
return ""
}
func ( x * Transaction ) GetOperationType () string {
if x != nil {
return x . OperationType
}
return ""
}
func ( x * Transaction ) GetConnectionId () string {
if x != nil {
return x . ConnectionId
}
return ""
}
func ( x * Transaction ) GetDetails () string {
if x != nil {
return x . Details
}
return ""
}
func ( x * Transaction ) GetStatus () string {
if x != nil {
return x . Status
}
return ""
}
func ( x * Transaction ) GetTimestamp () string {
if x != nil {
return x . Timestamp
}
return ""
}
var File_dex_v1_query_proto protoreflect . FileDescriptor
var file_dex_v1_query_proto_rawDesc = [] byte {
0x0a , 0x12 , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x2f , 0x71 , 0x75 , 0x65 , 0x72 , 0x79 , 0x2e , 0x70 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x06 , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x1a , 0x14 , 0x67 , 0x6f ,
0x67 , 0x6f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x2f , 0x67 , 0x6f , 0x67 , 0x6f , 0x2e , 0x70 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x1a , 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 , 0x64 , 0x65 ,
0x78 , 0x2f , 0x76 , 0x31 , 0x2f , 0x67 , 0x65 , 0x6e , 0x65 , 0x73 , 0x69 , 0x73 , 0x2e , 0x70 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x1a , 0x10 , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x2f , 0x69 , 0x63 , 0x61 , 0x2e , 0x70 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x1a , 0x1e , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x2f , 0x62 , 0x61 , 0x73 ,
0x65 , 0x2f , 0x76 , 0x31 , 0x62 , 0x65 , 0x74 , 0x61 , 0x31 , 0x2f , 0x63 , 0x6f , 0x69 , 0x6e , 0x2e , 0x70 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x22 , 0x14 , 0x0a , 0x12 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 , 0x61 , 0x72 ,
0x61 , 0x6d , 0x73 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x22 , 0x43 , 0x0a , 0x13 , 0x51 , 0x75 ,
0x65 , 0x72 , 0x79 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 ,
0x65 , 0x12 , 0x2c , 0x0a , 0x06 , 0x70 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 ,
0x0b , 0x32 , 0x0e , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d ,
0x73 , 0x42 , 0x04 , 0xc8 , 0xde , 0x1f , 0x00 , 0x52 , 0x06 , 0x70 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x22 ,
0x4c , 0x0a , 0x13 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x52 ,
0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x10 , 0x0a , 0x03 , 0x64 , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 ,
0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x64 , 0x69 , 0x64 , 0x12 , 0x23 , 0x0a , 0x0d , 0x63 , 0x6f , 0x6e , 0x6e ,
0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x69 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 ,
0x0c , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x49 , 0x64 , 0x22 , 0x4e , 0x0a ,
0x14 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x52 , 0x65 , 0x73 ,
0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x36 , 0x0a , 0x07 , 0x61 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 ,
0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x1c , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e ,
0x49 , 0x6e , 0x74 , 0x65 , 0x72 , 0x63 , 0x68 , 0x61 , 0x69 , 0x6e , 0x44 , 0x45 , 0x58 , 0x41 , 0x63 , 0x63 ,
0x6f , 0x75 , 0x6e , 0x74 , 0x52 , 0x07 , 0x61 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x22 , 0x70 , 0x0a ,
0x14 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x73 , 0x52 , 0x65 ,
0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x10 , 0x0a , 0x03 , 0x64 , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 ,
0x28 , 0x09 , 0x52 , 0x03 , 0x64 , 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 ,
0x9a , 0x01 , 0x0a , 0x15 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 ,
0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x38 , 0x0a , 0x08 , 0x61 , 0x63 , 0x63 ,
0x6f , 0x75 , 0x6e , 0x74 , 0x73 , 0x18 , 0x01 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x1c , 0x2e , 0x64 , 0x65 ,
0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x49 , 0x6e , 0x74 , 0x65 , 0x72 , 0x63 , 0x68 , 0x61 , 0x69 , 0x6e , 0x44 ,
0x45 , 0x58 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x52 , 0x08 , 0x61 , 0x63 , 0x63 , 0x6f , 0x75 ,
0x6e , 0x74 , 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 , 0x62 , 0x0a , 0x13 ,
0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x42 , 0x61 , 0x6c , 0x61 , 0x6e , 0x63 , 0x65 , 0x52 , 0x65 , 0x71 , 0x75 ,
0x65 , 0x73 , 0x74 , 0x12 , 0x10 , 0x0a , 0x03 , 0x64 , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 ,
0x52 , 0x03 , 0x64 , 0x69 , 0x64 , 0x12 , 0x23 , 0x0a , 0x0d , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 ,
0x69 , 0x6f , 0x6e , 0x5f , 0x69 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0c , 0x63 , 0x6f ,
0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x49 , 0x64 , 0x12 , 0x14 , 0x0a , 0x05 , 0x64 , 0x65 ,
0x6e , 0x6f , 0x6d , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x05 , 0x64 , 0x65 , 0x6e , 0x6f , 0x6d ,
0x22 , 0x7f , 0x0a , 0x14 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x42 , 0x61 , 0x6c , 0x61 , 0x6e , 0x63 , 0x65 ,
0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x67 , 0x0a , 0x08 , 0x62 , 0x61 , 0x6c , 0x61 ,
0x6e , 0x63 , 0x65 , 0x73 , 0x18 , 0x01 , 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 , 0x30 , 0xc8 , 0xde , 0x1f , 0x00 , 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 , 0x08 , 0x62 , 0x61 , 0x6c , 0x61 , 0x6e , 0x63 , 0x65 ,
0x73 , 0x22 , 0x50 , 0x0a , 0x10 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 , 0x6f , 0x6f , 0x6c , 0x52 , 0x65 ,
0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x23 , 0x0a , 0x0d , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 ,
0x69 , 0x6f , 0x6e , 0x5f , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0c , 0x63 , 0x6f ,
0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x49 , 0x64 , 0x12 , 0x17 , 0x0a , 0x07 , 0x70 , 0x6f ,
0x6f , 0x6c , 0x5f , 0x69 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x70 , 0x6f , 0x6f ,
0x6c , 0x49 , 0x64 , 0x22 , 0x39 , 0x0a , 0x11 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 , 0x6f , 0x6f , 0x6c ,
0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x24 , 0x0a , 0x04 , 0x70 , 0x6f , 0x6f , 0x6c ,
0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x10 , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e ,
0x50 , 0x6f , 0x6f , 0x6c , 0x49 , 0x6e , 0x66 , 0x6f , 0x52 , 0x04 , 0x70 , 0x6f , 0x6f , 0x6c , 0x22 , 0xc6 ,
0x01 , 0x0a , 0x08 , 0x50 , 0x6f , 0x6f , 0x6c , 0x49 , 0x6e , 0x66 , 0x6f , 0x12 , 0x17 , 0x0a , 0x07 , 0x70 ,
0x6f , 0x6f , 0x6c , 0x5f , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x70 , 0x6f ,
0x6f , 0x6c , 0x49 , 0x64 , 0x12 , 0x63 , 0x0a , 0x06 , 0x61 , 0x73 , 0x73 , 0x65 , 0x74 , 0x73 , 0x18 , 0x02 ,
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 ,
0x30 , 0xc8 , 0xde , 0x1f , 0x00 , 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 , 0x06 , 0x61 , 0x73 , 0x73 , 0x65 , 0x74 , 0x73 , 0x12 , 0x21 , 0x0a , 0x0c , 0x74 , 0x6f , 0x74 ,
0x61 , 0x6c , 0x5f , 0x73 , 0x68 , 0x61 , 0x72 , 0x65 , 0x73 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 ,
0x0b , 0x74 , 0x6f , 0x74 , 0x61 , 0x6c , 0x53 , 0x68 , 0x61 , 0x72 , 0x65 , 0x73 , 0x12 , 0x19 , 0x0a , 0x08 ,
0x73 , 0x77 , 0x61 , 0x70 , 0x5f , 0x66 , 0x65 , 0x65 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 ,
0x73 , 0x77 , 0x61 , 0x70 , 0x46 , 0x65 , 0x65 , 0x22 , 0xab , 0x01 , 0x0a , 0x12 , 0x51 , 0x75 , 0x65 , 0x72 ,
0x79 , 0x4f , 0x72 , 0x64 , 0x65 , 0x72 , 0x73 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x10 ,
0x0a , 0x03 , 0x64 , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x64 , 0x69 , 0x64 ,
0x12 , 0x23 , 0x0a , 0x0d , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x69 ,
0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0c , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 ,
0x69 , 0x6f , 0x6e , 0x49 , 0x64 , 0x12 , 0x16 , 0x0a , 0x06 , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x18 ,
0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x12 , 0x46 , 0x0a ,
0x0a , 0x70 , 0x61 , 0x67 , 0x69 , 0x6e , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x18 , 0x04 , 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 , 0x85 , 0x01 , 0x0a , 0x13 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x4f ,
0x72 , 0x64 , 0x65 , 0x72 , 0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x25 , 0x0a ,
0x06 , 0x6f , 0x72 , 0x64 , 0x65 , 0x72 , 0x73 , 0x18 , 0x01 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x0d , 0x2e ,
0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4f , 0x72 , 0x64 , 0x65 , 0x72 , 0x52 , 0x06 , 0x6f , 0x72 ,
0x64 , 0x65 , 0x72 , 0x73 , 0x12 , 0x47 , 0x0a , 0x0a , 0x70 , 0x61 , 0x67 , 0x69 , 0x6e , 0x61 , 0x74 , 0x69 ,
0x6f , 0x6e , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x27 , 0x2e , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f ,
0x73 , 0x2e , 0x62 , 0x61 , 0x73 , 0x65 , 0x2e , 0x71 , 0x75 , 0x65 , 0x72 , 0x79 , 0x2e , 0x76 , 0x31 , 0x62 ,
0x65 , 0x74 , 0x61 , 0x31 , 0x2e , 0x50 , 0x61 , 0x67 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 ,
0x65 , 0x52 , 0x0a , 0x70 , 0x61 , 0x67 , 0x69 , 0x6e , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x22 , 0xe2 , 0x01 ,
0x0a , 0x05 , 0x4f , 0x72 , 0x64 , 0x65 , 0x72 , 0x12 , 0x19 , 0x0a , 0x08 , 0x6f , 0x72 , 0x64 , 0x65 , 0x72 ,
0x5f , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 , 0x6f , 0x72 , 0x64 , 0x65 , 0x72 ,
0x49 , 0x64 , 0x12 , 0x1d , 0x0a , 0x0a , 0x6f , 0x72 , 0x64 , 0x65 , 0x72 , 0x5f , 0x74 , 0x79 , 0x70 , 0x65 ,
0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x09 , 0x6f , 0x72 , 0x64 , 0x65 , 0x72 , 0x54 , 0x79 , 0x70 ,
0x65 , 0x12 , 0x1d , 0x0a , 0x0a , 0x73 , 0x65 , 0x6c , 0x6c , 0x5f , 0x64 , 0x65 , 0x6e , 0x6f , 0x6d , 0x18 ,
0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x09 , 0x73 , 0x65 , 0x6c , 0x6c , 0x44 , 0x65 , 0x6e , 0x6f , 0x6d ,
0x12 , 0x1b , 0x0a , 0x09 , 0x62 , 0x75 , 0x79 , 0x5f , 0x64 , 0x65 , 0x6e , 0x6f , 0x6d , 0x18 , 0x04 , 0x20 ,
0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x62 , 0x75 , 0x79 , 0x44 , 0x65 , 0x6e , 0x6f , 0x6d , 0x12 , 0x16 , 0x0a ,
0x06 , 0x61 , 0x6d , 0x6f , 0x75 , 0x6e , 0x74 , 0x18 , 0x05 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x61 ,
0x6d , 0x6f , 0x75 , 0x6e , 0x74 , 0x12 , 0x14 , 0x0a , 0x05 , 0x70 , 0x72 , 0x69 , 0x63 , 0x65 , 0x18 , 0x06 ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x05 , 0x70 , 0x72 , 0x69 , 0x63 , 0x65 , 0x12 , 0x16 , 0x0a , 0x06 , 0x73 ,
0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x18 , 0x07 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x73 , 0x74 , 0x61 ,
0x74 , 0x75 , 0x73 , 0x12 , 0x1d , 0x0a , 0x0a , 0x63 , 0x72 , 0x65 , 0x61 , 0x74 , 0x65 , 0x64 , 0x5f , 0x61 ,
0x74 , 0x18 , 0x08 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x09 , 0x63 , 0x72 , 0x65 , 0x61 , 0x74 , 0x65 , 0x64 ,
0x41 , 0x74 , 0x22 , 0xbb , 0x01 , 0x0a , 0x13 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x48 , 0x69 , 0x73 , 0x74 ,
0x6f , 0x72 , 0x79 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x10 , 0x0a , 0x03 , 0x64 , 0x69 ,
0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x64 , 0x69 , 0x64 , 0x12 , 0x23 , 0x0a , 0x0d ,
0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x69 , 0x64 , 0x18 , 0x02 , 0x20 ,
0x01 , 0x28 , 0x09 , 0x52 , 0x0c , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x49 ,
0x64 , 0x12 , 0x25 , 0x0a , 0x0e , 0x6f , 0x70 , 0x65 , 0x72 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x74 ,
0x79 , 0x70 , 0x65 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0d , 0x6f , 0x70 , 0x65 , 0x72 , 0x61 ,
0x74 , 0x69 , 0x6f , 0x6e , 0x54 , 0x79 , 0x70 , 0x65 , 0x12 , 0x46 , 0x0a , 0x0a , 0x70 , 0x61 , 0x67 , 0x69 ,
0x6e , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x18 , 0x04 , 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 , 0x98 , 0x01 , 0x0a , 0x14 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x48 , 0x69 , 0x73 , 0x74 , 0x6f , 0x72 ,
0x79 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x37 , 0x0a , 0x0c , 0x74 , 0x72 , 0x61 ,
0x6e , 0x73 , 0x61 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x73 , 0x18 , 0x01 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 ,
0x13 , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x54 , 0x72 , 0x61 , 0x6e , 0x73 , 0x61 , 0x63 ,
0x74 , 0x69 , 0x6f , 0x6e , 0x52 , 0x0c , 0x74 , 0x72 , 0x61 , 0x6e , 0x73 , 0x61 , 0x63 , 0x74 , 0x69 , 0x6f ,
0x6e , 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 , 0xbe , 0x01 , 0x0a , 0x0b ,
0x54 , 0x72 , 0x61 , 0x6e , 0x73 , 0x61 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x13 , 0x0a , 0x05 , 0x74 ,
0x78 , 0x5f , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x04 , 0x74 , 0x78 , 0x49 , 0x64 ,
0x12 , 0x25 , 0x0a , 0x0e , 0x6f , 0x70 , 0x65 , 0x72 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x74 , 0x79 ,
0x70 , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0d , 0x6f , 0x70 , 0x65 , 0x72 , 0x61 , 0x74 ,
0x69 , 0x6f , 0x6e , 0x54 , 0x79 , 0x70 , 0x65 , 0x12 , 0x23 , 0x0a , 0x0d , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 ,
0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x69 , 0x64 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0c ,
0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x49 , 0x64 , 0x12 , 0x18 , 0x0a , 0x07 ,
0x64 , 0x65 , 0x74 , 0x61 , 0x69 , 0x6c , 0x73 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 , 0x64 ,
0x65 , 0x74 , 0x61 , 0x69 , 0x6c , 0x73 , 0x12 , 0x16 , 0x0a , 0x06 , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 ,
0x18 , 0x05 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x12 , 0x1c ,
0x0a , 0x09 , 0x74 , 0x69 , 0x6d , 0x65 , 0x73 , 0x74 , 0x61 , 0x6d , 0x70 , 0x18 , 0x06 , 0x20 , 0x01 , 0x28 ,
0x09 , 0x52 , 0x09 , 0x74 , 0x69 , 0x6d , 0x65 , 0x73 , 0x74 , 0x61 , 0x6d , 0x70 , 0x32 , 0x9b , 0x06 , 0x0a ,
0x05 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x12 , 0x5e , 0x0a , 0x06 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 ,
0x12 , 0x1a , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 ,
0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1b , 0x2e , 0x64 ,
0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d ,
0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x1b , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 ,
0x15 , 0x12 , 0x13 , 0x2f , 0x73 , 0x6f , 0x6e , 0x72 , 0x2f , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x2f ,
0x70 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x12 , 0x78 , 0x0a , 0x07 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e ,
0x74 , 0x12 , 0x1b , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 ,
0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1c ,
0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x63 , 0x63 ,
0x6f , 0x75 , 0x6e , 0x74 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x32 , 0x82 , 0xd3 ,
0xe4 , 0x93 , 0x02 , 0x2c , 0x12 , 0x2a , 0x2f , 0x73 , 0x6f , 0x6e , 0x72 , 0x2f , 0x64 , 0x65 , 0x78 , 0x2f ,
0x76 , 0x31 , 0x2f , 0x61 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x2f , 0x7b , 0x64 , 0x69 , 0x64 , 0x7d ,
0x2f , 0x7b , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x69 , 0x64 , 0x7d ,
0x12 , 0x6c , 0x0a , 0x08 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x73 , 0x12 , 0x1c , 0x2e , 0x64 ,
0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 ,
0x6e , 0x74 , 0x73 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1d , 0x2e , 0x64 , 0x65 , 0x78 ,
0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 ,
0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x23 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 ,
0x1d , 0x12 , 0x1b , 0x2f , 0x73 , 0x6f , 0x6e , 0x72 , 0x2f , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x2f ,
0x61 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x73 , 0x2f , 0x7b , 0x64 , 0x69 , 0x64 , 0x7d , 0x12 , 0x78 ,
0x0a , 0x07 , 0x42 , 0x61 , 0x6c , 0x61 , 0x6e , 0x63 , 0x65 , 0x12 , 0x1b , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e ,
0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x42 , 0x61 , 0x6c , 0x61 , 0x6e , 0x63 , 0x65 , 0x52 ,
0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1c , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e ,
0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x42 , 0x61 , 0x6c , 0x61 , 0x6e , 0x63 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 ,
0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x32 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x2c , 0x12 , 0x2a , 0x2f , 0x73 ,
0x6f , 0x6e , 0x72 , 0x2f , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x2f , 0x62 , 0x61 , 0x6c , 0x61 , 0x6e ,
0x63 , 0x65 , 0x2f , 0x7b , 0x64 , 0x69 , 0x64 , 0x7d , 0x2f , 0x7b , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 ,
0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x69 , 0x64 , 0x7d , 0x12 , 0x70 , 0x0a , 0x04 , 0x50 , 0x6f , 0x6f , 0x6c ,
0x12 , 0x18 , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 ,
0x6f , 0x6f , 0x6c , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x19 , 0x2e , 0x64 , 0x65 , 0x78 ,
0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 , 0x6f , 0x6f , 0x6c , 0x52 , 0x65 , 0x73 ,
0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x33 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x2d , 0x12 , 0x2b , 0x2f ,
0x73 , 0x6f , 0x6e , 0x72 , 0x2f , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x2f , 0x70 , 0x6f , 0x6f , 0x6c ,
0x2f , 0x7b , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x69 , 0x64 , 0x7d ,
0x2f , 0x7b , 0x70 , 0x6f , 0x6f , 0x6c , 0x5f , 0x69 , 0x64 , 0x7d , 0x12 , 0x74 , 0x0a , 0x06 , 0x4f , 0x72 ,
0x64 , 0x65 , 0x72 , 0x73 , 0x12 , 0x1a , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 ,
0x65 , 0x72 , 0x79 , 0x4f , 0x72 , 0x64 , 0x65 , 0x72 , 0x73 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 ,
0x1a , 0x1b , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x4f ,
0x72 , 0x64 , 0x65 , 0x72 , 0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x31 , 0x82 ,
0xd3 , 0xe4 , 0x93 , 0x02 , 0x2b , 0x12 , 0x29 , 0x2f , 0x73 , 0x6f , 0x6e , 0x72 , 0x2f , 0x64 , 0x65 , 0x78 ,
0x2f , 0x76 , 0x31 , 0x2f , 0x6f , 0x72 , 0x64 , 0x65 , 0x72 , 0x73 , 0x2f , 0x7b , 0x64 , 0x69 , 0x64 , 0x7d ,
0x2f , 0x7b , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x69 , 0x64 , 0x7d ,
0x12 , 0x68 , 0x0a , 0x07 , 0x48 , 0x69 , 0x73 , 0x74 , 0x6f , 0x72 , 0x79 , 0x12 , 0x1b , 0x2e , 0x64 , 0x65 ,
0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x48 , 0x69 , 0x73 , 0x74 , 0x6f , 0x72 ,
0x79 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1c , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 ,
0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x48 , 0x69 , 0x73 , 0x74 , 0x6f , 0x72 , 0x79 , 0x52 , 0x65 ,
0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x22 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x1c , 0x12 , 0x1a ,
0x2f , 0x73 , 0x6f , 0x6e , 0x72 , 0x2f , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x2f , 0x68 , 0x69 , 0x73 ,
0x74 , 0x6f , 0x72 , 0x79 , 0x2f , 0x7b , 0x64 , 0x69 , 0x64 , 0x7d , 0x42 , 0x7b , 0x0a , 0x0a , 0x63 , 0x6f ,
0x6d , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x42 , 0x0a , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x50 , 0x01 , 0x5a , 0x28 , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 ,
0x6f , 0x6d , 0x2f , 0x73 , 0x6f , 0x6e , 0x72 , 0x2d , 0x69 , 0x6f , 0x2f , 0x73 , 0x6f , 0x6e , 0x72 , 0x2f ,
0x61 , 0x70 , 0x69 , 0x2f , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x3b , 0x64 , 0x65 , 0x78 , 0x76 , 0x31 ,
0xa2 , 0x02 , 0x03 , 0x44 , 0x58 , 0x58 , 0xaa , 0x02 , 0x06 , 0x44 , 0x65 , 0x78 , 0x2e , 0x56 , 0x31 , 0xca ,
0x02 , 0x06 , 0x44 , 0x65 , 0x78 , 0x5c , 0x56 , 0x31 , 0xe2 , 0x02 , 0x12 , 0x44 , 0x65 , 0x78 , 0x5c , 0x56 ,
0x31 , 0x5c , 0x47 , 0x50 , 0x42 , 0x4d , 0x65 , 0x74 , 0x61 , 0x64 , 0x61 , 0x74 , 0x61 , 0xea , 0x02 , 0x07 ,
0x44 , 0x65 , 0x78 , 0x3a , 0x3a , 0x56 , 0x31 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
file_dex_v1_query_proto_rawDescOnce sync . Once
file_dex_v1_query_proto_rawDescData = file_dex_v1_query_proto_rawDesc
)
func file_dex_v1_query_proto_rawDescGZIP () [] byte {
file_dex_v1_query_proto_rawDescOnce . Do ( func () {
file_dex_v1_query_proto_rawDescData = protoimpl . X . CompressGZIP ( file_dex_v1_query_proto_rawDescData )
})
return file_dex_v1_query_proto_rawDescData
}
var file_dex_v1_query_proto_msgTypes = make ([] protoimpl . MessageInfo , 17 )
var file_dex_v1_query_proto_goTypes = [] interface {}{
( * QueryParamsRequest )( nil ), // 0: dex.v1.QueryParamsRequest
( * QueryParamsResponse )( nil ), // 1: dex.v1.QueryParamsResponse
( * QueryAccountRequest )( nil ), // 2: dex.v1.QueryAccountRequest
( * QueryAccountResponse )( nil ), // 3: dex.v1.QueryAccountResponse
( * QueryAccountsRequest )( nil ), // 4: dex.v1.QueryAccountsRequest
( * QueryAccountsResponse )( nil ), // 5: dex.v1.QueryAccountsResponse
( * QueryBalanceRequest )( nil ), // 6: dex.v1.QueryBalanceRequest
( * QueryBalanceResponse )( nil ), // 7: dex.v1.QueryBalanceResponse
( * QueryPoolRequest )( nil ), // 8: dex.v1.QueryPoolRequest
( * QueryPoolResponse )( nil ), // 9: dex.v1.QueryPoolResponse
( * PoolInfo )( nil ), // 10: dex.v1.PoolInfo
( * QueryOrdersRequest )( nil ), // 11: dex.v1.QueryOrdersRequest
( * QueryOrdersResponse )( nil ), // 12: dex.v1.QueryOrdersResponse
( * Order )( nil ), // 13: dex.v1.Order
( * QueryHistoryRequest )( nil ), // 14: dex.v1.QueryHistoryRequest
( * QueryHistoryResponse )( nil ), // 15: dex.v1.QueryHistoryResponse
( * Transaction )( nil ), // 16: dex.v1.Transaction
( * Params )( nil ), // 17: dex.v1.Params
( * InterchainDEXAccount )( nil ), // 18: dex.v1.InterchainDEXAccount
( * v1beta1 . PageRequest )( nil ), // 19: cosmos.base.query.v1beta1.PageRequest
( * v1beta1 . PageResponse )( nil ), // 20: cosmos.base.query.v1beta1.PageResponse
( * v1beta11 . Coin )( nil ), // 21: cosmos.base.v1beta1.Coin
}
var file_dex_v1_query_proto_depIdxs = [] int32 {
17 , // 0: dex.v1.QueryParamsResponse.params:type_name -> dex.v1.Params
18 , // 1: dex.v1.QueryAccountResponse.account:type_name -> dex.v1.InterchainDEXAccount
19 , // 2: dex.v1.QueryAccountsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
18 , // 3: dex.v1.QueryAccountsResponse.accounts:type_name -> dex.v1.InterchainDEXAccount
20 , // 4: dex.v1.QueryAccountsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
21 , // 5: dex.v1.QueryBalanceResponse.balances:type_name -> cosmos.base.v1beta1.Coin
10 , // 6: dex.v1.QueryPoolResponse.pool:type_name -> dex.v1.PoolInfo
21 , // 7: dex.v1.PoolInfo.assets:type_name -> cosmos.base.v1beta1.Coin
19 , // 8: dex.v1.QueryOrdersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
13 , // 9: dex.v1.QueryOrdersResponse.orders:type_name -> dex.v1.Order
20 , // 10: dex.v1.QueryOrdersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
19 , // 11: dex.v1.QueryHistoryRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
16 , // 12: dex.v1.QueryHistoryResponse.transactions:type_name -> dex.v1.Transaction
20 , // 13: dex.v1.QueryHistoryResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
0 , // 14: dex.v1.Query.Params:input_type -> dex.v1.QueryParamsRequest
2 , // 15: dex.v1.Query.Account:input_type -> dex.v1.QueryAccountRequest
4 , // 16: dex.v1.Query.Accounts:input_type -> dex.v1.QueryAccountsRequest
6 , // 17: dex.v1.Query.Balance:input_type -> dex.v1.QueryBalanceRequest
8 , // 18: dex.v1.Query.Pool:input_type -> dex.v1.QueryPoolRequest
11 , // 19: dex.v1.Query.Orders:input_type -> dex.v1.QueryOrdersRequest
14 , // 20: dex.v1.Query.History:input_type -> dex.v1.QueryHistoryRequest
1 , // 21: dex.v1.Query.Params:output_type -> dex.v1.QueryParamsResponse
3 , // 22: dex.v1.Query.Account:output_type -> dex.v1.QueryAccountResponse
5 , // 23: dex.v1.Query.Accounts:output_type -> dex.v1.QueryAccountsResponse
7 , // 24: dex.v1.Query.Balance:output_type -> dex.v1.QueryBalanceResponse
9 , // 25: dex.v1.Query.Pool:output_type -> dex.v1.QueryPoolResponse
12 , // 26: dex.v1.Query.Orders:output_type -> dex.v1.QueryOrdersResponse
15 , // 27: dex.v1.Query.History:output_type -> dex.v1.QueryHistoryResponse
21 , // [21:28] is the sub-list for method output_type
14 , // [14:21] is the sub-list for method input_type
14 , // [14:14] is the sub-list for extension type_name
14 , // [14:14] is the sub-list for extension extendee
0 , // [0:14] is the sub-list for field type_name
}
func init () { file_dex_v1_query_proto_init () }
func file_dex_v1_query_proto_init () {
if File_dex_v1_query_proto != nil {
return
}
file_dex_v1_genesis_proto_init ()
file_dex_v1_ica_proto_init ()
if ! protoimpl . UnsafeEnabled {
file_dex_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_dex_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_dex_v1_query_proto_msgTypes [ 2 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryAccountRequest ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 3 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryAccountResponse ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 4 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryAccountsRequest ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 5 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryAccountsResponse ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 6 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryBalanceRequest ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 7 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryBalanceResponse ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 8 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryPoolRequest ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 9 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryPoolResponse ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 10 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * PoolInfo ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 11 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryOrdersRequest ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 12 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryOrdersResponse ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 13 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * Order ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 14 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryHistoryRequest ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 15 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * QueryHistoryResponse ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_query_proto_msgTypes [ 16 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * Transaction ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
}
type x struct {}
out := protoimpl . TypeBuilder {
File : protoimpl . DescBuilder {
GoPackagePath : reflect . TypeOf ( x {}). PkgPath (),
RawDescriptor : file_dex_v1_query_proto_rawDesc ,
NumEnums : 0 ,
NumMessages : 17 ,
NumExtensions : 0 ,
NumServices : 1 ,
},
GoTypes : file_dex_v1_query_proto_goTypes ,
DependencyIndexes : file_dex_v1_query_proto_depIdxs ,
MessageInfos : file_dex_v1_query_proto_msgTypes ,
}. Build ()
File_dex_v1_query_proto = out . File
file_dex_v1_query_proto_rawDesc = nil
file_dex_v1_query_proto_goTypes = nil
file_dex_v1_query_proto_depIdxs = nil
}