2024-07-05 22:20:13 -04:00
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package didv1
import (
_ "cosmossdk.io/api/cosmos/msg/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
2024-08-10 18:27:11 -04:00
sort "sort"
2024-07-05 22:20:13 -04:00
sync "sync"
)
var (
2024-10-15 14:31:19 -04:00
md_MsgLinkAuthentication protoreflect . MessageDescriptor
fd_MsgLinkAuthentication_controller protoreflect . FieldDescriptor
fd_MsgLinkAuthentication_subject protoreflect . FieldDescriptor
fd_MsgLinkAuthentication_assertion protoreflect . FieldDescriptor
fd_MsgLinkAuthentication_credential_id protoreflect . FieldDescriptor
fd_MsgLinkAuthentication_macaroon_token protoreflect . FieldDescriptor
2024-07-05 22:20:13 -04:00
)
func init ( ) {
file_did_v1_tx_proto_init ( )
2024-10-15 14:31:19 -04:00
md_MsgLinkAuthentication = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgLinkAuthentication" )
fd_MsgLinkAuthentication_controller = md_MsgLinkAuthentication . Fields ( ) . ByName ( "controller" )
fd_MsgLinkAuthentication_subject = md_MsgLinkAuthentication . Fields ( ) . ByName ( "subject" )
fd_MsgLinkAuthentication_assertion = md_MsgLinkAuthentication . Fields ( ) . ByName ( "assertion" )
fd_MsgLinkAuthentication_credential_id = md_MsgLinkAuthentication . Fields ( ) . ByName ( "credential_id" )
fd_MsgLinkAuthentication_macaroon_token = md_MsgLinkAuthentication . Fields ( ) . ByName ( "macaroon_token" )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
var _ protoreflect . Message = ( * fastReflection_MsgLinkAuthentication ) ( nil )
2024-07-05 22:20:13 -04:00
2024-10-15 14:31:19 -04:00
type fastReflection_MsgLinkAuthentication MsgLinkAuthentication
2024-07-05 22:20:13 -04:00
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAuthentication ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgLinkAuthentication ) ( x )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAuthentication ) slowProtoReflect ( ) protoreflect . Message {
2024-07-05 22:20:13 -04:00
mi := & file_did_v1_tx_proto_msgTypes [ 0 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
2024-10-15 14:31:19 -04:00
var _fastReflection_MsgLinkAuthentication_messageType fastReflection_MsgLinkAuthentication_messageType
var _ protoreflect . MessageType = fastReflection_MsgLinkAuthentication_messageType { }
2024-07-05 22:20:13 -04:00
2024-10-15 14:31:19 -04:00
type fastReflection_MsgLinkAuthentication_messageType struct { }
2024-07-05 22:20:13 -04:00
2024-10-15 14:31:19 -04:00
func ( x fastReflection_MsgLinkAuthentication_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgLinkAuthentication ) ( nil )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x fastReflection_MsgLinkAuthentication_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgLinkAuthentication )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x fastReflection_MsgLinkAuthentication_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgLinkAuthentication
2024-07-05 22:20:13 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgLinkAuthentication
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgLinkAuthentication_messageType
2024-07-05 22:20:13 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgLinkAuthentication )
2024-07-05 22:20:13 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgLinkAuthentication ) ( x )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Controller != "" {
value := protoreflect . ValueOfString ( x . Controller )
if ! f ( fd_MsgLinkAuthentication_controller , value ) {
return
}
}
if x . Subject != "" {
value := protoreflect . ValueOfString ( x . Subject )
if ! f ( fd_MsgLinkAuthentication_subject , value ) {
return
}
}
if x . Assertion != "" {
value := protoreflect . ValueOfString ( x . Assertion )
if ! f ( fd_MsgLinkAuthentication_assertion , value ) {
return
}
}
if len ( x . CredentialId ) != 0 {
value := protoreflect . ValueOfBytes ( x . CredentialId )
if ! f ( fd_MsgLinkAuthentication_credential_id , value ) {
return
}
}
if x . MacaroonToken != "" {
value := protoreflect . ValueOfString ( x . MacaroonToken )
if ! f ( fd_MsgLinkAuthentication_macaroon_token , value ) {
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-07-05 22:20:13 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthentication.controller" :
return x . Controller != ""
case "did.v1.MsgLinkAuthentication.subject" :
return x . Subject != ""
case "did.v1.MsgLinkAuthentication.assertion" :
return x . Assertion != ""
case "did.v1.MsgLinkAuthentication.credential_id" :
return len ( x . CredentialId ) != 0
case "did.v1.MsgLinkAuthentication.macaroon_token" :
return x . MacaroonToken != ""
2024-07-05 22:20:13 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthentication" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthentication does not contain field %s" , fd . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-07-05 22:20:13 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthentication.controller" :
x . Controller = ""
case "did.v1.MsgLinkAuthentication.subject" :
x . Subject = ""
case "did.v1.MsgLinkAuthentication.assertion" :
x . Assertion = ""
case "did.v1.MsgLinkAuthentication.credential_id" :
x . CredentialId = nil
case "did.v1.MsgLinkAuthentication.macaroon_token" :
x . MacaroonToken = ""
2024-07-05 22:20:13 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthentication" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthentication does not contain field %s" , fd . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-07-05 22:20:13 -04:00
switch descriptor . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthentication.controller" :
value := x . Controller
return protoreflect . ValueOfString ( value )
case "did.v1.MsgLinkAuthentication.subject" :
value := x . Subject
return protoreflect . ValueOfString ( value )
case "did.v1.MsgLinkAuthentication.assertion" :
value := x . Assertion
return protoreflect . ValueOfString ( value )
case "did.v1.MsgLinkAuthentication.credential_id" :
value := x . CredentialId
return protoreflect . ValueOfBytes ( value )
case "did.v1.MsgLinkAuthentication.macaroon_token" :
value := x . MacaroonToken
2024-07-05 22:20:13 -04:00
return protoreflect . ValueOfString ( value )
2024-09-25 19:49:16 -04:00
default :
if descriptor . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthentication" ) )
2024-09-25 19:49:16 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthentication does not contain field %s" , descriptor . FullName ( ) ) )
2024-09-25 19:49:16 -04:00
}
}
// Set stores the value for a field.
//
2024-07-05 22:20:13 -04:00
// 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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-07-05 22:20:13 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthentication.controller" :
x . Controller = value . Interface ( ) . ( string )
case "did.v1.MsgLinkAuthentication.subject" :
x . Subject = value . Interface ( ) . ( string )
case "did.v1.MsgLinkAuthentication.assertion" :
x . Assertion = value . Interface ( ) . ( string )
case "did.v1.MsgLinkAuthentication.credential_id" :
x . CredentialId = value . Bytes ( )
case "did.v1.MsgLinkAuthentication.macaroon_token" :
x . MacaroonToken = value . Interface ( ) . ( string )
2024-07-05 22:20:13 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthentication" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthentication does not contain field %s" , fd . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-07-05 22:20:13 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthentication.controller" :
panic ( fmt . Errorf ( "field controller of message did.v1.MsgLinkAuthentication is not mutable" ) )
case "did.v1.MsgLinkAuthentication.subject" :
panic ( fmt . Errorf ( "field subject of message did.v1.MsgLinkAuthentication is not mutable" ) )
case "did.v1.MsgLinkAuthentication.assertion" :
panic ( fmt . Errorf ( "field assertion of message did.v1.MsgLinkAuthentication is not mutable" ) )
case "did.v1.MsgLinkAuthentication.credential_id" :
panic ( fmt . Errorf ( "field credential_id of message did.v1.MsgLinkAuthentication is not mutable" ) )
case "did.v1.MsgLinkAuthentication.macaroon_token" :
panic ( fmt . Errorf ( "field macaroon_token of message did.v1.MsgLinkAuthentication is not mutable" ) )
2024-07-05 22:20:13 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthentication" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthentication does not contain field %s" , fd . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-07-05 22:20:13 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthentication.controller" :
return protoreflect . ValueOfString ( "" )
case "did.v1.MsgLinkAuthentication.subject" :
return protoreflect . ValueOfString ( "" )
case "did.v1.MsgLinkAuthentication.assertion" :
return protoreflect . ValueOfString ( "" )
case "did.v1.MsgLinkAuthentication.credential_id" :
return protoreflect . ValueOfBytes ( nil )
case "did.v1.MsgLinkAuthentication.macaroon_token" :
2024-09-14 14:27:45 -04:00
return protoreflect . ValueOfString ( "" )
2024-07-05 22:20:13 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthentication" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthentication does not contain field %s" , fd . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-07-05 22:20:13 -04:00
switch d . FullName ( ) {
default :
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgLinkAuthentication" , d . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) GetUnknown ( ) protoreflect . RawFields {
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) SetUnknown ( fields protoreflect . RawFields ) {
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) IsValid ( ) bool {
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthentication ) ProtoMethods ( ) * protoiface . Methods {
2024-07-05 22:20:13 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-10-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAuthentication )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
l = len ( x . Controller )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . Subject )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . Assertion )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . CredentialId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . MacaroonToken )
2024-07-05 22:20:13 -04:00
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-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAuthentication )
2024-07-05 22:20:13 -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 len ( x . MacaroonToken ) > 0 {
i -= len ( x . MacaroonToken )
copy ( dAtA [ i : ] , x . MacaroonToken )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . MacaroonToken ) ) )
i --
dAtA [ i ] = 0x2a
}
if len ( x . CredentialId ) > 0 {
i -= len ( x . CredentialId )
copy ( dAtA [ i : ] , x . CredentialId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . CredentialId ) ) )
i --
dAtA [ i ] = 0x22
}
if len ( x . Assertion ) > 0 {
i -= len ( x . Assertion )
copy ( dAtA [ i : ] , x . Assertion )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Assertion ) ) )
i --
dAtA [ i ] = 0x1a
}
if len ( x . Subject ) > 0 {
i -= len ( x . Subject )
copy ( dAtA [ i : ] , x . Subject )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Subject ) ) )
i --
dAtA [ i ] = 0x12
}
if len ( x . Controller ) > 0 {
i -= len ( x . Controller )
copy ( dAtA [ i : ] , x . Controller )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Controller ) ) )
2024-07-05 22:20:13 -04:00
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-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAuthentication )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgLinkAuthentication: wiretype end group for non-group" )
2024-07-05 22:20:13 -04:00
}
if fieldNum <= 0 {
2024-10-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgLinkAuthentication: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-07-05 22:20:13 -04:00
}
switch fieldNum {
case 1 :
if wireType != 2 {
2024-10-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Controller" , wireType )
2024-07-05 22:20:13 -04:00
}
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
}
2024-10-15 14:31:19 -04:00
x . Controller = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Subject" , 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 . Subject = 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 Assertion" , 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 . Assertion = 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 CredentialId" , wireType )
}
var byteLen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
byteLen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
x . CredentialId = append ( x . CredentialId [ : 0 ] , dAtA [ iNdEx : postIndex ] ... )
if x . CredentialId == nil {
x . CredentialId = [ ] byte { }
}
iNdEx = postIndex
case 5 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field MacaroonToken" , 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 . MacaroonToken = string ( dAtA [ iNdEx : postIndex ] )
2024-07-05 22:20:13 -04:00
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 ,
}
}
2024-09-25 19:49:16 -04:00
var (
2024-10-15 14:31:19 -04:00
md_MsgLinkAuthenticationResponse protoreflect . MessageDescriptor
fd_MsgLinkAuthenticationResponse_success protoreflect . FieldDescriptor
fd_MsgLinkAuthenticationResponse_did protoreflect . FieldDescriptor
2024-09-25 19:49:16 -04:00
)
func init ( ) {
2024-07-05 22:20:13 -04:00
file_did_v1_tx_proto_init ( )
2024-10-15 14:31:19 -04:00
md_MsgLinkAuthenticationResponse = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgLinkAuthenticationResponse" )
fd_MsgLinkAuthenticationResponse_success = md_MsgLinkAuthenticationResponse . Fields ( ) . ByName ( "success" )
fd_MsgLinkAuthenticationResponse_did = md_MsgLinkAuthenticationResponse . Fields ( ) . ByName ( "did" )
2024-09-23 12:25:15 -04:00
}
2024-07-05 22:20:13 -04:00
2024-10-15 14:31:19 -04:00
var _ protoreflect . Message = ( * fastReflection_MsgLinkAuthenticationResponse ) ( nil )
2024-07-05 22:20:13 -04:00
2024-10-15 14:31:19 -04:00
type fastReflection_MsgLinkAuthenticationResponse MsgLinkAuthenticationResponse
2024-09-23 12:25:15 -04:00
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAuthenticationResponse ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgLinkAuthenticationResponse ) ( x )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAuthenticationResponse ) slowProtoReflect ( ) protoreflect . Message {
2024-07-05 22:20:13 -04:00
mi := & file_did_v1_tx_proto_msgTypes [ 1 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
2024-10-15 14:31:19 -04:00
var _fastReflection_MsgLinkAuthenticationResponse_messageType fastReflection_MsgLinkAuthenticationResponse_messageType
var _ protoreflect . MessageType = fastReflection_MsgLinkAuthenticationResponse_messageType { }
2024-07-05 22:20:13 -04:00
2024-10-15 14:31:19 -04:00
type fastReflection_MsgLinkAuthenticationResponse_messageType struct { }
2024-07-05 22:20:13 -04:00
2024-10-15 14:31:19 -04:00
func ( x fastReflection_MsgLinkAuthenticationResponse_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgLinkAuthenticationResponse ) ( nil )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x fastReflection_MsgLinkAuthenticationResponse_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgLinkAuthenticationResponse )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x fastReflection_MsgLinkAuthenticationResponse_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgLinkAuthenticationResponse
2024-07-05 22:20:13 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgLinkAuthenticationResponse
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgLinkAuthenticationResponse_messageType
2024-07-05 22:20:13 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgLinkAuthenticationResponse )
2024-07-05 22:20:13 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgLinkAuthenticationResponse ) ( x )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2024-09-25 19:49:16 -04:00
if x . Success != false {
value := protoreflect . ValueOfBool ( x . Success )
2024-10-15 14:31:19 -04:00
if ! f ( fd_MsgLinkAuthenticationResponse_success , value ) {
2024-09-25 19:49:16 -04:00
return
}
}
2024-10-15 14:31:19 -04:00
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_MsgLinkAuthenticationResponse_did , value ) {
2024-09-25 19:49:16 -04:00
return
}
}
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-07-05 22:20:13 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.success" :
2024-09-25 19:49:16 -04:00
return x . Success != false
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.did" :
return x . Did != ""
2024-07-05 22:20:13 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthenticationResponse" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthenticationResponse does not contain field %s" , fd . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-07-05 22:20:13 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.success" :
2024-09-25 19:49:16 -04:00
x . Success = false
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.did" :
x . Did = ""
2024-07-05 22:20:13 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthenticationResponse" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthenticationResponse does not contain field %s" , fd . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-07-05 22:20:13 -04:00
switch descriptor . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.success" :
2024-09-25 19:49:16 -04:00
value := x . Success
return protoreflect . ValueOfBool ( value )
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.did" :
value := x . Did
2024-09-25 19:49:16 -04:00
return protoreflect . ValueOfString ( value )
2024-07-05 22:20:13 -04:00
default :
if descriptor . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthenticationResponse" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthenticationResponse does not contain field %s" , descriptor . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-07-05 22:20:13 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.success" :
2024-09-25 19:49:16 -04:00
x . Success = value . Bool ( )
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.did" :
x . Did = value . Interface ( ) . ( string )
2024-07-05 22:20:13 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthenticationResponse" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthenticationResponse does not contain field %s" , fd . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-07-05 22:20:13 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.success" :
panic ( fmt . Errorf ( "field success of message did.v1.MsgLinkAuthenticationResponse is not mutable" ) )
case "did.v1.MsgLinkAuthenticationResponse.did" :
panic ( fmt . Errorf ( "field did of message did.v1.MsgLinkAuthenticationResponse is not mutable" ) )
2024-07-05 22:20:13 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthenticationResponse" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthenticationResponse does not contain field %s" , fd . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-07-05 22:20:13 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.success" :
2024-09-25 19:49:16 -04:00
return protoreflect . ValueOfBool ( false )
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAuthenticationResponse.did" :
2024-09-25 19:49:16 -04:00
return protoreflect . ValueOfString ( "" )
2024-07-05 22:20:13 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAuthenticationResponse" ) )
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAuthenticationResponse does not contain field %s" , fd . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-07-05 22:20:13 -04:00
switch d . FullName ( ) {
default :
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgLinkAuthenticationResponse" , d . FullName ( ) ) )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) GetUnknown ( ) protoreflect . RawFields {
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) SetUnknown ( fields protoreflect . RawFields ) {
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) IsValid ( ) bool {
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAuthenticationResponse ) ProtoMethods ( ) * protoiface . Methods {
2024-07-05 22:20:13 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-10-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAuthenticationResponse )
2024-07-05 22:20:13 -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-09-25 19:49:16 -04:00
if x . Success {
n += 2
}
2024-10-15 14:31:19 -04:00
l = len ( x . Did )
2024-09-25 19:49:16 -04:00
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAuthenticationResponse )
2024-07-05 22:20:13 -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 len ( x . Did ) > 0 {
i -= len ( x . Did )
copy ( dAtA [ i : ] , x . Did )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Did ) ) )
2024-09-25 19:49:16 -04:00
i --
dAtA [ i ] = 0x12
}
if x . Success {
i --
if x . Success {
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
i --
dAtA [ i ] = 0x8
}
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAuthenticationResponse )
2024-07-05 22:20:13 -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-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgLinkAuthenticationResponse: wiretype end group for non-group" )
2024-07-05 22:20:13 -04:00
}
if fieldNum <= 0 {
2024-10-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgLinkAuthenticationResponse: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-07-05 22:20:13 -04:00
}
switch fieldNum {
2024-09-25 19:49:16 -04:00
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Success" , wireType )
2024-07-05 22:20:13 -04:00
}
2024-09-25 19:49:16 -04:00
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 {
2024-10-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Did" , wireType )
2024-09-25 19:49:16 -04:00
}
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 {
2024-09-23 12:25:15 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
2024-07-05 22:20:13 -04:00
}
2024-09-25 19:49:16 -04:00
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
2024-09-23 12:25:15 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
x . Did = string ( dAtA [ iNdEx : postIndex ] )
2024-09-25 19:49:16 -04:00
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 ,
}
}
2024-10-15 14:31:19 -04:00
var (
md_MsgLinkAssertion protoreflect . MessageDescriptor
fd_MsgLinkAssertion_controller protoreflect . FieldDescriptor
fd_MsgLinkAssertion_subject protoreflect . FieldDescriptor
fd_MsgLinkAssertion_assertion protoreflect . FieldDescriptor
fd_MsgLinkAssertion_macaroon_token protoreflect . FieldDescriptor
)
2024-09-25 19:49:16 -04:00
2024-10-15 14:31:19 -04:00
func init ( ) {
file_did_v1_tx_proto_init ( )
md_MsgLinkAssertion = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgLinkAssertion" )
fd_MsgLinkAssertion_controller = md_MsgLinkAssertion . Fields ( ) . ByName ( "controller" )
fd_MsgLinkAssertion_subject = md_MsgLinkAssertion . Fields ( ) . ByName ( "subject" )
fd_MsgLinkAssertion_assertion = md_MsgLinkAssertion . Fields ( ) . ByName ( "assertion" )
fd_MsgLinkAssertion_macaroon_token = md_MsgLinkAssertion . Fields ( ) . ByName ( "macaroon_token" )
2024-09-25 19:49:16 -04:00
}
2024-10-15 14:31:19 -04:00
var _ protoreflect . Message = ( * fastReflection_MsgLinkAssertion ) ( nil )
type fastReflection_MsgLinkAssertion MsgLinkAssertion
func ( x * MsgLinkAssertion ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgLinkAssertion ) ( x )
2024-09-25 19:49:16 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertion ) slowProtoReflect ( ) protoreflect . Message {
mi := & file_did_v1_tx_proto_msgTypes [ 2 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
2024-09-25 19:49:16 -04:00
}
2024-10-15 14:31:19 -04:00
return ms
2024-09-25 19:49:16 -04:00
}
2024-10-15 14:31:19 -04:00
return mi . MessageOf ( x )
2024-09-25 19:49:16 -04:00
}
2024-10-15 14:31:19 -04:00
var _fastReflection_MsgLinkAssertion_messageType fastReflection_MsgLinkAssertion_messageType
var _ protoreflect . MessageType = fastReflection_MsgLinkAssertion_messageType { }
2024-09-25 19:49:16 -04:00
2024-10-15 14:31:19 -04:00
type fastReflection_MsgLinkAssertion_messageType struct { }
func ( x fastReflection_MsgLinkAssertion_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgLinkAssertion ) ( nil )
}
func ( x fastReflection_MsgLinkAssertion_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgLinkAssertion )
}
func ( x fastReflection_MsgLinkAssertion_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgLinkAssertion
2024-09-25 19:49:16 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgLinkAssertion
2024-09-25 19:49:16 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgLinkAssertion_messageType
2024-09-25 19:49:16 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgLinkAssertion )
2024-09-25 19:49:16 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgLinkAssertion ) ( x )
2024-09-25 19:49:16 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2024-09-25 19:49:16 -04:00
if x . Controller != "" {
value := protoreflect . ValueOfString ( x . Controller )
2024-10-15 14:31:19 -04:00
if ! f ( fd_MsgLinkAssertion_controller , value ) {
2024-09-25 19:49:16 -04:00
return
}
}
2024-10-15 14:31:19 -04:00
if x . Subject != "" {
value := protoreflect . ValueOfString ( x . Subject )
if ! f ( fd_MsgLinkAssertion_subject , value ) {
return
}
}
if x . Assertion != "" {
value := protoreflect . ValueOfString ( x . Assertion )
if ! f ( fd_MsgLinkAssertion_assertion , value ) {
2024-09-25 19:49:16 -04:00
return
}
}
if x . MacaroonToken != "" {
value := protoreflect . ValueOfString ( x . MacaroonToken )
2024-10-15 14:31:19 -04:00
if ! f ( fd_MsgLinkAssertion_macaroon_token , value ) {
2024-09-25 19:49:16 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-09-25 19:49:16 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.controller" :
2024-09-25 19:49:16 -04:00
return x . Controller != ""
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.subject" :
return x . Subject != ""
case "did.v1.MsgLinkAssertion.assertion" :
return x . Assertion != ""
case "did.v1.MsgLinkAssertion.macaroon_token" :
2024-09-25 19:49:16 -04:00
return x . MacaroonToken != ""
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertion" ) )
2024-09-25 19:49:16 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertion does not contain field %s" , fd . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-09-14 14:27:45 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.controller" :
2024-09-25 19:49:16 -04:00
x . Controller = ""
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.subject" :
x . Subject = ""
case "did.v1.MsgLinkAssertion.assertion" :
x . Assertion = ""
case "did.v1.MsgLinkAssertion.macaroon_token" :
2024-09-25 19:49:16 -04:00
x . MacaroonToken = ""
2024-09-14 14:27:45 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertion" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertion does not contain field %s" , fd . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-14 14:27:45 -04:00
switch descriptor . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.controller" :
2024-09-25 19:49:16 -04:00
value := x . Controller
2024-08-10 15:24:22 -04:00
return protoreflect . ValueOfString ( value )
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.subject" :
value := x . Subject
return protoreflect . ValueOfString ( value )
case "did.v1.MsgLinkAssertion.assertion" :
value := x . Assertion
return protoreflect . ValueOfString ( value )
case "did.v1.MsgLinkAssertion.macaroon_token" :
2024-09-25 19:49:16 -04:00
value := x . MacaroonToken
2024-09-07 18:12:58 -04:00
return protoreflect . ValueOfString ( value )
2024-09-14 14:27:45 -04:00
default :
if descriptor . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertion" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertion does not contain field %s" , descriptor . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-09-14 14:27:45 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.controller" :
2024-09-25 19:49:16 -04:00
x . Controller = value . Interface ( ) . ( string )
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.subject" :
x . Subject = value . Interface ( ) . ( string )
case "did.v1.MsgLinkAssertion.assertion" :
x . Assertion = value . Interface ( ) . ( string )
case "did.v1.MsgLinkAssertion.macaroon_token" :
2024-09-25 19:49:16 -04:00
x . MacaroonToken = value . Interface ( ) . ( string )
2024-09-14 14:27:45 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertion" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertion does not contain field %s" , fd . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-14 14:27:45 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.controller" :
panic ( fmt . Errorf ( "field controller of message did.v1.MsgLinkAssertion is not mutable" ) )
case "did.v1.MsgLinkAssertion.subject" :
panic ( fmt . Errorf ( "field subject of message did.v1.MsgLinkAssertion is not mutable" ) )
case "did.v1.MsgLinkAssertion.assertion" :
panic ( fmt . Errorf ( "field assertion of message did.v1.MsgLinkAssertion is not mutable" ) )
case "did.v1.MsgLinkAssertion.macaroon_token" :
panic ( fmt . Errorf ( "field macaroon_token of message did.v1.MsgLinkAssertion is not mutable" ) )
2024-09-14 14:27:45 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertion" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertion does not contain field %s" , fd . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-14 14:27:45 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.controller" :
2024-08-10 15:24:22 -04:00
return protoreflect . ValueOfString ( "" )
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertion.subject" :
return protoreflect . ValueOfString ( "" )
case "did.v1.MsgLinkAssertion.assertion" :
return protoreflect . ValueOfString ( "" )
case "did.v1.MsgLinkAssertion.macaroon_token" :
2024-09-14 14:27:45 -04:00
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertion" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertion does not contain field %s" , fd . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-09-14 14:27:45 -04:00
switch d . FullName ( ) {
default :
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgLinkAssertion" , d . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) GetUnknown ( ) protoreflect . RawFields {
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) SetUnknown ( fields protoreflect . RawFields ) {
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) IsValid ( ) bool {
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertion ) ProtoMethods ( ) * protoiface . Methods {
2024-09-14 14:27:45 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-10-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAssertion )
2024-09-14 14:27:45 -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-09-25 19:49:16 -04:00
l = len ( x . Controller )
2024-09-14 14:27:45 -04:00
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
2024-10-15 14:31:19 -04:00
l = len ( x . Subject )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . Assertion )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
2024-09-23 12:25:15 -04:00
}
2024-09-25 19:49:16 -04:00
l = len ( x . MacaroonToken )
2024-09-07 18:12:58 -04:00
if l > 0 {
2024-08-10 15:24:22 -04:00
n += 1 + l + runtime . Sov ( uint64 ( l ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAssertion )
2024-09-14 14:27:45 -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-09-25 19:49:16 -04:00
if len ( x . MacaroonToken ) > 0 {
i -= len ( x . MacaroonToken )
copy ( dAtA [ i : ] , x . MacaroonToken )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . MacaroonToken ) ) )
2024-08-10 15:24:22 -04:00
i --
2024-10-15 14:31:19 -04:00
dAtA [ i ] = 0x22
}
if len ( x . Assertion ) > 0 {
i -= len ( x . Assertion )
copy ( dAtA [ i : ] , x . Assertion )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Assertion ) ) )
i --
2024-08-10 15:24:22 -04:00
dAtA [ i ] = 0x1a
2024-09-23 12:25:15 -04:00
}
2024-10-15 14:31:19 -04:00
if len ( x . Subject ) > 0 {
i -= len ( x . Subject )
copy ( dAtA [ i : ] , x . Subject )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Subject ) ) )
i --
dAtA [ i ] = 0x12
2024-09-14 14:27:45 -04:00
}
2024-09-25 19:49:16 -04:00
if len ( x . Controller ) > 0 {
i -= len ( x . Controller )
copy ( dAtA [ i : ] , x . Controller )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Controller ) ) )
2024-09-14 14:27:45 -04:00
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-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAssertion )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgLinkAssertion: wiretype end group for non-group" )
2024-09-14 14:27:45 -04:00
}
if fieldNum <= 0 {
2024-10-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgLinkAssertion: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-09-14 14:27:45 -04:00
}
switch fieldNum {
case 1 :
if wireType != 2 {
2024-09-25 19:49:16 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Controller" , wireType )
2024-09-14 14:27:45 -04:00
}
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
}
2024-09-25 19:49:16 -04:00
x . Controller = string ( dAtA [ iNdEx : postIndex ] )
2024-09-14 14:27:45 -04:00
iNdEx = postIndex
case 2 :
if wireType != 2 {
2024-10-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Subject" , wireType )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
var stringLen uint64
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
stringLen |= uint64 ( b & 0x7F ) << shift
2024-09-14 14:27:45 -04:00
if b < 0x80 {
break
}
}
2024-10-15 14:31:19 -04:00
intStringLen := int ( stringLen )
if intStringLen < 0 {
2024-09-25 19:49:16 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
2024-10-15 14:31:19 -04:00
postIndex := iNdEx + intStringLen
2024-09-25 19:49:16 -04:00
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
}
2024-10-15 14:31:19 -04:00
x . Subject = 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 Assertion" , wireType )
2024-09-25 19:49:16 -04:00
}
2024-10-15 14:31:19 -04:00
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
2024-09-25 19:49:16 -04:00
}
2024-10-15 14:31:19 -04:00
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
2024-09-25 19:49:16 -04:00
}
}
2024-10-15 14:31:19 -04:00
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 . Assertion = string ( dAtA [ iNdEx : postIndex ] )
2024-09-14 14:27:45 -04:00
iNdEx = postIndex
2024-10-15 14:31:19 -04:00
case 4 :
2024-09-14 14:27:45 -04:00
if wireType != 2 {
2024-09-25 19:49:16 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field MacaroonToken" , wireType )
2024-09-23 12:25:15 -04:00
}
2024-09-07 18:12:58 -04:00
var stringLen uint64
2024-09-23 12:25:15 -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-09-07 18:12:58 -04:00
stringLen |= uint64 ( b & 0x7F ) << shift
2024-09-23 12:25:15 -04:00
if b < 0x80 {
break
}
}
2024-09-07 18:12:58 -04:00
intStringLen := int ( stringLen )
if intStringLen < 0 {
2024-09-23 12:25:15 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
2024-09-07 18:12:58 -04:00
postIndex := iNdEx + intStringLen
2024-09-23 12:25:15 -04:00
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
2024-09-14 14:27:45 -04:00
}
2024-09-25 19:49:16 -04:00
x . MacaroonToken = string ( dAtA [ iNdEx : postIndex ] )
2024-09-14 14:27:45 -04:00
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
}
}
2024-09-23 12:25:15 -04:00
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-09-14 14:27:45 -04:00
var (
2024-10-15 14:31:19 -04:00
md_MsgLinkAssertionResponse protoreflect . MessageDescriptor
fd_MsgLinkAssertionResponse_success protoreflect . FieldDescriptor
fd_MsgLinkAssertionResponse_did protoreflect . FieldDescriptor
2024-09-14 14:27:45 -04:00
)
func init ( ) {
file_did_v1_tx_proto_init ( )
2024-10-15 14:31:19 -04:00
md_MsgLinkAssertionResponse = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgLinkAssertionResponse" )
fd_MsgLinkAssertionResponse_success = md_MsgLinkAssertionResponse . Fields ( ) . ByName ( "success" )
fd_MsgLinkAssertionResponse_did = md_MsgLinkAssertionResponse . Fields ( ) . ByName ( "did" )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
var _ protoreflect . Message = ( * fastReflection_MsgLinkAssertionResponse ) ( nil )
2024-09-14 14:27:45 -04:00
2024-10-15 14:31:19 -04:00
type fastReflection_MsgLinkAssertionResponse MsgLinkAssertionResponse
2024-09-14 14:27:45 -04:00
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertionResponse ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgLinkAssertionResponse ) ( x )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertionResponse ) slowProtoReflect ( ) protoreflect . Message {
2024-09-23 12:25:15 -04:00
mi := & file_did_v1_tx_proto_msgTypes [ 3 ]
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
var _fastReflection_MsgLinkAssertionResponse_messageType fastReflection_MsgLinkAssertionResponse_messageType
var _ protoreflect . MessageType = fastReflection_MsgLinkAssertionResponse_messageType { }
2024-09-14 14:27:45 -04:00
2024-10-15 14:31:19 -04:00
type fastReflection_MsgLinkAssertionResponse_messageType struct { }
2024-09-14 14:27:45 -04:00
2024-10-15 14:31:19 -04:00
func ( x fastReflection_MsgLinkAssertionResponse_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgLinkAssertionResponse ) ( nil )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x fastReflection_MsgLinkAssertionResponse_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgLinkAssertionResponse )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x fastReflection_MsgLinkAssertionResponse_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgLinkAssertionResponse
2024-09-14 14:27:45 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgLinkAssertionResponse
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgLinkAssertionResponse_messageType
2024-09-14 14:27:45 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgLinkAssertionResponse )
2024-09-14 14:27:45 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-10-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgLinkAssertionResponse ) ( x )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2024-09-25 19:49:16 -04:00
if x . Success != false {
value := protoreflect . ValueOfBool ( x . Success )
2024-10-15 14:31:19 -04:00
if ! f ( fd_MsgLinkAssertionResponse_success , value ) {
2024-09-07 18:12:58 -04:00
return
}
}
2024-10-15 14:31:19 -04:00
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_MsgLinkAssertionResponse_did , value ) {
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-09-14 14:27:45 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.success" :
2024-09-25 19:49:16 -04:00
return x . Success != false
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.did" :
return x . Did != ""
2024-09-14 14:27:45 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertionResponse" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertionResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-09-14 14:27:45 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.success" :
2024-09-25 19:49:16 -04:00
x . Success = false
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.did" :
x . Did = ""
2024-09-14 14:27:45 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertionResponse" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertionResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-14 14:27:45 -04:00
switch descriptor . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.success" :
2024-09-25 19:49:16 -04:00
value := x . Success
2024-09-11 15:10:54 -04:00
return protoreflect . ValueOfBool ( value )
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.did" :
value := x . Did
2024-09-25 19:49:16 -04:00
return protoreflect . ValueOfString ( value )
2024-09-14 14:27:45 -04:00
default :
if descriptor . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertionResponse" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertionResponse does not contain field %s" , descriptor . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-09-14 14:27:45 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.success" :
2024-09-25 19:49:16 -04:00
x . Success = value . Bool ( )
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.did" :
x . Did = value . Interface ( ) . ( string )
2024-09-14 14:27:45 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertionResponse" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertionResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-14 14:27:45 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.success" :
panic ( fmt . Errorf ( "field success of message did.v1.MsgLinkAssertionResponse is not mutable" ) )
case "did.v1.MsgLinkAssertionResponse.did" :
panic ( fmt . Errorf ( "field did of message did.v1.MsgLinkAssertionResponse is not mutable" ) )
2024-09-14 14:27:45 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertionResponse" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertionResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-14 14:27:45 -04:00
switch fd . FullName ( ) {
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.success" :
2024-09-11 15:10:54 -04:00
return protoreflect . ValueOfBool ( false )
2024-10-15 14:31:19 -04:00
case "did.v1.MsgLinkAssertionResponse.did" :
2024-09-25 19:49:16 -04:00
return protoreflect . ValueOfString ( "" )
2024-09-14 14:27:45 -04:00
default :
if fd . IsExtension ( ) {
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgLinkAssertionResponse" ) )
2024-09-14 14:27:45 -04:00
}
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgLinkAssertionResponse does not contain field %s" , fd . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-09-14 14:27:45 -04:00
switch d . FullName ( ) {
default :
2024-10-15 14:31:19 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgLinkAssertionResponse" , d . FullName ( ) ) )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) GetUnknown ( ) protoreflect . RawFields {
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) SetUnknown ( fields protoreflect . RawFields ) {
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) IsValid ( ) bool {
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
func ( x * fastReflection_MsgLinkAssertionResponse ) ProtoMethods ( ) * protoiface . Methods {
2024-09-14 14:27:45 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-10-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAssertionResponse )
2024-09-14 14:27:45 -04:00
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
2024-08-10 15:24:22 -04:00
_ = l
2024-09-25 19:49:16 -04:00
if x . Success {
n += 2
Feature/update dockerfile (#6)
* chore: remove unused new.Dockerfile
* feat: add DID model definitions
* fix: Fix EncodePublicKey method in KeyInfo struct
* feat: Update `EncodePublicKey` to be the inverse of `DecodePublicKey`
* refactor: update AssetInfo protobuf definition
* fix: update default assets with correct asset types
* fix: Initialize IPFS client and check for mounted directories
* feat: Improve IPFS client initialization and mount checking
* feat: Add local filesystem check for IPFS and IPNS
* fix: Use Unixfs().Get() instead of Cat() for IPFS and IPNS content retrieval
* feat: Update GetCID and GetIPNS functions to read data from IPFS node
* fix: Ensure IPFS client is initialized before pinning CID
* feat: Add AddFile and AddFolder methods
* feat: add IPFS file system abstraction
* feat: Implement IPFS file, location, and filesystem abstractions
* refactor: remove unused functions and types
* refactor: remove unused FileSystem interface
* feat: add initial wasm entrypoint
* feat: add basic vault command operations
* docs: add vault module features
* test: remove test for MsgUpdateParams
* refactor: Replace PrimaryKey with Property struct in zkprop.go
* feat: Update the `CreateWitness` and `CreateAccumulator` and `VerifyWitness` and `UpdateAccumulator` to Use the new `Accumulator` and `Witness` types. Then Clean up the code in the file and refactor the marshalling methods
* <no value>
* feat: add KeyCurve and KeyType to KeyInfo in genesis
* feat: add WASM build step to devbox.json
* feat: Add zkgate.go file
* feat: Uncomment and modify zkgate code to work with Property struct
* feat: Merge zkgate.go and zkprop.go logic
* feat: implement API endpoints for profile management
* refactor: remove unused template file
* feat(orm): remove unused ORM models
* feat: add persistent SQLite database support in WASM
* fix: Update module names in protobuf files
* feat: Add method to initialize SQLite database
* fix: update go-sqlite3 dependency to version 1.14.23
* feat: introduce database layer
* feat: Implement database layer for Vault node
* feature/update-dockerfile
* feat: Add keyshares table
* fix: Reorder the SQL statements in the tables.go file
* feat: Update the `createCredentialsTable` method to match the proper Credential struct
* feat: Update createProfilesTable and add createPropertiesTable
* feat: Add constant SQL queries to queries.go and use prepared statements in db.go
* feat: Add createKeysharesTable to internal/db/db.go
* feat: Update `createPermissionsTable` to match Permissions struct
* feat: Add database enum types
* feat: Add DIDNamespace and PermissionScope enums
* feat: Add DBConfig and DBOption types
* feat: Update the db implementation to use the provided go library
* fix: update db implementation to use go-sqlite3 v0.18.2
* fix: Refactor database connection and statement handling
* feat: Simplify db.go implementation
* feat: Convert constant SQL queries to functions in queries.go and update db.go to use prepared statements
* feat: Add models.go file with database table structs
* fix: Remove unused statement map and prepare statements
diff --git a/internal/db/db.go b/internal/db/db.go
index 201d09b..d4d4d4e 100644
--- a/internal/db/db.go
+++ b/internal/db/db.go
@@ -32,11 +32,6 @@ func Open(config *DBConfig) (*DB, error) {
Conn: conn,
}
- if err := createTables(db); err != nil {
- conn.Close()
- return nil, fmt.Errorf("failed to create tables: %w", err)
- }
-
return db, nil
}
@@ -61,114 +56,3 @@ func createTables(db *DB) error {
return nil
}
-// AddAccount adds a new account to the database
-func (db *DB) AddAccount(name, address string) error {
- return db.Exec(insertAccountQuery(name, address))
-}
-
-// AddAsset adds a new asset to the database
-func (db *DB) AddAsset(name, symbol string, decimals int, chainID int64) error {
- return db.Exec(insertAssetQuery(name, symbol, decimals, chainID))
-}
-
-// AddChain adds a new chain to the database
-func (db *DB) AddChain(name, networkID string) error {
- return db.Exec(insertChainQuery(name, networkID))
-}
-
-// AddCredential adds a new credential to the database
-func (db *DB) AddCredential(
- handle, controller, attestationType, origin string,
- credentialID, publicKey []byte,
- transport string,
- signCount uint32,
- userPresent, userVerified, backupEligible, backupState, cloneWarning bool,
-) error {
- return db.Exec(insertCredentialQuery(
- handle,
- controller,
- attestationType,
- origin,
- credentialID,
- publicKey,
- transport,
- signCount,
- userPresent,
- userVerified,
- backupEligible,
- backupState,
- cloneWarning,
- ))
-}
-
-// AddProfile adds a new profile to the database
-func (db *DB) AddProfile(
- id, subject, controller, originURI, publicMetadata, privateMetadata string,
-) error {
- return db.statements["insertProfile"].Exec(
- id, subject, controller, originURI, publicMetadata, privateMetadata,
- )
-}
-
-// AddProperty adds a new property to the database
-func (db *DB) AddProperty(
- profileID, key, accumulator, propertyKey string,
-) error {
- return db.statements["insertProperty"].Exec(
- profileID, key, accumulator, propertyKey,
- )
-}
-
-// AddPermission adds a new permission to the database
-func (db *DB) AddPermission(
- serviceID string,
- grants []DIDNamespace,
- scopes []PermissionScope,
-) error {
- grantsJSON, err := json.Marshal(grants)
- if err != nil {
- return fmt.Errorf("failed to marshal grants: %w", err)
- }
-
- scopesJSON, err := json.Marshal(scopes)
- if err != nil {
- return fmt.Errorf("failed to marshal scopes: %w", err)
- }
-
- return db.statements["insertPermission"].Exec(
- serviceID, string(grantsJSON), string(scopesJSON),
- )
-}
-
-// GetPermission retrieves the permission for the given service ID
-func (db *DB) GetPermission(serviceID string) ([]DIDNamespace, []PermissionScope, error) {
- row := db.statements["getPermission"].QueryRow(serviceID)
-
- var grantsJSON, scopesJSON string
- if err := row.Scan(&grantsJSON, &scopesJSON); err != nil {
- return nil, nil, fmt.Errorf("failed to get permission: %w", err)
- }
-
- var grants []DIDNamespace
- if err := json.Unmarshal([]byte(grantsJSON), &grants); err != nil {
- return nil, nil, fmt.Errorf("failed to unmarshal grants: %w", err)
- }
-
- var scopes []PermissionScope
- if err := json.Unmarshal([]byte(scopesJSON), &scopes); err != nil {
- return nil, nil, fmt.Errorf("failed to unmarshal scopes: %w", err)
- }
-
- return grants, scopes, nil
-}
-
-// Close closes the database connection and finalizes all prepared statements
-func (db *DB) Close() error {
- for _, stmt := range db.statements {
- stmt.Finalize()
- }
- return db.Conn.Close()
-}
diff --git a/internal/db/queries.go b/internal/db/queries.go
index 807d701..e69de29 100644
--- a/internal/db/queries.go
+++ b/internal/db/queries.go
@@ -1,79 +0,0 @@
-package db
-
-import "fmt"
-
-// Account queries
-func insertAccountQuery(name, address string) string {
- return fmt.Sprintf(`INSERT INTO accounts (name, address) VALUES (%s, %s)`, name, address)
-}
-
-// Asset queries
-func insertAssetQuery(name, symbol string, decimals int, chainID int64) string {
- return fmt.Sprintf(
- `INSERT INTO assets (name, symbol, decimals, chain_id) VALUES (%s, %s, %d, %d)`,
- name,
- symbol,
- decimals,
- chainID,
- )
-}
-
-// Chain queries
-func insertChainQuery(name string, networkID string) string {
- return fmt.Sprintf(`INSERT INTO chains (name, network_id) VALUES (%s, %d)`, name, networkID)
-}
-
-// Credential queries
-func insertCredentialQuery(
- handle, controller, attestationType, origin string,
- credentialID, publicKey []byte,
- transport string,
- signCount uint32,
- userPresent, userVerified, backupEligible, backupState, cloneWarning bool,
-) string {
- return fmt.Sprintf(`INSERT INTO credentials (
- handle, controller, attestation_type, origin,
- credential_id, public_key, transport, sign_count,
- user_present, user_verified, backup_eligible,
- backup_state, clone_warning
- ) VALUES (%s, %s, %s, %s, %s, %s, %s, %d, %t, %t, %t, %t, %t)`,
- handle, controller, attestationType, origin,
- credentialID, publicKey, transport, signCount,
- userPresent, userVerified, backupEligible,
- backupState, cloneWarning)
-}
-
-// Profile queries
-func insertProfileQuery(
- id, subject, controller, originURI, publicMetadata, privateMetadata string,
-) string {
- return fmt.Sprintf(`INSERT INTO profiles (
- id, subject, controller, origin_uri,
- public_metadata, private_metadata
- ) VALUES (%s, %s, %s, %s, %s, %s)`,
- id, subject, controller, originURI,
- publicMetadata, privateMetadata)
-}
-
-// Property queries
-func insertPropertyQuery(profileID, key, accumulator, propertyKey string) string {
- return fmt.Sprintf(`INSERT INTO properties (
- profile_id, key, accumulator, property_key
- ) VALUES (%s, %s, %s, %s)`,
- profileID, key, accumulator, propertyKey)
-}
-
-// Permission queries
-func insertPermissionQuery(serviceID, grants, scopes string) string {
- return fmt.Sprintf(
- `INSERT INTO permissions (service_id, grants, scopes) VALUES (%s, %s, %s)`,
- serviceID,
- grants,
- scopes,
- )
-}
-
-// GetPermission query
-func getPermissionQuery(serviceID string) string {
- return fmt.Sprintf(`SELECT grants, scopes FROM permissions WHERE service_id = %s`, serviceID)
-}
* fix: update Makefile to use sonrd instead of wasmd
* feat: Add targets for templ and vault in Makefile and use only make in devbox.json
* feat: add SQLite database support
* bump: version 0.6.0 → 0.7.0
* refactor: upgrade actions to latest versions
2024-09-05 01:24:57 -04:00
}
2024-10-15 14:31:19 -04:00
l = len ( x . Did )
2024-09-07 18:12:58 -04:00
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAssertionResponse )
2024-09-14 14:27:45 -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 len ( x . Did ) > 0 {
i -= len ( x . Did )
copy ( dAtA [ i : ] , x . Did )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Did ) ) )
2024-09-25 19:49:16 -04:00
i --
dAtA [ i ] = 0x12
}
if x . Success {
2024-09-11 15:10:54 -04:00
i --
2024-09-25 19:49:16 -04:00
if x . Success {
2024-09-11 15:10:54 -04:00
dAtA [ i ] = 1
2024-09-23 12:25:15 -04:00
} else {
2024-09-11 15:10:54 -04:00
dAtA [ i ] = 0
2024-09-23 12:25:15 -04:00
}
2024-09-11 15:10:54 -04:00
i --
2024-09-25 19:49:16 -04:00
dAtA [ i ] = 0x8
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
x := input . Message . Interface ( ) . ( * MsgLinkAssertionResponse )
2024-09-14 14:27:45 -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-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgLinkAssertionResponse: wiretype end group for non-group" )
2024-09-14 14:27:45 -04:00
}
if fieldNum <= 0 {
2024-10-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgLinkAssertionResponse: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-09-14 14:27:45 -04:00
}
switch fieldNum {
case 1 :
Feature/update dockerfile (#6)
* chore: remove unused new.Dockerfile
* feat: add DID model definitions
* fix: Fix EncodePublicKey method in KeyInfo struct
* feat: Update `EncodePublicKey` to be the inverse of `DecodePublicKey`
* refactor: update AssetInfo protobuf definition
* fix: update default assets with correct asset types
* fix: Initialize IPFS client and check for mounted directories
* feat: Improve IPFS client initialization and mount checking
* feat: Add local filesystem check for IPFS and IPNS
* fix: Use Unixfs().Get() instead of Cat() for IPFS and IPNS content retrieval
* feat: Update GetCID and GetIPNS functions to read data from IPFS node
* fix: Ensure IPFS client is initialized before pinning CID
* feat: Add AddFile and AddFolder methods
* feat: add IPFS file system abstraction
* feat: Implement IPFS file, location, and filesystem abstractions
* refactor: remove unused functions and types
* refactor: remove unused FileSystem interface
* feat: add initial wasm entrypoint
* feat: add basic vault command operations
* docs: add vault module features
* test: remove test for MsgUpdateParams
* refactor: Replace PrimaryKey with Property struct in zkprop.go
* feat: Update the `CreateWitness` and `CreateAccumulator` and `VerifyWitness` and `UpdateAccumulator` to Use the new `Accumulator` and `Witness` types. Then Clean up the code in the file and refactor the marshalling methods
* <no value>
* feat: add KeyCurve and KeyType to KeyInfo in genesis
* feat: add WASM build step to devbox.json
* feat: Add zkgate.go file
* feat: Uncomment and modify zkgate code to work with Property struct
* feat: Merge zkgate.go and zkprop.go logic
* feat: implement API endpoints for profile management
* refactor: remove unused template file
* feat(orm): remove unused ORM models
* feat: add persistent SQLite database support in WASM
* fix: Update module names in protobuf files
* feat: Add method to initialize SQLite database
* fix: update go-sqlite3 dependency to version 1.14.23
* feat: introduce database layer
* feat: Implement database layer for Vault node
* feature/update-dockerfile
* feat: Add keyshares table
* fix: Reorder the SQL statements in the tables.go file
* feat: Update the `createCredentialsTable` method to match the proper Credential struct
* feat: Update createProfilesTable and add createPropertiesTable
* feat: Add constant SQL queries to queries.go and use prepared statements in db.go
* feat: Add createKeysharesTable to internal/db/db.go
* feat: Update `createPermissionsTable` to match Permissions struct
* feat: Add database enum types
* feat: Add DIDNamespace and PermissionScope enums
* feat: Add DBConfig and DBOption types
* feat: Update the db implementation to use the provided go library
* fix: update db implementation to use go-sqlite3 v0.18.2
* fix: Refactor database connection and statement handling
* feat: Simplify db.go implementation
* feat: Convert constant SQL queries to functions in queries.go and update db.go to use prepared statements
* feat: Add models.go file with database table structs
* fix: Remove unused statement map and prepare statements
diff --git a/internal/db/db.go b/internal/db/db.go
index 201d09b..d4d4d4e 100644
--- a/internal/db/db.go
+++ b/internal/db/db.go
@@ -32,11 +32,6 @@ func Open(config *DBConfig) (*DB, error) {
Conn: conn,
}
- if err := createTables(db); err != nil {
- conn.Close()
- return nil, fmt.Errorf("failed to create tables: %w", err)
- }
-
return db, nil
}
@@ -61,114 +56,3 @@ func createTables(db *DB) error {
return nil
}
-// AddAccount adds a new account to the database
-func (db *DB) AddAccount(name, address string) error {
- return db.Exec(insertAccountQuery(name, address))
-}
-
-// AddAsset adds a new asset to the database
-func (db *DB) AddAsset(name, symbol string, decimals int, chainID int64) error {
- return db.Exec(insertAssetQuery(name, symbol, decimals, chainID))
-}
-
-// AddChain adds a new chain to the database
-func (db *DB) AddChain(name, networkID string) error {
- return db.Exec(insertChainQuery(name, networkID))
-}
-
-// AddCredential adds a new credential to the database
-func (db *DB) AddCredential(
- handle, controller, attestationType, origin string,
- credentialID, publicKey []byte,
- transport string,
- signCount uint32,
- userPresent, userVerified, backupEligible, backupState, cloneWarning bool,
-) error {
- return db.Exec(insertCredentialQuery(
- handle,
- controller,
- attestationType,
- origin,
- credentialID,
- publicKey,
- transport,
- signCount,
- userPresent,
- userVerified,
- backupEligible,
- backupState,
- cloneWarning,
- ))
-}
-
-// AddProfile adds a new profile to the database
-func (db *DB) AddProfile(
- id, subject, controller, originURI, publicMetadata, privateMetadata string,
-) error {
- return db.statements["insertProfile"].Exec(
- id, subject, controller, originURI, publicMetadata, privateMetadata,
- )
-}
-
-// AddProperty adds a new property to the database
-func (db *DB) AddProperty(
- profileID, key, accumulator, propertyKey string,
-) error {
- return db.statements["insertProperty"].Exec(
- profileID, key, accumulator, propertyKey,
- )
-}
-
-// AddPermission adds a new permission to the database
-func (db *DB) AddPermission(
- serviceID string,
- grants []DIDNamespace,
- scopes []PermissionScope,
-) error {
- grantsJSON, err := json.Marshal(grants)
- if err != nil {
- return fmt.Errorf("failed to marshal grants: %w", err)
- }
-
- scopesJSON, err := json.Marshal(scopes)
- if err != nil {
- return fmt.Errorf("failed to marshal scopes: %w", err)
- }
-
- return db.statements["insertPermission"].Exec(
- serviceID, string(grantsJSON), string(scopesJSON),
- )
-}
-
-// GetPermission retrieves the permission for the given service ID
-func (db *DB) GetPermission(serviceID string) ([]DIDNamespace, []PermissionScope, error) {
- row := db.statements["getPermission"].QueryRow(serviceID)
-
- var grantsJSON, scopesJSON string
- if err := row.Scan(&grantsJSON, &scopesJSON); err != nil {
- return nil, nil, fmt.Errorf("failed to get permission: %w", err)
- }
-
- var grants []DIDNamespace
- if err := json.Unmarshal([]byte(grantsJSON), &grants); err != nil {
- return nil, nil, fmt.Errorf("failed to unmarshal grants: %w", err)
- }
-
- var scopes []PermissionScope
- if err := json.Unmarshal([]byte(scopesJSON), &scopes); err != nil {
- return nil, nil, fmt.Errorf("failed to unmarshal scopes: %w", err)
- }
-
- return grants, scopes, nil
-}
-
-// Close closes the database connection and finalizes all prepared statements
-func (db *DB) Close() error {
- for _, stmt := range db.statements {
- stmt.Finalize()
- }
- return db.Conn.Close()
-}
diff --git a/internal/db/queries.go b/internal/db/queries.go
index 807d701..e69de29 100644
--- a/internal/db/queries.go
+++ b/internal/db/queries.go
@@ -1,79 +0,0 @@
-package db
-
-import "fmt"
-
-// Account queries
-func insertAccountQuery(name, address string) string {
- return fmt.Sprintf(`INSERT INTO accounts (name, address) VALUES (%s, %s)`, name, address)
-}
-
-// Asset queries
-func insertAssetQuery(name, symbol string, decimals int, chainID int64) string {
- return fmt.Sprintf(
- `INSERT INTO assets (name, symbol, decimals, chain_id) VALUES (%s, %s, %d, %d)`,
- name,
- symbol,
- decimals,
- chainID,
- )
-}
-
-// Chain queries
-func insertChainQuery(name string, networkID string) string {
- return fmt.Sprintf(`INSERT INTO chains (name, network_id) VALUES (%s, %d)`, name, networkID)
-}
-
-// Credential queries
-func insertCredentialQuery(
- handle, controller, attestationType, origin string,
- credentialID, publicKey []byte,
- transport string,
- signCount uint32,
- userPresent, userVerified, backupEligible, backupState, cloneWarning bool,
-) string {
- return fmt.Sprintf(`INSERT INTO credentials (
- handle, controller, attestation_type, origin,
- credential_id, public_key, transport, sign_count,
- user_present, user_verified, backup_eligible,
- backup_state, clone_warning
- ) VALUES (%s, %s, %s, %s, %s, %s, %s, %d, %t, %t, %t, %t, %t)`,
- handle, controller, attestationType, origin,
- credentialID, publicKey, transport, signCount,
- userPresent, userVerified, backupEligible,
- backupState, cloneWarning)
-}
-
-// Profile queries
-func insertProfileQuery(
- id, subject, controller, originURI, publicMetadata, privateMetadata string,
-) string {
- return fmt.Sprintf(`INSERT INTO profiles (
- id, subject, controller, origin_uri,
- public_metadata, private_metadata
- ) VALUES (%s, %s, %s, %s, %s, %s)`,
- id, subject, controller, originURI,
- publicMetadata, privateMetadata)
-}
-
-// Property queries
-func insertPropertyQuery(profileID, key, accumulator, propertyKey string) string {
- return fmt.Sprintf(`INSERT INTO properties (
- profile_id, key, accumulator, property_key
- ) VALUES (%s, %s, %s, %s)`,
- profileID, key, accumulator, propertyKey)
-}
-
-// Permission queries
-func insertPermissionQuery(serviceID, grants, scopes string) string {
- return fmt.Sprintf(
- `INSERT INTO permissions (service_id, grants, scopes) VALUES (%s, %s, %s)`,
- serviceID,
- grants,
- scopes,
- )
-}
-
-// GetPermission query
-func getPermissionQuery(serviceID string) string {
- return fmt.Sprintf(`SELECT grants, scopes FROM permissions WHERE service_id = %s`, serviceID)
-}
* fix: update Makefile to use sonrd instead of wasmd
* feat: Add targets for templ and vault in Makefile and use only make in devbox.json
* feat: add SQLite database support
* bump: version 0.6.0 → 0.7.0
* refactor: upgrade actions to latest versions
2024-09-05 01:24:57 -04:00
if wireType != 0 {
2024-09-25 19:49:16 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Success" , wireType )
Feature/update dockerfile (#6)
* chore: remove unused new.Dockerfile
* feat: add DID model definitions
* fix: Fix EncodePublicKey method in KeyInfo struct
* feat: Update `EncodePublicKey` to be the inverse of `DecodePublicKey`
* refactor: update AssetInfo protobuf definition
* fix: update default assets with correct asset types
* fix: Initialize IPFS client and check for mounted directories
* feat: Improve IPFS client initialization and mount checking
* feat: Add local filesystem check for IPFS and IPNS
* fix: Use Unixfs().Get() instead of Cat() for IPFS and IPNS content retrieval
* feat: Update GetCID and GetIPNS functions to read data from IPFS node
* fix: Ensure IPFS client is initialized before pinning CID
* feat: Add AddFile and AddFolder methods
* feat: add IPFS file system abstraction
* feat: Implement IPFS file, location, and filesystem abstractions
* refactor: remove unused functions and types
* refactor: remove unused FileSystem interface
* feat: add initial wasm entrypoint
* feat: add basic vault command operations
* docs: add vault module features
* test: remove test for MsgUpdateParams
* refactor: Replace PrimaryKey with Property struct in zkprop.go
* feat: Update the `CreateWitness` and `CreateAccumulator` and `VerifyWitness` and `UpdateAccumulator` to Use the new `Accumulator` and `Witness` types. Then Clean up the code in the file and refactor the marshalling methods
* <no value>
* feat: add KeyCurve and KeyType to KeyInfo in genesis
* feat: add WASM build step to devbox.json
* feat: Add zkgate.go file
* feat: Uncomment and modify zkgate code to work with Property struct
* feat: Merge zkgate.go and zkprop.go logic
* feat: implement API endpoints for profile management
* refactor: remove unused template file
* feat(orm): remove unused ORM models
* feat: add persistent SQLite database support in WASM
* fix: Update module names in protobuf files
* feat: Add method to initialize SQLite database
* fix: update go-sqlite3 dependency to version 1.14.23
* feat: introduce database layer
* feat: Implement database layer for Vault node
* feature/update-dockerfile
* feat: Add keyshares table
* fix: Reorder the SQL statements in the tables.go file
* feat: Update the `createCredentialsTable` method to match the proper Credential struct
* feat: Update createProfilesTable and add createPropertiesTable
* feat: Add constant SQL queries to queries.go and use prepared statements in db.go
* feat: Add createKeysharesTable to internal/db/db.go
* feat: Update `createPermissionsTable` to match Permissions struct
* feat: Add database enum types
* feat: Add DIDNamespace and PermissionScope enums
* feat: Add DBConfig and DBOption types
* feat: Update the db implementation to use the provided go library
* fix: update db implementation to use go-sqlite3 v0.18.2
* fix: Refactor database connection and statement handling
* feat: Simplify db.go implementation
* feat: Convert constant SQL queries to functions in queries.go and update db.go to use prepared statements
* feat: Add models.go file with database table structs
* fix: Remove unused statement map and prepare statements
diff --git a/internal/db/db.go b/internal/db/db.go
index 201d09b..d4d4d4e 100644
--- a/internal/db/db.go
+++ b/internal/db/db.go
@@ -32,11 +32,6 @@ func Open(config *DBConfig) (*DB, error) {
Conn: conn,
}
- if err := createTables(db); err != nil {
- conn.Close()
- return nil, fmt.Errorf("failed to create tables: %w", err)
- }
-
return db, nil
}
@@ -61,114 +56,3 @@ func createTables(db *DB) error {
return nil
}
-// AddAccount adds a new account to the database
-func (db *DB) AddAccount(name, address string) error {
- return db.Exec(insertAccountQuery(name, address))
-}
-
-// AddAsset adds a new asset to the database
-func (db *DB) AddAsset(name, symbol string, decimals int, chainID int64) error {
- return db.Exec(insertAssetQuery(name, symbol, decimals, chainID))
-}
-
-// AddChain adds a new chain to the database
-func (db *DB) AddChain(name, networkID string) error {
- return db.Exec(insertChainQuery(name, networkID))
-}
-
-// AddCredential adds a new credential to the database
-func (db *DB) AddCredential(
- handle, controller, attestationType, origin string,
- credentialID, publicKey []byte,
- transport string,
- signCount uint32,
- userPresent, userVerified, backupEligible, backupState, cloneWarning bool,
-) error {
- return db.Exec(insertCredentialQuery(
- handle,
- controller,
- attestationType,
- origin,
- credentialID,
- publicKey,
- transport,
- signCount,
- userPresent,
- userVerified,
- backupEligible,
- backupState,
- cloneWarning,
- ))
-}
-
-// AddProfile adds a new profile to the database
-func (db *DB) AddProfile(
- id, subject, controller, originURI, publicMetadata, privateMetadata string,
-) error {
- return db.statements["insertProfile"].Exec(
- id, subject, controller, originURI, publicMetadata, privateMetadata,
- )
-}
-
-// AddProperty adds a new property to the database
-func (db *DB) AddProperty(
- profileID, key, accumulator, propertyKey string,
-) error {
- return db.statements["insertProperty"].Exec(
- profileID, key, accumulator, propertyKey,
- )
-}
-
-// AddPermission adds a new permission to the database
-func (db *DB) AddPermission(
- serviceID string,
- grants []DIDNamespace,
- scopes []PermissionScope,
-) error {
- grantsJSON, err := json.Marshal(grants)
- if err != nil {
- return fmt.Errorf("failed to marshal grants: %w", err)
- }
-
- scopesJSON, err := json.Marshal(scopes)
- if err != nil {
- return fmt.Errorf("failed to marshal scopes: %w", err)
- }
-
- return db.statements["insertPermission"].Exec(
- serviceID, string(grantsJSON), string(scopesJSON),
- )
-}
-
-// GetPermission retrieves the permission for the given service ID
-func (db *DB) GetPermission(serviceID string) ([]DIDNamespace, []PermissionScope, error) {
- row := db.statements["getPermission"].QueryRow(serviceID)
-
- var grantsJSON, scopesJSON string
- if err := row.Scan(&grantsJSON, &scopesJSON); err != nil {
- return nil, nil, fmt.Errorf("failed to get permission: %w", err)
- }
-
- var grants []DIDNamespace
- if err := json.Unmarshal([]byte(grantsJSON), &grants); err != nil {
- return nil, nil, fmt.Errorf("failed to unmarshal grants: %w", err)
- }
-
- var scopes []PermissionScope
- if err := json.Unmarshal([]byte(scopesJSON), &scopes); err != nil {
- return nil, nil, fmt.Errorf("failed to unmarshal scopes: %w", err)
- }
-
- return grants, scopes, nil
-}
-
-// Close closes the database connection and finalizes all prepared statements
-func (db *DB) Close() error {
- for _, stmt := range db.statements {
- stmt.Finalize()
- }
- return db.Conn.Close()
-}
diff --git a/internal/db/queries.go b/internal/db/queries.go
index 807d701..e69de29 100644
--- a/internal/db/queries.go
+++ b/internal/db/queries.go
@@ -1,79 +0,0 @@
-package db
-
-import "fmt"
-
-// Account queries
-func insertAccountQuery(name, address string) string {
- return fmt.Sprintf(`INSERT INTO accounts (name, address) VALUES (%s, %s)`, name, address)
-}
-
-// Asset queries
-func insertAssetQuery(name, symbol string, decimals int, chainID int64) string {
- return fmt.Sprintf(
- `INSERT INTO assets (name, symbol, decimals, chain_id) VALUES (%s, %s, %d, %d)`,
- name,
- symbol,
- decimals,
- chainID,
- )
-}
-
-// Chain queries
-func insertChainQuery(name string, networkID string) string {
- return fmt.Sprintf(`INSERT INTO chains (name, network_id) VALUES (%s, %d)`, name, networkID)
-}
-
-// Credential queries
-func insertCredentialQuery(
- handle, controller, attestationType, origin string,
- credentialID, publicKey []byte,
- transport string,
- signCount uint32,
- userPresent, userVerified, backupEligible, backupState, cloneWarning bool,
-) string {
- return fmt.Sprintf(`INSERT INTO credentials (
- handle, controller, attestation_type, origin,
- credential_id, public_key, transport, sign_count,
- user_present, user_verified, backup_eligible,
- backup_state, clone_warning
- ) VALUES (%s, %s, %s, %s, %s, %s, %s, %d, %t, %t, %t, %t, %t)`,
- handle, controller, attestationType, origin,
- credentialID, publicKey, transport, signCount,
- userPresent, userVerified, backupEligible,
- backupState, cloneWarning)
-}
-
-// Profile queries
-func insertProfileQuery(
- id, subject, controller, originURI, publicMetadata, privateMetadata string,
-) string {
- return fmt.Sprintf(`INSERT INTO profiles (
- id, subject, controller, origin_uri,
- public_metadata, private_metadata
- ) VALUES (%s, %s, %s, %s, %s, %s)`,
- id, subject, controller, originURI,
- publicMetadata, privateMetadata)
-}
-
-// Property queries
-func insertPropertyQuery(profileID, key, accumulator, propertyKey string) string {
- return fmt.Sprintf(`INSERT INTO properties (
- profile_id, key, accumulator, property_key
- ) VALUES (%s, %s, %s, %s)`,
- profileID, key, accumulator, propertyKey)
-}
-
-// Permission queries
-func insertPermissionQuery(serviceID, grants, scopes string) string {
- return fmt.Sprintf(
- `INSERT INTO permissions (service_id, grants, scopes) VALUES (%s, %s, %s)`,
- serviceID,
- grants,
- scopes,
- )
-}
-
-// GetPermission query
-func getPermissionQuery(serviceID string) string {
- return fmt.Sprintf(`SELECT grants, scopes FROM permissions WHERE service_id = %s`, serviceID)
-}
* fix: update Makefile to use sonrd instead of wasmd
* feat: Add targets for templ and vault in Makefile and use only make in devbox.json
* feat: add SQLite database support
* bump: version 0.6.0 → 0.7.0
* refactor: upgrade actions to latest versions
2024-09-05 01:24:57 -04:00
}
2024-09-25 19:49:16 -04:00
var v int
Feature/update dockerfile (#6)
* chore: remove unused new.Dockerfile
* feat: add DID model definitions
* fix: Fix EncodePublicKey method in KeyInfo struct
* feat: Update `EncodePublicKey` to be the inverse of `DecodePublicKey`
* refactor: update AssetInfo protobuf definition
* fix: update default assets with correct asset types
* fix: Initialize IPFS client and check for mounted directories
* feat: Improve IPFS client initialization and mount checking
* feat: Add local filesystem check for IPFS and IPNS
* fix: Use Unixfs().Get() instead of Cat() for IPFS and IPNS content retrieval
* feat: Update GetCID and GetIPNS functions to read data from IPFS node
* fix: Ensure IPFS client is initialized before pinning CID
* feat: Add AddFile and AddFolder methods
* feat: add IPFS file system abstraction
* feat: Implement IPFS file, location, and filesystem abstractions
* refactor: remove unused functions and types
* refactor: remove unused FileSystem interface
* feat: add initial wasm entrypoint
* feat: add basic vault command operations
* docs: add vault module features
* test: remove test for MsgUpdateParams
* refactor: Replace PrimaryKey with Property struct in zkprop.go
* feat: Update the `CreateWitness` and `CreateAccumulator` and `VerifyWitness` and `UpdateAccumulator` to Use the new `Accumulator` and `Witness` types. Then Clean up the code in the file and refactor the marshalling methods
* <no value>
* feat: add KeyCurve and KeyType to KeyInfo in genesis
* feat: add WASM build step to devbox.json
* feat: Add zkgate.go file
* feat: Uncomment and modify zkgate code to work with Property struct
* feat: Merge zkgate.go and zkprop.go logic
* feat: implement API endpoints for profile management
* refactor: remove unused template file
* feat(orm): remove unused ORM models
* feat: add persistent SQLite database support in WASM
* fix: Update module names in protobuf files
* feat: Add method to initialize SQLite database
* fix: update go-sqlite3 dependency to version 1.14.23
* feat: introduce database layer
* feat: Implement database layer for Vault node
* feature/update-dockerfile
* feat: Add keyshares table
* fix: Reorder the SQL statements in the tables.go file
* feat: Update the `createCredentialsTable` method to match the proper Credential struct
* feat: Update createProfilesTable and add createPropertiesTable
* feat: Add constant SQL queries to queries.go and use prepared statements in db.go
* feat: Add createKeysharesTable to internal/db/db.go
* feat: Update `createPermissionsTable` to match Permissions struct
* feat: Add database enum types
* feat: Add DIDNamespace and PermissionScope enums
* feat: Add DBConfig and DBOption types
* feat: Update the db implementation to use the provided go library
* fix: update db implementation to use go-sqlite3 v0.18.2
* fix: Refactor database connection and statement handling
* feat: Simplify db.go implementation
* feat: Convert constant SQL queries to functions in queries.go and update db.go to use prepared statements
* feat: Add models.go file with database table structs
* fix: Remove unused statement map and prepare statements
diff --git a/internal/db/db.go b/internal/db/db.go
index 201d09b..d4d4d4e 100644
--- a/internal/db/db.go
+++ b/internal/db/db.go
@@ -32,11 +32,6 @@ func Open(config *DBConfig) (*DB, error) {
Conn: conn,
}
- if err := createTables(db); err != nil {
- conn.Close()
- return nil, fmt.Errorf("failed to create tables: %w", err)
- }
-
return db, nil
}
@@ -61,114 +56,3 @@ func createTables(db *DB) error {
return nil
}
-// AddAccount adds a new account to the database
-func (db *DB) AddAccount(name, address string) error {
- return db.Exec(insertAccountQuery(name, address))
-}
-
-// AddAsset adds a new asset to the database
-func (db *DB) AddAsset(name, symbol string, decimals int, chainID int64) error {
- return db.Exec(insertAssetQuery(name, symbol, decimals, chainID))
-}
-
-// AddChain adds a new chain to the database
-func (db *DB) AddChain(name, networkID string) error {
- return db.Exec(insertChainQuery(name, networkID))
-}
-
-// AddCredential adds a new credential to the database
-func (db *DB) AddCredential(
- handle, controller, attestationType, origin string,
- credentialID, publicKey []byte,
- transport string,
- signCount uint32,
- userPresent, userVerified, backupEligible, backupState, cloneWarning bool,
-) error {
- return db.Exec(insertCredentialQuery(
- handle,
- controller,
- attestationType,
- origin,
- credentialID,
- publicKey,
- transport,
- signCount,
- userPresent,
- userVerified,
- backupEligible,
- backupState,
- cloneWarning,
- ))
-}
-
-// AddProfile adds a new profile to the database
-func (db *DB) AddProfile(
- id, subject, controller, originURI, publicMetadata, privateMetadata string,
-) error {
- return db.statements["insertProfile"].Exec(
- id, subject, controller, originURI, publicMetadata, privateMetadata,
- )
-}
-
-// AddProperty adds a new property to the database
-func (db *DB) AddProperty(
- profileID, key, accumulator, propertyKey string,
-) error {
- return db.statements["insertProperty"].Exec(
- profileID, key, accumulator, propertyKey,
- )
-}
-
-// AddPermission adds a new permission to the database
-func (db *DB) AddPermission(
- serviceID string,
- grants []DIDNamespace,
- scopes []PermissionScope,
-) error {
- grantsJSON, err := json.Marshal(grants)
- if err != nil {
- return fmt.Errorf("failed to marshal grants: %w", err)
- }
-
- scopesJSON, err := json.Marshal(scopes)
- if err != nil {
- return fmt.Errorf("failed to marshal scopes: %w", err)
- }
-
- return db.statements["insertPermission"].Exec(
- serviceID, string(grantsJSON), string(scopesJSON),
- )
-}
-
-// GetPermission retrieves the permission for the given service ID
-func (db *DB) GetPermission(serviceID string) ([]DIDNamespace, []PermissionScope, error) {
- row := db.statements["getPermission"].QueryRow(serviceID)
-
- var grantsJSON, scopesJSON string
- if err := row.Scan(&grantsJSON, &scopesJSON); err != nil {
- return nil, nil, fmt.Errorf("failed to get permission: %w", err)
- }
-
- var grants []DIDNamespace
- if err := json.Unmarshal([]byte(grantsJSON), &grants); err != nil {
- return nil, nil, fmt.Errorf("failed to unmarshal grants: %w", err)
- }
-
- var scopes []PermissionScope
- if err := json.Unmarshal([]byte(scopesJSON), &scopes); err != nil {
- return nil, nil, fmt.Errorf("failed to unmarshal scopes: %w", err)
- }
-
- return grants, scopes, nil
-}
-
-// Close closes the database connection and finalizes all prepared statements
-func (db *DB) Close() error {
- for _, stmt := range db.statements {
- stmt.Finalize()
- }
- return db.Conn.Close()
-}
diff --git a/internal/db/queries.go b/internal/db/queries.go
index 807d701..e69de29 100644
--- a/internal/db/queries.go
+++ b/internal/db/queries.go
@@ -1,79 +0,0 @@
-package db
-
-import "fmt"
-
-// Account queries
-func insertAccountQuery(name, address string) string {
- return fmt.Sprintf(`INSERT INTO accounts (name, address) VALUES (%s, %s)`, name, address)
-}
-
-// Asset queries
-func insertAssetQuery(name, symbol string, decimals int, chainID int64) string {
- return fmt.Sprintf(
- `INSERT INTO assets (name, symbol, decimals, chain_id) VALUES (%s, %s, %d, %d)`,
- name,
- symbol,
- decimals,
- chainID,
- )
-}
-
-// Chain queries
-func insertChainQuery(name string, networkID string) string {
- return fmt.Sprintf(`INSERT INTO chains (name, network_id) VALUES (%s, %d)`, name, networkID)
-}
-
-// Credential queries
-func insertCredentialQuery(
- handle, controller, attestationType, origin string,
- credentialID, publicKey []byte,
- transport string,
- signCount uint32,
- userPresent, userVerified, backupEligible, backupState, cloneWarning bool,
-) string {
- return fmt.Sprintf(`INSERT INTO credentials (
- handle, controller, attestation_type, origin,
- credential_id, public_key, transport, sign_count,
- user_present, user_verified, backup_eligible,
- backup_state, clone_warning
- ) VALUES (%s, %s, %s, %s, %s, %s, %s, %d, %t, %t, %t, %t, %t)`,
- handle, controller, attestationType, origin,
- credentialID, publicKey, transport, signCount,
- userPresent, userVerified, backupEligible,
- backupState, cloneWarning)
-}
-
-// Profile queries
-func insertProfileQuery(
- id, subject, controller, originURI, publicMetadata, privateMetadata string,
-) string {
- return fmt.Sprintf(`INSERT INTO profiles (
- id, subject, controller, origin_uri,
- public_metadata, private_metadata
- ) VALUES (%s, %s, %s, %s, %s, %s)`,
- id, subject, controller, originURI,
- publicMetadata, privateMetadata)
-}
-
-// Property queries
-func insertPropertyQuery(profileID, key, accumulator, propertyKey string) string {
- return fmt.Sprintf(`INSERT INTO properties (
- profile_id, key, accumulator, property_key
- ) VALUES (%s, %s, %s, %s)`,
- profileID, key, accumulator, propertyKey)
-}
-
-// Permission queries
-func insertPermissionQuery(serviceID, grants, scopes string) string {
- return fmt.Sprintf(
- `INSERT INTO permissions (service_id, grants, scopes) VALUES (%s, %s, %s)`,
- serviceID,
- grants,
- scopes,
- )
-}
-
-// GetPermission query
-func getPermissionQuery(serviceID string) string {
- return fmt.Sprintf(`SELECT grants, scopes FROM permissions WHERE service_id = %s`, serviceID)
-}
* fix: update Makefile to use sonrd instead of wasmd
* feat: Add targets for templ and vault in Makefile and use only make in devbox.json
* feat: add SQLite database support
* bump: version 0.6.0 → 0.7.0
* refactor: upgrade actions to latest versions
2024-09-05 01:24:57 -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-09-25 19:49:16 -04:00
v |= int ( b & 0x7F ) << shift
Feature/update dockerfile (#6)
* chore: remove unused new.Dockerfile
* feat: add DID model definitions
* fix: Fix EncodePublicKey method in KeyInfo struct
* feat: Update `EncodePublicKey` to be the inverse of `DecodePublicKey`
* refactor: update AssetInfo protobuf definition
* fix: update default assets with correct asset types
* fix: Initialize IPFS client and check for mounted directories
* feat: Improve IPFS client initialization and mount checking
* feat: Add local filesystem check for IPFS and IPNS
* fix: Use Unixfs().Get() instead of Cat() for IPFS and IPNS content retrieval
* feat: Update GetCID and GetIPNS functions to read data from IPFS node
* fix: Ensure IPFS client is initialized before pinning CID
* feat: Add AddFile and AddFolder methods
* feat: add IPFS file system abstraction
* feat: Implement IPFS file, location, and filesystem abstractions
* refactor: remove unused functions and types
* refactor: remove unused FileSystem interface
* feat: add initial wasm entrypoint
* feat: add basic vault command operations
* docs: add vault module features
* test: remove test for MsgUpdateParams
* refactor: Replace PrimaryKey with Property struct in zkprop.go
* feat: Update the `CreateWitness` and `CreateAccumulator` and `VerifyWitness` and `UpdateAccumulator` to Use the new `Accumulator` and `Witness` types. Then Clean up the code in the file and refactor the marshalling methods
* <no value>
* feat: add KeyCurve and KeyType to KeyInfo in genesis
* feat: add WASM build step to devbox.json
* feat: Add zkgate.go file
* feat: Uncomment and modify zkgate code to work with Property struct
* feat: Merge zkgate.go and zkprop.go logic
* feat: implement API endpoints for profile management
* refactor: remove unused template file
* feat(orm): remove unused ORM models
* feat: add persistent SQLite database support in WASM
* fix: Update module names in protobuf files
* feat: Add method to initialize SQLite database
* fix: update go-sqlite3 dependency to version 1.14.23
* feat: introduce database layer
* feat: Implement database layer for Vault node
* feature/update-dockerfile
* feat: Add keyshares table
* fix: Reorder the SQL statements in the tables.go file
* feat: Update the `createCredentialsTable` method to match the proper Credential struct
* feat: Update createProfilesTable and add createPropertiesTable
* feat: Add constant SQL queries to queries.go and use prepared statements in db.go
* feat: Add createKeysharesTable to internal/db/db.go
* feat: Update `createPermissionsTable` to match Permissions struct
* feat: Add database enum types
* feat: Add DIDNamespace and PermissionScope enums
* feat: Add DBConfig and DBOption types
* feat: Update the db implementation to use the provided go library
* fix: update db implementation to use go-sqlite3 v0.18.2
* fix: Refactor database connection and statement handling
* feat: Simplify db.go implementation
* feat: Convert constant SQL queries to functions in queries.go and update db.go to use prepared statements
* feat: Add models.go file with database table structs
* fix: Remove unused statement map and prepare statements
diff --git a/internal/db/db.go b/internal/db/db.go
index 201d09b..d4d4d4e 100644
--- a/internal/db/db.go
+++ b/internal/db/db.go
@@ -32,11 +32,6 @@ func Open(config *DBConfig) (*DB, error) {
Conn: conn,
}
- if err := createTables(db); err != nil {
- conn.Close()
- return nil, fmt.Errorf("failed to create tables: %w", err)
- }
-
return db, nil
}
@@ -61,114 +56,3 @@ func createTables(db *DB) error {
return nil
}
-// AddAccount adds a new account to the database
-func (db *DB) AddAccount(name, address string) error {
- return db.Exec(insertAccountQuery(name, address))
-}
-
-// AddAsset adds a new asset to the database
-func (db *DB) AddAsset(name, symbol string, decimals int, chainID int64) error {
- return db.Exec(insertAssetQuery(name, symbol, decimals, chainID))
-}
-
-// AddChain adds a new chain to the database
-func (db *DB) AddChain(name, networkID string) error {
- return db.Exec(insertChainQuery(name, networkID))
-}
-
-// AddCredential adds a new credential to the database
-func (db *DB) AddCredential(
- handle, controller, attestationType, origin string,
- credentialID, publicKey []byte,
- transport string,
- signCount uint32,
- userPresent, userVerified, backupEligible, backupState, cloneWarning bool,
-) error {
- return db.Exec(insertCredentialQuery(
- handle,
- controller,
- attestationType,
- origin,
- credentialID,
- publicKey,
- transport,
- signCount,
- userPresent,
- userVerified,
- backupEligible,
- backupState,
- cloneWarning,
- ))
-}
-
-// AddProfile adds a new profile to the database
-func (db *DB) AddProfile(
- id, subject, controller, originURI, publicMetadata, privateMetadata string,
-) error {
- return db.statements["insertProfile"].Exec(
- id, subject, controller, originURI, publicMetadata, privateMetadata,
- )
-}
-
-// AddProperty adds a new property to the database
-func (db *DB) AddProperty(
- profileID, key, accumulator, propertyKey string,
-) error {
- return db.statements["insertProperty"].Exec(
- profileID, key, accumulator, propertyKey,
- )
-}
-
-// AddPermission adds a new permission to the database
-func (db *DB) AddPermission(
- serviceID string,
- grants []DIDNamespace,
- scopes []PermissionScope,
-) error {
- grantsJSON, err := json.Marshal(grants)
- if err != nil {
- return fmt.Errorf("failed to marshal grants: %w", err)
- }
-
- scopesJSON, err := json.Marshal(scopes)
- if err != nil {
- return fmt.Errorf("failed to marshal scopes: %w", err)
- }
-
- return db.statements["insertPermission"].Exec(
- serviceID, string(grantsJSON), string(scopesJSON),
- )
-}
-
-// GetPermission retrieves the permission for the given service ID
-func (db *DB) GetPermission(serviceID string) ([]DIDNamespace, []PermissionScope, error) {
- row := db.statements["getPermission"].QueryRow(serviceID)
-
- var grantsJSON, scopesJSON string
- if err := row.Scan(&grantsJSON, &scopesJSON); err != nil {
- return nil, nil, fmt.Errorf("failed to get permission: %w", err)
- }
-
- var grants []DIDNamespace
- if err := json.Unmarshal([]byte(grantsJSON), &grants); err != nil {
- return nil, nil, fmt.Errorf("failed to unmarshal grants: %w", err)
- }
-
- var scopes []PermissionScope
- if err := json.Unmarshal([]byte(scopesJSON), &scopes); err != nil {
- return nil, nil, fmt.Errorf("failed to unmarshal scopes: %w", err)
- }
-
- return grants, scopes, nil
-}
-
-// Close closes the database connection and finalizes all prepared statements
-func (db *DB) Close() error {
- for _, stmt := range db.statements {
- stmt.Finalize()
- }
- return db.Conn.Close()
-}
diff --git a/internal/db/queries.go b/internal/db/queries.go
index 807d701..e69de29 100644
--- a/internal/db/queries.go
+++ b/internal/db/queries.go
@@ -1,79 +0,0 @@
-package db
-
-import "fmt"
-
-// Account queries
-func insertAccountQuery(name, address string) string {
- return fmt.Sprintf(`INSERT INTO accounts (name, address) VALUES (%s, %s)`, name, address)
-}
-
-// Asset queries
-func insertAssetQuery(name, symbol string, decimals int, chainID int64) string {
- return fmt.Sprintf(
- `INSERT INTO assets (name, symbol, decimals, chain_id) VALUES (%s, %s, %d, %d)`,
- name,
- symbol,
- decimals,
- chainID,
- )
-}
-
-// Chain queries
-func insertChainQuery(name string, networkID string) string {
- return fmt.Sprintf(`INSERT INTO chains (name, network_id) VALUES (%s, %d)`, name, networkID)
-}
-
-// Credential queries
-func insertCredentialQuery(
- handle, controller, attestationType, origin string,
- credentialID, publicKey []byte,
- transport string,
- signCount uint32,
- userPresent, userVerified, backupEligible, backupState, cloneWarning bool,
-) string {
- return fmt.Sprintf(`INSERT INTO credentials (
- handle, controller, attestation_type, origin,
- credential_id, public_key, transport, sign_count,
- user_present, user_verified, backup_eligible,
- backup_state, clone_warning
- ) VALUES (%s, %s, %s, %s, %s, %s, %s, %d, %t, %t, %t, %t, %t)`,
- handle, controller, attestationType, origin,
- credentialID, publicKey, transport, signCount,
- userPresent, userVerified, backupEligible,
- backupState, cloneWarning)
-}
-
-// Profile queries
-func insertProfileQuery(
- id, subject, controller, originURI, publicMetadata, privateMetadata string,
-) string {
- return fmt.Sprintf(`INSERT INTO profiles (
- id, subject, controller, origin_uri,
- public_metadata, private_metadata
- ) VALUES (%s, %s, %s, %s, %s, %s)`,
- id, subject, controller, originURI,
- publicMetadata, privateMetadata)
-}
-
-// Property queries
-func insertPropertyQuery(profileID, key, accumulator, propertyKey string) string {
- return fmt.Sprintf(`INSERT INTO properties (
- profile_id, key, accumulator, property_key
- ) VALUES (%s, %s, %s, %s)`,
- profileID, key, accumulator, propertyKey)
-}
-
-// Permission queries
-func insertPermissionQuery(serviceID, grants, scopes string) string {
- return fmt.Sprintf(
- `INSERT INTO permissions (service_id, grants, scopes) VALUES (%s, %s, %s)`,
- serviceID,
- grants,
- scopes,
- )
-}
-
-// GetPermission query
-func getPermissionQuery(serviceID string) string {
- return fmt.Sprintf(`SELECT grants, scopes FROM permissions WHERE service_id = %s`, serviceID)
-}
* fix: update Makefile to use sonrd instead of wasmd
* feat: Add targets for templ and vault in Makefile and use only make in devbox.json
* feat: add SQLite database support
* bump: version 0.6.0 → 0.7.0
* refactor: upgrade actions to latest versions
2024-09-05 01:24:57 -04:00
if b < 0x80 {
break
}
}
2024-09-25 19:49:16 -04:00
x . Success = bool ( v != 0 )
case 2 :
2024-09-14 14:27:45 -04:00
if wireType != 2 {
2024-10-15 14:31:19 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Did" , wireType )
2024-09-14 14:27:45 -04:00
}
2024-09-07 18:12:58 -04:00
var stringLen uint64
2024-09-14 14:27:45 -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-09-07 18:12:58 -04:00
stringLen |= uint64 ( b & 0x7F ) << shift
2024-09-14 14:27:45 -04:00
if b < 0x80 {
break
}
}
2024-09-07 18:12:58 -04:00
intStringLen := int ( stringLen )
if intStringLen < 0 {
2024-09-14 14:27:45 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
2024-09-07 18:12:58 -04:00
postIndex := iNdEx + intStringLen
2024-09-14 14:27:45 -04:00
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
}
2024-10-15 14:31:19 -04:00
x . Did = string ( dAtA [ iNdEx : postIndex ] )
2024-09-07 18:12:58 -04:00
iNdEx = postIndex
2024-09-14 14:27:45 -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 ,
2024-09-25 19:49:16 -04:00
CheckInitialized : nil ,
}
2024-09-14 14:59:10 -04:00
}
2024-10-15 14:31:19 -04:00
var _ protoreflect . Map = ( * _MsgExecuteTx_2_map ) ( nil )
2024-08-10 18:27:11 -04:00
2024-10-15 14:31:19 -04:00
type _MsgExecuteTx_2_map struct {
m * map [ string ] [ ] byte
2024-08-10 18:27:11 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x * _MsgExecuteTx_2_map ) Len ( ) int {
if x . m == nil {
return 0
}
return len ( * x . m )
2024-08-10 18:27:11 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x * _MsgExecuteTx_2_map ) Range ( f func ( protoreflect . MapKey , protoreflect . Value ) bool ) {
if x . m == nil {
return
}
for k , v := range * x . m {
mapKey := ( protoreflect . MapKey ) ( protoreflect . ValueOfString ( k ) )
mapValue := protoreflect . ValueOfBytes ( v )
if ! f ( mapKey , mapValue ) {
break
2024-08-10 18:27:11 -04:00
}
}
}
2024-10-15 14:31:19 -04:00
func ( x * _MsgExecuteTx_2_map ) Has ( key protoreflect . MapKey ) bool {
if x . m == nil {
return false
}
keyUnwrapped := key . String ( )
concreteValue := keyUnwrapped
_ , ok := ( * x . m ) [ concreteValue ]
return ok
}
func ( x * _MsgExecuteTx_2_map ) Clear ( key protoreflect . MapKey ) {
if x . m == nil {
return
}
keyUnwrapped := key . String ( )
concreteKey := keyUnwrapped
delete ( * x . m , concreteKey )
}
func ( x * _MsgExecuteTx_2_map ) Get ( key protoreflect . MapKey ) protoreflect . Value {
if x . m == nil {
return protoreflect . Value { }
}
keyUnwrapped := key . String ( )
concreteKey := keyUnwrapped
v , ok := ( * x . m ) [ concreteKey ]
if ! ok {
return protoreflect . Value { }
}
return protoreflect . ValueOfBytes ( v )
}
func ( x * _MsgExecuteTx_2_map ) Set ( key protoreflect . MapKey , value protoreflect . Value ) {
if ! key . IsValid ( ) || ! value . IsValid ( ) {
panic ( "invalid key or value provided" )
}
keyUnwrapped := key . String ( )
concreteKey := keyUnwrapped
valueUnwrapped := value . Bytes ( )
concreteValue := valueUnwrapped
( * x . m ) [ concreteKey ] = concreteValue
}
func ( x * _MsgExecuteTx_2_map ) Mutable ( key protoreflect . MapKey ) protoreflect . Value {
panic ( "should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message" )
}
func ( x * _MsgExecuteTx_2_map ) NewValue ( ) protoreflect . Value {
var v [ ] byte
return protoreflect . ValueOfBytes ( v )
}
func ( x * _MsgExecuteTx_2_map ) IsValid ( ) bool {
return x . m != nil
}
var (
md_MsgExecuteTx protoreflect . MessageDescriptor
fd_MsgExecuteTx_controller protoreflect . FieldDescriptor
fd_MsgExecuteTx_messages protoreflect . FieldDescriptor
fd_MsgExecuteTx_macaroon_token protoreflect . FieldDescriptor
)
func init ( ) {
file_did_v1_tx_proto_init ( )
md_MsgExecuteTx = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgExecuteTx" )
fd_MsgExecuteTx_controller = md_MsgExecuteTx . Fields ( ) . ByName ( "controller" )
fd_MsgExecuteTx_messages = md_MsgExecuteTx . Fields ( ) . ByName ( "messages" )
fd_MsgExecuteTx_macaroon_token = md_MsgExecuteTx . Fields ( ) . ByName ( "macaroon_token" )
}
var _ protoreflect . Message = ( * fastReflection_MsgExecuteTx ) ( nil )
type fastReflection_MsgExecuteTx MsgExecuteTx
func ( x * MsgExecuteTx ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgExecuteTx ) ( x )
}
func ( x * MsgExecuteTx ) slowProtoReflect ( ) protoreflect . Message {
mi := & file_did_v1_tx_proto_msgTypes [ 4 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_MsgExecuteTx_messageType fastReflection_MsgExecuteTx_messageType
var _ protoreflect . MessageType = fastReflection_MsgExecuteTx_messageType { }
type fastReflection_MsgExecuteTx_messageType struct { }
func ( x fastReflection_MsgExecuteTx_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgExecuteTx ) ( nil )
}
func ( x fastReflection_MsgExecuteTx_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgExecuteTx )
}
func ( x fastReflection_MsgExecuteTx_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgExecuteTx
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_MsgExecuteTx ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgExecuteTx
}
// 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_MsgExecuteTx ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgExecuteTx_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_MsgExecuteTx ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgExecuteTx )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_MsgExecuteTx ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgExecuteTx ) ( 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_MsgExecuteTx ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Controller != "" {
value := protoreflect . ValueOfString ( x . Controller )
if ! f ( fd_MsgExecuteTx_controller , value ) {
return
}
}
if len ( x . Messages ) != 0 {
value := protoreflect . ValueOfMap ( & _MsgExecuteTx_2_map { m : & x . Messages } )
if ! f ( fd_MsgExecuteTx_messages , value ) {
return
}
}
if x . MacaroonToken != "" {
value := protoreflect . ValueOfString ( x . MacaroonToken )
if ! f ( fd_MsgExecuteTx_macaroon_token , 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_MsgExecuteTx ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName ( ) {
case "did.v1.MsgExecuteTx.controller" :
return x . Controller != ""
case "did.v1.MsgExecuteTx.messages" :
return len ( x . Messages ) != 0
case "did.v1.MsgExecuteTx.macaroon_token" :
return x . MacaroonToken != ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTx" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTx 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_MsgExecuteTx ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName ( ) {
case "did.v1.MsgExecuteTx.controller" :
x . Controller = ""
case "did.v1.MsgExecuteTx.messages" :
x . Messages = nil
case "did.v1.MsgExecuteTx.macaroon_token" :
x . MacaroonToken = ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTx" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTx 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_MsgExecuteTx ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName ( ) {
case "did.v1.MsgExecuteTx.controller" :
value := x . Controller
return protoreflect . ValueOfString ( value )
case "did.v1.MsgExecuteTx.messages" :
if len ( x . Messages ) == 0 {
return protoreflect . ValueOfMap ( & _MsgExecuteTx_2_map { } )
}
mapValue := & _MsgExecuteTx_2_map { m : & x . Messages }
return protoreflect . ValueOfMap ( mapValue )
case "did.v1.MsgExecuteTx.macaroon_token" :
value := x . MacaroonToken
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTx" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTx 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_MsgExecuteTx ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName ( ) {
case "did.v1.MsgExecuteTx.controller" :
x . Controller = value . Interface ( ) . ( string )
case "did.v1.MsgExecuteTx.messages" :
mv := value . Map ( )
cmv := mv . ( * _MsgExecuteTx_2_map )
x . Messages = * cmv . m
case "did.v1.MsgExecuteTx.macaroon_token" :
x . MacaroonToken = value . Interface ( ) . ( string )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTx" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTx 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_MsgExecuteTx ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgExecuteTx.messages" :
if x . Messages == nil {
x . Messages = make ( map [ string ] [ ] byte )
}
value := & _MsgExecuteTx_2_map { m : & x . Messages }
return protoreflect . ValueOfMap ( value )
case "did.v1.MsgExecuteTx.controller" :
panic ( fmt . Errorf ( "field controller of message did.v1.MsgExecuteTx is not mutable" ) )
case "did.v1.MsgExecuteTx.macaroon_token" :
panic ( fmt . Errorf ( "field macaroon_token of message did.v1.MsgExecuteTx is not mutable" ) )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTx" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTx 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_MsgExecuteTx ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgExecuteTx.controller" :
return protoreflect . ValueOfString ( "" )
case "did.v1.MsgExecuteTx.messages" :
m := make ( map [ string ] [ ] byte )
return protoreflect . ValueOfMap ( & _MsgExecuteTx_2_map { m : & m } )
case "did.v1.MsgExecuteTx.macaroon_token" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTx" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTx 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_MsgExecuteTx ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName ( ) {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgExecuteTx" , 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_MsgExecuteTx ) 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_MsgExecuteTx ) 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_MsgExecuteTx ) 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_MsgExecuteTx ) ProtoMethods ( ) * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ( ) . ( * MsgExecuteTx )
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 . Controller )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
if len ( x . Messages ) > 0 {
SiZeMaP := func ( k string , v [ ] byte ) {
l = 1 + len ( v ) + runtime . Sov ( uint64 ( len ( v ) ) )
mapEntrySize := 1 + len ( k ) + runtime . Sov ( uint64 ( len ( k ) ) ) + l
n += mapEntrySize + 1 + runtime . Sov ( uint64 ( mapEntrySize ) )
}
if options . Deterministic {
sortme := make ( [ ] string , 0 , len ( x . Messages ) )
for k := range x . Messages {
sortme = append ( sortme , k )
}
sort . Strings ( sortme )
for _ , k := range sortme {
v := x . Messages [ k ]
SiZeMaP ( k , v )
}
} else {
for k , v := range x . Messages {
SiZeMaP ( k , v )
}
}
}
l = len ( x . MacaroonToken )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ( ) . ( * MsgExecuteTx )
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 . MacaroonToken ) > 0 {
i -= len ( x . MacaroonToken )
copy ( dAtA [ i : ] , x . MacaroonToken )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . MacaroonToken ) ) )
i --
dAtA [ i ] = 0x1a
}
if len ( x . Messages ) > 0 {
MaRsHaLmAp := func ( k string , v [ ] byte ) ( protoiface . MarshalOutput , error ) {
baseI := i
i -= len ( v )
copy ( dAtA [ i : ] , v )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( v ) ) )
i --
dAtA [ i ] = 0x12
i -= len ( k )
copy ( dAtA [ i : ] , k )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( k ) ) )
i --
dAtA [ i ] = 0xa
i = runtime . EncodeVarint ( dAtA , i , uint64 ( baseI - i ) )
i --
dAtA [ i ] = 0x12
return protoiface . MarshalOutput { } , nil
}
if options . Deterministic {
keysForMessages := make ( [ ] string , 0 , len ( x . Messages ) )
for k := range x . Messages {
keysForMessages = append ( keysForMessages , string ( k ) )
}
sort . Slice ( keysForMessages , func ( i , j int ) bool {
return keysForMessages [ i ] < keysForMessages [ j ]
} )
for iNdEx := len ( keysForMessages ) - 1 ; iNdEx >= 0 ; iNdEx -- {
v := x . Messages [ string ( keysForMessages [ iNdEx ] ) ]
out , err := MaRsHaLmAp ( keysForMessages [ iNdEx ] , v )
if err != nil {
return out , err
}
}
} else {
for k := range x . Messages {
v := x . Messages [ k ]
out , err := MaRsHaLmAp ( k , v )
if err != nil {
return out , err
}
}
}
}
if len ( x . Controller ) > 0 {
i -= len ( x . Controller )
copy ( dAtA [ i : ] , x . Controller )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Controller ) ) )
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 ( ) . ( * MsgExecuteTx )
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: MsgExecuteTx: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgExecuteTx: 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 Controller" , 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 . Controller = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Messages" , 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 . Messages == nil {
x . Messages = make ( map [ string ] [ ] byte )
}
var mapkey string
var mapvalue [ ] byte
for iNdEx < postIndex {
entryPreIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
if fieldNum == 1 {
var stringLenmapkey uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLenmapkey |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLenmapkey := int ( stringLenmapkey )
if intStringLenmapkey < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postStringIndexmapkey := iNdEx + intStringLenmapkey
if postStringIndexmapkey < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postStringIndexmapkey > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
mapkey = string ( dAtA [ iNdEx : postStringIndexmapkey ] )
iNdEx = postStringIndexmapkey
} else if fieldNum == 2 {
var mapbyteLen 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 ++
mapbyteLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intMapbyteLen := int ( mapbyteLen )
if intMapbyteLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postbytesIndex := iNdEx + intMapbyteLen
if postbytesIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postbytesIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
mapvalue = make ( [ ] byte , mapbyteLen )
copy ( mapvalue , dAtA [ iNdEx : postbytesIndex ] )
iNdEx = postbytesIndex
} else {
iNdEx = entryPreIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx : ] )
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > postIndex {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
iNdEx += skippy
}
}
x . Messages [ mapkey ] = mapvalue
iNdEx = postIndex
case 3 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field MacaroonToken" , 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 . MacaroonToken = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx : ] )
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct { } { } ,
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var (
md_MsgExecuteTxResponse protoreflect . MessageDescriptor
fd_MsgExecuteTxResponse_success protoreflect . FieldDescriptor
fd_MsgExecuteTxResponse_tx_hash protoreflect . FieldDescriptor
)
func init ( ) {
file_did_v1_tx_proto_init ( )
md_MsgExecuteTxResponse = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgExecuteTxResponse" )
fd_MsgExecuteTxResponse_success = md_MsgExecuteTxResponse . Fields ( ) . ByName ( "success" )
fd_MsgExecuteTxResponse_tx_hash = md_MsgExecuteTxResponse . Fields ( ) . ByName ( "tx_hash" )
}
var _ protoreflect . Message = ( * fastReflection_MsgExecuteTxResponse ) ( nil )
type fastReflection_MsgExecuteTxResponse MsgExecuteTxResponse
func ( x * MsgExecuteTxResponse ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgExecuteTxResponse ) ( x )
}
func ( x * MsgExecuteTxResponse ) slowProtoReflect ( ) protoreflect . Message {
mi := & file_did_v1_tx_proto_msgTypes [ 5 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_MsgExecuteTxResponse_messageType fastReflection_MsgExecuteTxResponse_messageType
var _ protoreflect . MessageType = fastReflection_MsgExecuteTxResponse_messageType { }
type fastReflection_MsgExecuteTxResponse_messageType struct { }
func ( x fastReflection_MsgExecuteTxResponse_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgExecuteTxResponse ) ( nil )
}
func ( x fastReflection_MsgExecuteTxResponse_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgExecuteTxResponse )
}
func ( x fastReflection_MsgExecuteTxResponse_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgExecuteTxResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_MsgExecuteTxResponse ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgExecuteTxResponse
}
// 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_MsgExecuteTxResponse ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgExecuteTxResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_MsgExecuteTxResponse ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgExecuteTxResponse )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_MsgExecuteTxResponse ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgExecuteTxResponse ) ( 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_MsgExecuteTxResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Success != false {
value := protoreflect . ValueOfBool ( x . Success )
if ! f ( fd_MsgExecuteTxResponse_success , value ) {
return
}
}
if x . TxHash != "" {
value := protoreflect . ValueOfString ( x . TxHash )
if ! f ( fd_MsgExecuteTxResponse_tx_hash , value ) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func ( x * fastReflection_MsgExecuteTxResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName ( ) {
case "did.v1.MsgExecuteTxResponse.success" :
return x . Success != false
case "did.v1.MsgExecuteTxResponse.tx_hash" :
return x . TxHash != ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTxResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTxResponse 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_MsgExecuteTxResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName ( ) {
case "did.v1.MsgExecuteTxResponse.success" :
x . Success = false
case "did.v1.MsgExecuteTxResponse.tx_hash" :
x . TxHash = ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTxResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTxResponse 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_MsgExecuteTxResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName ( ) {
case "did.v1.MsgExecuteTxResponse.success" :
value := x . Success
return protoreflect . ValueOfBool ( value )
case "did.v1.MsgExecuteTxResponse.tx_hash" :
value := x . TxHash
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTxResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTxResponse 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_MsgExecuteTxResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName ( ) {
case "did.v1.MsgExecuteTxResponse.success" :
x . Success = value . Bool ( )
case "did.v1.MsgExecuteTxResponse.tx_hash" :
x . TxHash = value . Interface ( ) . ( string )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTxResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTxResponse 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_MsgExecuteTxResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgExecuteTxResponse.success" :
panic ( fmt . Errorf ( "field success of message did.v1.MsgExecuteTxResponse is not mutable" ) )
case "did.v1.MsgExecuteTxResponse.tx_hash" :
panic ( fmt . Errorf ( "field tx_hash of message did.v1.MsgExecuteTxResponse is not mutable" ) )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTxResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTxResponse 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_MsgExecuteTxResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgExecuteTxResponse.success" :
return protoreflect . ValueOfBool ( false )
case "did.v1.MsgExecuteTxResponse.tx_hash" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgExecuteTxResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgExecuteTxResponse 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_MsgExecuteTxResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName ( ) {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgExecuteTxResponse" , 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_MsgExecuteTxResponse ) 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_MsgExecuteTxResponse ) 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_MsgExecuteTxResponse ) 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_MsgExecuteTxResponse ) ProtoMethods ( ) * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ( ) . ( * MsgExecuteTxResponse )
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
}
l = len ( x . TxHash )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ( ) . ( * MsgExecuteTxResponse )
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 . TxHash ) > 0 {
i -= len ( x . TxHash )
copy ( dAtA [ i : ] , x . TxHash )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . TxHash ) ) )
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 ) {
x := input . Message . Interface ( ) . ( * MsgExecuteTxResponse )
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: MsgExecuteTxResponse: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgExecuteTxResponse: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field 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 TxHash" , 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 . TxHash = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx : ] )
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct { } { } ,
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var (
md_MsgUnlinkAssertion protoreflect . MessageDescriptor
fd_MsgUnlinkAssertion_controller protoreflect . FieldDescriptor
fd_MsgUnlinkAssertion_assertion_did protoreflect . FieldDescriptor
fd_MsgUnlinkAssertion_macaroon_token protoreflect . FieldDescriptor
)
func init ( ) {
file_did_v1_tx_proto_init ( )
md_MsgUnlinkAssertion = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgUnlinkAssertion" )
fd_MsgUnlinkAssertion_controller = md_MsgUnlinkAssertion . Fields ( ) . ByName ( "controller" )
fd_MsgUnlinkAssertion_assertion_did = md_MsgUnlinkAssertion . Fields ( ) . ByName ( "assertion_did" )
fd_MsgUnlinkAssertion_macaroon_token = md_MsgUnlinkAssertion . Fields ( ) . ByName ( "macaroon_token" )
}
var _ protoreflect . Message = ( * fastReflection_MsgUnlinkAssertion ) ( nil )
type fastReflection_MsgUnlinkAssertion MsgUnlinkAssertion
func ( x * MsgUnlinkAssertion ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgUnlinkAssertion ) ( x )
}
func ( x * MsgUnlinkAssertion ) slowProtoReflect ( ) protoreflect . Message {
mi := & file_did_v1_tx_proto_msgTypes [ 6 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_MsgUnlinkAssertion_messageType fastReflection_MsgUnlinkAssertion_messageType
var _ protoreflect . MessageType = fastReflection_MsgUnlinkAssertion_messageType { }
type fastReflection_MsgUnlinkAssertion_messageType struct { }
func ( x fastReflection_MsgUnlinkAssertion_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgUnlinkAssertion ) ( nil )
}
func ( x fastReflection_MsgUnlinkAssertion_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUnlinkAssertion )
}
func ( x fastReflection_MsgUnlinkAssertion_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUnlinkAssertion
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_MsgUnlinkAssertion ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUnlinkAssertion
}
// 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_MsgUnlinkAssertion ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgUnlinkAssertion_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_MsgUnlinkAssertion ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUnlinkAssertion )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_MsgUnlinkAssertion ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgUnlinkAssertion ) ( 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_MsgUnlinkAssertion ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Controller != "" {
value := protoreflect . ValueOfString ( x . Controller )
if ! f ( fd_MsgUnlinkAssertion_controller , value ) {
return
}
}
if x . AssertionDid != "" {
value := protoreflect . ValueOfString ( x . AssertionDid )
if ! f ( fd_MsgUnlinkAssertion_assertion_did , value ) {
return
}
}
if x . MacaroonToken != "" {
value := protoreflect . ValueOfString ( x . MacaroonToken )
if ! f ( fd_MsgUnlinkAssertion_macaroon_token , 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_MsgUnlinkAssertion ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAssertion.controller" :
return x . Controller != ""
case "did.v1.MsgUnlinkAssertion.assertion_did" :
return x . AssertionDid != ""
case "did.v1.MsgUnlinkAssertion.macaroon_token" :
return x . MacaroonToken != ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertion" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertion 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_MsgUnlinkAssertion ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAssertion.controller" :
x . Controller = ""
case "did.v1.MsgUnlinkAssertion.assertion_did" :
x . AssertionDid = ""
case "did.v1.MsgUnlinkAssertion.macaroon_token" :
x . MacaroonToken = ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertion" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertion 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_MsgUnlinkAssertion ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName ( ) {
case "did.v1.MsgUnlinkAssertion.controller" :
value := x . Controller
return protoreflect . ValueOfString ( value )
case "did.v1.MsgUnlinkAssertion.assertion_did" :
value := x . AssertionDid
return protoreflect . ValueOfString ( value )
case "did.v1.MsgUnlinkAssertion.macaroon_token" :
value := x . MacaroonToken
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertion" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertion 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_MsgUnlinkAssertion ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAssertion.controller" :
x . Controller = value . Interface ( ) . ( string )
case "did.v1.MsgUnlinkAssertion.assertion_did" :
x . AssertionDid = value . Interface ( ) . ( string )
case "did.v1.MsgUnlinkAssertion.macaroon_token" :
x . MacaroonToken = value . Interface ( ) . ( string )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertion" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertion 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_MsgUnlinkAssertion ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAssertion.controller" :
panic ( fmt . Errorf ( "field controller of message did.v1.MsgUnlinkAssertion is not mutable" ) )
case "did.v1.MsgUnlinkAssertion.assertion_did" :
panic ( fmt . Errorf ( "field assertion_did of message did.v1.MsgUnlinkAssertion is not mutable" ) )
case "did.v1.MsgUnlinkAssertion.macaroon_token" :
panic ( fmt . Errorf ( "field macaroon_token of message did.v1.MsgUnlinkAssertion is not mutable" ) )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertion" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertion 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_MsgUnlinkAssertion ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAssertion.controller" :
return protoreflect . ValueOfString ( "" )
case "did.v1.MsgUnlinkAssertion.assertion_did" :
return protoreflect . ValueOfString ( "" )
case "did.v1.MsgUnlinkAssertion.macaroon_token" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertion" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertion 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_MsgUnlinkAssertion ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName ( ) {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgUnlinkAssertion" , 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_MsgUnlinkAssertion ) 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_MsgUnlinkAssertion ) 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_MsgUnlinkAssertion ) 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_MsgUnlinkAssertion ) ProtoMethods ( ) * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ( ) . ( * MsgUnlinkAssertion )
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 . Controller )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . AssertionDid )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . MacaroonToken )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ( ) . ( * MsgUnlinkAssertion )
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 . MacaroonToken ) > 0 {
i -= len ( x . MacaroonToken )
copy ( dAtA [ i : ] , x . MacaroonToken )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . MacaroonToken ) ) )
i --
dAtA [ i ] = 0x1a
}
if len ( x . AssertionDid ) > 0 {
i -= len ( x . AssertionDid )
copy ( dAtA [ i : ] , x . AssertionDid )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . AssertionDid ) ) )
i --
dAtA [ i ] = 0x12
}
if len ( x . Controller ) > 0 {
i -= len ( x . Controller )
copy ( dAtA [ i : ] , x . Controller )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Controller ) ) )
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 ( ) . ( * MsgUnlinkAssertion )
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: MsgUnlinkAssertion: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgUnlinkAssertion: 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 Controller" , 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 . Controller = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field AssertionDid" , 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 . AssertionDid = 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 MacaroonToken" , 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 . MacaroonToken = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx : ] )
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct { } { } ,
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var (
md_MsgUnlinkAssertionResponse protoreflect . MessageDescriptor
fd_MsgUnlinkAssertionResponse_success protoreflect . FieldDescriptor
fd_MsgUnlinkAssertionResponse_did protoreflect . FieldDescriptor
)
func init ( ) {
file_did_v1_tx_proto_init ( )
md_MsgUnlinkAssertionResponse = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgUnlinkAssertionResponse" )
fd_MsgUnlinkAssertionResponse_success = md_MsgUnlinkAssertionResponse . Fields ( ) . ByName ( "success" )
fd_MsgUnlinkAssertionResponse_did = md_MsgUnlinkAssertionResponse . Fields ( ) . ByName ( "did" )
}
var _ protoreflect . Message = ( * fastReflection_MsgUnlinkAssertionResponse ) ( nil )
type fastReflection_MsgUnlinkAssertionResponse MsgUnlinkAssertionResponse
func ( x * MsgUnlinkAssertionResponse ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgUnlinkAssertionResponse ) ( x )
}
func ( x * MsgUnlinkAssertionResponse ) slowProtoReflect ( ) protoreflect . Message {
mi := & file_did_v1_tx_proto_msgTypes [ 7 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_MsgUnlinkAssertionResponse_messageType fastReflection_MsgUnlinkAssertionResponse_messageType
var _ protoreflect . MessageType = fastReflection_MsgUnlinkAssertionResponse_messageType { }
type fastReflection_MsgUnlinkAssertionResponse_messageType struct { }
func ( x fastReflection_MsgUnlinkAssertionResponse_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgUnlinkAssertionResponse ) ( nil )
}
func ( x fastReflection_MsgUnlinkAssertionResponse_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUnlinkAssertionResponse )
}
func ( x fastReflection_MsgUnlinkAssertionResponse_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUnlinkAssertionResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_MsgUnlinkAssertionResponse ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUnlinkAssertionResponse
}
// 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_MsgUnlinkAssertionResponse ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgUnlinkAssertionResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_MsgUnlinkAssertionResponse ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUnlinkAssertionResponse )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_MsgUnlinkAssertionResponse ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgUnlinkAssertionResponse ) ( 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_MsgUnlinkAssertionResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Success != false {
value := protoreflect . ValueOfBool ( x . Success )
if ! f ( fd_MsgUnlinkAssertionResponse_success , value ) {
return
}
}
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_MsgUnlinkAssertionResponse_did , 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_MsgUnlinkAssertionResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAssertionResponse.success" :
return x . Success != false
case "did.v1.MsgUnlinkAssertionResponse.did" :
return x . Did != ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertionResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertionResponse 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_MsgUnlinkAssertionResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAssertionResponse.success" :
x . Success = false
case "did.v1.MsgUnlinkAssertionResponse.did" :
x . Did = ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertionResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertionResponse 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_MsgUnlinkAssertionResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName ( ) {
case "did.v1.MsgUnlinkAssertionResponse.success" :
value := x . Success
return protoreflect . ValueOfBool ( value )
case "did.v1.MsgUnlinkAssertionResponse.did" :
value := x . Did
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertionResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertionResponse 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_MsgUnlinkAssertionResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAssertionResponse.success" :
x . Success = value . Bool ( )
case "did.v1.MsgUnlinkAssertionResponse.did" :
x . Did = value . Interface ( ) . ( string )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertionResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertionResponse 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_MsgUnlinkAssertionResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAssertionResponse.success" :
panic ( fmt . Errorf ( "field success of message did.v1.MsgUnlinkAssertionResponse is not mutable" ) )
case "did.v1.MsgUnlinkAssertionResponse.did" :
panic ( fmt . Errorf ( "field did of message did.v1.MsgUnlinkAssertionResponse is not mutable" ) )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertionResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertionResponse 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_MsgUnlinkAssertionResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAssertionResponse.success" :
return protoreflect . ValueOfBool ( false )
case "did.v1.MsgUnlinkAssertionResponse.did" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAssertionResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAssertionResponse 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_MsgUnlinkAssertionResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName ( ) {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgUnlinkAssertionResponse" , 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_MsgUnlinkAssertionResponse ) 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_MsgUnlinkAssertionResponse ) 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_MsgUnlinkAssertionResponse ) 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_MsgUnlinkAssertionResponse ) ProtoMethods ( ) * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ( ) . ( * MsgUnlinkAssertionResponse )
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
}
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 ) {
x := input . Message . Interface ( ) . ( * MsgUnlinkAssertionResponse )
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 ] = 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 ) {
x := input . Message . Interface ( ) . ( * MsgUnlinkAssertionResponse )
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: MsgUnlinkAssertionResponse: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgUnlinkAssertionResponse: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field 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 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 (
md_MsgUnlinkAuthentication protoreflect . MessageDescriptor
fd_MsgUnlinkAuthentication_controller protoreflect . FieldDescriptor
fd_MsgUnlinkAuthentication_authentication_did protoreflect . FieldDescriptor
fd_MsgUnlinkAuthentication_macaroon_token protoreflect . FieldDescriptor
)
func init ( ) {
file_did_v1_tx_proto_init ( )
md_MsgUnlinkAuthentication = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgUnlinkAuthentication" )
fd_MsgUnlinkAuthentication_controller = md_MsgUnlinkAuthentication . Fields ( ) . ByName ( "controller" )
fd_MsgUnlinkAuthentication_authentication_did = md_MsgUnlinkAuthentication . Fields ( ) . ByName ( "authentication_did" )
fd_MsgUnlinkAuthentication_macaroon_token = md_MsgUnlinkAuthentication . Fields ( ) . ByName ( "macaroon_token" )
}
var _ protoreflect . Message = ( * fastReflection_MsgUnlinkAuthentication ) ( nil )
type fastReflection_MsgUnlinkAuthentication MsgUnlinkAuthentication
func ( x * MsgUnlinkAuthentication ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgUnlinkAuthentication ) ( x )
}
func ( x * MsgUnlinkAuthentication ) slowProtoReflect ( ) protoreflect . Message {
mi := & file_did_v1_tx_proto_msgTypes [ 8 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_MsgUnlinkAuthentication_messageType fastReflection_MsgUnlinkAuthentication_messageType
var _ protoreflect . MessageType = fastReflection_MsgUnlinkAuthentication_messageType { }
type fastReflection_MsgUnlinkAuthentication_messageType struct { }
func ( x fastReflection_MsgUnlinkAuthentication_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgUnlinkAuthentication ) ( nil )
}
func ( x fastReflection_MsgUnlinkAuthentication_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUnlinkAuthentication )
}
func ( x fastReflection_MsgUnlinkAuthentication_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUnlinkAuthentication
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_MsgUnlinkAuthentication ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUnlinkAuthentication
}
// 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_MsgUnlinkAuthentication ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgUnlinkAuthentication_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_MsgUnlinkAuthentication ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUnlinkAuthentication )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_MsgUnlinkAuthentication ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgUnlinkAuthentication ) ( 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_MsgUnlinkAuthentication ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Controller != "" {
value := protoreflect . ValueOfString ( x . Controller )
if ! f ( fd_MsgUnlinkAuthentication_controller , value ) {
return
}
}
if x . AuthenticationDid != "" {
value := protoreflect . ValueOfString ( x . AuthenticationDid )
if ! f ( fd_MsgUnlinkAuthentication_authentication_did , value ) {
return
}
}
if x . MacaroonToken != "" {
value := protoreflect . ValueOfString ( x . MacaroonToken )
if ! f ( fd_MsgUnlinkAuthentication_macaroon_token , 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_MsgUnlinkAuthentication ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAuthentication.controller" :
return x . Controller != ""
case "did.v1.MsgUnlinkAuthentication.authentication_did" :
return x . AuthenticationDid != ""
case "did.v1.MsgUnlinkAuthentication.macaroon_token" :
return x . MacaroonToken != ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthentication" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthentication 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_MsgUnlinkAuthentication ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAuthentication.controller" :
x . Controller = ""
case "did.v1.MsgUnlinkAuthentication.authentication_did" :
x . AuthenticationDid = ""
case "did.v1.MsgUnlinkAuthentication.macaroon_token" :
x . MacaroonToken = ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthentication" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthentication 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_MsgUnlinkAuthentication ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName ( ) {
case "did.v1.MsgUnlinkAuthentication.controller" :
value := x . Controller
return protoreflect . ValueOfString ( value )
case "did.v1.MsgUnlinkAuthentication.authentication_did" :
value := x . AuthenticationDid
return protoreflect . ValueOfString ( value )
case "did.v1.MsgUnlinkAuthentication.macaroon_token" :
value := x . MacaroonToken
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthentication" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthentication 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_MsgUnlinkAuthentication ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAuthentication.controller" :
x . Controller = value . Interface ( ) . ( string )
case "did.v1.MsgUnlinkAuthentication.authentication_did" :
x . AuthenticationDid = value . Interface ( ) . ( string )
case "did.v1.MsgUnlinkAuthentication.macaroon_token" :
x . MacaroonToken = value . Interface ( ) . ( string )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthentication" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthentication 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_MsgUnlinkAuthentication ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAuthentication.controller" :
panic ( fmt . Errorf ( "field controller of message did.v1.MsgUnlinkAuthentication is not mutable" ) )
case "did.v1.MsgUnlinkAuthentication.authentication_did" :
panic ( fmt . Errorf ( "field authentication_did of message did.v1.MsgUnlinkAuthentication is not mutable" ) )
case "did.v1.MsgUnlinkAuthentication.macaroon_token" :
panic ( fmt . Errorf ( "field macaroon_token of message did.v1.MsgUnlinkAuthentication is not mutable" ) )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthentication" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthentication 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_MsgUnlinkAuthentication ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAuthentication.controller" :
return protoreflect . ValueOfString ( "" )
case "did.v1.MsgUnlinkAuthentication.authentication_did" :
return protoreflect . ValueOfString ( "" )
case "did.v1.MsgUnlinkAuthentication.macaroon_token" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthentication" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthentication 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_MsgUnlinkAuthentication ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName ( ) {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgUnlinkAuthentication" , 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_MsgUnlinkAuthentication ) 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_MsgUnlinkAuthentication ) 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_MsgUnlinkAuthentication ) 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_MsgUnlinkAuthentication ) ProtoMethods ( ) * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ( ) . ( * MsgUnlinkAuthentication )
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 . Controller )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . AuthenticationDid )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . MacaroonToken )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ( ) . ( * MsgUnlinkAuthentication )
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 . MacaroonToken ) > 0 {
i -= len ( x . MacaroonToken )
copy ( dAtA [ i : ] , x . MacaroonToken )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . MacaroonToken ) ) )
i --
dAtA [ i ] = 0x1a
}
if len ( x . AuthenticationDid ) > 0 {
i -= len ( x . AuthenticationDid )
copy ( dAtA [ i : ] , x . AuthenticationDid )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . AuthenticationDid ) ) )
i --
dAtA [ i ] = 0x12
}
if len ( x . Controller ) > 0 {
i -= len ( x . Controller )
copy ( dAtA [ i : ] , x . Controller )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Controller ) ) )
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 ( ) . ( * MsgUnlinkAuthentication )
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: MsgUnlinkAuthentication: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgUnlinkAuthentication: 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 Controller" , 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 . Controller = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field AuthenticationDid" , 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 . AuthenticationDid = 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 MacaroonToken" , 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 . MacaroonToken = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx : ] )
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct { } { } ,
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var (
md_MsgUnlinkAuthenticationResponse protoreflect . MessageDescriptor
fd_MsgUnlinkAuthenticationResponse_success protoreflect . FieldDescriptor
fd_MsgUnlinkAuthenticationResponse_did protoreflect . FieldDescriptor
)
func init ( ) {
file_did_v1_tx_proto_init ( )
md_MsgUnlinkAuthenticationResponse = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgUnlinkAuthenticationResponse" )
fd_MsgUnlinkAuthenticationResponse_success = md_MsgUnlinkAuthenticationResponse . Fields ( ) . ByName ( "success" )
fd_MsgUnlinkAuthenticationResponse_did = md_MsgUnlinkAuthenticationResponse . Fields ( ) . ByName ( "did" )
}
var _ protoreflect . Message = ( * fastReflection_MsgUnlinkAuthenticationResponse ) ( nil )
type fastReflection_MsgUnlinkAuthenticationResponse MsgUnlinkAuthenticationResponse
func ( x * MsgUnlinkAuthenticationResponse ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgUnlinkAuthenticationResponse ) ( x )
}
func ( x * MsgUnlinkAuthenticationResponse ) slowProtoReflect ( ) protoreflect . Message {
mi := & file_did_v1_tx_proto_msgTypes [ 9 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_MsgUnlinkAuthenticationResponse_messageType fastReflection_MsgUnlinkAuthenticationResponse_messageType
var _ protoreflect . MessageType = fastReflection_MsgUnlinkAuthenticationResponse_messageType { }
type fastReflection_MsgUnlinkAuthenticationResponse_messageType struct { }
func ( x fastReflection_MsgUnlinkAuthenticationResponse_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgUnlinkAuthenticationResponse ) ( nil )
}
func ( x fastReflection_MsgUnlinkAuthenticationResponse_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUnlinkAuthenticationResponse )
}
func ( x fastReflection_MsgUnlinkAuthenticationResponse_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUnlinkAuthenticationResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_MsgUnlinkAuthenticationResponse ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUnlinkAuthenticationResponse
}
// 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_MsgUnlinkAuthenticationResponse ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgUnlinkAuthenticationResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_MsgUnlinkAuthenticationResponse ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUnlinkAuthenticationResponse )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_MsgUnlinkAuthenticationResponse ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgUnlinkAuthenticationResponse ) ( 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_MsgUnlinkAuthenticationResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Success != false {
value := protoreflect . ValueOfBool ( x . Success )
if ! f ( fd_MsgUnlinkAuthenticationResponse_success , value ) {
return
}
}
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_MsgUnlinkAuthenticationResponse_did , 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_MsgUnlinkAuthenticationResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAuthenticationResponse.success" :
return x . Success != false
case "did.v1.MsgUnlinkAuthenticationResponse.did" :
return x . Did != ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthenticationResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthenticationResponse 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_MsgUnlinkAuthenticationResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAuthenticationResponse.success" :
x . Success = false
case "did.v1.MsgUnlinkAuthenticationResponse.did" :
x . Did = ""
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthenticationResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthenticationResponse 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_MsgUnlinkAuthenticationResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName ( ) {
case "did.v1.MsgUnlinkAuthenticationResponse.success" :
value := x . Success
return protoreflect . ValueOfBool ( value )
case "did.v1.MsgUnlinkAuthenticationResponse.did" :
value := x . Did
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthenticationResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthenticationResponse 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_MsgUnlinkAuthenticationResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAuthenticationResponse.success" :
x . Success = value . Bool ( )
case "did.v1.MsgUnlinkAuthenticationResponse.did" :
x . Did = value . Interface ( ) . ( string )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthenticationResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthenticationResponse 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_MsgUnlinkAuthenticationResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAuthenticationResponse.success" :
panic ( fmt . Errorf ( "field success of message did.v1.MsgUnlinkAuthenticationResponse is not mutable" ) )
case "did.v1.MsgUnlinkAuthenticationResponse.did" :
panic ( fmt . Errorf ( "field did of message did.v1.MsgUnlinkAuthenticationResponse is not mutable" ) )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthenticationResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthenticationResponse 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_MsgUnlinkAuthenticationResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "did.v1.MsgUnlinkAuthenticationResponse.success" :
return protoreflect . ValueOfBool ( false )
case "did.v1.MsgUnlinkAuthenticationResponse.did" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUnlinkAuthenticationResponse" ) )
}
panic ( fmt . Errorf ( "message did.v1.MsgUnlinkAuthenticationResponse 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_MsgUnlinkAuthenticationResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName ( ) {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgUnlinkAuthenticationResponse" , 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_MsgUnlinkAuthenticationResponse ) 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_MsgUnlinkAuthenticationResponse ) 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_MsgUnlinkAuthenticationResponse ) 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_MsgUnlinkAuthenticationResponse ) ProtoMethods ( ) * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ( ) . ( * MsgUnlinkAuthenticationResponse )
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
}
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 ) {
x := input . Message . Interface ( ) . ( * MsgUnlinkAuthenticationResponse )
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 ] = 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 ) {
x := input . Message . Interface ( ) . ( * MsgUnlinkAuthenticationResponse )
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: MsgUnlinkAuthenticationResponse: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgUnlinkAuthenticationResponse: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field 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 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 (
md_MsgUpdateParams protoreflect . MessageDescriptor
fd_MsgUpdateParams_authority protoreflect . FieldDescriptor
fd_MsgUpdateParams_params protoreflect . FieldDescriptor
fd_MsgUpdateParams_token protoreflect . FieldDescriptor
)
func init ( ) {
file_did_v1_tx_proto_init ( )
md_MsgUpdateParams = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgUpdateParams" )
fd_MsgUpdateParams_authority = md_MsgUpdateParams . Fields ( ) . ByName ( "authority" )
fd_MsgUpdateParams_params = md_MsgUpdateParams . Fields ( ) . ByName ( "params" )
fd_MsgUpdateParams_token = md_MsgUpdateParams . Fields ( ) . ByName ( "token" )
}
var _ protoreflect . Message = ( * fastReflection_MsgUpdateParams ) ( nil )
type fastReflection_MsgUpdateParams MsgUpdateParams
func ( x * MsgUpdateParams ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgUpdateParams ) ( x )
}
func ( x * MsgUpdateParams ) slowProtoReflect ( ) protoreflect . Message {
mi := & file_did_v1_tx_proto_msgTypes [ 10 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
var _ protoreflect . MessageType = fastReflection_MsgUpdateParams_messageType { }
type fastReflection_MsgUpdateParams_messageType struct { }
func ( x fastReflection_MsgUpdateParams_messageType ) Zero ( ) protoreflect . Message {
2024-09-25 19:49:16 -04:00
return ( * fastReflection_MsgUpdateParams ) ( nil )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
func ( x fastReflection_MsgUpdateParams_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUpdateParams )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
func ( x fastReflection_MsgUpdateParams_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUpdateParams
2024-08-10 18:27:11 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUpdateParams
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgUpdateParams_messageType
2024-08-10 18:27:11 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUpdateParams )
2024-08-10 18:27:11 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgUpdateParams ) ( x )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Authority != "" {
value := protoreflect . ValueOfString ( x . Authority )
if ! f ( fd_MsgUpdateParams_authority , value ) {
2024-08-10 18:27:11 -04:00
return
}
}
2024-09-25 19:49:16 -04:00
if x . Params != nil {
value := protoreflect . ValueOfMessage ( x . Params . ProtoReflect ( ) )
if ! f ( fd_MsgUpdateParams_params , value ) {
return
}
}
if x . Token != "" {
value := protoreflect . ValueOfString ( x . Token )
if ! f ( fd_MsgUpdateParams_token , value ) {
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-08-10 18:27:11 -04:00
switch fd . FullName ( ) {
2024-09-25 19:49:16 -04:00
case "did.v1.MsgUpdateParams.authority" :
return x . Authority != ""
case "did.v1.MsgUpdateParams.params" :
return x . Params != nil
case "did.v1.MsgUpdateParams.token" :
return x . Token != ""
2024-08-10 18:27:11 -04:00
default :
if fd . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParams" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParams does not contain field %s" , fd . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-08-10 18:27:11 -04:00
switch fd . FullName ( ) {
2024-09-25 19:49:16 -04:00
case "did.v1.MsgUpdateParams.authority" :
x . Authority = ""
case "did.v1.MsgUpdateParams.params" :
x . Params = nil
case "did.v1.MsgUpdateParams.token" :
x . Token = ""
2024-08-10 18:27:11 -04:00
default :
if fd . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParams" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParams does not contain field %s" , fd . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-08-10 18:27:11 -04:00
switch descriptor . FullName ( ) {
2024-09-25 19:49:16 -04:00
case "did.v1.MsgUpdateParams.authority" :
value := x . Authority
2024-08-10 18:27:11 -04:00
return protoreflect . ValueOfString ( value )
2024-09-25 19:49:16 -04:00
case "did.v1.MsgUpdateParams.params" :
value := x . Params
2024-09-23 12:25:15 -04:00
return protoreflect . ValueOfMessage ( value . ProtoReflect ( ) )
2024-09-25 19:49:16 -04:00
case "did.v1.MsgUpdateParams.token" :
value := x . Token
return protoreflect . ValueOfString ( value )
2024-08-10 18:27:11 -04:00
default :
if descriptor . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParams" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParams does not contain field %s" , descriptor . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-08-10 18:27:11 -04:00
switch fd . FullName ( ) {
2024-09-25 19:49:16 -04:00
case "did.v1.MsgUpdateParams.authority" :
x . Authority = value . Interface ( ) . ( string )
case "did.v1.MsgUpdateParams.params" :
x . Params = value . Message ( ) . Interface ( ) . ( * Params )
case "did.v1.MsgUpdateParams.token" :
x . Token = value . Interface ( ) . ( string )
2024-08-10 18:27:11 -04:00
default :
if fd . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParams" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParams does not contain field %s" , fd . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-08-10 18:27:11 -04:00
switch fd . FullName ( ) {
2024-09-25 19:49:16 -04:00
case "did.v1.MsgUpdateParams.params" :
if x . Params == nil {
x . Params = new ( Params )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
return protoreflect . ValueOfMessage ( x . Params . ProtoReflect ( ) )
case "did.v1.MsgUpdateParams.authority" :
panic ( fmt . Errorf ( "field authority of message did.v1.MsgUpdateParams is not mutable" ) )
case "did.v1.MsgUpdateParams.token" :
panic ( fmt . Errorf ( "field token of message did.v1.MsgUpdateParams is not mutable" ) )
2024-08-10 18:27:11 -04:00
default :
if fd . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParams" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParams does not contain field %s" , fd . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-08-10 18:27:11 -04:00
switch fd . FullName ( ) {
2024-09-25 19:49:16 -04:00
case "did.v1.MsgUpdateParams.authority" :
2024-08-10 18:27:11 -04:00
return protoreflect . ValueOfString ( "" )
2024-09-25 19:49:16 -04:00
case "did.v1.MsgUpdateParams.params" :
m := new ( Params )
2024-09-23 12:25:15 -04:00
return protoreflect . ValueOfMessage ( m . ProtoReflect ( ) )
2024-09-25 19:49:16 -04:00
case "did.v1.MsgUpdateParams.token" :
return protoreflect . ValueOfString ( "" )
2024-08-10 18:27:11 -04:00
default :
if fd . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParams" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParams does not contain field %s" , fd . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-08-10 18:27:11 -04:00
switch d . FullName ( ) {
default :
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgUpdateParams" , d . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) GetUnknown ( ) protoreflect . RawFields {
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) SetUnknown ( fields protoreflect . RawFields ) {
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) IsValid ( ) bool {
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParams ) ProtoMethods ( ) * protoiface . Methods {
2024-08-10 18:27:11 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-09-25 19:49:16 -04:00
x := input . Message . Interface ( ) . ( * MsgUpdateParams )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
l = len ( x . Authority )
2024-08-10 18:27:11 -04:00
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
2024-09-25 19:49:16 -04:00
if x . Params != nil {
l = options . Size ( x . Params )
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . Token )
if l > 0 {
2024-09-23 12:25:15 -04:00
n += 1 + l + runtime . Sov ( uint64 ( l ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
x := input . Message . Interface ( ) . ( * MsgUpdateParams )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
if len ( x . Token ) > 0 {
i -= len ( x . Token )
copy ( dAtA [ i : ] , x . Token )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Token ) ) )
i --
dAtA [ i ] = 0x1a
}
if x . Params != nil {
encoded , err := options . Marshal ( x . Params )
2024-09-23 12:25:15 -04:00
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 ) ) )
2024-08-10 18:27:11 -04:00
i --
dAtA [ i ] = 0x12
}
2024-09-25 19:49:16 -04:00
if len ( x . Authority ) > 0 {
i -= len ( x . Authority )
copy ( dAtA [ i : ] , x . Authority )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Authority ) ) )
2024-08-10 18:27:11 -04:00
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-09-25 19:49:16 -04:00
x := input . Message . Interface ( ) . ( * MsgUpdateParams )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgUpdateParams: wiretype end group for non-group" )
2024-08-10 18:27:11 -04:00
}
if fieldNum <= 0 {
2024-09-25 19:49:16 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgUpdateParams: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-08-10 18:27:11 -04:00
}
switch fieldNum {
case 1 :
if wireType != 2 {
2024-09-25 19:49:16 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Authority" , wireType )
2024-08-10 18:27:11 -04:00
}
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
2024-09-23 12:25:15 -04:00
}
2024-09-25 19:49:16 -04:00
x . Authority = string ( dAtA [ iNdEx : postIndex ] )
2024-08-10 18:27:11 -04:00
iNdEx = postIndex
case 2 :
2024-09-23 12:25:15 -04:00
if wireType != 2 {
2024-09-25 19:49:16 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Params" , wireType )
2024-09-23 12:25:15 -04:00
}
2024-09-14 14:59:10 -04:00
var msglen int
2024-09-23 12:25:15 -04:00
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
2024-08-10 18:27:11 -04:00
}
2024-09-23 12:25:15 -04:00
if iNdEx >= l {
2024-08-10 18:27:11 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
2024-09-23 12:25:15 -04:00
b := dAtA [ iNdEx ]
iNdEx ++
2024-09-14 14:59:10 -04:00
msglen |= int ( b & 0x7F ) << shift
2024-09-23 12:25:15 -04:00
if b < 0x80 {
break
2024-08-10 18:27:11 -04:00
}
}
2024-09-14 14:59:10 -04:00
if msglen < 0 {
2024-09-23 12:25:15 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
2024-09-14 14:59:10 -04:00
postIndex := iNdEx + msglen
2024-09-23 12:25:15 -04:00
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
}
2024-09-25 19:49:16 -04:00
if x . Params == nil {
x . Params = & Params { }
2024-09-14 14:59:10 -04:00
}
2024-09-25 19:49:16 -04:00
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ] , x . Params ) ; err != nil {
2024-09-14 14:59:10 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
2024-08-10 18:27:11 -04:00
}
2024-09-23 12:25:15 -04:00
iNdEx = postIndex
2024-09-25 19:49:16 -04:00
case 3 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Token" , 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 . Token = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
2024-08-10 18:27:11 -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 ,
}
}
var (
2024-09-25 19:49:16 -04:00
md_MsgUpdateParamsResponse protoreflect . MessageDescriptor
2024-08-10 18:27:11 -04:00
)
func init ( ) {
file_did_v1_tx_proto_init ( )
2024-09-25 19:49:16 -04:00
md_MsgUpdateParamsResponse = File_did_v1_tx_proto . Messages ( ) . ByName ( "MsgUpdateParamsResponse" )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
var _ protoreflect . Message = ( * fastReflection_MsgUpdateParamsResponse ) ( nil )
2024-08-10 18:27:11 -04:00
2024-09-25 19:49:16 -04:00
type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
2024-08-10 18:27:11 -04:00
2024-09-25 19:49:16 -04:00
func ( x * MsgUpdateParamsResponse ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_MsgUpdateParamsResponse ) ( x )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
func ( x * MsgUpdateParamsResponse ) slowProtoReflect ( ) protoreflect . Message {
2024-10-15 14:31:19 -04:00
mi := & file_did_v1_tx_proto_msgTypes [ 11 ]
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
var _ protoreflect . MessageType = fastReflection_MsgUpdateParamsResponse_messageType { }
2024-08-10 18:27:11 -04:00
2024-09-25 19:49:16 -04:00
type fastReflection_MsgUpdateParamsResponse_messageType struct { }
2024-08-10 18:27:11 -04:00
2024-09-25 19:49:16 -04:00
func ( x fastReflection_MsgUpdateParamsResponse_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_MsgUpdateParamsResponse ) ( nil )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
func ( x fastReflection_MsgUpdateParamsResponse_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUpdateParamsResponse )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
func ( x fastReflection_MsgUpdateParamsResponse_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUpdateParamsResponse
2024-08-10 18:27:11 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2024-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_MsgUpdateParamsResponse
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) Type ( ) protoreflect . MessageType {
return _fastReflection_MsgUpdateParamsResponse_messageType
2024-08-10 18:27:11 -04:00
}
// New returns a newly allocated and mutable empty message.
2024-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) New ( ) protoreflect . Message {
return new ( fastReflection_MsgUpdateParamsResponse )
2024-08-10 18:27:11 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2024-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) Interface ( ) protoreflect . ProtoMessage {
return ( * MsgUpdateParamsResponse ) ( x )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-08-10 18:27:11 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParamsResponse" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParamsResponse does not contain field %s" , fd . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-08-10 18:27:11 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParamsResponse" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParamsResponse does not contain field %s" , fd . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-08-10 18:27:11 -04:00
switch descriptor . FullName ( ) {
default :
if descriptor . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParamsResponse" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParamsResponse does not contain field %s" , descriptor . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-08-10 18:27:11 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParamsResponse" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParamsResponse does not contain field %s" , fd . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-08-10 18:27:11 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParamsResponse" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParamsResponse does not contain field %s" , fd . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-08-10 18:27:11 -04:00
switch fd . FullName ( ) {
default :
if fd . IsExtension ( ) {
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: did.v1.MsgUpdateParamsResponse" ) )
2024-08-10 18:27:11 -04:00
}
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "message did.v1.MsgUpdateParamsResponse does not contain field %s" , fd . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-08-10 18:27:11 -04:00
switch d . FullName ( ) {
default :
2024-09-25 19:49:16 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in did.v1.MsgUpdateParamsResponse" , d . FullName ( ) ) )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) GetUnknown ( ) protoreflect . RawFields {
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) SetUnknown ( fields protoreflect . RawFields ) {
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) IsValid ( ) bool {
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
func ( x * fastReflection_MsgUpdateParamsResponse ) ProtoMethods ( ) * protoiface . Methods {
2024-08-10 18:27:11 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2024-09-25 19:49:16 -04:00
x := input . Message . Interface ( ) . ( * MsgUpdateParamsResponse )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
x := input . Message . Interface ( ) . ( * MsgUpdateParamsResponse )
2024-08-10 18:27:11 -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 {
2024-09-25 19:49:16 -04:00
i -= len ( x . unknownFields )
copy ( dAtA [ i : ] , x . unknownFields )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
x := input . Message . Interface ( ) . ( * MsgUpdateParamsResponse )
2024-08-10 18:27:11 -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-09-25 19:49:16 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgUpdateParamsResponse: wiretype end group for non-group" )
2024-08-10 18:27:11 -04:00
}
if fieldNum <= 0 {
2024-09-25 19:49:16 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-08-10 18:27:11 -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
}
2024-09-25 19:49:16 -04:00
return & protoiface . Methods {
NoUnkeyedLiterals : struct { } { } ,
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
2024-09-23 12:25:15 -04:00
}
}
2024-08-10 18:27:11 -04:00
2024-09-25 19:49:16 -04:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: did/v1/tx.proto
2024-08-10 18:27:11 -04:00
2024-09-25 19:49:16 -04:00
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 )
)
2024-08-10 18:27:11 -04:00
2024-10-15 14:31:19 -04:00
// MsgLinkAuthentication is the message type for the LinkAuthentication RPC.
type MsgLinkAuthentication struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Controller is the address of the controller to authenticate.
Controller string ` protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty" `
// Subject is the subject of the authentication.
Subject string ` protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty" `
// Assertion is the assertion of the authentication.
Assertion string ` protobuf:"bytes,3,opt,name=assertion,proto3" json:"assertion,omitempty" `
// Authentication is the authentication of the authentication.
CredentialId [ ] byte ` protobuf:"bytes,4,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty" `
// token is the macron token to authenticate the operation.
MacaroonToken string ` protobuf:"bytes,5,opt,name=macaroon_token,json=macaroonToken,proto3" json:"macaroon_token,omitempty" `
}
func ( x * MsgLinkAuthentication ) Reset ( ) {
* x = MsgLinkAuthentication { }
if protoimpl . UnsafeEnabled {
mi := & file_did_v1_tx_proto_msgTypes [ 0 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * MsgLinkAuthentication ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * MsgLinkAuthentication ) ProtoMessage ( ) { }
// Deprecated: Use MsgLinkAuthentication.ProtoReflect.Descriptor instead.
func ( * MsgLinkAuthentication ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 0 }
}
func ( x * MsgLinkAuthentication ) GetController ( ) string {
if x != nil {
return x . Controller
}
return ""
}
func ( x * MsgLinkAuthentication ) GetSubject ( ) string {
if x != nil {
return x . Subject
}
return ""
}
func ( x * MsgLinkAuthentication ) GetAssertion ( ) string {
if x != nil {
return x . Assertion
}
return ""
}
func ( x * MsgLinkAuthentication ) GetCredentialId ( ) [ ] byte {
if x != nil {
return x . CredentialId
}
return nil
}
func ( x * MsgLinkAuthentication ) GetMacaroonToken ( ) string {
if x != nil {
return x . MacaroonToken
}
return ""
}
// MsgLinkAuthenticationResponse is the response type for the
// LinkAuthentication RPC.
type MsgLinkAuthenticationResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Success returns true if the specified cid is valid and not already
// encrypted.
Success bool ` protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty" `
// Controller is the address of the initialized controller.
Did string ` protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty" `
}
func ( x * MsgLinkAuthenticationResponse ) Reset ( ) {
* x = MsgLinkAuthenticationResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_did_v1_tx_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * MsgLinkAuthenticationResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * MsgLinkAuthenticationResponse ) ProtoMessage ( ) { }
// Deprecated: Use MsgLinkAuthenticationResponse.ProtoReflect.Descriptor instead.
func ( * MsgLinkAuthenticationResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 1 }
}
func ( x * MsgLinkAuthenticationResponse ) GetSuccess ( ) bool {
if x != nil {
return x . Success
}
return false
}
func ( x * MsgLinkAuthenticationResponse ) GetDid ( ) string {
if x != nil {
return x . Did
}
return ""
}
// MsgLinkAssertion is the message type for the LinkAssertion RPC.
type MsgLinkAssertion struct {
2024-07-05 22:20:13 -04:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2024-10-15 14:31:19 -04:00
// Controller is the address of the controller to authenticate.
Controller string ` protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty" `
// Subject is the subject of the authentication.
Subject string ` protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty" `
// Assertion is the assertion of the authentication.
Assertion string ` protobuf:"bytes,3,opt,name=assertion,proto3" json:"assertion,omitempty" `
// token is the macron token to authenticate the operation.
MacaroonToken string ` protobuf:"bytes,4,opt,name=macaroon_token,json=macaroonToken,proto3" json:"macaroon_token,omitempty" `
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertion ) Reset ( ) {
* x = MsgLinkAssertion { }
2024-07-05 22:20:13 -04:00
if protoimpl . UnsafeEnabled {
2024-10-15 14:31:19 -04:00
mi := & file_did_v1_tx_proto_msgTypes [ 2 ]
2024-07-05 22:20:13 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertion ) String ( ) string {
2024-07-05 22:20:13 -04:00
return protoimpl . X . MessageStringOf ( x )
}
2024-10-15 14:31:19 -04:00
func ( * MsgLinkAssertion ) ProtoMessage ( ) { }
2024-07-05 22:20:13 -04:00
2024-10-15 14:31:19 -04:00
// Deprecated: Use MsgLinkAssertion.ProtoReflect.Descriptor instead.
func ( * MsgLinkAssertion ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 2 }
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertion ) GetController ( ) string {
2024-07-05 22:20:13 -04:00
if x != nil {
2024-10-15 14:31:19 -04:00
return x . Controller
}
return ""
}
func ( x * MsgLinkAssertion ) GetSubject ( ) string {
if x != nil {
return x . Subject
2024-07-05 22:20:13 -04:00
}
return ""
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertion ) GetAssertion ( ) string {
if x != nil {
return x . Assertion
}
return ""
}
func ( x * MsgLinkAssertion ) GetMacaroonToken ( ) string {
if x != nil {
return x . MacaroonToken
}
return ""
}
// MsgLinkAssertionResponse is the response type for the
// LinkAssertion RPC.
type MsgLinkAssertionResponse struct {
2024-07-05 22:20:13 -04:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2024-09-25 19:49:16 -04:00
// Success returns true if the specified cid is valid and not already
// encrypted.
2024-09-14 14:27:45 -04:00
Success bool ` protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty" `
// Controller is the address of the initialized controller.
2024-10-15 14:31:19 -04:00
Did string ` protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty" `
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertionResponse ) Reset ( ) {
* x = MsgLinkAssertionResponse { }
2024-07-05 22:20:13 -04:00
if protoimpl . UnsafeEnabled {
2024-10-15 14:31:19 -04:00
mi := & file_did_v1_tx_proto_msgTypes [ 3 ]
2024-07-05 22:20:13 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertionResponse ) String ( ) string {
2024-07-05 22:20:13 -04:00
return protoimpl . X . MessageStringOf ( x )
}
2024-10-15 14:31:19 -04:00
func ( * MsgLinkAssertionResponse ) ProtoMessage ( ) { }
2024-07-05 22:20:13 -04:00
2024-10-15 14:31:19 -04:00
// Deprecated: Use MsgLinkAssertionResponse.ProtoReflect.Descriptor instead.
func ( * MsgLinkAssertionResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 3 }
2024-07-05 22:20:13 -04:00
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertionResponse ) GetSuccess ( ) bool {
2024-09-14 14:27:45 -04:00
if x != nil {
return x . Success
}
return false
}
2024-10-15 14:31:19 -04:00
func ( x * MsgLinkAssertionResponse ) GetDid ( ) string {
2024-07-05 22:20:13 -04:00
if x != nil {
2024-10-15 14:31:19 -04:00
return x . Did
2024-07-05 22:20:13 -04:00
}
return ""
}
2024-09-25 19:49:16 -04:00
// MsgExecuteTx is the message type for the ExecuteTx RPC.
type MsgExecuteTx struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Controller is the address of the controller to authenticate.
Controller string ` protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty" `
// Messages is the list of messages to execute.
Messages map [ string ] [ ] byte ` protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" `
// MacaroonToken is the macaroon token to authenticate the operation.
MacaroonToken string ` protobuf:"bytes,3,opt,name=macaroon_token,json=macaroonToken,proto3" json:"macaroon_token,omitempty" `
}
func ( x * MsgExecuteTx ) Reset ( ) {
* x = MsgExecuteTx { }
if protoimpl . UnsafeEnabled {
2024-10-15 14:31:19 -04:00
mi := & file_did_v1_tx_proto_msgTypes [ 4 ]
2024-09-25 19:49:16 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * MsgExecuteTx ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * MsgExecuteTx ) ProtoMessage ( ) { }
// Deprecated: Use MsgExecuteTx.ProtoReflect.Descriptor instead.
func ( * MsgExecuteTx ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2024-10-15 14:31:19 -04:00
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 4 }
2024-09-25 19:49:16 -04:00
}
func ( x * MsgExecuteTx ) GetController ( ) string {
if x != nil {
return x . Controller
}
return ""
}
func ( x * MsgExecuteTx ) GetMessages ( ) map [ string ] [ ] byte {
if x != nil {
return x . Messages
}
return nil
}
func ( x * MsgExecuteTx ) GetMacaroonToken ( ) string {
if x != nil {
return x . MacaroonToken
}
return ""
}
// MsgExecuteTxResponse is the response type for the ExecuteTx RPC.
type MsgExecuteTxResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
Success bool ` protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty" `
TxHash string ` protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty" `
}
func ( x * MsgExecuteTxResponse ) Reset ( ) {
* x = MsgExecuteTxResponse { }
if protoimpl . UnsafeEnabled {
2024-10-15 14:31:19 -04:00
mi := & file_did_v1_tx_proto_msgTypes [ 5 ]
2024-09-25 19:49:16 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * MsgExecuteTxResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * MsgExecuteTxResponse ) ProtoMessage ( ) { }
// Deprecated: Use MsgExecuteTxResponse.ProtoReflect.Descriptor instead.
func ( * MsgExecuteTxResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2024-10-15 14:31:19 -04:00
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 5 }
2024-09-25 19:49:16 -04:00
}
func ( x * MsgExecuteTxResponse ) GetSuccess ( ) bool {
if x != nil {
return x . Success
}
return false
}
func ( x * MsgExecuteTxResponse ) GetTxHash ( ) string {
if x != nil {
return x . TxHash
}
return ""
}
2024-10-15 14:31:19 -04:00
// MsgUnlinkAssertion is the message type for the UnlinkAssertion RPC.
type MsgUnlinkAssertion struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Controller is the address of the controller to authenticate.
Controller string ` protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty" `
// Assertion is the assertion of the authentication.
AssertionDid string ` protobuf:"bytes,2,opt,name=assertion_did,json=assertionDid,proto3" json:"assertion_did,omitempty" `
// token is the macron token to authenticate the operation.
MacaroonToken string ` protobuf:"bytes,3,opt,name=macaroon_token,json=macaroonToken,proto3" json:"macaroon_token,omitempty" `
}
func ( x * MsgUnlinkAssertion ) Reset ( ) {
* x = MsgUnlinkAssertion { }
if protoimpl . UnsafeEnabled {
mi := & file_did_v1_tx_proto_msgTypes [ 6 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * MsgUnlinkAssertion ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * MsgUnlinkAssertion ) ProtoMessage ( ) { }
// Deprecated: Use MsgUnlinkAssertion.ProtoReflect.Descriptor instead.
func ( * MsgUnlinkAssertion ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 6 }
}
func ( x * MsgUnlinkAssertion ) GetController ( ) string {
if x != nil {
return x . Controller
}
return ""
}
func ( x * MsgUnlinkAssertion ) GetAssertionDid ( ) string {
if x != nil {
return x . AssertionDid
}
return ""
}
func ( x * MsgUnlinkAssertion ) GetMacaroonToken ( ) string {
if x != nil {
return x . MacaroonToken
}
return ""
}
// MsgUnlinkAssertionResponse is the response type for the
// UnlinkAssertion RPC.
type MsgUnlinkAssertionResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Success returns true if the specified cid is valid and not already
// encrypted.
Success bool ` protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty" `
// Controller is the address of the initialized controller.
Did string ` protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty" `
}
func ( x * MsgUnlinkAssertionResponse ) Reset ( ) {
* x = MsgUnlinkAssertionResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_did_v1_tx_proto_msgTypes [ 7 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * MsgUnlinkAssertionResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * MsgUnlinkAssertionResponse ) ProtoMessage ( ) { }
// Deprecated: Use MsgUnlinkAssertionResponse.ProtoReflect.Descriptor instead.
func ( * MsgUnlinkAssertionResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 7 }
}
func ( x * MsgUnlinkAssertionResponse ) GetSuccess ( ) bool {
if x != nil {
return x . Success
}
return false
}
func ( x * MsgUnlinkAssertionResponse ) GetDid ( ) string {
if x != nil {
return x . Did
}
return ""
}
// MsgUnlinkAuthentication is the message type for the UnlinkAuthentication RPC.
type MsgUnlinkAuthentication struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Controller is the address of the controller to authenticate.
Controller string ` protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty" `
// Subject is the subject of the authentication.
AuthenticationDid string ` protobuf:"bytes,2,opt,name=authentication_did,json=authenticationDid,proto3" json:"authentication_did,omitempty" `
// token is the macron token to authenticate the operation.
MacaroonToken string ` protobuf:"bytes,3,opt,name=macaroon_token,json=macaroonToken,proto3" json:"macaroon_token,omitempty" `
}
func ( x * MsgUnlinkAuthentication ) Reset ( ) {
* x = MsgUnlinkAuthentication { }
if protoimpl . UnsafeEnabled {
mi := & file_did_v1_tx_proto_msgTypes [ 8 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * MsgUnlinkAuthentication ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * MsgUnlinkAuthentication ) ProtoMessage ( ) { }
// Deprecated: Use MsgUnlinkAuthentication.ProtoReflect.Descriptor instead.
func ( * MsgUnlinkAuthentication ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 8 }
}
func ( x * MsgUnlinkAuthentication ) GetController ( ) string {
if x != nil {
return x . Controller
}
return ""
}
func ( x * MsgUnlinkAuthentication ) GetAuthenticationDid ( ) string {
if x != nil {
return x . AuthenticationDid
}
return ""
}
func ( x * MsgUnlinkAuthentication ) GetMacaroonToken ( ) string {
if x != nil {
return x . MacaroonToken
}
return ""
}
// MsgUnlinkAuthenticationResponse is the response type for the
// UnlinkAuthentication RPC.
type MsgUnlinkAuthenticationResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Success returns true if the specified cid is valid and not already
// encrypted.
Success bool ` protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty" `
// Controller is the address of the initialized controller.
Did string ` protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty" `
}
func ( x * MsgUnlinkAuthenticationResponse ) Reset ( ) {
* x = MsgUnlinkAuthenticationResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_did_v1_tx_proto_msgTypes [ 9 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * MsgUnlinkAuthenticationResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * MsgUnlinkAuthenticationResponse ) ProtoMessage ( ) { }
// Deprecated: Use MsgUnlinkAuthenticationResponse.ProtoReflect.Descriptor instead.
func ( * MsgUnlinkAuthenticationResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 9 }
}
func ( x * MsgUnlinkAuthenticationResponse ) GetSuccess ( ) bool {
if x != nil {
return x . Success
}
return false
}
func ( x * MsgUnlinkAuthenticationResponse ) GetDid ( ) string {
if x != nil {
return x . Did
}
return ""
}
2024-09-25 19:49:16 -04:00
// MsgUpdateParams is the Msg/UpdateParams request type.
//
// Since: cosmos-sdk 0.47
type MsgUpdateParams struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2024-09-25 19:52:18 -04:00
// authority is the address of the governance account.
2024-09-25 19:49:16 -04:00
Authority string ` protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty" `
// params defines the parameters to update.
Params * Params ` protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty" `
// token is the macron token to authenticate the operation.
Token string ` protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty" `
}
2024-09-25 19:52:18 -04:00
func ( x * MsgUpdateParams ) Reset ( ) {
* x = MsgUpdateParams { }
2024-09-25 19:49:16 -04:00
if protoimpl . UnsafeEnabled {
2024-10-15 14:31:19 -04:00
mi := & file_did_v1_tx_proto_msgTypes [ 10 ]
2024-09-25 19:49:16 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2024-09-25 19:52:18 -04:00
func ( x * MsgUpdateParams ) String ( ) string {
2024-09-25 19:49:16 -04:00
return protoimpl . X . MessageStringOf ( x )
}
2024-09-25 19:52:18 -04:00
func ( * MsgUpdateParams ) ProtoMessage ( ) { }
2024-09-25 19:49:16 -04:00
// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func ( * MsgUpdateParams ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2024-10-15 14:31:19 -04:00
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 10 }
2024-09-25 19:49:16 -04:00
}
2024-09-25 19:52:18 -04:00
func ( x * MsgUpdateParams ) GetAuthority ( ) string {
2024-09-25 19:49:16 -04:00
if x != nil {
return x . Authority
}
return ""
}
2024-09-25 19:52:18 -04:00
func ( x * MsgUpdateParams ) GetParams ( ) * Params {
2024-09-25 19:49:16 -04:00
if x != nil {
2024-09-25 19:52:18 -04:00
return x . Params
2024-09-25 19:49:16 -04:00
}
2024-09-25 19:52:18 -04:00
return nil
2024-09-25 19:49:16 -04:00
}
func ( x * MsgUpdateParams ) GetToken ( ) string {
if x != nil {
return x . Token
}
return ""
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
//
// Since: cosmos-sdk 0.47
type MsgUpdateParamsResponse struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
}
2024-09-25 19:52:18 -04:00
func ( x * MsgUpdateParamsResponse ) Reset ( ) {
* x = MsgUpdateParamsResponse { }
2024-09-25 19:49:16 -04:00
if protoimpl . UnsafeEnabled {
2024-10-15 14:31:19 -04:00
mi := & file_did_v1_tx_proto_msgTypes [ 11 ]
2024-09-25 19:49:16 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2024-09-25 19:52:18 -04:00
func ( x * MsgUpdateParamsResponse ) String ( ) string {
2024-09-25 19:49:16 -04:00
return protoimpl . X . MessageStringOf ( x )
}
2024-09-25 19:52:18 -04:00
func ( * MsgUpdateParamsResponse ) ProtoMessage ( ) { }
2024-09-25 19:49:16 -04:00
// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func ( * MsgUpdateParamsResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2024-10-15 14:31:19 -04:00
return file_did_v1_tx_proto_rawDescGZIP ( ) , [ ] int { 11 }
2024-09-25 19:49:16 -04:00
}
2024-07-05 22:20:13 -04:00
var File_did_v1_tx_proto protoreflect . FileDescriptor
var file_did_v1_tx_proto_rawDesc = [ ] byte {
0x0a , 0x0f , 0x64 , 0x69 , 0x64 , 0x2f , 0x76 , 0x31 , 0x2f , 0x74 , 0x78 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 ,
0x6f , 0x12 , 0x06 , 0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x1a , 0x17 , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f ,
0x73 , 0x2f , 0x6d , 0x73 , 0x67 , 0x2f , 0x76 , 0x31 , 0x2f , 0x6d , 0x73 , 0x67 , 0x2e , 0x70 , 0x72 , 0x6f ,
2024-09-14 14:27:45 -04:00
0x74 , 0x6f , 0x1a , 0x19 , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x5f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f ,
0x2f , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x1a , 0x14 , 0x64 ,
0x69 , 0x64 , 0x2f , 0x76 , 0x31 , 0x2f , 0x67 , 0x65 , 0x6e , 0x65 , 0x73 , 0x69 , 0x73 , 0x2e , 0x70 , 0x72 ,
2024-09-23 12:25:15 -04:00
0x6f , 0x74 , 0x6f , 0x1a , 0x14 , 0x67 , 0x6f , 0x67 , 0x6f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x2f , 0x67 ,
2024-10-15 14:31:19 -04:00
0x6f , 0x67 , 0x6f , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x22 , 0xe6 , 0x01 , 0x0a , 0x15 , 0x4d , 0x73 ,
0x67 , 0x4c , 0x69 , 0x6e , 0x6b , 0x41 , 0x75 , 0x74 , 0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 ,
0x69 , 0x6f , 0x6e , 0x12 , 0x38 , 0x0a , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c , 0x65 ,
0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x42 , 0x18 , 0xd2 , 0xb4 , 0x2d , 0x14 , 0x63 , 0x6f , 0x73 ,
0x6d , 0x6f , 0x73 , 0x2e , 0x41 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x53 , 0x74 , 0x72 , 0x69 , 0x6e ,
0x67 , 0x52 , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x12 , 0x18 , 0x0a ,
0x07 , 0x73 , 0x75 , 0x62 , 0x6a , 0x65 , 0x63 , 0x74 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 ,
0x73 , 0x75 , 0x62 , 0x6a , 0x65 , 0x63 , 0x74 , 0x12 , 0x1c , 0x0a , 0x09 , 0x61 , 0x73 , 0x73 , 0x65 , 0x72 ,
0x74 , 0x69 , 0x6f , 0x6e , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x09 , 0x61 , 0x73 , 0x73 , 0x65 ,
0x72 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x23 , 0x0a , 0x0d , 0x63 , 0x72 , 0x65 , 0x64 , 0x65 , 0x6e , 0x74 ,
0x69 , 0x61 , 0x6c , 0x5f , 0x69 , 0x64 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x0c , 0x63 , 0x72 ,
0x65 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x61 , 0x6c , 0x49 , 0x64 , 0x12 , 0x25 , 0x0a , 0x0e , 0x6d , 0x61 ,
0x63 , 0x61 , 0x72 , 0x6f , 0x6f , 0x6e , 0x5f , 0x74 , 0x6f , 0x6b , 0x65 , 0x6e , 0x18 , 0x05 , 0x20 , 0x01 ,
2024-10-08 17:13:22 -04:00
0x28 , 0x09 , 0x52 , 0x0d , 0x6d , 0x61 , 0x63 , 0x61 , 0x72 , 0x6f , 0x6f , 0x6e , 0x54 , 0x6f , 0x6b , 0x65 ,
2024-10-15 14:31:19 -04:00
0x6e , 0x3a , 0x0f , 0x82 , 0xe7 , 0xb0 , 0x2a , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c ,
0x65 , 0x72 , 0x22 , 0x4b , 0x0a , 0x1d , 0x4d , 0x73 , 0x67 , 0x4c , 0x69 , 0x6e , 0x6b , 0x41 , 0x75 , 0x74 ,
0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 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 , 0x64 , 0x69 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x64 , 0x69 , 0x64 , 0x22 ,
0xbc , 0x01 , 0x0a , 0x10 , 0x4d , 0x73 , 0x67 , 0x4c , 0x69 , 0x6e , 0x6b , 0x41 , 0x73 , 0x73 , 0x65 , 0x72 ,
0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x38 , 0x0a , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c ,
0x65 , 0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x42 , 0x18 , 0xd2 , 0xb4 , 0x2d , 0x14 , 0x63 , 0x6f ,
0x73 , 0x6d , 0x6f , 0x73 , 0x2e , 0x41 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x53 , 0x74 , 0x72 , 0x69 ,
0x6e , 0x67 , 0x52 , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x12 , 0x18 ,
0x0a , 0x07 , 0x73 , 0x75 , 0x62 , 0x6a , 0x65 , 0x63 , 0x74 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 ,
0x07 , 0x73 , 0x75 , 0x62 , 0x6a , 0x65 , 0x63 , 0x74 , 0x12 , 0x1c , 0x0a , 0x09 , 0x61 , 0x73 , 0x73 , 0x65 ,
0x72 , 0x74 , 0x69 , 0x6f , 0x6e , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x09 , 0x61 , 0x73 , 0x73 ,
0x65 , 0x72 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x25 , 0x0a , 0x0e , 0x6d , 0x61 , 0x63 , 0x61 , 0x72 , 0x6f ,
0x6f , 0x6e , 0x5f , 0x74 , 0x6f , 0x6b , 0x65 , 0x6e , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0d ,
0x6d , 0x61 , 0x63 , 0x61 , 0x72 , 0x6f , 0x6f , 0x6e , 0x54 , 0x6f , 0x6b , 0x65 , 0x6e , 0x3a , 0x0f , 0x82 ,
0xe7 , 0xb0 , 0x2a , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x22 , 0x46 ,
0x0a , 0x18 , 0x4d , 0x73 , 0x67 , 0x4c , 0x69 , 0x6e , 0x6b , 0x41 , 0x73 , 0x73 , 0x65 , 0x72 , 0x74 , 0x69 ,
0x6f , 0x6e , 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 , 0x64 , 0x69 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 ,
0x09 , 0x52 , 0x03 , 0x64 , 0x69 , 0x64 , 0x22 , 0xfd , 0x01 , 0x0a , 0x0c , 0x4d , 0x73 , 0x67 , 0x45 , 0x78 ,
0x65 , 0x63 , 0x75 , 0x74 , 0x65 , 0x54 , 0x78 , 0x12 , 0x38 , 0x0a , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 ,
0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x42 , 0x18 , 0xd2 , 0xb4 , 0x2d ,
0x14 , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x2e , 0x41 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x53 ,
0x74 , 0x72 , 0x69 , 0x6e , 0x67 , 0x52 , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c , 0x65 ,
0x72 , 0x12 , 0x3e , 0x0a , 0x08 , 0x6d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x65 , 0x73 , 0x18 , 0x02 , 0x20 ,
0x03 , 0x28 , 0x0b , 0x32 , 0x22 , 0x2e , 0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d , 0x73 , 0x67 ,
0x45 , 0x78 , 0x65 , 0x63 , 0x75 , 0x74 , 0x65 , 0x54 , 0x78 , 0x2e , 0x4d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 ,
0x65 , 0x73 , 0x45 , 0x6e , 0x74 , 0x72 , 0x79 , 0x52 , 0x08 , 0x6d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x65 ,
0x73 , 0x12 , 0x25 , 0x0a , 0x0e , 0x6d , 0x61 , 0x63 , 0x61 , 0x72 , 0x6f , 0x6f , 0x6e , 0x5f , 0x74 , 0x6f ,
0x6b , 0x65 , 0x6e , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0d , 0x6d , 0x61 , 0x63 , 0x61 , 0x72 ,
0x6f , 0x6f , 0x6e , 0x54 , 0x6f , 0x6b , 0x65 , 0x6e , 0x1a , 0x3b , 0x0a , 0x0d , 0x4d , 0x65 , 0x73 , 0x73 ,
0x61 , 0x67 , 0x65 , 0x73 , 0x45 , 0x6e , 0x74 , 0x72 , 0x79 , 0x12 , 0x10 , 0x0a , 0x03 , 0x6b , 0x65 , 0x79 ,
0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x6b , 0x65 , 0x79 , 0x12 , 0x14 , 0x0a , 0x05 , 0x76 ,
0x61 , 0x6c , 0x75 , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x05 , 0x76 , 0x61 , 0x6c , 0x75 ,
0x65 , 0x3a , 0x02 , 0x38 , 0x01 , 0x3a , 0x0f , 0x82 , 0xe7 , 0xb0 , 0x2a , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 ,
0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x22 , 0x49 , 0x0a , 0x14 , 0x4d , 0x73 , 0x67 , 0x45 , 0x78 , 0x65 ,
0x63 , 0x75 , 0x74 , 0x65 , 0x54 , 0x78 , 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 , 0x17 , 0x0a , 0x07 , 0x74 , 0x78 , 0x5f , 0x68 ,
0x61 , 0x73 , 0x68 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x74 , 0x78 , 0x48 , 0x61 , 0x73 ,
0x68 , 0x22 , 0xab , 0x01 , 0x0a , 0x12 , 0x4d , 0x73 , 0x67 , 0x55 , 0x6e , 0x6c , 0x69 , 0x6e , 0x6b , 0x41 ,
0x73 , 0x73 , 0x65 , 0x72 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x38 , 0x0a , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 ,
0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x42 , 0x18 , 0xd2 , 0xb4 ,
0x2d , 0x14 , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x2e , 0x41 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 ,
0x53 , 0x74 , 0x72 , 0x69 , 0x6e , 0x67 , 0x52 , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c ,
0x65 , 0x72 , 0x12 , 0x23 , 0x0a , 0x0d , 0x61 , 0x73 , 0x73 , 0x65 , 0x72 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f ,
0x64 , 0x69 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0c , 0x61 , 0x73 , 0x73 , 0x65 , 0x72 ,
0x74 , 0x69 , 0x6f , 0x6e , 0x44 , 0x69 , 0x64 , 0x12 , 0x25 , 0x0a , 0x0e , 0x6d , 0x61 , 0x63 , 0x61 , 0x72 ,
0x6f , 0x6f , 0x6e , 0x5f , 0x74 , 0x6f , 0x6b , 0x65 , 0x6e , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 ,
0x0d , 0x6d , 0x61 , 0x63 , 0x61 , 0x72 , 0x6f , 0x6f , 0x6e , 0x54 , 0x6f , 0x6b , 0x65 , 0x6e , 0x3a , 0x0f ,
2024-10-08 17:13:22 -04:00
0x82 , 0xe7 , 0xb0 , 0x2a , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x22 ,
2024-10-15 14:31:19 -04:00
0x48 , 0x0a , 0x1a , 0x4d , 0x73 , 0x67 , 0x55 , 0x6e , 0x6c , 0x69 , 0x6e , 0x6b , 0x41 , 0x73 , 0x73 , 0x65 ,
0x72 , 0x74 , 0x69 , 0x6f , 0x6e , 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 , 0x64 , 0x69 , 0x64 , 0x18 , 0x02 ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x64 , 0x69 , 0x64 , 0x22 , 0xba , 0x01 , 0x0a , 0x17 , 0x4d , 0x73 ,
0x67 , 0x55 , 0x6e , 0x6c , 0x69 , 0x6e , 0x6b , 0x41 , 0x75 , 0x74 , 0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 ,
0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x38 , 0x0a , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c ,
0x6c , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x42 , 0x18 , 0xd2 , 0xb4 , 0x2d , 0x14 , 0x63 ,
0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x2e , 0x41 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x53 , 0x74 , 0x72 ,
0x69 , 0x6e , 0x67 , 0x52 , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 , 0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x12 ,
0x2d , 0x0a , 0x12 , 0x61 , 0x75 , 0x74 , 0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f ,
0x6e , 0x5f , 0x64 , 0x69 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x11 , 0x61 , 0x75 , 0x74 ,
0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x44 , 0x69 , 0x64 , 0x12 , 0x25 ,
0x0a , 0x0e , 0x6d , 0x61 , 0x63 , 0x61 , 0x72 , 0x6f , 0x6f , 0x6e , 0x5f , 0x74 , 0x6f , 0x6b , 0x65 , 0x6e ,
0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0d , 0x6d , 0x61 , 0x63 , 0x61 , 0x72 , 0x6f , 0x6f , 0x6e ,
0x54 , 0x6f , 0x6b , 0x65 , 0x6e , 0x3a , 0x0f , 0x82 , 0xe7 , 0xb0 , 0x2a , 0x0a , 0x63 , 0x6f , 0x6e , 0x74 ,
0x72 , 0x6f , 0x6c , 0x6c , 0x65 , 0x72 , 0x22 , 0x4d , 0x0a , 0x1f , 0x4d , 0x73 , 0x67 , 0x55 , 0x6e , 0x6c ,
0x69 , 0x6e , 0x6b , 0x41 , 0x75 , 0x74 , 0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f ,
0x6e , 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 , 0x64 , 0x69 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 ,
0x52 , 0x03 , 0x64 , 0x69 , 0x64 , 0x22 , 0x9d , 0x01 , 0x0a , 0x0f , 0x4d , 0x73 , 0x67 , 0x55 , 0x70 , 0x64 ,
0x61 , 0x74 , 0x65 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x12 , 0x36 , 0x0a , 0x09 , 0x61 , 0x75 , 0x74 ,
0x68 , 0x6f , 0x72 , 0x69 , 0x74 , 0x79 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x42 , 0x18 , 0xd2 , 0xb4 ,
0x2d , 0x14 , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x2e , 0x41 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 ,
0x53 , 0x74 , 0x72 , 0x69 , 0x6e , 0x67 , 0x52 , 0x09 , 0x61 , 0x75 , 0x74 , 0x68 , 0x6f , 0x72 , 0x69 , 0x74 ,
0x79 , 0x12 , 0x2c , 0x0a , 0x06 , 0x70 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 ,
0x0b , 0x32 , 0x0e , 0x2e , 0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d ,
0x73 , 0x42 , 0x04 , 0xc8 , 0xde , 0x1f , 0x00 , 0x52 , 0x06 , 0x70 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x12 ,
0x14 , 0x0a , 0x05 , 0x74 , 0x6f , 0x6b , 0x65 , 0x6e , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x05 ,
0x74 , 0x6f , 0x6b , 0x65 , 0x6e , 0x3a , 0x0e , 0x82 , 0xe7 , 0xb0 , 0x2a , 0x09 , 0x61 , 0x75 , 0x74 , 0x68 ,
0x6f , 0x72 , 0x69 , 0x74 , 0x79 , 0x22 , 0x19 , 0x0a , 0x17 , 0x4d , 0x73 , 0x67 , 0x55 , 0x70 , 0x64 , 0x61 ,
0x74 , 0x65 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 ,
0x32 , 0xf5 , 0x03 , 0x0a , 0x03 , 0x4d , 0x73 , 0x67 , 0x12 , 0x3f , 0x0a , 0x09 , 0x45 , 0x78 , 0x65 , 0x63 ,
0x75 , 0x74 , 0x65 , 0x54 , 0x78 , 0x12 , 0x14 , 0x2e , 0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d ,
0x73 , 0x67 , 0x45 , 0x78 , 0x65 , 0x63 , 0x75 , 0x74 , 0x65 , 0x54 , 0x78 , 0x1a , 0x1c , 0x2e , 0x64 , 0x69 ,
0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d , 0x73 , 0x67 , 0x45 , 0x78 , 0x65 , 0x63 , 0x75 , 0x74 , 0x65 , 0x54 ,
0x78 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x4b , 0x0a , 0x0d , 0x4c , 0x69 , 0x6e ,
0x6b , 0x41 , 0x73 , 0x73 , 0x65 , 0x72 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x18 , 0x2e , 0x64 , 0x69 , 0x64 ,
0x2e , 0x76 , 0x31 , 0x2e , 0x4d , 0x73 , 0x67 , 0x4c , 0x69 , 0x6e , 0x6b , 0x41 , 0x73 , 0x73 , 0x65 , 0x72 ,
0x74 , 0x69 , 0x6f , 0x6e , 0x1a , 0x20 , 0x2e , 0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d , 0x73 ,
0x67 , 0x4c , 0x69 , 0x6e , 0x6b , 0x41 , 0x73 , 0x73 , 0x65 , 0x72 , 0x74 , 0x69 , 0x6f , 0x6e , 0x52 , 0x65 ,
0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x5a , 0x0a , 0x12 , 0x4c , 0x69 , 0x6e , 0x6b , 0x41 , 0x75 ,
0x74 , 0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x1d , 0x2e , 0x64 ,
0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d , 0x73 , 0x67 , 0x4c , 0x69 , 0x6e , 0x6b , 0x41 , 0x75 , 0x74 ,
0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x1a , 0x25 , 0x2e , 0x64 , 0x69 ,
0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d , 0x73 , 0x67 , 0x4c , 0x69 , 0x6e , 0x6b , 0x41 , 0x75 , 0x74 , 0x68 ,
0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e ,
0x73 , 0x65 , 0x12 , 0x51 , 0x0a , 0x0f , 0x55 , 0x6e , 0x6c , 0x69 , 0x6e , 0x6b , 0x41 , 0x73 , 0x73 , 0x65 ,
0x72 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x1a , 0x2e , 0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d ,
0x73 , 0x67 , 0x55 , 0x6e , 0x6c , 0x69 , 0x6e , 0x6b , 0x41 , 0x73 , 0x73 , 0x65 , 0x72 , 0x74 , 0x69 , 0x6f ,
0x6e , 0x1a , 0x22 , 0x2e , 0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d , 0x73 , 0x67 , 0x55 , 0x6e ,
0x6c , 0x69 , 0x6e , 0x6b , 0x41 , 0x73 , 0x73 , 0x65 , 0x72 , 0x74 , 0x69 , 0x6f , 0x6e , 0x52 , 0x65 , 0x73 ,
0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x60 , 0x0a , 0x14 , 0x55 , 0x6e , 0x6c , 0x69 , 0x6e , 0x6b , 0x41 ,
0x75 , 0x74 , 0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x1f , 0x2e ,
0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d , 0x73 , 0x67 , 0x55 , 0x6e , 0x6c , 0x69 , 0x6e , 0x6b ,
0x41 , 0x75 , 0x74 , 0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x1a , 0x27 ,
0x2e , 0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d , 0x73 , 0x67 , 0x55 , 0x6e , 0x6c , 0x69 , 0x6e ,
0x6b , 0x41 , 0x75 , 0x74 , 0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x52 ,
0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x48 , 0x0a , 0x0c , 0x55 , 0x70 , 0x64 , 0x61 , 0x74 ,
0x65 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x12 , 0x17 , 0x2e , 0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 ,
0x2e , 0x4d , 0x73 , 0x67 , 0x55 , 0x70 , 0x64 , 0x61 , 0x74 , 0x65 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 ,
0x1a , 0x1f , 0x2e , 0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4d , 0x73 , 0x67 , 0x55 , 0x70 , 0x64 ,
0x61 , 0x74 , 0x65 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 ,
0x65 , 0x1a , 0x05 , 0x80 , 0xe7 , 0xb0 , 0x2a , 0x01 , 0x42 , 0x77 , 0x0a , 0x0a , 0x63 , 0x6f , 0x6d , 0x2e ,
0x64 , 0x69 , 0x64 , 0x2e , 0x76 , 0x31 , 0x42 , 0x07 , 0x54 , 0x78 , 0x50 , 0x72 , 0x6f , 0x74 , 0x6f , 0x50 ,
0x01 , 0x5a , 0x27 , 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 , 0x64 , 0x69 ,
0x64 , 0x2f , 0x76 , 0x31 , 0x3b , 0x64 , 0x69 , 0x64 , 0x76 , 0x31 , 0xa2 , 0x02 , 0x03 , 0x44 , 0x58 , 0x58 ,
0xaa , 0x02 , 0x06 , 0x44 , 0x69 , 0x64 , 0x2e , 0x56 , 0x31 , 0xca , 0x02 , 0x06 , 0x44 , 0x69 , 0x64 , 0x5c ,
0x56 , 0x31 , 0xe2 , 0x02 , 0x12 , 0x44 , 0x69 , 0x64 , 0x5c , 0x56 , 0x31 , 0x5c , 0x47 , 0x50 , 0x42 , 0x4d ,
0x65 , 0x74 , 0x61 , 0x64 , 0x61 , 0x74 , 0x61 , 0xea , 0x02 , 0x07 , 0x44 , 0x69 , 0x64 , 0x3a , 0x3a , 0x56 ,
0x31 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
2024-07-05 22:20:13 -04:00
}
var (
file_did_v1_tx_proto_rawDescOnce sync . Once
file_did_v1_tx_proto_rawDescData = file_did_v1_tx_proto_rawDesc
)
func file_did_v1_tx_proto_rawDescGZIP ( ) [ ] byte {
file_did_v1_tx_proto_rawDescOnce . Do ( func ( ) {
file_did_v1_tx_proto_rawDescData = protoimpl . X . CompressGZIP ( file_did_v1_tx_proto_rawDescData )
} )
return file_did_v1_tx_proto_rawDescData
}
2024-10-15 14:31:19 -04:00
var file_did_v1_tx_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 13 )
2024-09-14 14:27:45 -04:00
var file_did_v1_tx_proto_goTypes = [ ] interface { } {
2024-10-15 14:31:19 -04:00
( * MsgLinkAuthentication ) ( nil ) , // 0: did.v1.MsgLinkAuthentication
( * MsgLinkAuthenticationResponse ) ( nil ) , // 1: did.v1.MsgLinkAuthenticationResponse
( * MsgLinkAssertion ) ( nil ) , // 2: did.v1.MsgLinkAssertion
( * MsgLinkAssertionResponse ) ( nil ) , // 3: did.v1.MsgLinkAssertionResponse
( * MsgExecuteTx ) ( nil ) , // 4: did.v1.MsgExecuteTx
( * MsgExecuteTxResponse ) ( nil ) , // 5: did.v1.MsgExecuteTxResponse
( * MsgUnlinkAssertion ) ( nil ) , // 6: did.v1.MsgUnlinkAssertion
( * MsgUnlinkAssertionResponse ) ( nil ) , // 7: did.v1.MsgUnlinkAssertionResponse
( * MsgUnlinkAuthentication ) ( nil ) , // 8: did.v1.MsgUnlinkAuthentication
( * MsgUnlinkAuthenticationResponse ) ( nil ) , // 9: did.v1.MsgUnlinkAuthenticationResponse
( * MsgUpdateParams ) ( nil ) , // 10: did.v1.MsgUpdateParams
( * MsgUpdateParamsResponse ) ( nil ) , // 11: did.v1.MsgUpdateParamsResponse
nil , // 12: did.v1.MsgExecuteTx.MessagesEntry
( * Params ) ( nil ) , // 13: did.v1.Params
2024-09-14 14:27:45 -04:00
}
var file_did_v1_tx_proto_depIdxs = [ ] int32 {
2024-10-15 14:31:19 -04:00
12 , // 0: did.v1.MsgExecuteTx.messages:type_name -> did.v1.MsgExecuteTx.MessagesEntry
13 , // 1: did.v1.MsgUpdateParams.params:type_name -> did.v1.Params
4 , // 2: did.v1.Msg.ExecuteTx:input_type -> did.v1.MsgExecuteTx
2 , // 3: did.v1.Msg.LinkAssertion:input_type -> did.v1.MsgLinkAssertion
0 , // 4: did.v1.Msg.LinkAuthentication:input_type -> did.v1.MsgLinkAuthentication
6 , // 5: did.v1.Msg.UnlinkAssertion:input_type -> did.v1.MsgUnlinkAssertion
8 , // 6: did.v1.Msg.UnlinkAuthentication:input_type -> did.v1.MsgUnlinkAuthentication
10 , // 7: did.v1.Msg.UpdateParams:input_type -> did.v1.MsgUpdateParams
5 , // 8: did.v1.Msg.ExecuteTx:output_type -> did.v1.MsgExecuteTxResponse
3 , // 9: did.v1.Msg.LinkAssertion:output_type -> did.v1.MsgLinkAssertionResponse
1 , // 10: did.v1.Msg.LinkAuthentication:output_type -> did.v1.MsgLinkAuthenticationResponse
7 , // 11: did.v1.Msg.UnlinkAssertion:output_type -> did.v1.MsgUnlinkAssertionResponse
9 , // 12: did.v1.Msg.UnlinkAuthentication:output_type -> did.v1.MsgUnlinkAuthenticationResponse
11 , // 13: did.v1.Msg.UpdateParams:output_type -> did.v1.MsgUpdateParamsResponse
8 , // [8:14] is the sub-list for method output_type
2 , // [2:8] is the sub-list for method input_type
2 , // [2:2] is the sub-list for extension type_name
2 , // [2:2] is the sub-list for extension extendee
0 , // [0:2] is the sub-list for field type_name
2024-07-05 22:20:13 -04:00
}
func init ( ) { file_did_v1_tx_proto_init ( ) }
func file_did_v1_tx_proto_init ( ) {
if File_did_v1_tx_proto != nil {
return
}
file_did_v1_genesis_proto_init ( )
if ! protoimpl . UnsafeEnabled {
file_did_v1_tx_proto_msgTypes [ 0 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-15 14:31:19 -04:00
switch v := v . ( * MsgLinkAuthentication ) ; i {
2024-07-05 22:20:13 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_did_v1_tx_proto_msgTypes [ 1 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-15 14:31:19 -04:00
switch v := v . ( * MsgLinkAuthenticationResponse ) ; i {
2024-07-05 22:20:13 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_did_v1_tx_proto_msgTypes [ 2 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-15 14:31:19 -04:00
switch v := v . ( * MsgLinkAssertion ) ; i {
2024-07-05 22:20:13 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_did_v1_tx_proto_msgTypes [ 3 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-15 14:31:19 -04:00
switch v := v . ( * MsgLinkAssertionResponse ) ; i {
2024-07-05 22:20:13 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_did_v1_tx_proto_msgTypes [ 4 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-15 14:31:19 -04:00
switch v := v . ( * MsgExecuteTx ) ; i {
2024-08-10 18:27:11 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2024-09-27 20:58:05 -04:00
file_did_v1_tx_proto_msgTypes [ 5 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-10-15 14:31:19 -04:00
switch v := v . ( * MsgExecuteTxResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_did_v1_tx_proto_msgTypes [ 6 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * MsgUnlinkAssertion ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_did_v1_tx_proto_msgTypes [ 7 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * MsgUnlinkAssertionResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_did_v1_tx_proto_msgTypes [ 8 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * MsgUnlinkAuthentication ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_did_v1_tx_proto_msgTypes [ 9 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * MsgUnlinkAuthenticationResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_did_v1_tx_proto_msgTypes [ 10 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * MsgUpdateParams ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_did_v1_tx_proto_msgTypes [ 11 ] . Exporter = func ( v interface { } , i int ) interface { } {
2024-09-23 12:25:15 -04:00
switch v := v . ( * MsgUpdateParamsResponse ) ; i {
2024-07-05 22:20:13 -04:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
}
type x struct { }
out := protoimpl . TypeBuilder {
File : protoimpl . DescBuilder {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
RawDescriptor : file_did_v1_tx_proto_rawDesc ,
NumEnums : 0 ,
2024-10-15 14:31:19 -04:00
NumMessages : 13 ,
2024-07-05 22:20:13 -04:00
NumExtensions : 0 ,
NumServices : 1 ,
} ,
GoTypes : file_did_v1_tx_proto_goTypes ,
DependencyIndexes : file_did_v1_tx_proto_depIdxs ,
MessageInfos : file_did_v1_tx_proto_msgTypes ,
} . Build ( )
File_did_v1_tx_proto = out . File
file_did_v1_tx_proto_rawDesc = nil
file_did_v1_tx_proto_goTypes = nil
file_did_v1_tx_proto_depIdxs = nil
}