2024-09-25 19:45:28 -04:00
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package vaultv1
import (
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_QueryParamsRequest protoreflect . MessageDescriptor
)
func init ( ) {
file_vault_v1_query_proto_init ( )
md_QueryParamsRequest = File_vault_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_vault_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: vault.v1.QueryParamsRequest" ) )
}
panic ( fmt . Errorf ( "message vault.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: vault.v1.QueryParamsRequest" ) )
}
panic ( fmt . Errorf ( "message vault.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: vault.v1.QueryParamsRequest" ) )
}
panic ( fmt . Errorf ( "message vault.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: vault.v1.QueryParamsRequest" ) )
}
panic ( fmt . Errorf ( "message vault.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: vault.v1.QueryParamsRequest" ) )
}
panic ( fmt . Errorf ( "message vault.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: vault.v1.QueryParamsRequest" ) )
}
panic ( fmt . Errorf ( "message vault.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 vault.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_vault_v1_query_proto_init ( )
md_QueryParamsResponse = File_vault_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_vault_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 "vault.v1.QueryParamsResponse.params" :
return x . Params != nil
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryParamsResponse" ) )
}
panic ( fmt . Errorf ( "message vault.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 "vault.v1.QueryParamsResponse.params" :
x . Params = nil
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryParamsResponse" ) )
}
panic ( fmt . Errorf ( "message vault.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 "vault.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: vault.v1.QueryParamsResponse" ) )
}
panic ( fmt . Errorf ( "message vault.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 "vault.v1.QueryParamsResponse.params" :
x . Params = value . Message ( ) . Interface ( ) . ( * Params )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryParamsResponse" ) )
}
panic ( fmt . Errorf ( "message vault.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 "vault.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: vault.v1.QueryParamsResponse" ) )
}
panic ( fmt . Errorf ( "message vault.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 "vault.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: vault.v1.QueryParamsResponse" ) )
}
panic ( fmt . Errorf ( "message vault.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 vault.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 (
2024-10-08 16:43:59 -04:00
md_QuerySchemaRequest protoreflect . MessageDescriptor
2024-09-25 19:45:28 -04:00
)
func init ( ) {
file_vault_v1_query_proto_init ( )
2024-10-08 16:43:59 -04:00
md_QuerySchemaRequest = File_vault_v1_query_proto . Messages ( ) . ByName ( "QuerySchemaRequest" )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
var _ protoreflect . Message = ( * fastReflection_QuerySchemaRequest ) ( nil )
2024-09-25 19:45:28 -04:00
2024-10-08 16:43:59 -04:00
type fastReflection_QuerySchemaRequest QuerySchemaRequest
2024-09-25 19:45:28 -04:00
2024-10-08 16:43:59 -04:00
func ( x * QuerySchemaRequest ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_QuerySchemaRequest ) ( x )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
func ( x * QuerySchemaRequest ) slowProtoReflect ( ) protoreflect . Message {
2024-09-25 19:45:28 -04:00
mi := & file_vault_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 )
}
2024-10-08 16:43:59 -04:00
var _fastReflection_QuerySchemaRequest_messageType fastReflection_QuerySchemaRequest_messageType
var _ protoreflect . MessageType = fastReflection_QuerySchemaRequest_messageType { }
2024-09-25 19:45:28 -04:00
2024-10-08 16:43:59 -04:00
type fastReflection_QuerySchemaRequest_messageType struct { }
2024-09-25 19:45:28 -04:00
2024-10-08 16:43:59 -04:00
func ( x fastReflection_QuerySchemaRequest_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_QuerySchemaRequest ) ( nil )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
func ( x fastReflection_QuerySchemaRequest_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_QuerySchemaRequest )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
func ( x fastReflection_QuerySchemaRequest_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QuerySchemaRequest
2024-09-25 19:45:28 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QuerySchemaRequest
2024-09-25 19:45:28 -04:00
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) Type ( ) protoreflect . MessageType {
return _fastReflection_QuerySchemaRequest_messageType
2024-09-25 19:45:28 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) New ( ) protoreflect . Message {
return new ( fastReflection_QuerySchemaRequest )
2024-09-25 19:45:28 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) Interface ( ) protoreflect . ProtoMessage {
return ( * QuerySchemaRequest ) ( x )
2024-09-25 19:45:28 -04:00
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2024-09-25 19:45:28 -04:00
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaRequest" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaRequest does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaRequest" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaRequest does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch descriptor . FullName ( ) {
default :
if descriptor . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaRequest" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaRequest does not contain field %s" , descriptor . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaRequest" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaRequest does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaRequest" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaRequest does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaRequest" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaRequest does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-09-25 19:45:28 -04:00
switch d . FullName ( ) {
default :
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in vault.v1.QuerySchemaRequest" , d . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) GetUnknown ( ) protoreflect . RawFields {
2024-09-25 19:45:28 -04:00
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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) SetUnknown ( fields protoreflect . RawFields ) {
2024-09-25 19:45:28 -04:00
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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) IsValid ( ) bool {
2024-09-25 19:45:28 -04:00
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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaRequest ) ProtoMethods ( ) * protoiface . Methods {
2024-09-25 19:45:28 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-10-08 16:43:59 -04:00
x := input . Message . Interface ( ) . ( * QuerySchemaRequest )
2024-09-25 19:45:28 -04:00
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 ) {
2024-10-08 16:43:59 -04:00
x := input . Message . Interface ( ) . ( * QuerySchemaRequest )
2024-09-25 19:45:28 -04:00
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 ) {
2024-10-08 16:43:59 -04:00
x := input . Message . Interface ( ) . ( * QuerySchemaRequest )
2024-09-25 19:45:28 -04:00
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 {
2024-10-08 16:43:59 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QuerySchemaRequest: wiretype end group for non-group" )
2024-09-25 19:45:28 -04:00
}
if fieldNum <= 0 {
2024-10-08 16:43:59 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QuerySchemaRequest: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-09-25 19:45:28 -04:00
}
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 (
2024-10-08 16:43:59 -04:00
md_QuerySchemaResponse protoreflect . MessageDescriptor
fd_QuerySchemaResponse_schema protoreflect . FieldDescriptor
2024-09-25 19:45:28 -04:00
)
func init ( ) {
file_vault_v1_query_proto_init ( )
2024-10-08 16:43:59 -04:00
md_QuerySchemaResponse = File_vault_v1_query_proto . Messages ( ) . ByName ( "QuerySchemaResponse" )
fd_QuerySchemaResponse_schema = md_QuerySchemaResponse . Fields ( ) . ByName ( "schema" )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
var _ protoreflect . Message = ( * fastReflection_QuerySchemaResponse ) ( nil )
2024-09-25 19:45:28 -04:00
2024-10-08 16:43:59 -04:00
type fastReflection_QuerySchemaResponse QuerySchemaResponse
2024-09-25 19:45:28 -04:00
2024-10-08 16:43:59 -04:00
func ( x * QuerySchemaResponse ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_QuerySchemaResponse ) ( x )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
func ( x * QuerySchemaResponse ) slowProtoReflect ( ) protoreflect . Message {
2024-09-25 19:45:28 -04:00
mi := & file_vault_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 )
}
2024-10-08 16:43:59 -04:00
var _fastReflection_QuerySchemaResponse_messageType fastReflection_QuerySchemaResponse_messageType
var _ protoreflect . MessageType = fastReflection_QuerySchemaResponse_messageType { }
2024-09-25 19:45:28 -04:00
2024-10-08 16:43:59 -04:00
type fastReflection_QuerySchemaResponse_messageType struct { }
2024-09-25 19:45:28 -04:00
2024-10-08 16:43:59 -04:00
func ( x fastReflection_QuerySchemaResponse_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_QuerySchemaResponse ) ( nil )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
func ( x fastReflection_QuerySchemaResponse_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_QuerySchemaResponse )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
func ( x fastReflection_QuerySchemaResponse_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QuerySchemaResponse
2024-09-25 19:45:28 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QuerySchemaResponse
2024-09-25 19:45:28 -04:00
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) Type ( ) protoreflect . MessageType {
return _fastReflection_QuerySchemaResponse_messageType
2024-09-25 19:45:28 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) New ( ) protoreflect . Message {
return new ( fastReflection_QuerySchemaResponse )
2024-09-25 19:45:28 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) Interface ( ) protoreflect . ProtoMessage {
return ( * QuerySchemaResponse ) ( x )
2024-09-25 19:45:28 -04:00
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Schema != nil {
value := protoreflect . ValueOfMessage ( x . Schema . ProtoReflect ( ) )
if ! f ( fd_QuerySchemaResponse_schema , value ) {
2024-09-25 19:45:28 -04:00
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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
2024-10-08 16:43:59 -04:00
case "vault.v1.QuerySchemaResponse.schema" :
return x . Schema != nil
2024-09-25 19:45:28 -04:00
default :
if fd . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
2024-10-08 16:43:59 -04:00
case "vault.v1.QuerySchemaResponse.schema" :
x . Schema = nil
2024-09-25 19:45:28 -04:00
default :
if fd . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch descriptor . FullName ( ) {
2024-10-08 16:43:59 -04:00
case "vault.v1.QuerySchemaResponse.schema" :
value := x . Schema
return protoreflect . ValueOfMessage ( value . ProtoReflect ( ) )
2024-09-25 19:45:28 -04:00
default :
if descriptor . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaResponse does not contain field %s" , descriptor . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
2024-10-08 16:43:59 -04:00
case "vault.v1.QuerySchemaResponse.schema" :
x . Schema = value . Message ( ) . Interface ( ) . ( * Schema )
2024-09-25 19:45:28 -04:00
default :
if fd . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
2024-10-08 16:43:59 -04:00
case "vault.v1.QuerySchemaResponse.schema" :
if x . Schema == nil {
x . Schema = new ( Schema )
}
return protoreflect . ValueOfMessage ( x . Schema . ProtoReflect ( ) )
2024-09-25 19:45:28 -04:00
default :
if fd . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
2024-10-08 16:43:59 -04:00
case "vault.v1.QuerySchemaResponse.schema" :
m := new ( Schema )
return protoreflect . ValueOfMessage ( m . ProtoReflect ( ) )
2024-09-25 19:45:28 -04:00
default :
if fd . IsExtension ( ) {
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySchemaResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySchemaResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-09-25 19:45:28 -04:00
switch d . FullName ( ) {
default :
2024-10-08 16:43:59 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in vault.v1.QuerySchemaResponse" , d . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) GetUnknown ( ) protoreflect . RawFields {
2024-09-25 19:45:28 -04:00
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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) SetUnknown ( fields protoreflect . RawFields ) {
2024-09-25 19:45:28 -04:00
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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) IsValid ( ) bool {
2024-09-25 19:45:28 -04:00
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.
2024-10-08 16:43:59 -04:00
func ( x * fastReflection_QuerySchemaResponse ) ProtoMethods ( ) * protoiface . Methods {
2024-09-25 19:45:28 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-10-08 16:43:59 -04:00
x := input . Message . Interface ( ) . ( * QuerySchemaResponse )
2024-09-25 19:45:28 -04:00
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
2024-10-08 16:43:59 -04:00
if x . Schema != nil {
l = options . Size ( x . Schema )
n += 1 + l + runtime . Sov ( uint64 ( l ) )
2024-09-25 19:45:28 -04:00
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
2024-10-08 16:43:59 -04:00
x := input . Message . Interface ( ) . ( * QuerySchemaResponse )
2024-09-25 19:45:28 -04:00
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 )
}
2024-10-08 16:43:59 -04:00
if x . Schema != nil {
encoded , err := options . Marshal ( x . Schema )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , err
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
i -= len ( encoded )
copy ( dAtA [ i : ] , encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded ) ) )
2024-09-25 19:45:28 -04:00
i --
2024-10-08 16:43:59 -04:00
dAtA [ i ] = 0xa
2024-09-25 19:45:28 -04:00
}
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 ) {
2024-10-08 16:43:59 -04:00
x := input . Message . Interface ( ) . ( * QuerySchemaResponse )
2024-09-25 19:45:28 -04:00
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 {
2024-10-08 16:43:59 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QuerySchemaResponse: wiretype end group for non-group" )
2024-09-25 19:45:28 -04:00
}
if fieldNum <= 0 {
2024-10-08 16:43:59 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QuerySchemaResponse: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-09-25 19:45:28 -04:00
}
switch fieldNum {
case 1 :
2024-10-08 16:43:59 -04:00
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Schema" , wireType )
2024-09-25 19:45:28 -04:00
}
2024-10-08 16:43:59 -04:00
var msglen int
2024-09-25 19:45:28 -04:00
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
2024-10-08 16:43:59 -04:00
msglen |= int ( b & 0x7F ) << shift
2024-09-25 19:45:28 -04:00
if b < 0x80 {
break
}
}
2024-10-08 16:43:59 -04:00
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 . Schema == nil {
x . Schema = & Schema { }
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ] , x . Schema ) ; err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
iNdEx = postIndex
2024-09-25 19:45:28 -04:00
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 ,
}
}
2024-10-07 21:22:56 -04:00
var (
2024-10-18 15:10:09 -04:00
md_QueryAllocateRequest protoreflect . MessageDescriptor
2024-10-07 21:22:56 -04:00
)
func init ( ) {
file_vault_v1_query_proto_init ( )
2024-10-18 15:10:09 -04:00
md_QueryAllocateRequest = File_vault_v1_query_proto . Messages ( ) . ByName ( "QueryAllocateRequest" )
2024-10-07 21:22:56 -04:00
}
2024-10-18 15:10:09 -04:00
var _ protoreflect . Message = ( * fastReflection_QueryAllocateRequest ) ( nil )
2024-10-07 21:22:56 -04:00
2024-10-18 15:10:09 -04:00
type fastReflection_QueryAllocateRequest QueryAllocateRequest
2024-10-07 21:22:56 -04:00
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateRequest ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_QueryAllocateRequest ) ( x )
2024-10-07 21:22:56 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateRequest ) slowProtoReflect ( ) protoreflect . Message {
2024-10-07 21:22:56 -04:00
mi := & file_vault_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 )
}
2024-10-18 15:10:09 -04:00
var _fastReflection_QueryAllocateRequest_messageType fastReflection_QueryAllocateRequest_messageType
var _ protoreflect . MessageType = fastReflection_QueryAllocateRequest_messageType { }
2024-10-07 21:22:56 -04:00
2024-10-18 15:10:09 -04:00
type fastReflection_QueryAllocateRequest_messageType struct { }
2024-10-07 21:22:56 -04:00
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QueryAllocateRequest_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_QueryAllocateRequest ) ( nil )
2024-10-07 21:22:56 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QueryAllocateRequest_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_QueryAllocateRequest )
2024-10-07 21:22:56 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QueryAllocateRequest_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QueryAllocateRequest
2024-10-07 21:22:56 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QueryAllocateRequest
2024-10-07 21:22:56 -04:00
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) Type ( ) protoreflect . MessageType {
return _fastReflection_QueryAllocateRequest_messageType
2024-10-07 21:22:56 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) New ( ) protoreflect . Message {
return new ( fastReflection_QueryAllocateRequest )
2024-10-07 21:22:56 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) Interface ( ) protoreflect . ProtoMessage {
return ( * QueryAllocateRequest ) ( x )
2024-10-07 21:22:56 -04:00
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2024-10-07 21:22:56 -04:00
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-10-07 21:22:56 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateRequest" ) )
2024-10-07 21:22:56 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateRequest does not contain field %s" , fd . FullName ( ) ) )
2024-10-07 21:22:56 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-10-07 21:22:56 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateRequest" ) )
2024-10-07 21:22:56 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateRequest does not contain field %s" , fd . FullName ( ) ) )
2024-10-07 21:22:56 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-10-07 21:22:56 -04:00
switch descriptor . FullName ( ) {
default :
if descriptor . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateRequest" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateRequest does not contain field %s" , descriptor . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateRequest" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateRequest does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateRequest" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateRequest does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateRequest" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateRequest does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-09-25 19:45:28 -04:00
switch d . FullName ( ) {
default :
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in vault.v1.QueryAllocateRequest" , d . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) GetUnknown ( ) protoreflect . RawFields {
2024-09-25 19:45:28 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) SetUnknown ( fields protoreflect . RawFields ) {
2024-09-25 19:45:28 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) IsValid ( ) bool {
2024-09-25 19:45:28 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateRequest ) ProtoMethods ( ) * protoiface . Methods {
2024-09-25 19:45:28 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QueryAllocateRequest )
2024-09-25 19:45:28 -04:00
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 ) {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QueryAllocateRequest )
2024-09-25 19:45:28 -04:00
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 ) {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QueryAllocateRequest )
2024-09-25 19:45:28 -04:00
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 {
2024-10-18 15:10:09 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QueryAllocateRequest: wiretype end group for non-group" )
2024-09-25 19:45:28 -04:00
}
if fieldNum <= 0 {
2024-10-18 15:10:09 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QueryAllocateRequest: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-09-25 19:45:28 -04:00
}
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 (
2024-10-18 15:10:09 -04:00
md_QueryAllocateResponse protoreflect . MessageDescriptor
fd_QueryAllocateResponse_success protoreflect . FieldDescriptor
fd_QueryAllocateResponse_cid protoreflect . FieldDescriptor
fd_QueryAllocateResponse_macaroon protoreflect . FieldDescriptor
fd_QueryAllocateResponse_public_uri protoreflect . FieldDescriptor
fd_QueryAllocateResponse_expiry_block protoreflect . FieldDescriptor
2024-09-25 19:45:28 -04:00
)
func init ( ) {
file_vault_v1_query_proto_init ( )
2024-10-18 15:10:09 -04:00
md_QueryAllocateResponse = File_vault_v1_query_proto . Messages ( ) . ByName ( "QueryAllocateResponse" )
fd_QueryAllocateResponse_success = md_QueryAllocateResponse . Fields ( ) . ByName ( "success" )
fd_QueryAllocateResponse_cid = md_QueryAllocateResponse . Fields ( ) . ByName ( "cid" )
fd_QueryAllocateResponse_macaroon = md_QueryAllocateResponse . Fields ( ) . ByName ( "macaroon" )
fd_QueryAllocateResponse_public_uri = md_QueryAllocateResponse . Fields ( ) . ByName ( "public_uri" )
fd_QueryAllocateResponse_expiry_block = md_QueryAllocateResponse . Fields ( ) . ByName ( "expiry_block" )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
var _ protoreflect . Message = ( * fastReflection_QueryAllocateResponse ) ( nil )
2024-09-25 19:45:28 -04:00
2024-10-18 15:10:09 -04:00
type fastReflection_QueryAllocateResponse QueryAllocateResponse
2024-09-25 19:45:28 -04:00
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateResponse ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_QueryAllocateResponse ) ( x )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateResponse ) slowProtoReflect ( ) protoreflect . Message {
2024-10-08 16:43:59 -04:00
mi := & file_vault_v1_query_proto_msgTypes [ 5 ]
2024-09-25 19:45:28 -04:00
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 )
}
2024-10-18 15:10:09 -04:00
var _fastReflection_QueryAllocateResponse_messageType fastReflection_QueryAllocateResponse_messageType
var _ protoreflect . MessageType = fastReflection_QueryAllocateResponse_messageType { }
2024-09-25 19:45:28 -04:00
2024-10-18 15:10:09 -04:00
type fastReflection_QueryAllocateResponse_messageType struct { }
2024-09-25 19:45:28 -04:00
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QueryAllocateResponse_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_QueryAllocateResponse ) ( nil )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QueryAllocateResponse_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_QueryAllocateResponse )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QueryAllocateResponse_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QueryAllocateResponse
2024-09-25 19:45:28 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QueryAllocateResponse
2024-09-25 19:45:28 -04:00
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) Type ( ) protoreflect . MessageType {
return _fastReflection_QueryAllocateResponse_messageType
2024-09-25 19:45:28 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) New ( ) protoreflect . Message {
return new ( fastReflection_QueryAllocateResponse )
2024-09-25 19:45:28 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) Interface ( ) protoreflect . ProtoMessage {
return ( * QueryAllocateResponse ) ( x )
2024-09-25 19:45:28 -04:00
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2024-09-25 19:45:28 -04:00
if x . Success != false {
value := protoreflect . ValueOfBool ( x . Success )
2024-10-18 15:10:09 -04:00
if ! f ( fd_QueryAllocateResponse_success , value ) {
2024-10-15 14:31:19 -04:00
return
}
}
if x . Cid != "" {
value := protoreflect . ValueOfString ( x . Cid )
2024-10-18 15:10:09 -04:00
if ! f ( fd_QueryAllocateResponse_cid , value ) {
2024-10-15 14:31:19 -04:00
return
}
}
if x . Macaroon != "" {
value := protoreflect . ValueOfString ( x . Macaroon )
2024-10-18 15:10:09 -04:00
if ! f ( fd_QueryAllocateResponse_macaroon , value ) {
2024-10-15 14:31:19 -04:00
return
}
}
if x . PublicUri != "" {
value := protoreflect . ValueOfString ( x . PublicUri )
2024-10-18 15:10:09 -04:00
if ! f ( fd_QueryAllocateResponse_public_uri , value ) {
2024-10-15 14:31:19 -04:00
return
}
}
if x . ExpiryBlock != int64 ( 0 ) {
value := protoreflect . ValueOfInt64 ( x . ExpiryBlock )
2024-10-18 15:10:09 -04:00
if ! f ( fd_QueryAllocateResponse_expiry_block , value ) {
2024-09-25 19:45:28 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.success" :
2024-09-25 19:45:28 -04:00
return x . Success != false
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.cid" :
2024-10-15 14:31:19 -04:00
return x . Cid != ""
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.macaroon" :
2024-10-15 14:31:19 -04:00
return x . Macaroon != ""
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.public_uri" :
2024-10-15 14:31:19 -04:00
return x . PublicUri != ""
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.expiry_block" :
2024-10-15 14:31:19 -04:00
return x . ExpiryBlock != int64 ( 0 )
2024-09-25 19:45:28 -04:00
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.success" :
2024-09-25 19:45:28 -04:00
x . Success = false
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.cid" :
2024-10-15 14:31:19 -04:00
x . Cid = ""
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.macaroon" :
2024-10-15 14:31:19 -04:00
x . Macaroon = ""
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.public_uri" :
2024-10-15 14:31:19 -04:00
x . PublicUri = ""
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.expiry_block" :
2024-10-15 14:31:19 -04:00
x . ExpiryBlock = int64 ( 0 )
2024-09-25 19:45:28 -04:00
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch descriptor . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.success" :
2024-09-25 19:45:28 -04:00
value := x . Success
return protoreflect . ValueOfBool ( value )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.cid" :
2024-10-15 14:31:19 -04:00
value := x . Cid
return protoreflect . ValueOfString ( value )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.macaroon" :
2024-10-15 14:31:19 -04:00
value := x . Macaroon
return protoreflect . ValueOfString ( value )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.public_uri" :
2024-10-15 14:31:19 -04:00
value := x . PublicUri
return protoreflect . ValueOfString ( value )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.expiry_block" :
2024-10-15 14:31:19 -04:00
value := x . ExpiryBlock
return protoreflect . ValueOfInt64 ( value )
2024-09-25 19:45:28 -04:00
default :
if descriptor . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateResponse does not contain field %s" , descriptor . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.success" :
2024-09-25 19:45:28 -04:00
x . Success = value . Bool ( )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.cid" :
2024-10-15 14:31:19 -04:00
x . Cid = value . Interface ( ) . ( string )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.macaroon" :
2024-10-15 14:31:19 -04:00
x . Macaroon = value . Interface ( ) . ( string )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.public_uri" :
2024-10-15 14:31:19 -04:00
x . PublicUri = value . Interface ( ) . ( string )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.expiry_block" :
2024-10-15 14:31:19 -04:00
x . ExpiryBlock = value . Int ( )
2024-09-25 19:45:28 -04:00
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.success" :
panic ( fmt . Errorf ( "field success of message vault.v1.QueryAllocateResponse is not mutable" ) )
case "vault.v1.QueryAllocateResponse.cid" :
panic ( fmt . Errorf ( "field cid of message vault.v1.QueryAllocateResponse is not mutable" ) )
case "vault.v1.QueryAllocateResponse.macaroon" :
panic ( fmt . Errorf ( "field macaroon of message vault.v1.QueryAllocateResponse is not mutable" ) )
case "vault.v1.QueryAllocateResponse.public_uri" :
panic ( fmt . Errorf ( "field public_uri of message vault.v1.QueryAllocateResponse is not mutable" ) )
case "vault.v1.QueryAllocateResponse.expiry_block" :
panic ( fmt . Errorf ( "field expiry_block of message vault.v1.QueryAllocateResponse is not mutable" ) )
2024-09-25 19:45:28 -04:00
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-25 19:45:28 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.success" :
2024-09-25 19:45:28 -04:00
return protoreflect . ValueOfBool ( false )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.cid" :
2024-10-15 14:31:19 -04:00
return protoreflect . ValueOfString ( "" )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.macaroon" :
2024-10-15 14:31:19 -04:00
return protoreflect . ValueOfString ( "" )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.public_uri" :
2024-10-15 14:31:19 -04:00
return protoreflect . ValueOfString ( "" )
2024-10-18 15:10:09 -04:00
case "vault.v1.QueryAllocateResponse.expiry_block" :
2024-10-15 14:31:19 -04:00
return protoreflect . ValueOfInt64 ( int64 ( 0 ) )
2024-09-25 19:45:28 -04:00
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QueryAllocateResponse" ) )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QueryAllocateResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-09-25 19:45:28 -04:00
switch d . FullName ( ) {
default :
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in vault.v1.QueryAllocateResponse" , d . FullName ( ) ) )
2024-09-25 19:45:28 -04:00
}
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) GetUnknown ( ) protoreflect . RawFields {
2024-09-25 19:45:28 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) SetUnknown ( fields protoreflect . RawFields ) {
2024-09-25 19:45:28 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) IsValid ( ) bool {
2024-09-25 19:45:28 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QueryAllocateResponse ) ProtoMethods ( ) * protoiface . Methods {
2024-09-25 19:45:28 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QueryAllocateResponse )
2024-09-25 19:45:28 -04:00
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 . Success {
n += 2
}
2024-10-15 14:31:19 -04:00
l = len ( x . Cid )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . Macaroon )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . PublicUri )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
if x . ExpiryBlock != 0 {
n += 1 + runtime . Sov ( uint64 ( x . ExpiryBlock ) )
}
2024-09-25 19:45:28 -04:00
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QueryAllocateResponse )
2024-09-25 19:45:28 -04:00
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 )
}
2024-10-15 14:31:19 -04:00
if x . ExpiryBlock != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . ExpiryBlock ) )
i --
dAtA [ i ] = 0x28
}
if len ( x . PublicUri ) > 0 {
i -= len ( x . PublicUri )
copy ( dAtA [ i : ] , x . PublicUri )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . PublicUri ) ) )
i --
dAtA [ i ] = 0x22
}
if len ( x . Macaroon ) > 0 {
i -= len ( x . Macaroon )
copy ( dAtA [ i : ] , x . Macaroon )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Macaroon ) ) )
i --
dAtA [ i ] = 0x1a
}
if len ( x . Cid ) > 0 {
i -= len ( x . Cid )
copy ( dAtA [ i : ] , x . Cid )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Cid ) ) )
i --
dAtA [ i ] = 0x12
}
2024-09-25 19:45:28 -04:00
if x . Success {
i --
if x . Success {
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
i --
dAtA [ i ] = 0x8
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QueryAllocateResponse )
2024-09-25 19:45:28 -04:00
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 {
2024-10-18 15:10:09 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QueryAllocateResponse: wiretype end group for non-group" )
2024-09-25 19:45:28 -04:00
}
if fieldNum <= 0 {
2024-10-18 15:10:09 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QueryAllocateResponse: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-09-25 19:45:28 -04:00
}
switch fieldNum {
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Success" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
x . Success = bool ( v != 0 )
2024-10-15 14:31:19 -04:00
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Cid" , 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 . Cid = 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 Macaroon" , 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 . Macaroon = 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 PublicUri" , 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 . PublicUri = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 5 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field ExpiryBlock" , wireType )
}
x . ExpiryBlock = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . ExpiryBlock |= int64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
2024-09-25 19:45:28 -04:00
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 ,
}
}
2024-10-15 14:31:19 -04:00
var (
2024-10-18 15:10:09 -04:00
md_QuerySyncRequest protoreflect . MessageDescriptor
fd_QuerySyncRequest_did protoreflect . FieldDescriptor
2024-09-25 19:45:28 -04:00
)
2024-10-15 14:31:19 -04:00
func init ( ) {
file_vault_v1_query_proto_init ( )
2024-10-18 15:10:09 -04:00
md_QuerySyncRequest = File_vault_v1_query_proto . Messages ( ) . ByName ( "QuerySyncRequest" )
fd_QuerySyncRequest_did = md_QuerySyncRequest . Fields ( ) . ByName ( "did" )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
var _ protoreflect . Message = ( * fastReflection_QuerySyncRequest ) ( nil )
2024-10-15 14:31:19 -04:00
2024-10-18 15:10:09 -04:00
type fastReflection_QuerySyncRequest QuerySyncRequest
2024-10-15 14:31:19 -04:00
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncRequest ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_QuerySyncRequest ) ( x )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncRequest ) slowProtoReflect ( ) protoreflect . Message {
2024-10-15 14:31:19 -04:00
mi := & file_vault_v1_query_proto_msgTypes [ 6 ]
if protoimpl . UnsafeEnabled && x != nil {
2024-09-25 19:45:28 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
2024-10-15 14:31:19 -04:00
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
2024-09-25 19:45:28 -04:00
}
2024-10-15 14:31:19 -04:00
return mi . MessageOf ( x )
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
var _fastReflection_QuerySyncRequest_messageType fastReflection_QuerySyncRequest_messageType
var _ protoreflect . MessageType = fastReflection_QuerySyncRequest_messageType { }
2024-09-25 19:45:28 -04:00
2024-10-18 15:10:09 -04:00
type fastReflection_QuerySyncRequest_messageType struct { }
2024-09-25 19:45:28 -04:00
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QuerySyncRequest_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_QuerySyncRequest ) ( nil )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QuerySyncRequest_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_QuerySyncRequest )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QuerySyncRequest_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QuerySyncRequest
2024-09-25 19:45:28 -04:00
}
2024-10-15 14:31:19 -04:00
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QuerySyncRequest
2024-10-15 14:31:19 -04:00
}
2024-09-25 19:45:28 -04:00
2024-10-15 14:31:19 -04:00
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) Type ( ) protoreflect . MessageType {
return _fastReflection_QuerySyncRequest_messageType
2024-09-25 19:45:28 -04:00
}
2024-10-15 14:31:19 -04:00
// New returns a newly allocated and mutable empty message.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) New ( ) protoreflect . Message {
return new ( fastReflection_QuerySyncRequest )
2024-10-15 14:31:19 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) Interface ( ) protoreflect . ProtoMessage {
return ( * QuerySyncRequest ) ( x )
2024-10-15 14:31:19 -04:00
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2024-10-15 14:31:19 -04:00
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
2024-10-18 15:10:09 -04:00
if ! f ( fd_QuerySyncRequest_did , value ) {
2024-10-15 14:31:19 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-10-15 14:31:19 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncRequest.did" :
2024-10-15 14:31:19 -04:00
return x . Did != ""
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncRequest" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncRequest does not contain field %s" , fd . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-10-15 14:31:19 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncRequest.did" :
2024-10-15 14:31:19 -04:00
x . Did = ""
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncRequest" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncRequest does not contain field %s" , fd . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-10-15 14:31:19 -04:00
switch descriptor . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncRequest.did" :
2024-10-15 14:31:19 -04:00
value := x . Did
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncRequest" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncRequest does not contain field %s" , descriptor . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-10-15 14:31:19 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncRequest.did" :
2024-10-15 14:31:19 -04:00
x . Did = value . Interface ( ) . ( string )
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncRequest" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncRequest does not contain field %s" , fd . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-10-15 14:31:19 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncRequest.did" :
panic ( fmt . Errorf ( "field did of message vault.v1.QuerySyncRequest is not mutable" ) )
2024-10-15 14:31:19 -04:00
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncRequest" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncRequest does not contain field %s" , fd . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-10-15 14:31:19 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncRequest.did" :
2024-10-15 14:31:19 -04:00
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncRequest" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncRequest does not contain field %s" , fd . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-10-15 14:31:19 -04:00
switch d . FullName ( ) {
default :
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in vault.v1.QuerySyncRequest" , d . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) GetUnknown ( ) protoreflect . RawFields {
2024-10-15 14:31:19 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) SetUnknown ( fields protoreflect . RawFields ) {
2024-10-15 14:31:19 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) IsValid ( ) bool {
2024-10-15 14:31:19 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncRequest ) ProtoMethods ( ) * protoiface . Methods {
2024-10-15 14:31:19 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QuerySyncRequest )
2024-10-15 14:31:19 -04:00
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 . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QuerySyncRequest )
2024-10-15 14:31:19 -04:00
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 . 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 ) {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QuerySyncRequest )
2024-10-15 14:31:19 -04:00
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 {
2024-10-18 15:10:09 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QuerySyncRequest: wiretype end group for non-group" )
2024-10-15 14:31:19 -04:00
}
if fieldNum <= 0 {
2024-10-18 15:10:09 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QuerySyncRequest: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-10-15 14:31:19 -04:00
}
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
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 (
2024-10-18 15:10:09 -04:00
md_QuerySyncResponse protoreflect . MessageDescriptor
fd_QuerySyncResponse_success protoreflect . FieldDescriptor
fd_QuerySyncResponse_schema protoreflect . FieldDescriptor
fd_QuerySyncResponse_address protoreflect . FieldDescriptor
fd_QuerySyncResponse_chainID protoreflect . FieldDescriptor
2024-10-15 14:31:19 -04:00
)
func init ( ) {
file_vault_v1_query_proto_init ( )
2024-10-18 15:10:09 -04:00
md_QuerySyncResponse = File_vault_v1_query_proto . Messages ( ) . ByName ( "QuerySyncResponse" )
fd_QuerySyncResponse_success = md_QuerySyncResponse . Fields ( ) . ByName ( "success" )
fd_QuerySyncResponse_schema = md_QuerySyncResponse . Fields ( ) . ByName ( "schema" )
fd_QuerySyncResponse_address = md_QuerySyncResponse . Fields ( ) . ByName ( "address" )
fd_QuerySyncResponse_chainID = md_QuerySyncResponse . Fields ( ) . ByName ( "chainID" )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
var _ protoreflect . Message = ( * fastReflection_QuerySyncResponse ) ( nil )
2024-10-15 14:31:19 -04:00
2024-10-18 15:10:09 -04:00
type fastReflection_QuerySyncResponse QuerySyncResponse
2024-10-15 14:31:19 -04:00
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncResponse ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_QuerySyncResponse ) ( x )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncResponse ) slowProtoReflect ( ) protoreflect . Message {
2024-10-15 14:31:19 -04:00
mi := & file_vault_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 )
}
2024-10-18 15:10:09 -04:00
var _fastReflection_QuerySyncResponse_messageType fastReflection_QuerySyncResponse_messageType
var _ protoreflect . MessageType = fastReflection_QuerySyncResponse_messageType { }
2024-10-15 14:31:19 -04:00
2024-10-18 15:10:09 -04:00
type fastReflection_QuerySyncResponse_messageType struct { }
2024-10-15 14:31:19 -04:00
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QuerySyncResponse_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_QuerySyncResponse ) ( nil )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QuerySyncResponse_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_QuerySyncResponse )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x fastReflection_QuerySyncResponse_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QuerySyncResponse
2024-10-15 14:31:19 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_QuerySyncResponse
2024-10-15 14:31:19 -04:00
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) Type ( ) protoreflect . MessageType {
return _fastReflection_QuerySyncResponse_messageType
2024-10-15 14:31:19 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) New ( ) protoreflect . Message {
return new ( fastReflection_QuerySyncResponse )
2024-10-15 14:31:19 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) Interface ( ) protoreflect . ProtoMessage {
return ( * QuerySyncResponse ) ( x )
2024-10-15 14:31:19 -04:00
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2024-10-15 14:31:19 -04:00
if x . Success != false {
value := protoreflect . ValueOfBool ( x . Success )
2024-10-18 15:10:09 -04:00
if ! f ( fd_QuerySyncResponse_success , value ) {
2024-10-15 14:31:19 -04:00
return
}
}
if x . Schema != nil {
value := protoreflect . ValueOfMessage ( x . Schema . ProtoReflect ( ) )
2024-10-18 15:10:09 -04:00
if ! f ( fd_QuerySyncResponse_schema , value ) {
2024-10-15 14:31:19 -04:00
return
}
}
if x . Address != "" {
value := protoreflect . ValueOfString ( x . Address )
2024-10-18 15:10:09 -04:00
if ! f ( fd_QuerySyncResponse_address , value ) {
2024-10-15 14:31:19 -04:00
return
}
}
if x . ChainID != "" {
value := protoreflect . ValueOfString ( x . ChainID )
2024-10-18 15:10:09 -04:00
if ! f ( fd_QuerySyncResponse_chainID , value ) {
2024-10-15 14:31:19 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-10-15 14:31:19 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.success" :
2024-10-15 14:31:19 -04:00
return x . Success != false
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.schema" :
2024-10-15 14:31:19 -04:00
return x . Schema != nil
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.address" :
2024-10-15 14:31:19 -04:00
return x . Address != ""
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.chainID" :
2024-10-15 14:31:19 -04:00
return x . ChainID != ""
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncResponse" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncResponse does not contain field %s" , fd . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-10-15 14:31:19 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.success" :
2024-10-15 14:31:19 -04:00
x . Success = false
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.schema" :
2024-10-15 14:31:19 -04:00
x . Schema = nil
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.address" :
2024-10-15 14:31:19 -04:00
x . Address = ""
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.chainID" :
2024-10-15 14:31:19 -04:00
x . ChainID = ""
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncResponse" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncResponse does not contain field %s" , fd . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-10-15 14:31:19 -04:00
switch descriptor . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.success" :
2024-10-15 14:31:19 -04:00
value := x . Success
return protoreflect . ValueOfBool ( value )
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.schema" :
2024-10-15 14:31:19 -04:00
value := x . Schema
return protoreflect . ValueOfMessage ( value . ProtoReflect ( ) )
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.address" :
2024-10-15 14:31:19 -04:00
value := x . Address
return protoreflect . ValueOfString ( value )
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.chainID" :
2024-10-15 14:31:19 -04:00
value := x . ChainID
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncResponse" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncResponse does not contain field %s" , descriptor . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-10-15 14:31:19 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.success" :
2024-10-15 14:31:19 -04:00
x . Success = value . Bool ( )
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.schema" :
2024-10-15 14:31:19 -04:00
x . Schema = value . Message ( ) . Interface ( ) . ( * Schema )
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.address" :
2024-10-15 14:31:19 -04:00
x . Address = value . Interface ( ) . ( string )
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.chainID" :
2024-10-15 14:31:19 -04:00
x . ChainID = value . Interface ( ) . ( string )
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncResponse" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncResponse does not contain field %s" , fd . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-10-15 14:31:19 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.schema" :
2024-10-15 14:31:19 -04:00
if x . Schema == nil {
x . Schema = new ( Schema )
}
return protoreflect . ValueOfMessage ( x . Schema . ProtoReflect ( ) )
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.success" :
panic ( fmt . Errorf ( "field success of message vault.v1.QuerySyncResponse is not mutable" ) )
case "vault.v1.QuerySyncResponse.address" :
panic ( fmt . Errorf ( "field address of message vault.v1.QuerySyncResponse is not mutable" ) )
case "vault.v1.QuerySyncResponse.chainID" :
panic ( fmt . Errorf ( "field chainID of message vault.v1.QuerySyncResponse is not mutable" ) )
2024-10-15 14:31:19 -04:00
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncResponse" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncResponse does not contain field %s" , fd . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-10-15 14:31:19 -04:00
switch fd . FullName ( ) {
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.success" :
2024-10-15 14:31:19 -04:00
return protoreflect . ValueOfBool ( false )
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.schema" :
2024-10-15 14:31:19 -04:00
m := new ( Schema )
return protoreflect . ValueOfMessage ( m . ProtoReflect ( ) )
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.address" :
2024-10-15 14:31:19 -04:00
return protoreflect . ValueOfString ( "" )
2024-10-18 15:10:09 -04:00
case "vault.v1.QuerySyncResponse.chainID" :
2024-10-15 14:31:19 -04:00
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension ( ) {
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: vault.v1.QuerySyncResponse" ) )
2024-10-15 14:31:19 -04:00
}
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "message vault.v1.QuerySyncResponse does not contain field %s" , fd . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
}
// 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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-10-15 14:31:19 -04:00
switch d . FullName ( ) {
default :
2024-10-18 15:10:09 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in vault.v1.QuerySyncResponse" , d . FullName ( ) ) )
2024-10-15 14:31:19 -04:00
}
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) GetUnknown ( ) protoreflect . RawFields {
2024-10-15 14:31:19 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) SetUnknown ( fields protoreflect . RawFields ) {
2024-10-15 14:31:19 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) IsValid ( ) bool {
2024-10-15 14:31:19 -04:00
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.
2024-10-18 15:10:09 -04:00
func ( x * fastReflection_QuerySyncResponse ) ProtoMethods ( ) * protoiface . Methods {
2024-10-15 14:31:19 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QuerySyncResponse )
2024-10-15 14:31:19 -04:00
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 . Success {
n += 2
}
if x . Schema != nil {
l = options . Size ( x . Schema )
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . Address )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . ChainID )
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 ) {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QuerySyncResponse )
2024-10-15 14:31:19 -04:00
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 . ChainID ) > 0 {
i -= len ( x . ChainID )
copy ( dAtA [ i : ] , x . ChainID )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . ChainID ) ) )
i --
dAtA [ i ] = 0x22
}
if len ( x . Address ) > 0 {
i -= len ( x . Address )
copy ( dAtA [ i : ] , x . Address )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Address ) ) )
i --
dAtA [ i ] = 0x1a
}
if x . Schema != nil {
encoded , err := options . Marshal ( x . Schema )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , err
}
i -= len ( encoded )
copy ( dAtA [ i : ] , encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded ) ) )
i --
dAtA [ i ] = 0x12
}
if x . Success {
i --
if x . Success {
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
i --
dAtA [ i ] = 0x8
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
2024-10-18 15:10:09 -04:00
x := input . Message . Interface ( ) . ( * QuerySyncResponse )
2024-10-15 14:31:19 -04:00
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 {
2024-10-18 15:10:09 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QuerySyncResponse: wiretype end group for non-group" )
2024-10-15 14:31:19 -04:00
}
if fieldNum <= 0 {
2024-10-18 15:10:09 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: QuerySyncResponse: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-10-15 14:31:19 -04:00
}
switch fieldNum {
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Success" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
x . Success = bool ( v != 0 )
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Schema" , 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 . Schema == nil {
x . Schema = & Schema { }
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ] , x . Schema ) ; 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 Address" , 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 . Address = 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 ChainID" , 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 . ChainID = 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: vault/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 the request type for the 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_vault_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_vault_v1_query_proto_rawDescGZIP ( ) , [ ] int { 0 }
}
// QueryParamsResponse is the response type for the Query/Params RPC method.
type QueryParamsResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// params defines the parameters of the module.
Params * Params ` protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty" `
}
func ( x * QueryParamsResponse ) Reset ( ) {
* x = QueryParamsResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_vault_v1_query_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2024-09-25 19:45:28 -04:00
}
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_vault_v1_query_proto_rawDescGZIP ( ) , [ ] int { 1 }
}
func ( x * QueryParamsResponse ) GetParams ( ) * Params {
if x != nil {
return x . Params
}
return nil
}
2024-10-07 21:22:56 -04:00
// QuerySchemaRequest is the request type for the Query/Schema RPC method.
type QuerySchemaRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
}
func ( x * QuerySchemaRequest ) Reset ( ) {
* x = QuerySchemaRequest { }
if protoimpl . UnsafeEnabled {
2024-10-08 16:43:59 -04:00
mi := & file_vault_v1_query_proto_msgTypes [ 2 ]
2024-10-07 21:22:56 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * QuerySchemaRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QuerySchemaRequest ) ProtoMessage ( ) { }
// Deprecated: Use QuerySchemaRequest.ProtoReflect.Descriptor instead.
func ( * QuerySchemaRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2024-10-08 16:43:59 -04:00
return file_vault_v1_query_proto_rawDescGZIP ( ) , [ ] int { 2 }
2024-10-07 21:22:56 -04:00
}
// QuerySchemaResponse is the response type for the Query/Schema RPC method.
type QuerySchemaResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Schema is the DID document.
Schema * Schema ` protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty" `
}
func ( x * QuerySchemaResponse ) Reset ( ) {
* x = QuerySchemaResponse { }
if protoimpl . UnsafeEnabled {
2024-10-08 16:43:59 -04:00
mi := & file_vault_v1_query_proto_msgTypes [ 3 ]
2024-10-07 21:22:56 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * QuerySchemaResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * QuerySchemaResponse ) ProtoMessage ( ) { }
// Deprecated: Use QuerySchemaResponse.ProtoReflect.Descriptor instead.
func ( * QuerySchemaResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2024-10-08 16:43:59 -04:00
return file_vault_v1_query_proto_rawDescGZIP ( ) , [ ] int { 3 }
2024-10-07 21:22:56 -04:00
}
func ( x * QuerySchemaResponse ) GetSchema ( ) * Schema {
if x != nil {
return x . Schema
}
return nil
}
2024-10-18 15:10:09 -04:00
// QueryAllocateRequest is the request type for the Allocate RPC method.
type QueryAllocateRequest struct {
2024-09-25 19:45:28 -04:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateRequest ) Reset ( ) {
* x = QueryAllocateRequest { }
2024-09-25 19:45:28 -04:00
if protoimpl . UnsafeEnabled {
2024-10-08 16:43:59 -04:00
mi := & file_vault_v1_query_proto_msgTypes [ 4 ]
2024-09-25 19:45:28 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateRequest ) String ( ) string {
2024-09-25 19:45:28 -04:00
return protoimpl . X . MessageStringOf ( x )
}
2024-10-18 15:10:09 -04:00
func ( * QueryAllocateRequest ) ProtoMessage ( ) { }
2024-09-25 19:45:28 -04:00
2024-10-18 15:10:09 -04:00
// Deprecated: Use QueryAllocateRequest.ProtoReflect.Descriptor instead.
func ( * QueryAllocateRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2024-10-08 16:43:59 -04:00
return file_vault_v1_query_proto_rawDescGZIP ( ) , [ ] int { 4 }
2024-09-25 19:45:28 -04:00
}
2024-10-15 14:31:19 -04:00
// AllocateResponse is the response type for the Allocate RPC method.
2024-10-18 15:10:09 -04:00
type QueryAllocateResponse struct {
2024-09-25 19:45:28 -04:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2024-10-15 14:31:19 -04:00
Success bool ` protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty" `
Cid string ` protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty" `
Macaroon string ` protobuf:"bytes,3,opt,name=macaroon,proto3" json:"macaroon,omitempty" `
PublicUri string ` protobuf:"bytes,4,opt,name=public_uri,json=publicUri,proto3" json:"public_uri,omitempty" `
ExpiryBlock int64 ` protobuf:"varint,5,opt,name=expiry_block,json=expiryBlock,proto3" json:"expiry_block,omitempty" `
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateResponse ) Reset ( ) {
* x = QueryAllocateResponse { }
2024-09-25 19:45:28 -04:00
if protoimpl . UnsafeEnabled {
2024-10-08 16:43:59 -04:00
mi := & file_vault_v1_query_proto_msgTypes [ 5 ]
2024-09-25 19:45:28 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateResponse ) String ( ) string {
2024-09-25 19:45:28 -04:00
return protoimpl . X . MessageStringOf ( x )
}
2024-10-18 15:10:09 -04:00
func ( * QueryAllocateResponse ) ProtoMessage ( ) { }
2024-09-25 19:45:28 -04:00
2024-10-18 15:10:09 -04:00
// Deprecated: Use QueryAllocateResponse.ProtoReflect.Descriptor instead.
func ( * QueryAllocateResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2024-10-08 16:43:59 -04:00
return file_vault_v1_query_proto_rawDescGZIP ( ) , [ ] int { 5 }
2024-09-25 19:45:28 -04:00
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateResponse ) GetSuccess ( ) bool {
2024-10-15 14:31:19 -04:00
if x != nil {
return x . Success
}
return false
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateResponse ) GetCid ( ) string {
2024-10-15 14:31:19 -04:00
if x != nil {
return x . Cid
}
return ""
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateResponse ) GetMacaroon ( ) string {
2024-10-15 14:31:19 -04:00
if x != nil {
return x . Macaroon
}
return ""
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateResponse ) GetPublicUri ( ) string {
2024-10-15 14:31:19 -04:00
if x != nil {
return x . PublicUri
}
return ""
}
2024-10-18 15:10:09 -04:00
func ( x * QueryAllocateResponse ) GetExpiryBlock ( ) int64 {
2024-10-15 14:31:19 -04:00
if x != nil {
return x . ExpiryBlock
}
return 0
}
// SyncRequest is the request type for the Sync RPC method.
2024-10-18 15:10:09 -04:00
type QuerySyncRequest struct {
2024-10-15 14:31:19 -04:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
Did string ` protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" `
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncRequest ) Reset ( ) {
* x = QuerySyncRequest { }
2024-10-15 14:31:19 -04:00
if protoimpl . UnsafeEnabled {
mi := & file_vault_v1_query_proto_msgTypes [ 6 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncRequest ) String ( ) string {
2024-10-15 14:31:19 -04:00
return protoimpl . X . MessageStringOf ( x )
}
2024-10-18 15:10:09 -04:00
func ( * QuerySyncRequest ) ProtoMessage ( ) { }
2024-10-15 14:31:19 -04:00
2024-10-18 15:10:09 -04:00
// Deprecated: Use QuerySyncRequest.ProtoReflect.Descriptor instead.
func ( * QuerySyncRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2024-10-15 14:31:19 -04:00
return file_vault_v1_query_proto_rawDescGZIP ( ) , [ ] int { 6 }
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncRequest ) GetDid ( ) string {
2024-10-15 14:31:19 -04:00
if x != nil {
return x . Did
}
return ""
}
2024-10-18 13:07:52 -04:00
// SyncResponse is the response type for the Sync RPC method.
2024-10-18 15:10:09 -04:00
type QuerySyncResponse struct {
2024-10-15 14:31:19 -04:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
Success bool ` protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty" `
// Schema is the DID document.
Schema * Schema ` protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty" `
// Address is the address of the calling DID.
Address string ` protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty" `
// ChainID is the chain ID of the current network.
ChainID string ` protobuf:"bytes,4,opt,name=chainID,proto3" json:"chainID,omitempty" `
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncResponse ) Reset ( ) {
* x = QuerySyncResponse { }
2024-10-15 14:31:19 -04:00
if protoimpl . UnsafeEnabled {
mi := & file_vault_v1_query_proto_msgTypes [ 7 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncResponse ) String ( ) string {
2024-10-15 14:31:19 -04:00
return protoimpl . X . MessageStringOf ( x )
}
2024-10-18 15:10:09 -04:00
func ( * QuerySyncResponse ) ProtoMessage ( ) { }
2024-10-15 14:31:19 -04:00
2024-10-18 15:10:09 -04:00
// Deprecated: Use QuerySyncResponse.ProtoReflect.Descriptor instead.
func ( * QuerySyncResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2024-10-15 14:31:19 -04:00
return file_vault_v1_query_proto_rawDescGZIP ( ) , [ ] int { 7 }
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncResponse ) GetSuccess ( ) bool {
2024-09-25 19:45:28 -04:00
if x != nil {
return x . Success
}
return false
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncResponse ) GetSchema ( ) * Schema {
2024-10-15 14:31:19 -04:00
if x != nil {
return x . Schema
}
return nil
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncResponse ) GetAddress ( ) string {
2024-10-15 14:31:19 -04:00
if x != nil {
return x . Address
}
return ""
}
2024-10-18 15:10:09 -04:00
func ( x * QuerySyncResponse ) GetChainID ( ) string {
2024-10-15 14:31:19 -04:00
if x != nil {
return x . ChainID
}
return ""
}
2024-09-25 19:45:28 -04:00
var File_vault_v1_query_proto protoreflect . FileDescriptor
var file_vault_v1_query_proto_rawDesc = [ ] byte {
0x0a , 0x14 , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2f , 0x76 , 0x31 , 0x2f , 0x71 , 0x75 , 0x65 , 0x72 , 0x79 ,
0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x08 , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2e , 0x76 , 0x31 ,
0x1a , 0x1c , 0x67 , 0x6f , 0x6f , 0x67 , 0x6c , 0x65 , 0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x61 , 0x6e , 0x6e ,
0x6f , 0x74 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x73 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x1a , 0x16 ,
0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2f , 0x76 , 0x31 , 0x2f , 0x67 , 0x65 , 0x6e , 0x65 , 0x73 , 0x69 , 0x73 ,
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 , 0x3f , 0x0a , 0x13 ,
0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f ,
0x6e , 0x73 , 0x65 , 0x12 , 0x28 , 0x0a , 0x06 , 0x70 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x18 , 0x01 , 0x20 ,
0x01 , 0x28 , 0x0b , 0x32 , 0x10 , 0x2e , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2e , 0x76 , 0x31 , 0x2e , 0x50 ,
2024-10-08 16:43:59 -04:00
0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x52 , 0x06 , 0x70 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x22 , 0x14 , 0x0a ,
0x12 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x53 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 , 0x52 , 0x65 , 0x71 , 0x75 ,
0x65 , 0x73 , 0x74 , 0x22 , 0x3f , 0x0a , 0x13 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x53 , 0x63 , 0x68 , 0x65 ,
0x6d , 0x61 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x28 , 0x0a , 0x06 , 0x73 , 0x63 ,
0x68 , 0x65 , 0x6d , 0x61 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x10 , 0x2e , 0x76 , 0x61 , 0x75 ,
0x6c , 0x74 , 0x2e , 0x76 , 0x31 , 0x2e , 0x53 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 , 0x52 , 0x06 , 0x73 , 0x63 ,
2024-10-18 15:10:09 -04:00
0x68 , 0x65 , 0x6d , 0x61 , 0x22 , 0x16 , 0x0a , 0x14 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x6c , 0x6c ,
0x6f , 0x63 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x22 , 0xa1 , 0x01 , 0x0a ,
0x15 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x6c , 0x6c , 0x6f , 0x63 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 ,
0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x18 , 0x0a , 0x07 , 0x73 , 0x75 , 0x63 , 0x63 , 0x65 , 0x73 ,
0x73 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x08 , 0x52 , 0x07 , 0x73 , 0x75 , 0x63 , 0x63 , 0x65 , 0x73 , 0x73 ,
0x12 , 0x10 , 0x0a , 0x03 , 0x63 , 0x69 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x63 ,
0x69 , 0x64 , 0x12 , 0x1a , 0x0a , 0x08 , 0x6d , 0x61 , 0x63 , 0x61 , 0x72 , 0x6f , 0x6f , 0x6e , 0x18 , 0x03 ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x6d , 0x61 , 0x63 , 0x61 , 0x72 , 0x6f , 0x6f , 0x6e , 0x12 , 0x1d ,
0x0a , 0x0a , 0x70 , 0x75 , 0x62 , 0x6c , 0x69 , 0x63 , 0x5f , 0x75 , 0x72 , 0x69 , 0x18 , 0x04 , 0x20 , 0x01 ,
0x28 , 0x09 , 0x52 , 0x09 , 0x70 , 0x75 , 0x62 , 0x6c , 0x69 , 0x63 , 0x55 , 0x72 , 0x69 , 0x12 , 0x21 , 0x0a ,
0x0c , 0x65 , 0x78 , 0x70 , 0x69 , 0x72 , 0x79 , 0x5f , 0x62 , 0x6c , 0x6f , 0x63 , 0x6b , 0x18 , 0x05 , 0x20 ,
0x01 , 0x28 , 0x03 , 0x52 , 0x0b , 0x65 , 0x78 , 0x70 , 0x69 , 0x72 , 0x79 , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b ,
0x22 , 0x24 , 0x0a , 0x10 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x53 , 0x79 , 0x6e , 0x63 , 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 , 0x22 , 0x8b , 0x01 , 0x0a , 0x11 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 ,
0x53 , 0x79 , 0x6e , 0x63 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x18 , 0x0a , 0x07 ,
0x73 , 0x75 , 0x63 , 0x63 , 0x65 , 0x73 , 0x73 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x08 , 0x52 , 0x07 , 0x73 ,
0x75 , 0x63 , 0x63 , 0x65 , 0x73 , 0x73 , 0x12 , 0x28 , 0x0a , 0x06 , 0x73 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 ,
0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x10 , 0x2e , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2e , 0x76 ,
0x31 , 0x2e , 0x53 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 , 0x52 , 0x06 , 0x73 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 ,
0x12 , 0x18 , 0x0a , 0x07 , 0x61 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 ,
0x09 , 0x52 , 0x07 , 0x61 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x12 , 0x18 , 0x0a , 0x07 , 0x63 , 0x68 ,
0x61 , 0x69 , 0x6e , 0x49 , 0x44 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 , 0x63 , 0x68 , 0x61 ,
2024-10-21 13:15:02 -04:00
0x69 , 0x6e , 0x49 , 0x44 , 0x32 , 0x8b , 0x03 , 0x0a , 0x05 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x12 , 0x5f ,
2024-10-18 15:10:09 -04:00
0x0a , 0x06 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x12 , 0x1c , 0x2e , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 ,
0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x52 ,
0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1d , 0x2e , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2e , 0x76 ,
0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x52 , 0x65 , 0x73 ,
0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x18 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x12 , 0x12 , 0x10 , 0x2f ,
0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2f , 0x76 , 0x31 , 0x2f , 0x70 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x12 ,
0x5f , 0x0a , 0x06 , 0x53 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 , 0x12 , 0x1c , 0x2e , 0x76 , 0x61 , 0x75 , 0x6c ,
0x74 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x53 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 ,
0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1d , 0x2e , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2e ,
2024-10-15 14:31:19 -04:00
0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x53 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 , 0x52 , 0x65 ,
2024-10-18 15:10:09 -04:00
0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x18 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x12 , 0x12 , 0x10 ,
0x2f , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2f , 0x76 , 0x31 , 0x2f , 0x73 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 ,
0x12 , 0x67 , 0x0a , 0x08 , 0x41 , 0x6c , 0x6c , 0x6f , 0x63 , 0x61 , 0x74 , 0x65 , 0x12 , 0x1e , 0x2e , 0x76 ,
0x61 , 0x75 , 0x6c , 0x74 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x6c , 0x6c ,
0x6f , 0x63 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1f , 0x2e , 0x76 ,
0x61 , 0x75 , 0x6c , 0x74 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x41 , 0x6c , 0x6c ,
0x6f , 0x63 , 0x61 , 0x74 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x1a , 0x82 ,
0xd3 , 0xe4 , 0x93 , 0x02 , 0x14 , 0x12 , 0x12 , 0x2f , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2f , 0x76 , 0x31 ,
2024-10-21 13:15:02 -04:00
0x2f , 0x61 , 0x6c , 0x6c , 0x6f , 0x63 , 0x61 , 0x74 , 0x65 , 0x12 , 0x57 , 0x0a , 0x04 , 0x53 , 0x79 , 0x6e ,
2024-10-18 15:10:09 -04:00
0x63 , 0x12 , 0x1a , 0x2e , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 ,
0x72 , 0x79 , 0x53 , 0x79 , 0x6e , 0x63 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1b , 0x2e ,
0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2e , 0x76 , 0x31 , 0x2e , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x53 , 0x79 ,
2024-10-21 13:15:02 -04:00
0x6e , 0x63 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x16 , 0x82 , 0xd3 , 0xe4 , 0x93 ,
0x02 , 0x10 , 0x12 , 0x0e , 0x2f , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2f , 0x76 , 0x31 , 0x2f , 0x73 , 0x79 ,
0x6e , 0x63 , 0x42 , 0x88 , 0x01 , 0x0a , 0x0c , 0x63 , 0x6f , 0x6d , 0x2e , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 ,
0x2e , 0x76 , 0x31 , 0x42 , 0x0a , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x50 , 0x72 , 0x6f , 0x74 , 0x6f , 0x50 ,
0x01 , 0x5a , 0x2b , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x6f , 0x6e ,
0x73 , 0x6f , 0x6e , 0x72 , 0x2f , 0x73 , 0x6f , 0x6e , 0x72 , 0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x76 , 0x61 ,
0x75 , 0x6c , 0x74 , 0x2f , 0x76 , 0x31 , 0x3b , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x76 , 0x31 , 0xa2 , 0x02 ,
0x03 , 0x56 , 0x58 , 0x58 , 0xaa , 0x02 , 0x08 , 0x56 , 0x61 , 0x75 , 0x6c , 0x74 , 0x2e , 0x56 , 0x31 , 0xca ,
0x02 , 0x08 , 0x56 , 0x61 , 0x75 , 0x6c , 0x74 , 0x5c , 0x56 , 0x31 , 0xe2 , 0x02 , 0x14 , 0x56 , 0x61 , 0x75 ,
0x6c , 0x74 , 0x5c , 0x56 , 0x31 , 0x5c , 0x47 , 0x50 , 0x42 , 0x4d , 0x65 , 0x74 , 0x61 , 0x64 , 0x61 , 0x74 ,
0x61 , 0xea , 0x02 , 0x09 , 0x56 , 0x61 , 0x75 , 0x6c , 0x74 , 0x3a , 0x3a , 0x56 , 0x31 , 0x62 , 0x06 , 0x70 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
2024-09-25 19:45:28 -04:00
}
var (
file_vault_v1_query_proto_rawDescOnce sync . Once
file_vault_v1_query_proto_rawDescData = file_vault_v1_query_proto_rawDesc
)
func file_vault_v1_query_proto_rawDescGZIP ( ) [ ] byte {
file_vault_v1_query_proto_rawDescOnce . Do ( func ( ) {
file_vault_v1_query_proto_rawDescData = protoimpl . X . CompressGZIP ( file_vault_v1_query_proto_rawDescData )
} )
return file_vault_v1_query_proto_rawDescData
}
2024-10-18 13:07:52 -04:00
var file_vault_v1_query_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 8 )
2024-09-25 19:45:28 -04:00
var file_vault_v1_query_proto_goTypes = [ ] interface { } {
2024-10-18 15:10:09 -04:00
( * QueryParamsRequest ) ( nil ) , // 0: vault.v1.QueryParamsRequest
( * QueryParamsResponse ) ( nil ) , // 1: vault.v1.QueryParamsResponse
( * QuerySchemaRequest ) ( nil ) , // 2: vault.v1.QuerySchemaRequest
( * QuerySchemaResponse ) ( nil ) , // 3: vault.v1.QuerySchemaResponse
( * QueryAllocateRequest ) ( nil ) , // 4: vault.v1.QueryAllocateRequest
( * QueryAllocateResponse ) ( nil ) , // 5: vault.v1.QueryAllocateResponse
( * QuerySyncRequest ) ( nil ) , // 6: vault.v1.QuerySyncRequest
( * QuerySyncResponse ) ( nil ) , // 7: vault.v1.QuerySyncResponse
( * Params ) ( nil ) , // 8: vault.v1.Params
( * Schema ) ( nil ) , // 9: vault.v1.Schema
2024-09-25 19:45:28 -04:00
}
var file_vault_v1_query_proto_depIdxs = [ ] int32 {
2024-10-18 13:07:52 -04:00
8 , // 0: vault.v1.QueryParamsResponse.params:type_name -> vault.v1.Params
9 , // 1: vault.v1.QuerySchemaResponse.schema:type_name -> vault.v1.Schema
2024-10-18 15:10:09 -04:00
9 , // 2: vault.v1.QuerySyncResponse.schema:type_name -> vault.v1.Schema
2024-10-18 13:07:52 -04:00
0 , // 3: vault.v1.Query.Params:input_type -> vault.v1.QueryParamsRequest
2 , // 4: vault.v1.Query.Schema:input_type -> vault.v1.QuerySchemaRequest
2024-10-18 15:10:09 -04:00
4 , // 5: vault.v1.Query.Allocate:input_type -> vault.v1.QueryAllocateRequest
6 , // 6: vault.v1.Query.Sync:input_type -> vault.v1.QuerySyncRequest
2024-10-18 13:07:52 -04:00
1 , // 7: vault.v1.Query.Params:output_type -> vault.v1.QueryParamsResponse
3 , // 8: vault.v1.Query.Schema:output_type -> vault.v1.QuerySchemaResponse
2024-10-18 15:10:09 -04:00
5 , // 9: vault.v1.Query.Allocate:output_type -> vault.v1.QueryAllocateResponse
7 , // 10: vault.v1.Query.Sync:output_type -> vault.v1.QuerySyncResponse
2024-10-18 13:07:52 -04:00
7 , // [7:11] is the sub-list for method output_type
3 , // [3:7] is the sub-list for method input_type
3 , // [3:3] is the sub-list for extension type_name
3 , // [3:3] is the sub-list for extension extendee
0 , // [0:3] is the sub-list for field type_name
2024-09-25 19:45:28 -04:00
}
func init ( ) { file_vault_v1_query_proto_init ( ) }
func file_vault_v1_query_proto_init ( ) {
if File_vault_v1_query_proto != nil {
return
}
file_vault_v1_genesis_proto_init ( )
if ! protoimpl . UnsafeEnabled {
file_vault_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_vault_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_vault_v1_query_proto_msgTypes [ 2 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-07 21:22:56 -04:00
switch v := v . ( * QuerySchemaRequest ) ; i {
2024-09-25 19:45:28 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2024-10-08 16:43:59 -04:00
file_vault_v1_query_proto_msgTypes [ 3 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-07 21:22:56 -04:00
switch v := v . ( * QuerySchemaResponse ) ; i {
2024-09-25 19:45:28 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2024-10-08 16:43:59 -04:00
file_vault_v1_query_proto_msgTypes [ 4 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-18 15:10:09 -04:00
switch v := v . ( * QueryAllocateRequest ) ; i {
2024-09-25 19:45:28 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2024-10-08 16:43:59 -04:00
file_vault_v1_query_proto_msgTypes [ 5 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-18 15:10:09 -04:00
switch v := v . ( * QueryAllocateResponse ) ; i {
2024-10-15 14:31:19 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_vault_v1_query_proto_msgTypes [ 6 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-18 15:10:09 -04:00
switch v := v . ( * QuerySyncRequest ) ; i {
2024-10-15 14:31:19 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_vault_v1_query_proto_msgTypes [ 7 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-18 15:10:09 -04:00
switch v := v . ( * QuerySyncResponse ) ; i {
2024-10-07 21:22:56 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2024-09-25 19:45:28 -04:00
}
type x struct { }
out := protoimpl . TypeBuilder {
File : protoimpl . DescBuilder {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
RawDescriptor : file_vault_v1_query_proto_rawDesc ,
NumEnums : 0 ,
2024-10-18 13:07:52 -04:00
NumMessages : 8 ,
2024-09-25 19:45:28 -04:00
NumExtensions : 0 ,
NumServices : 1 ,
} ,
GoTypes : file_vault_v1_query_proto_goTypes ,
DependencyIndexes : file_vault_v1_query_proto_depIdxs ,
MessageInfos : file_vault_v1_query_proto_msgTypes ,
} . Build ( )
File_vault_v1_query_proto = out . File
file_vault_v1_query_proto_rawDesc = nil
file_vault_v1_query_proto_goTypes = nil
file_vault_v1_query_proto_depIdxs = nil
}