Files
sonr/api/did/v1/genesis.pulsar.go
T

3672 lines
136 KiB
Go
Raw Normal View History

2024-07-05 22:20:13 -04:00
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package didv1
import (
fmt "fmt"
2025-10-03 14:45:52 -04:00
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
2024-07-05 22:20:13 -04:00
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"
)
var (
2025-10-03 14:45:52 -04:00
md_GenesisState protoreflect.MessageDescriptor
fd_GenesisState_params protoreflect.FieldDescriptor
fd_GenesisState_export_version protoreflect.FieldDescriptor
2024-07-05 22:20:13 -04:00
)
func init() {
file_did_v1_genesis_proto_init()
md_GenesisState = File_did_v1_genesis_proto.Messages().ByName("GenesisState")
fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
2025-10-03 14:45:52 -04:00
fd_GenesisState_export_version = md_GenesisState.Fields().ByName("export_version")
2024-07-05 22:20:13 -04:00
}
var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
type fastReflection_GenesisState GenesisState
func (x *GenesisState) ProtoReflect() protoreflect.Message {
return (*fastReflection_GenesisState)(x)
}
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
mi := &file_did_v1_genesis_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
type fastReflection_GenesisState_messageType struct{}
func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
return (*fastReflection_GenesisState)(nil)
}
func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// 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_GenesisState) Type() protoreflect.MessageType {
return _fastReflection_GenesisState_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GenesisState) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
return (*GenesisState)(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_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_GenesisState_params, value) {
return
}
}
2025-10-03 14:45:52 -04:00
if x.ExportVersion != uint32(0) {
value := protoreflect.ValueOfUint32(x.ExportVersion)
if !f(fd_GenesisState_export_version, value) {
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.
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "did.v1.GenesisState.params":
return x.Params != nil
2025-10-03 14:45:52 -04:00
case "did.v1.GenesisState.export_version":
return x.ExportVersion != uint32(0)
2024-07-05 22:20:13 -04:00
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState"))
}
panic(fmt.Errorf("message did.v1.GenesisState 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_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "did.v1.GenesisState.params":
x.Params = nil
2025-10-03 14:45:52 -04:00
case "did.v1.GenesisState.export_version":
x.ExportVersion = uint32(0)
2024-07-05 22:20:13 -04:00
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState"))
}
panic(fmt.Errorf("message did.v1.GenesisState 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_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "did.v1.GenesisState.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
2025-10-03 14:45:52 -04:00
case "did.v1.GenesisState.export_version":
value := x.ExportVersion
return protoreflect.ValueOfUint32(value)
2024-07-05 22:20:13 -04:00
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState"))
}
panic(fmt.Errorf("message did.v1.GenesisState 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_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "did.v1.GenesisState.params":
x.Params = value.Message().Interface().(*Params)
2025-10-03 14:45:52 -04:00
case "did.v1.GenesisState.export_version":
x.ExportVersion = uint32(value.Uint())
2024-07-05 22:20:13 -04:00
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState"))
2024-07-05 22:20:13 -04:00
}
panic(fmt.Errorf("message did.v1.GenesisState 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.
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
2024-07-05 22:20:13 -04:00
switch fd.FullName() {
case "did.v1.GenesisState.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
2025-10-03 14:45:52 -04:00
case "did.v1.GenesisState.export_version":
panic(fmt.Errorf("field export_version of message did.v1.GenesisState is not mutable"))
2024-07-05 22:20:13 -04:00
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState"))
2024-07-05 22:20:13 -04:00
}
panic(fmt.Errorf("message did.v1.GenesisState 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.
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
2024-07-05 22:20:13 -04:00
switch fd.FullName() {
case "did.v1.GenesisState.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
2025-10-03 14:45:52 -04:00
case "did.v1.GenesisState.export_version":
return protoreflect.ValueOfUint32(uint32(0))
2024-07-05 22:20:13 -04:00
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState"))
2024-07-05 22:20:13 -04:00
}
panic(fmt.Errorf("message did.v1.GenesisState 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.
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
2024-07-05 22:20:13 -04:00
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in did.v1.GenesisState", 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.
func (x *fastReflection_GenesisState) 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.
func (x *fastReflection_GenesisState) 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.
func (x *fastReflection_GenesisState) 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.
func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
2024-07-05 22:20:13 -04:00
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GenesisState)
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
if x.Params != nil {
l = options.Size(x.Params)
2024-09-14 14:27:45 -04:00
n += 1 + l + runtime.Sov(uint64(l))
}
2025-10-03 14:45:52 -04:00
if x.ExportVersion != 0 {
n += 1 + runtime.Sov(uint64(x.ExportVersion))
}
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) {
x := input.Message.Interface().(*GenesisState)
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)
}
2025-10-03 14:45:52 -04:00
if x.ExportVersion != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ExportVersion))
i--
dAtA[i] = 0x10
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
2024-09-14 14:27:45 -04:00
i--
dAtA[i] = 0xa
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) {
x := input.Message.Interface().(*GenesisState)
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 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
2024-07-05 22:20:13 -04:00
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
2024-07-05 22:20:13 -04:00
}
switch fieldNum {
2024-07-26 12:14:20 -04:00
case 1:
2024-07-05 22:20:13 -04:00
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
2024-07-05 22:20:13 -04:00
}
var msglen int
2024-07-05 22:20:13 -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++
msglen |= int(b&0x7F) << shift
2024-07-05 22:20:13 -04:00
if b < 0x80 {
break
}
}
if msglen < 0 {
2024-07-05 22:20:13 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
2024-07-05 22:20:13 -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
}
if x.Params == nil {
x.Params = &Params{}
2024-09-14 14:27:45 -04:00
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
2024-07-05 22:20:13 -04:00
}
2024-07-26 12:14:20 -04:00
iNdEx = postIndex
2025-10-03 14:45:52 -04:00
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExportVersion", wireType)
}
x.ExportVersion = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ExportVersion |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
2024-07-05 22:20:13 -04:00
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
2024-12-24 10:38:17 -05:00
var (
2025-10-03 14:45:52 -04:00
md_Params protoreflect.MessageDescriptor
fd_Params_document protoreflect.FieldDescriptor
fd_Params_webauthn protoreflect.FieldDescriptor
2024-12-24 10:38:17 -05:00
)
2024-12-24 10:38:17 -05:00
func init() {
file_did_v1_genesis_proto_init()
md_Params = File_did_v1_genesis_proto.Messages().ByName("Params")
2025-10-03 14:45:52 -04:00
fd_Params_document = md_Params.Fields().ByName("document")
fd_Params_webauthn = md_Params.Fields().ByName("webauthn")
}
2024-12-24 10:38:17 -05:00
var _ protoreflect.Message = (*fastReflection_Params)(nil)
2024-12-24 10:38:17 -05:00
type fastReflection_Params Params
2024-12-24 10:38:17 -05:00
func (x *Params) ProtoReflect() protoreflect.Message {
return (*fastReflection_Params)(x)
}
2024-12-24 10:38:17 -05:00
func (x *Params) slowProtoReflect() protoreflect.Message {
mi := &file_did_v1_genesis_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-12-24 10:38:17 -05:00
var _fastReflection_Params_messageType fastReflection_Params_messageType
var _ protoreflect.MessageType = fastReflection_Params_messageType{}
2024-12-24 10:38:17 -05:00
type fastReflection_Params_messageType struct{}
2024-12-24 10:38:17 -05:00
func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
return (*fastReflection_Params)(nil)
}
2024-12-24 10:38:17 -05:00
func (x fastReflection_Params_messageType) New() protoreflect.Message {
return new(fastReflection_Params)
}
2024-12-24 10:38:17 -05:00
func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Params
2024-09-14 14:27:45 -04:00
}
2024-07-26 12:14:20 -04:00
2024-12-24 10:38:17 -05:00
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
2024-12-24 10:38:17 -05: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.
func (x *fastReflection_Params) Type() protoreflect.MessageType {
return _fastReflection_Params_messageType
}
2024-12-24 10:38:17 -05:00
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Params) New() protoreflect.Message {
return new(fastReflection_Params)
}
2024-12-24 10:38:17 -05:00
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
return (*Params)(x)
}
2024-12-24 10:38:17 -05: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.
func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
2025-10-03 14:45:52 -04:00
if x.Document != nil {
value := protoreflect.ValueOfMessage(x.Document.ProtoReflect())
if !f(fd_Params_document, value) {
return
}
}
if x.Webauthn != nil {
value := protoreflect.ValueOfMessage(x.Webauthn.ProtoReflect())
if !f(fd_Params_webauthn, value) {
2024-12-24 10:38:17 -05:00
return
}
}
}
2024-12-24 10:38:17 -05: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.
func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.Params.document":
return x.Document != nil
case "did.v1.Params.webauthn":
return x.Webauthn != nil
2024-12-24 10:38:17 -05:00
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params"))
}
panic(fmt.Errorf("message did.v1.Params does not contain field %s", fd.FullName()))
}
}
2024-12-24 10:38:17 -05: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.
func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.Params.document":
x.Document = nil
case "did.v1.Params.webauthn":
x.Webauthn = nil
2024-12-24 10:38:17 -05:00
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params"))
}
panic(fmt.Errorf("message did.v1.Params does not contain field %s", fd.FullName()))
}
}
2024-12-24 10:38:17 -05: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.
func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.Params.document":
value := x.Document
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "did.v1.Params.webauthn":
value := x.Webauthn
return protoreflect.ValueOfMessage(value.ProtoReflect())
2024-12-24 10:38:17 -05:00
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params"))
}
panic(fmt.Errorf("message did.v1.Params does not contain field %s", descriptor.FullName()))
}
}
2024-12-24 10:38:17 -05: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.
func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.Params.document":
x.Document = value.Message().Interface().(*DocumentParams)
case "did.v1.Params.webauthn":
x.Webauthn = value.Message().Interface().(*WebauthnParams)
2024-12-24 10:38:17 -05:00
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params"))
}
panic(fmt.Errorf("message did.v1.Params does not contain field %s", fd.FullName()))
}
2024-07-26 12:14:20 -04:00
}
2024-12-24 10:38:17 -05: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.
func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.Params.document":
if x.Document == nil {
x.Document = new(DocumentParams)
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return protoreflect.ValueOfMessage(x.Document.ProtoReflect())
case "did.v1.Params.webauthn":
if x.Webauthn == nil {
x.Webauthn = new(WebauthnParams)
}
return protoreflect.ValueOfMessage(x.Webauthn.ProtoReflect())
2024-12-24 10:38:17 -05:00
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params"))
}
panic(fmt.Errorf("message did.v1.Params does not contain field %s", fd.FullName()))
2024-07-26 12:14:20 -04:00
}
}
2024-12-24 10:38:17 -05: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.
func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.Params.document":
m := new(DocumentParams)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "did.v1.Params.webauthn":
m := new(WebauthnParams)
return protoreflect.ValueOfMessage(m.ProtoReflect())
2024-12-24 10:38:17 -05:00
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params"))
}
panic(fmt.Errorf("message did.v1.Params does not contain field %s", fd.FullName()))
}
}
2024-12-24 10:38:17 -05: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.
func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in did.v1.Params", d.FullName()))
}
panic("unreachable")
}
2024-12-24 10:38:17 -05:00
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
2024-12-24 10:38:17 -05:00
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
2024-07-26 12:14:20 -04:00
}
2024-12-24 10:38:17 -05:00
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Params) IsValid() bool {
return x != nil
}
2024-12-24 10:38:17 -05:00
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
2025-10-03 14:45:52 -04:00
if x.Document != nil {
l = options.Size(x.Document)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Webauthn != nil {
l = options.Size(x.Webauthn)
n += 1 + l + runtime.Sov(uint64(l))
2024-12-24 10:38:17 -05:00
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
2024-09-14 14:27:45 -04:00
2024-12-24 10:38:17 -05:00
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
2025-10-03 14:45:52 -04:00
if x.Webauthn != nil {
encoded, err := options.Marshal(x.Webauthn)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if x.Document != nil {
encoded, err := options.Marshal(x.Document)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
2024-12-24 10:38:17 -05: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) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Document", 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.Document == nil {
x.Document = &DocumentParams{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Document); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Webauthn", wireType)
2024-12-24 10:38:17 -05:00
}
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
}
2025-10-03 14:45:52 -04:00
if x.Webauthn == nil {
x.Webauthn = &WebauthnParams{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Webauthn); err != nil {
2024-12-24 10:38:17 -05:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
var _ protoreflect.List = (*_DocumentParams_9_list)(nil)
type _DocumentParams_9_list struct {
list *[]string
}
func (x *_DocumentParams_9_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_DocumentParams_9_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfString((*x.list)[i])
}
func (x *_DocumentParams_9_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
(*x.list)[i] = concreteValue
}
func (x *_DocumentParams_9_list) Append(value protoreflect.Value) {
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
*x.list = append(*x.list, concreteValue)
}
func (x *_DocumentParams_9_list) AppendMutable() protoreflect.Value {
panic(fmt.Errorf("AppendMutable can not be called on message DocumentParams at list field SupportedAssertionMethods as it is not of Message kind"))
}
func (x *_DocumentParams_9_list) Truncate(n int) {
*x.list = (*x.list)[:n]
}
func (x *_DocumentParams_9_list) NewElement() protoreflect.Value {
v := ""
return protoreflect.ValueOfString(v)
}
func (x *_DocumentParams_9_list) IsValid() bool {
return x.list != nil
}
var _ protoreflect.List = (*_DocumentParams_10_list)(nil)
type _DocumentParams_10_list struct {
list *[]string
}
func (x *_DocumentParams_10_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_DocumentParams_10_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfString((*x.list)[i])
}
func (x *_DocumentParams_10_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
(*x.list)[i] = concreteValue
}
func (x *_DocumentParams_10_list) Append(value protoreflect.Value) {
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
*x.list = append(*x.list, concreteValue)
}
func (x *_DocumentParams_10_list) AppendMutable() protoreflect.Value {
panic(fmt.Errorf("AppendMutable can not be called on message DocumentParams at list field SupportedAuthenticationMethods as it is not of Message kind"))
}
func (x *_DocumentParams_10_list) Truncate(n int) {
*x.list = (*x.list)[:n]
}
func (x *_DocumentParams_10_list) NewElement() protoreflect.Value {
v := ""
return protoreflect.ValueOfString(v)
}
func (x *_DocumentParams_10_list) IsValid() bool {
return x.list != nil
}
2024-09-14 14:27:45 -04:00
2025-10-03 14:45:52 -04:00
var _ protoreflect.List = (*_DocumentParams_11_list)(nil)
type _DocumentParams_11_list struct {
list *[]string
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
func (x *_DocumentParams_11_list) Len() int {
2024-09-14 14:27:45 -04:00
if x.list == nil {
return 0
2024-07-26 12:14:20 -04:00
}
2024-09-14 14:27:45 -04:00
return len(*x.list)
2024-07-26 12:14:20 -04:00
}
2025-10-03 14:45:52 -04:00
func (x *_DocumentParams_11_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfString((*x.list)[i])
2024-09-14 14:27:45 -04:00
}
2024-07-26 12:14:20 -04:00
2025-10-03 14:45:52 -04:00
func (x *_DocumentParams_11_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
2024-09-14 14:27:45 -04:00
(*x.list)[i] = concreteValue
}
2025-10-03 14:45:52 -04:00
func (x *_DocumentParams_11_list) Append(value protoreflect.Value) {
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
2024-09-14 14:27:45 -04:00
*x.list = append(*x.list, concreteValue)
}
2025-10-03 14:45:52 -04:00
func (x *_DocumentParams_11_list) AppendMutable() protoreflect.Value {
panic(fmt.Errorf("AppendMutable can not be called on message DocumentParams at list field SupportedInvocationMethods as it is not of Message kind"))
}
func (x *_DocumentParams_11_list) Truncate(n int) {
*x.list = (*x.list)[:n]
}
func (x *_DocumentParams_11_list) NewElement() protoreflect.Value {
v := ""
return protoreflect.ValueOfString(v)
}
func (x *_DocumentParams_11_list) IsValid() bool {
return x.list != nil
}
var _ protoreflect.List = (*_DocumentParams_12_list)(nil)
type _DocumentParams_12_list struct {
list *[]string
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
func (x *_DocumentParams_12_list) Len() int {
if x.list == nil {
return 0
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return len(*x.list)
}
func (x *_DocumentParams_12_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfString((*x.list)[i])
}
func (x *_DocumentParams_12_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
(*x.list)[i] = concreteValue
}
func (x *_DocumentParams_12_list) Append(value protoreflect.Value) {
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
*x.list = append(*x.list, concreteValue)
}
func (x *_DocumentParams_12_list) AppendMutable() protoreflect.Value {
panic(fmt.Errorf("AppendMutable can not be called on message DocumentParams at list field SupportedDelegationMethods as it is not of Message kind"))
}
func (x *_DocumentParams_12_list) Truncate(n int) {
2024-09-14 14:27:45 -04:00
*x.list = (*x.list)[:n]
}
2025-10-03 14:45:52 -04:00
func (x *_DocumentParams_12_list) NewElement() protoreflect.Value {
v := ""
return protoreflect.ValueOfString(v)
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
func (x *_DocumentParams_12_list) IsValid() bool {
2024-09-14 14:27:45 -04:00
return x.list != nil
2024-07-26 12:14:20 -04:00
}
var (
2025-10-03 14:45:52 -04:00
md_DocumentParams protoreflect.MessageDescriptor
fd_DocumentParams_auto_create_vault protoreflect.FieldDescriptor
fd_DocumentParams_max_verification_methods protoreflect.FieldDescriptor
fd_DocumentParams_max_service_endpoints protoreflect.FieldDescriptor
fd_DocumentParams_max_controllers protoreflect.FieldDescriptor
fd_DocumentParams_did_document_max_size protoreflect.FieldDescriptor
fd_DocumentParams_did_resolution_timeout protoreflect.FieldDescriptor
fd_DocumentParams_key_rotation_interval protoreflect.FieldDescriptor
fd_DocumentParams_credential_lifetime protoreflect.FieldDescriptor
fd_DocumentParams_supported_assertion_methods protoreflect.FieldDescriptor
fd_DocumentParams_supported_authentication_methods protoreflect.FieldDescriptor
fd_DocumentParams_supported_invocation_methods protoreflect.FieldDescriptor
fd_DocumentParams_supported_delegation_methods protoreflect.FieldDescriptor
2024-07-26 12:14:20 -04:00
)
2024-09-14 14:27:45 -04:00
func init() {
file_did_v1_genesis_proto_init()
2025-10-03 14:45:52 -04:00
md_DocumentParams = File_did_v1_genesis_proto.Messages().ByName("DocumentParams")
fd_DocumentParams_auto_create_vault = md_DocumentParams.Fields().ByName("auto_create_vault")
fd_DocumentParams_max_verification_methods = md_DocumentParams.Fields().ByName("max_verification_methods")
fd_DocumentParams_max_service_endpoints = md_DocumentParams.Fields().ByName("max_service_endpoints")
fd_DocumentParams_max_controllers = md_DocumentParams.Fields().ByName("max_controllers")
fd_DocumentParams_did_document_max_size = md_DocumentParams.Fields().ByName("did_document_max_size")
fd_DocumentParams_did_resolution_timeout = md_DocumentParams.Fields().ByName("did_resolution_timeout")
fd_DocumentParams_key_rotation_interval = md_DocumentParams.Fields().ByName("key_rotation_interval")
fd_DocumentParams_credential_lifetime = md_DocumentParams.Fields().ByName("credential_lifetime")
fd_DocumentParams_supported_assertion_methods = md_DocumentParams.Fields().ByName("supported_assertion_methods")
fd_DocumentParams_supported_authentication_methods = md_DocumentParams.Fields().ByName("supported_authentication_methods")
fd_DocumentParams_supported_invocation_methods = md_DocumentParams.Fields().ByName("supported_invocation_methods")
fd_DocumentParams_supported_delegation_methods = md_DocumentParams.Fields().ByName("supported_delegation_methods")
2024-07-26 12:14:20 -04:00
}
2025-10-03 14:45:52 -04:00
var _ protoreflect.Message = (*fastReflection_DocumentParams)(nil)
2024-09-14 14:27:45 -04:00
2025-10-03 14:45:52 -04:00
type fastReflection_DocumentParams DocumentParams
2024-09-14 14:27:45 -04:00
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) ProtoReflect() protoreflect.Message {
return (*fastReflection_DocumentParams)(x)
2024-07-26 12:14:20 -04:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) slowProtoReflect() protoreflect.Message {
2024-12-24 10:38:17 -05:00
mi := &file_did_v1_genesis_proto_msgTypes[2]
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
2024-07-26 12:14:20 -04:00
}
2024-09-14 14:27:45 -04:00
return mi.MessageOf(x)
}
2025-10-03 14:45:52 -04:00
var _fastReflection_DocumentParams_messageType fastReflection_DocumentParams_messageType
var _ protoreflect.MessageType = fastReflection_DocumentParams_messageType{}
2024-09-14 14:27:45 -04:00
2025-10-03 14:45:52 -04:00
type fastReflection_DocumentParams_messageType struct{}
2024-09-14 14:27:45 -04:00
2025-10-03 14:45:52 -04:00
func (x fastReflection_DocumentParams_messageType) Zero() protoreflect.Message {
return (*fastReflection_DocumentParams)(nil)
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
func (x fastReflection_DocumentParams_messageType) New() protoreflect.Message {
return new(fastReflection_DocumentParams)
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
func (x fastReflection_DocumentParams_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_DocumentParams
2024-09-14 14:27:45 -04:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) Descriptor() protoreflect.MessageDescriptor {
return md_DocumentParams
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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) Type() protoreflect.MessageType {
return _fastReflection_DocumentParams_messageType
2024-09-14 14:27:45 -04:00
}
// New returns a newly allocated and mutable empty message.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) New() protoreflect.Message {
return new(fastReflection_DocumentParams)
2024-09-14 14:27:45 -04:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) Interface() protoreflect.ProtoMessage {
return (*DocumentParams)(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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.AutoCreateVault != false {
value := protoreflect.ValueOfBool(x.AutoCreateVault)
if !f(fd_DocumentParams_auto_create_vault, value) {
2024-09-14 14:27:45 -04:00
return
}
}
2025-10-03 14:45:52 -04:00
if x.MaxVerificationMethods != int32(0) {
value := protoreflect.ValueOfInt32(x.MaxVerificationMethods)
if !f(fd_DocumentParams_max_verification_methods, value) {
2024-09-14 14:27:45 -04:00
return
}
}
2025-10-03 14:45:52 -04:00
if x.MaxServiceEndpoints != int32(0) {
value := protoreflect.ValueOfInt32(x.MaxServiceEndpoints)
if !f(fd_DocumentParams_max_service_endpoints, value) {
return
}
}
if x.MaxControllers != int32(0) {
value := protoreflect.ValueOfInt32(x.MaxControllers)
if !f(fd_DocumentParams_max_controllers, value) {
return
}
}
if x.DidDocumentMaxSize != int64(0) {
value := protoreflect.ValueOfInt64(x.DidDocumentMaxSize)
if !f(fd_DocumentParams_did_document_max_size, value) {
return
}
}
if x.DidResolutionTimeout != int64(0) {
value := protoreflect.ValueOfInt64(x.DidResolutionTimeout)
if !f(fd_DocumentParams_did_resolution_timeout, value) {
return
}
}
if x.KeyRotationInterval != int64(0) {
value := protoreflect.ValueOfInt64(x.KeyRotationInterval)
if !f(fd_DocumentParams_key_rotation_interval, value) {
return
}
}
if x.CredentialLifetime != int64(0) {
value := protoreflect.ValueOfInt64(x.CredentialLifetime)
if !f(fd_DocumentParams_credential_lifetime, value) {
return
}
}
if len(x.SupportedAssertionMethods) != 0 {
value := protoreflect.ValueOfList(&_DocumentParams_9_list{list: &x.SupportedAssertionMethods})
if !f(fd_DocumentParams_supported_assertion_methods, value) {
return
}
}
if len(x.SupportedAuthenticationMethods) != 0 {
value := protoreflect.ValueOfList(&_DocumentParams_10_list{list: &x.SupportedAuthenticationMethods})
if !f(fd_DocumentParams_supported_authentication_methods, value) {
return
}
}
if len(x.SupportedInvocationMethods) != 0 {
value := protoreflect.ValueOfList(&_DocumentParams_11_list{list: &x.SupportedInvocationMethods})
if !f(fd_DocumentParams_supported_invocation_methods, value) {
return
}
}
if len(x.SupportedDelegationMethods) != 0 {
value := protoreflect.ValueOfList(&_DocumentParams_12_list{list: &x.SupportedDelegationMethods})
if !f(fd_DocumentParams_supported_delegation_methods, 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),
2024-09-14 14:27:45 -04:00
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) Has(fd protoreflect.FieldDescriptor) bool {
2024-09-14 14:27:45 -04:00
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.DocumentParams.auto_create_vault":
return x.AutoCreateVault != false
case "did.v1.DocumentParams.max_verification_methods":
return x.MaxVerificationMethods != int32(0)
case "did.v1.DocumentParams.max_service_endpoints":
return x.MaxServiceEndpoints != int32(0)
case "did.v1.DocumentParams.max_controllers":
return x.MaxControllers != int32(0)
case "did.v1.DocumentParams.did_document_max_size":
return x.DidDocumentMaxSize != int64(0)
case "did.v1.DocumentParams.did_resolution_timeout":
return x.DidResolutionTimeout != int64(0)
case "did.v1.DocumentParams.key_rotation_interval":
return x.KeyRotationInterval != int64(0)
case "did.v1.DocumentParams.credential_lifetime":
return x.CredentialLifetime != int64(0)
case "did.v1.DocumentParams.supported_assertion_methods":
return len(x.SupportedAssertionMethods) != 0
case "did.v1.DocumentParams.supported_authentication_methods":
return len(x.SupportedAuthenticationMethods) != 0
case "did.v1.DocumentParams.supported_invocation_methods":
return len(x.SupportedInvocationMethods) != 0
case "did.v1.DocumentParams.supported_delegation_methods":
return len(x.SupportedDelegationMethods) != 0
2024-09-14 14:27:45 -04:00
default:
if fd.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.DocumentParams"))
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.DocumentParams 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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) Clear(fd protoreflect.FieldDescriptor) {
2024-09-14 14:27:45 -04:00
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.DocumentParams.auto_create_vault":
x.AutoCreateVault = false
case "did.v1.DocumentParams.max_verification_methods":
x.MaxVerificationMethods = int32(0)
case "did.v1.DocumentParams.max_service_endpoints":
x.MaxServiceEndpoints = int32(0)
case "did.v1.DocumentParams.max_controllers":
x.MaxControllers = int32(0)
case "did.v1.DocumentParams.did_document_max_size":
x.DidDocumentMaxSize = int64(0)
case "did.v1.DocumentParams.did_resolution_timeout":
x.DidResolutionTimeout = int64(0)
case "did.v1.DocumentParams.key_rotation_interval":
x.KeyRotationInterval = int64(0)
case "did.v1.DocumentParams.credential_lifetime":
x.CredentialLifetime = int64(0)
case "did.v1.DocumentParams.supported_assertion_methods":
x.SupportedAssertionMethods = nil
case "did.v1.DocumentParams.supported_authentication_methods":
x.SupportedAuthenticationMethods = nil
case "did.v1.DocumentParams.supported_invocation_methods":
x.SupportedInvocationMethods = nil
case "did.v1.DocumentParams.supported_delegation_methods":
x.SupportedDelegationMethods = nil
2024-09-14 14:27:45 -04:00
default:
if fd.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.DocumentParams"))
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.DocumentParams 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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
2024-09-14 14:27:45 -04:00
switch descriptor.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.DocumentParams.auto_create_vault":
value := x.AutoCreateVault
return protoreflect.ValueOfBool(value)
case "did.v1.DocumentParams.max_verification_methods":
value := x.MaxVerificationMethods
return protoreflect.ValueOfInt32(value)
case "did.v1.DocumentParams.max_service_endpoints":
value := x.MaxServiceEndpoints
return protoreflect.ValueOfInt32(value)
case "did.v1.DocumentParams.max_controllers":
value := x.MaxControllers
return protoreflect.ValueOfInt32(value)
case "did.v1.DocumentParams.did_document_max_size":
value := x.DidDocumentMaxSize
return protoreflect.ValueOfInt64(value)
case "did.v1.DocumentParams.did_resolution_timeout":
value := x.DidResolutionTimeout
return protoreflect.ValueOfInt64(value)
case "did.v1.DocumentParams.key_rotation_interval":
value := x.KeyRotationInterval
return protoreflect.ValueOfInt64(value)
case "did.v1.DocumentParams.credential_lifetime":
value := x.CredentialLifetime
return protoreflect.ValueOfInt64(value)
case "did.v1.DocumentParams.supported_assertion_methods":
if len(x.SupportedAssertionMethods) == 0 {
return protoreflect.ValueOfList(&_DocumentParams_9_list{})
}
listValue := &_DocumentParams_9_list{list: &x.SupportedAssertionMethods}
return protoreflect.ValueOfList(listValue)
case "did.v1.DocumentParams.supported_authentication_methods":
if len(x.SupportedAuthenticationMethods) == 0 {
return protoreflect.ValueOfList(&_DocumentParams_10_list{})
}
listValue := &_DocumentParams_10_list{list: &x.SupportedAuthenticationMethods}
return protoreflect.ValueOfList(listValue)
case "did.v1.DocumentParams.supported_invocation_methods":
if len(x.SupportedInvocationMethods) == 0 {
return protoreflect.ValueOfList(&_DocumentParams_11_list{})
}
listValue := &_DocumentParams_11_list{list: &x.SupportedInvocationMethods}
return protoreflect.ValueOfList(listValue)
case "did.v1.DocumentParams.supported_delegation_methods":
if len(x.SupportedDelegationMethods) == 0 {
return protoreflect.ValueOfList(&_DocumentParams_12_list{})
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
listValue := &_DocumentParams_12_list{list: &x.SupportedDelegationMethods}
2024-09-14 14:27:45 -04:00
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.DocumentParams"))
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.DocumentParams 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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
2024-09-14 14:27:45 -04:00
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.DocumentParams.auto_create_vault":
x.AutoCreateVault = value.Bool()
case "did.v1.DocumentParams.max_verification_methods":
x.MaxVerificationMethods = int32(value.Int())
case "did.v1.DocumentParams.max_service_endpoints":
x.MaxServiceEndpoints = int32(value.Int())
case "did.v1.DocumentParams.max_controllers":
x.MaxControllers = int32(value.Int())
case "did.v1.DocumentParams.did_document_max_size":
x.DidDocumentMaxSize = value.Int()
case "did.v1.DocumentParams.did_resolution_timeout":
x.DidResolutionTimeout = value.Int()
case "did.v1.DocumentParams.key_rotation_interval":
x.KeyRotationInterval = value.Int()
case "did.v1.DocumentParams.credential_lifetime":
x.CredentialLifetime = value.Int()
case "did.v1.DocumentParams.supported_assertion_methods":
lv := value.List()
clv := lv.(*_DocumentParams_9_list)
x.SupportedAssertionMethods = *clv.list
case "did.v1.DocumentParams.supported_authentication_methods":
lv := value.List()
2025-10-03 14:45:52 -04:00
clv := lv.(*_DocumentParams_10_list)
x.SupportedAuthenticationMethods = *clv.list
case "did.v1.DocumentParams.supported_invocation_methods":
lv := value.List()
clv := lv.(*_DocumentParams_11_list)
x.SupportedInvocationMethods = *clv.list
case "did.v1.DocumentParams.supported_delegation_methods":
lv := value.List()
clv := lv.(*_DocumentParams_12_list)
x.SupportedDelegationMethods = *clv.list
2024-09-14 14:27:45 -04:00
default:
if fd.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.DocumentParams"))
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.DocumentParams 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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
2024-09-14 14:27:45 -04:00
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.DocumentParams.supported_assertion_methods":
if x.SupportedAssertionMethods == nil {
x.SupportedAssertionMethods = []string{}
}
value := &_DocumentParams_9_list{list: &x.SupportedAssertionMethods}
return protoreflect.ValueOfList(value)
case "did.v1.DocumentParams.supported_authentication_methods":
if x.SupportedAuthenticationMethods == nil {
x.SupportedAuthenticationMethods = []string{}
}
2025-10-03 14:45:52 -04:00
value := &_DocumentParams_10_list{list: &x.SupportedAuthenticationMethods}
return protoreflect.ValueOfList(value)
case "did.v1.DocumentParams.supported_invocation_methods":
if x.SupportedInvocationMethods == nil {
x.SupportedInvocationMethods = []string{}
}
value := &_DocumentParams_11_list{list: &x.SupportedInvocationMethods}
return protoreflect.ValueOfList(value)
case "did.v1.DocumentParams.supported_delegation_methods":
if x.SupportedDelegationMethods == nil {
x.SupportedDelegationMethods = []string{}
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
value := &_DocumentParams_12_list{list: &x.SupportedDelegationMethods}
2024-09-14 14:27:45 -04:00
return protoreflect.ValueOfList(value)
2025-10-03 14:45:52 -04:00
case "did.v1.DocumentParams.auto_create_vault":
panic(fmt.Errorf("field auto_create_vault of message did.v1.DocumentParams is not mutable"))
case "did.v1.DocumentParams.max_verification_methods":
panic(fmt.Errorf("field max_verification_methods of message did.v1.DocumentParams is not mutable"))
case "did.v1.DocumentParams.max_service_endpoints":
panic(fmt.Errorf("field max_service_endpoints of message did.v1.DocumentParams is not mutable"))
case "did.v1.DocumentParams.max_controllers":
panic(fmt.Errorf("field max_controllers of message did.v1.DocumentParams is not mutable"))
case "did.v1.DocumentParams.did_document_max_size":
panic(fmt.Errorf("field did_document_max_size of message did.v1.DocumentParams is not mutable"))
case "did.v1.DocumentParams.did_resolution_timeout":
panic(fmt.Errorf("field did_resolution_timeout of message did.v1.DocumentParams is not mutable"))
case "did.v1.DocumentParams.key_rotation_interval":
panic(fmt.Errorf("field key_rotation_interval of message did.v1.DocumentParams is not mutable"))
case "did.v1.DocumentParams.credential_lifetime":
panic(fmt.Errorf("field credential_lifetime of message did.v1.DocumentParams is not mutable"))
2024-09-14 14:27:45 -04:00
default:
if fd.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.DocumentParams"))
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.DocumentParams 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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
2024-09-14 14:27:45 -04:00
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.DocumentParams.auto_create_vault":
return protoreflect.ValueOfBool(false)
case "did.v1.DocumentParams.max_verification_methods":
return protoreflect.ValueOfInt32(int32(0))
case "did.v1.DocumentParams.max_service_endpoints":
return protoreflect.ValueOfInt32(int32(0))
case "did.v1.DocumentParams.max_controllers":
return protoreflect.ValueOfInt32(int32(0))
case "did.v1.DocumentParams.did_document_max_size":
return protoreflect.ValueOfInt64(int64(0))
case "did.v1.DocumentParams.did_resolution_timeout":
return protoreflect.ValueOfInt64(int64(0))
case "did.v1.DocumentParams.key_rotation_interval":
return protoreflect.ValueOfInt64(int64(0))
case "did.v1.DocumentParams.credential_lifetime":
return protoreflect.ValueOfInt64(int64(0))
case "did.v1.DocumentParams.supported_assertion_methods":
list := []string{}
return protoreflect.ValueOfList(&_DocumentParams_9_list{list: &list})
case "did.v1.DocumentParams.supported_authentication_methods":
list := []string{}
return protoreflect.ValueOfList(&_DocumentParams_10_list{list: &list})
case "did.v1.DocumentParams.supported_invocation_methods":
list := []string{}
return protoreflect.ValueOfList(&_DocumentParams_11_list{list: &list})
case "did.v1.DocumentParams.supported_delegation_methods":
list := []string{}
return protoreflect.ValueOfList(&_DocumentParams_12_list{list: &list})
2024-09-14 14:27:45 -04:00
default:
if fd.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.DocumentParams"))
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.DocumentParams 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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
2024-09-14 14:27:45 -04:00
switch d.FullName() {
default:
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("%s is not a oneof field in did.v1.DocumentParams", 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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) 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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) 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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) 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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_DocumentParams) ProtoMethods() *protoiface.Methods {
2024-09-14 14:27:45 -04:00
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
2025-10-03 14:45:52 -04:00
x := input.Message.Interface().(*DocumentParams)
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
2025-10-03 14:45:52 -04:00
if x.AutoCreateVault {
n += 2
}
if x.MaxVerificationMethods != 0 {
n += 1 + runtime.Sov(uint64(x.MaxVerificationMethods))
}
if x.MaxServiceEndpoints != 0 {
n += 1 + runtime.Sov(uint64(x.MaxServiceEndpoints))
}
if x.MaxControllers != 0 {
n += 1 + runtime.Sov(uint64(x.MaxControllers))
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
if x.DidDocumentMaxSize != 0 {
n += 1 + runtime.Sov(uint64(x.DidDocumentMaxSize))
}
if x.DidResolutionTimeout != 0 {
n += 1 + runtime.Sov(uint64(x.DidResolutionTimeout))
}
if x.KeyRotationInterval != 0 {
n += 1 + runtime.Sov(uint64(x.KeyRotationInterval))
}
if x.CredentialLifetime != 0 {
n += 1 + runtime.Sov(uint64(x.CredentialLifetime))
}
if len(x.SupportedAssertionMethods) > 0 {
for _, s := range x.SupportedAssertionMethods {
l = len(s)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if len(x.SupportedAuthenticationMethods) > 0 {
for _, s := range x.SupportedAuthenticationMethods {
l = len(s)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if len(x.SupportedInvocationMethods) > 0 {
for _, s := range x.SupportedInvocationMethods {
l = len(s)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if len(x.SupportedDelegationMethods) > 0 {
for _, s := range x.SupportedDelegationMethods {
l = len(s)
2024-09-14 14:27:45 -04:00
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) {
2025-10-03 14:45:52 -04:00
x := input.Message.Interface().(*DocumentParams)
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)
}
2025-10-03 14:45:52 -04:00
if len(x.SupportedDelegationMethods) > 0 {
for iNdEx := len(x.SupportedDelegationMethods) - 1; iNdEx >= 0; iNdEx-- {
i -= len(x.SupportedDelegationMethods[iNdEx])
copy(dAtA[i:], x.SupportedDelegationMethods[iNdEx])
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupportedDelegationMethods[iNdEx])))
2024-09-14 14:27:45 -04:00
i--
2025-10-03 14:45:52 -04:00
dAtA[i] = 0x62
2024-09-14 14:27:45 -04:00
}
}
2025-10-03 14:45:52 -04:00
if len(x.SupportedInvocationMethods) > 0 {
for iNdEx := len(x.SupportedInvocationMethods) - 1; iNdEx >= 0; iNdEx-- {
i -= len(x.SupportedInvocationMethods[iNdEx])
copy(dAtA[i:], x.SupportedInvocationMethods[iNdEx])
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupportedInvocationMethods[iNdEx])))
i--
dAtA[i] = 0x5a
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
}
if len(x.SupportedAuthenticationMethods) > 0 {
for iNdEx := len(x.SupportedAuthenticationMethods) - 1; iNdEx >= 0; iNdEx-- {
i -= len(x.SupportedAuthenticationMethods[iNdEx])
copy(dAtA[i:], x.SupportedAuthenticationMethods[iNdEx])
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupportedAuthenticationMethods[iNdEx])))
i--
dAtA[i] = 0x52
}
}
if len(x.SupportedAssertionMethods) > 0 {
for iNdEx := len(x.SupportedAssertionMethods) - 1; iNdEx >= 0; iNdEx-- {
i -= len(x.SupportedAssertionMethods[iNdEx])
copy(dAtA[i:], x.SupportedAssertionMethods[iNdEx])
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupportedAssertionMethods[iNdEx])))
i--
dAtA[i] = 0x4a
}
}
if x.CredentialLifetime != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.CredentialLifetime))
i--
2025-10-03 14:45:52 -04:00
dAtA[i] = 0x40
}
if x.KeyRotationInterval != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyRotationInterval))
i--
dAtA[i] = 0x38
}
if x.DidResolutionTimeout != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.DidResolutionTimeout))
i--
dAtA[i] = 0x30
}
if x.DidDocumentMaxSize != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.DidDocumentMaxSize))
i--
dAtA[i] = 0x28
}
if x.MaxControllers != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxControllers))
i--
dAtA[i] = 0x20
}
if x.MaxServiceEndpoints != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxServiceEndpoints))
i--
dAtA[i] = 0x18
}
if x.MaxVerificationMethods != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxVerificationMethods))
i--
dAtA[i] = 0x10
}
if x.AutoCreateVault {
i--
if x.AutoCreateVault {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
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) {
2025-10-03 14:45:52 -04:00
x := input.Message.Interface().(*DocumentParams)
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 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DocumentParams: wiretype end group for non-group")
2024-09-14 14:27:45 -04:00
}
if fieldNum <= 0 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DocumentParams: illegal tag %d (wire type %d)", fieldNum, wire)
2024-09-14 14:27:45 -04:00
}
switch fieldNum {
case 1:
2025-10-03 14:45:52 -04:00
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AutoCreateVault", wireType)
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
var v int
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++
2025-10-03 14:45:52 -04:00
v |= int(b&0x7F) << shift
2024-09-14 14:27:45 -04:00
if b < 0x80 {
break
}
}
2025-10-03 14:45:52 -04:00
x.AutoCreateVault = bool(v != 0)
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxVerificationMethods", wireType)
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
x.MaxVerificationMethods = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.MaxVerificationMethods |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxServiceEndpoints", wireType)
2024-09-14 14:27:45 -04:00
}
2025-10-03 14:45:52 -04:00
x.MaxServiceEndpoints = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.MaxServiceEndpoints |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxControllers", wireType)
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
x.MaxControllers = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.MaxControllers |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DidDocumentMaxSize", wireType)
}
x.DidDocumentMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.DidDocumentMaxSize |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DidResolutionTimeout", wireType)
}
x.DidResolutionTimeout = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.DidResolutionTimeout |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyRotationInterval", wireType)
}
x.KeyRotationInterval = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.KeyRotationInterval |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 8:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialLifetime", wireType)
}
x.CredentialLifetime = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.CredentialLifetime |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 9:
2024-10-08 16:43:59 -04:00
if wireType != 2 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupportedAssertionMethods", wireType)
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
var stringLen uint64
2024-10-08 16:43:59 -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++
2025-10-03 14:45:52 -04:00
stringLen |= uint64(b&0x7F) << shift
2024-10-08 16:43:59 -04:00
if b < 0x80 {
break
}
}
2025-10-03 14:45:52 -04:00
intStringLen := int(stringLen)
if intStringLen < 0 {
2024-10-08 16:43:59 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
2025-10-03 14:45:52 -04:00
postIndex := iNdEx + intStringLen
2024-10-08 16:43:59 -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
}
2025-10-03 14:45:52 -04:00
x.SupportedAssertionMethods = append(x.SupportedAssertionMethods, string(dAtA[iNdEx:postIndex]))
2024-10-08 16:43:59 -04:00
iNdEx = postIndex
2025-10-03 14:45:52 -04:00
case 10:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupportedAuthenticationMethods", wireType)
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -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
}
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.SupportedAuthenticationMethods = append(x.SupportedAuthenticationMethods, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 11:
2024-12-24 10:38:17 -05:00
if wireType != 2 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupportedInvocationMethods", wireType)
2024-12-24 10:38:17 -05: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
}
2025-10-03 14:45:52 -04:00
x.SupportedInvocationMethods = append(x.SupportedInvocationMethods, string(dAtA[iNdEx:postIndex]))
2024-12-24 10:38:17 -05:00
iNdEx = postIndex
2025-10-03 14:45:52 -04:00
case 12:
2024-12-24 10:38:17 -05:00
if wireType != 2 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupportedDelegationMethods", wireType)
2024-12-24 10:38:17 -05: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
}
2025-10-03 14:45:52 -04:00
x.SupportedDelegationMethods = append(x.SupportedDelegationMethods, string(dAtA[iNdEx:postIndex]))
2024-12-24 10:38:17 -05:00
iNdEx = postIndex
default:
2025-10-03 14:45:52 -04:00
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-12-24 10:38:17 -05:00
2025-10-03 14:45:52 -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-12-24 10:38:17 -05:00
}
}
2025-10-03 14:45:52 -04:00
var _ protoreflect.List = (*_WebauthnParams_2_list)(nil)
2024-12-24 10:38:17 -05:00
2025-10-03 14:45:52 -04:00
type _WebauthnParams_2_list struct {
2024-12-24 10:38:17 -05:00
list *[]string
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_2_list) Len() int {
2024-12-24 10:38:17 -05:00
if x.list == nil {
return 0
}
return len(*x.list)
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_2_list) Get(i int) protoreflect.Value {
2024-12-24 10:38:17 -05:00
return protoreflect.ValueOfString((*x.list)[i])
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_2_list) Set(i int, value protoreflect.Value) {
2024-12-24 10:38:17 -05:00
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
(*x.list)[i] = concreteValue
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_2_list) Append(value protoreflect.Value) {
2024-12-24 10:38:17 -05:00
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
*x.list = append(*x.list, concreteValue)
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_2_list) AppendMutable() protoreflect.Value {
panic(fmt.Errorf("AppendMutable can not be called on message WebauthnParams at list field AllowedOrigins as it is not of Message kind"))
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_2_list) Truncate(n int) {
2024-12-24 10:38:17 -05:00
*x.list = (*x.list)[:n]
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_2_list) NewElement() protoreflect.Value {
2024-12-24 10:38:17 -05:00
v := ""
return protoreflect.ValueOfString(v)
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_2_list) IsValid() bool {
2024-12-24 10:38:17 -05:00
return x.list != nil
}
2025-10-03 14:45:52 -04:00
var _ protoreflect.List = (*_WebauthnParams_3_list)(nil)
2024-12-24 10:38:17 -05:00
2025-10-03 14:45:52 -04:00
type _WebauthnParams_3_list struct {
2024-12-24 10:38:17 -05:00
list *[]string
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_3_list) Len() int {
2024-12-24 10:38:17 -05:00
if x.list == nil {
return 0
}
return len(*x.list)
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_3_list) Get(i int) protoreflect.Value {
2024-12-24 10:38:17 -05:00
return protoreflect.ValueOfString((*x.list)[i])
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_3_list) Set(i int, value protoreflect.Value) {
2024-12-24 10:38:17 -05:00
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
(*x.list)[i] = concreteValue
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_3_list) Append(value protoreflect.Value) {
2024-12-24 10:38:17 -05:00
valueUnwrapped := value.String()
concreteValue := valueUnwrapped
*x.list = append(*x.list, concreteValue)
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_3_list) AppendMutable() protoreflect.Value {
panic(fmt.Errorf("AppendMutable can not be called on message WebauthnParams at list field SupportedAlgorithms as it is not of Message kind"))
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_3_list) Truncate(n int) {
2024-12-24 10:38:17 -05:00
*x.list = (*x.list)[:n]
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_3_list) NewElement() protoreflect.Value {
2024-12-24 10:38:17 -05:00
v := ""
return protoreflect.ValueOfString(v)
}
2025-10-03 14:45:52 -04:00
func (x *_WebauthnParams_3_list) IsValid() bool {
2024-12-24 10:38:17 -05:00
return x.list != nil
}
var (
2025-10-03 14:45:52 -04:00
md_WebauthnParams protoreflect.MessageDescriptor
fd_WebauthnParams_challenge_timeout protoreflect.FieldDescriptor
fd_WebauthnParams_allowed_origins protoreflect.FieldDescriptor
fd_WebauthnParams_supported_algorithms protoreflect.FieldDescriptor
fd_WebauthnParams_require_user_verification protoreflect.FieldDescriptor
fd_WebauthnParams_max_credentials_per_did protoreflect.FieldDescriptor
fd_WebauthnParams_default_rp_id protoreflect.FieldDescriptor
fd_WebauthnParams_default_rp_name protoreflect.FieldDescriptor
2024-12-24 10:38:17 -05:00
)
func init() {
file_did_v1_genesis_proto_init()
2025-10-03 14:45:52 -04:00
md_WebauthnParams = File_did_v1_genesis_proto.Messages().ByName("WebauthnParams")
fd_WebauthnParams_challenge_timeout = md_WebauthnParams.Fields().ByName("challenge_timeout")
fd_WebauthnParams_allowed_origins = md_WebauthnParams.Fields().ByName("allowed_origins")
fd_WebauthnParams_supported_algorithms = md_WebauthnParams.Fields().ByName("supported_algorithms")
fd_WebauthnParams_require_user_verification = md_WebauthnParams.Fields().ByName("require_user_verification")
fd_WebauthnParams_max_credentials_per_did = md_WebauthnParams.Fields().ByName("max_credentials_per_did")
fd_WebauthnParams_default_rp_id = md_WebauthnParams.Fields().ByName("default_rp_id")
fd_WebauthnParams_default_rp_name = md_WebauthnParams.Fields().ByName("default_rp_name")
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
var _ protoreflect.Message = (*fastReflection_WebauthnParams)(nil)
2024-12-24 10:38:17 -05:00
2025-10-03 14:45:52 -04:00
type fastReflection_WebauthnParams WebauthnParams
2024-12-24 10:38:17 -05:00
2025-10-03 14:45:52 -04:00
func (x *WebauthnParams) ProtoReflect() protoreflect.Message {
return (*fastReflection_WebauthnParams)(x)
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *WebauthnParams) slowProtoReflect() protoreflect.Message {
mi := &file_did_v1_genesis_proto_msgTypes[3]
2024-12-24 10:38:17 -05: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)
}
2025-10-03 14:45:52 -04:00
var _fastReflection_WebauthnParams_messageType fastReflection_WebauthnParams_messageType
var _ protoreflect.MessageType = fastReflection_WebauthnParams_messageType{}
2024-12-24 10:38:17 -05:00
2025-10-03 14:45:52 -04:00
type fastReflection_WebauthnParams_messageType struct{}
2024-12-24 10:38:17 -05:00
2025-10-03 14:45:52 -04:00
func (x fastReflection_WebauthnParams_messageType) Zero() protoreflect.Message {
return (*fastReflection_WebauthnParams)(nil)
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x fastReflection_WebauthnParams_messageType) New() protoreflect.Message {
return new(fastReflection_WebauthnParams)
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x fastReflection_WebauthnParams_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_WebauthnParams
2024-12-24 10:38:17 -05:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) Descriptor() protoreflect.MessageDescriptor {
return md_WebauthnParams
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) Type() protoreflect.MessageType {
return _fastReflection_WebauthnParams_messageType
2024-12-24 10:38:17 -05:00
}
// New returns a newly allocated and mutable empty message.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) New() protoreflect.Message {
return new(fastReflection_WebauthnParams)
2024-12-24 10:38:17 -05:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) Interface() protoreflect.ProtoMessage {
return (*WebauthnParams)(x)
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.ChallengeTimeout != int64(0) {
value := protoreflect.ValueOfInt64(x.ChallengeTimeout)
if !f(fd_WebauthnParams_challenge_timeout, value) {
2024-12-24 10:38:17 -05:00
return
}
}
2025-10-03 14:45:52 -04:00
if len(x.AllowedOrigins) != 0 {
value := protoreflect.ValueOfList(&_WebauthnParams_2_list{list: &x.AllowedOrigins})
if !f(fd_WebauthnParams_allowed_origins, value) {
2024-12-24 10:38:17 -05:00
return
}
}
2025-10-03 14:45:52 -04:00
if len(x.SupportedAlgorithms) != 0 {
value := protoreflect.ValueOfList(&_WebauthnParams_3_list{list: &x.SupportedAlgorithms})
if !f(fd_WebauthnParams_supported_algorithms, value) {
2024-12-24 10:38:17 -05:00
return
}
}
2025-10-03 14:45:52 -04:00
if x.RequireUserVerification != false {
value := protoreflect.ValueOfBool(x.RequireUserVerification)
if !f(fd_WebauthnParams_require_user_verification, value) {
2024-12-24 10:38:17 -05:00
return
}
}
2025-10-03 14:45:52 -04:00
if x.MaxCredentialsPerDid != int32(0) {
value := protoreflect.ValueOfInt32(x.MaxCredentialsPerDid)
if !f(fd_WebauthnParams_max_credentials_per_did, value) {
2024-12-24 10:38:17 -05:00
return
}
}
2025-10-03 14:45:52 -04:00
if x.DefaultRpId != "" {
value := protoreflect.ValueOfString(x.DefaultRpId)
if !f(fd_WebauthnParams_default_rp_id, value) {
2024-12-24 10:38:17 -05:00
return
}
}
2025-10-03 14:45:52 -04:00
if x.DefaultRpName != "" {
value := protoreflect.ValueOfString(x.DefaultRpName)
if !f(fd_WebauthnParams_default_rp_name, value) {
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) Has(fd protoreflect.FieldDescriptor) bool {
2024-12-24 10:38:17 -05:00
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.WebauthnParams.challenge_timeout":
return x.ChallengeTimeout != int64(0)
case "did.v1.WebauthnParams.allowed_origins":
return len(x.AllowedOrigins) != 0
case "did.v1.WebauthnParams.supported_algorithms":
return len(x.SupportedAlgorithms) != 0
case "did.v1.WebauthnParams.require_user_verification":
return x.RequireUserVerification != false
case "did.v1.WebauthnParams.max_credentials_per_did":
return x.MaxCredentialsPerDid != int32(0)
case "did.v1.WebauthnParams.default_rp_id":
return x.DefaultRpId != ""
case "did.v1.WebauthnParams.default_rp_name":
return x.DefaultRpName != ""
2024-12-24 10:38:17 -05:00
default:
if fd.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.WebauthnParams"))
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.WebauthnParams does not contain field %s", fd.FullName()))
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) Clear(fd protoreflect.FieldDescriptor) {
2024-12-24 10:38:17 -05:00
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.WebauthnParams.challenge_timeout":
x.ChallengeTimeout = int64(0)
case "did.v1.WebauthnParams.allowed_origins":
x.AllowedOrigins = nil
case "did.v1.WebauthnParams.supported_algorithms":
x.SupportedAlgorithms = nil
case "did.v1.WebauthnParams.require_user_verification":
x.RequireUserVerification = false
case "did.v1.WebauthnParams.max_credentials_per_did":
x.MaxCredentialsPerDid = int32(0)
case "did.v1.WebauthnParams.default_rp_id":
x.DefaultRpId = ""
case "did.v1.WebauthnParams.default_rp_name":
x.DefaultRpName = ""
2024-12-24 10:38:17 -05:00
default:
if fd.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.WebauthnParams"))
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.WebauthnParams does not contain field %s", fd.FullName()))
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
2024-12-24 10:38:17 -05:00
switch descriptor.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.WebauthnParams.challenge_timeout":
value := x.ChallengeTimeout
return protoreflect.ValueOfInt64(value)
case "did.v1.WebauthnParams.allowed_origins":
if len(x.AllowedOrigins) == 0 {
return protoreflect.ValueOfList(&_WebauthnParams_2_list{})
}
listValue := &_WebauthnParams_2_list{list: &x.AllowedOrigins}
2024-12-24 10:38:17 -05:00
return protoreflect.ValueOfList(listValue)
2025-10-03 14:45:52 -04:00
case "did.v1.WebauthnParams.supported_algorithms":
if len(x.SupportedAlgorithms) == 0 {
return protoreflect.ValueOfList(&_WebauthnParams_3_list{})
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
listValue := &_WebauthnParams_3_list{list: &x.SupportedAlgorithms}
2024-12-24 10:38:17 -05:00
return protoreflect.ValueOfList(listValue)
2025-10-03 14:45:52 -04:00
case "did.v1.WebauthnParams.require_user_verification":
value := x.RequireUserVerification
return protoreflect.ValueOfBool(value)
case "did.v1.WebauthnParams.max_credentials_per_did":
value := x.MaxCredentialsPerDid
return protoreflect.ValueOfInt32(value)
case "did.v1.WebauthnParams.default_rp_id":
value := x.DefaultRpId
return protoreflect.ValueOfString(value)
case "did.v1.WebauthnParams.default_rp_name":
value := x.DefaultRpName
return protoreflect.ValueOfString(value)
2024-12-24 10:38:17 -05:00
default:
if descriptor.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.WebauthnParams"))
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.WebauthnParams does not contain field %s", descriptor.FullName()))
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
2024-12-24 10:38:17 -05:00
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.WebauthnParams.challenge_timeout":
x.ChallengeTimeout = value.Int()
case "did.v1.WebauthnParams.allowed_origins":
2024-12-24 10:38:17 -05:00
lv := value.List()
2025-10-03 14:45:52 -04:00
clv := lv.(*_WebauthnParams_2_list)
x.AllowedOrigins = *clv.list
case "did.v1.WebauthnParams.supported_algorithms":
2024-12-24 10:38:17 -05:00
lv := value.List()
2025-10-03 14:45:52 -04:00
clv := lv.(*_WebauthnParams_3_list)
x.SupportedAlgorithms = *clv.list
case "did.v1.WebauthnParams.require_user_verification":
x.RequireUserVerification = value.Bool()
case "did.v1.WebauthnParams.max_credentials_per_did":
x.MaxCredentialsPerDid = int32(value.Int())
case "did.v1.WebauthnParams.default_rp_id":
x.DefaultRpId = value.Interface().(string)
case "did.v1.WebauthnParams.default_rp_name":
x.DefaultRpName = value.Interface().(string)
2024-12-24 10:38:17 -05:00
default:
if fd.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.WebauthnParams"))
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.WebauthnParams does not contain field %s", fd.FullName()))
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
2024-12-24 10:38:17 -05:00
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.WebauthnParams.allowed_origins":
if x.AllowedOrigins == nil {
x.AllowedOrigins = []string{}
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
value := &_WebauthnParams_2_list{list: &x.AllowedOrigins}
2024-12-24 10:38:17 -05:00
return protoreflect.ValueOfList(value)
2025-10-03 14:45:52 -04:00
case "did.v1.WebauthnParams.supported_algorithms":
if x.SupportedAlgorithms == nil {
x.SupportedAlgorithms = []string{}
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
value := &_WebauthnParams_3_list{list: &x.SupportedAlgorithms}
2024-12-24 10:38:17 -05:00
return protoreflect.ValueOfList(value)
2025-10-03 14:45:52 -04:00
case "did.v1.WebauthnParams.challenge_timeout":
panic(fmt.Errorf("field challenge_timeout of message did.v1.WebauthnParams is not mutable"))
case "did.v1.WebauthnParams.require_user_verification":
panic(fmt.Errorf("field require_user_verification of message did.v1.WebauthnParams is not mutable"))
case "did.v1.WebauthnParams.max_credentials_per_did":
panic(fmt.Errorf("field max_credentials_per_did of message did.v1.WebauthnParams is not mutable"))
case "did.v1.WebauthnParams.default_rp_id":
panic(fmt.Errorf("field default_rp_id of message did.v1.WebauthnParams is not mutable"))
case "did.v1.WebauthnParams.default_rp_name":
panic(fmt.Errorf("field default_rp_name of message did.v1.WebauthnParams is not mutable"))
2024-12-24 10:38:17 -05:00
default:
if fd.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.WebauthnParams"))
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.WebauthnParams does not contain field %s", fd.FullName()))
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
2024-12-24 10:38:17 -05:00
switch fd.FullName() {
2025-10-03 14:45:52 -04:00
case "did.v1.WebauthnParams.challenge_timeout":
return protoreflect.ValueOfInt64(int64(0))
case "did.v1.WebauthnParams.allowed_origins":
2024-12-24 10:38:17 -05:00
list := []string{}
2025-10-03 14:45:52 -04:00
return protoreflect.ValueOfList(&_WebauthnParams_2_list{list: &list})
case "did.v1.WebauthnParams.supported_algorithms":
2024-12-24 10:38:17 -05:00
list := []string{}
2025-10-03 14:45:52 -04:00
return protoreflect.ValueOfList(&_WebauthnParams_3_list{list: &list})
case "did.v1.WebauthnParams.require_user_verification":
return protoreflect.ValueOfBool(false)
case "did.v1.WebauthnParams.max_credentials_per_did":
return protoreflect.ValueOfInt32(int32(0))
case "did.v1.WebauthnParams.default_rp_id":
return protoreflect.ValueOfString("")
case "did.v1.WebauthnParams.default_rp_name":
return protoreflect.ValueOfString("")
2024-12-24 10:38:17 -05:00
default:
if fd.IsExtension() {
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.WebauthnParams"))
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("message did.v1.WebauthnParams does not contain field %s", fd.FullName()))
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
2024-12-24 10:38:17 -05:00
switch d.FullName() {
default:
2025-10-03 14:45:52 -04:00
panic(fmt.Errorf("%s is not a oneof field in did.v1.WebauthnParams", d.FullName()))
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) GetUnknown() protoreflect.RawFields {
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) SetUnknown(fields protoreflect.RawFields) {
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) IsValid() bool {
2024-12-24 10:38:17 -05: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.
2025-10-03 14:45:52 -04:00
func (x *fastReflection_WebauthnParams) ProtoMethods() *protoiface.Methods {
2024-12-24 10:38:17 -05:00
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
2025-10-03 14:45:52 -04:00
x := input.Message.Interface().(*WebauthnParams)
2024-12-24 10:38:17 -05:00
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
2025-10-03 14:45:52 -04:00
if x.ChallengeTimeout != 0 {
n += 1 + runtime.Sov(uint64(x.ChallengeTimeout))
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
if len(x.AllowedOrigins) > 0 {
for _, s := range x.AllowedOrigins {
2024-12-24 10:38:17 -05:00
l = len(s)
n += 1 + l + runtime.Sov(uint64(l))
}
}
2025-10-03 14:45:52 -04:00
if len(x.SupportedAlgorithms) > 0 {
for _, s := range x.SupportedAlgorithms {
2024-12-24 10:38:17 -05:00
l = len(s)
n += 1 + l + runtime.Sov(uint64(l))
}
}
2025-10-03 14:45:52 -04:00
if x.RequireUserVerification {
n += 2
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
if x.MaxCredentialsPerDid != 0 {
n += 1 + runtime.Sov(uint64(x.MaxCredentialsPerDid))
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
l = len(x.DefaultRpId)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.DefaultRpName)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
2024-12-24 10:38:17 -05: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) {
2025-10-03 14:45:52 -04:00
x := input.Message.Interface().(*WebauthnParams)
2024-12-24 10:38:17 -05: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)
}
2025-10-03 14:45:52 -04:00
if len(x.DefaultRpName) > 0 {
i -= len(x.DefaultRpName)
copy(dAtA[i:], x.DefaultRpName)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DefaultRpName)))
i--
dAtA[i] = 0x3a
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
if len(x.DefaultRpId) > 0 {
i -= len(x.DefaultRpId)
copy(dAtA[i:], x.DefaultRpId)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DefaultRpId)))
i--
dAtA[i] = 0x32
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
if x.MaxCredentialsPerDid != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxCredentialsPerDid))
i--
dAtA[i] = 0x28
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
if x.RequireUserVerification {
i--
if x.RequireUserVerification {
dAtA[i] = 1
} else {
dAtA[i] = 0
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
i--
dAtA[i] = 0x20
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
if len(x.SupportedAlgorithms) > 0 {
for iNdEx := len(x.SupportedAlgorithms) - 1; iNdEx >= 0; iNdEx-- {
i -= len(x.SupportedAlgorithms[iNdEx])
copy(dAtA[i:], x.SupportedAlgorithms[iNdEx])
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupportedAlgorithms[iNdEx])))
2024-12-24 10:38:17 -05:00
i--
dAtA[i] = 0x1a
}
}
2025-10-03 14:45:52 -04:00
if len(x.AllowedOrigins) > 0 {
for iNdEx := len(x.AllowedOrigins) - 1; iNdEx >= 0; iNdEx-- {
i -= len(x.AllowedOrigins[iNdEx])
copy(dAtA[i:], x.AllowedOrigins[iNdEx])
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AllowedOrigins[iNdEx])))
i--
dAtA[i] = 0x12
}
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
if x.ChallengeTimeout != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ChallengeTimeout))
2024-12-24 10:38:17 -05:00
i--
2025-10-03 14:45:52 -04:00
dAtA[i] = 0x8
2024-12-24 10:38:17 -05: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) {
2025-10-03 14:45:52 -04:00
x := input.Message.Interface().(*WebauthnParams)
2024-12-24 10:38:17 -05: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 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WebauthnParams: wiretype end group for non-group")
2024-12-24 10:38:17 -05:00
}
if fieldNum <= 0 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WebauthnParams: illegal tag %d (wire type %d)", fieldNum, wire)
2024-12-24 10:38:17 -05:00
}
switch fieldNum {
case 1:
2025-10-03 14:45:52 -04:00
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChallengeTimeout", wireType)
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
x.ChallengeTimeout = 0
2024-12-24 10:38:17 -05: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++
2025-10-03 14:45:52 -04:00
x.ChallengeTimeout |= int64(b&0x7F) << shift
2024-12-24 10:38:17 -05:00
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AllowedOrigins", wireType)
2024-12-24 10:38:17 -05: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
}
2025-10-03 14:45:52 -04:00
x.AllowedOrigins = append(x.AllowedOrigins, string(dAtA[iNdEx:postIndex]))
2024-12-24 10:38:17 -05:00
iNdEx = postIndex
case 3:
if wireType != 2 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupportedAlgorithms", wireType)
2024-12-24 10:38:17 -05: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
}
2025-10-03 14:45:52 -04:00
x.SupportedAlgorithms = append(x.SupportedAlgorithms, string(dAtA[iNdEx:postIndex]))
2024-12-24 10:38:17 -05:00
iNdEx = postIndex
case 4:
2025-10-03 14:45:52 -04:00
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequireUserVerification", wireType)
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
var v int
2024-12-24 10:38:17 -05: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++
2025-10-03 14:45:52 -04:00
v |= int(b&0x7F) << shift
2024-12-24 10:38:17 -05:00
if b < 0x80 {
break
}
}
2025-10-03 14:45:52 -04:00
x.RequireUserVerification = bool(v != 0)
2024-12-24 10:38:17 -05:00
case 5:
2025-10-03 14:45:52 -04:00
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxCredentialsPerDid", wireType)
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
x.MaxCredentialsPerDid = 0
2024-12-24 10:38:17 -05: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++
2025-10-03 14:45:52 -04:00
x.MaxCredentialsPerDid |= int32(b&0x7F) << shift
2024-12-24 10:38:17 -05:00
if b < 0x80 {
break
}
}
case 6:
if wireType != 2 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DefaultRpId", wireType)
2024-12-24 10:38:17 -05: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
}
2025-10-03 14:45:52 -04:00
x.DefaultRpId = string(dAtA[iNdEx:postIndex])
2024-12-24 10:38:17 -05:00
iNdEx = postIndex
case 7:
if wireType != 2 {
2025-10-03 14:45:52 -04:00
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DefaultRpName", wireType)
}
2024-12-24 10:38:17 -05: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
}
2025-10-03 14:45:52 -04:00
x.DefaultRpName = string(dAtA[iNdEx:postIndex])
2024-12-24 10:38:17 -05: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,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: did/v1/genesis.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// GenesisState defines the module genesis state
type GenesisState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Params defines all the parameters of the module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
2025-10-03 14:45:52 -04:00
// Export format version for future migrations
ExportVersion uint32 `protobuf:"varint,2,opt,name=export_version,json=exportVersion,proto3" json:"export_version,omitempty"`
}
func (x *GenesisState) Reset() {
*x = GenesisState{}
if protoimpl.UnsafeEnabled {
mi := &file_did_v1_genesis_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GenesisState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GenesisState) ProtoMessage() {}
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) Descriptor() ([]byte, []int) {
return file_did_v1_genesis_proto_rawDescGZIP(), []int{0}
}
func (x *GenesisState) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
2025-10-03 14:45:52 -04:00
func (x *GenesisState) GetExportVersion() uint32 {
if x != nil {
return x.ExportVersion
}
return 0
}
2024-12-24 10:38:17 -05:00
// Params defines the set of module parameters.
type Params struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2025-10-03 14:45:52 -04:00
Document *DocumentParams `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
Webauthn *WebauthnParams `protobuf:"bytes,2,opt,name=webauthn,proto3" json:"webauthn,omitempty"`
2024-12-24 10:38:17 -05:00
}
func (x *Params) Reset() {
*x = Params{}
if protoimpl.UnsafeEnabled {
mi := &file_did_v1_genesis_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Params) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Params) ProtoMessage() {}
// Deprecated: Use Params.ProtoReflect.Descriptor instead.
func (*Params) Descriptor() ([]byte, []int) {
return file_did_v1_genesis_proto_rawDescGZIP(), []int{1}
}
2025-10-03 14:45:52 -04:00
func (x *Params) GetDocument() *DocumentParams {
if x != nil {
return x.Document
}
return nil
}
func (x *Params) GetWebauthn() *WebauthnParams {
2024-12-24 10:38:17 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.Webauthn
2024-12-24 10:38:17 -05:00
}
return nil
}
2025-10-03 14:45:52 -04:00
// DocumentParams defines the parameters for the DID module.
type DocumentParams struct {
2024-12-24 10:38:17 -05:00
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2025-10-03 14:45:52 -04:00
// AutoCreateVault enables automatic vault creation upon DID registration
AutoCreateVault bool `protobuf:"varint,1,opt,name=auto_create_vault,json=autoCreateVault,proto3" json:"auto_create_vault,omitempty"`
// MaxVerificationMethods limits the number of verification methods
MaxVerificationMethods int32 `protobuf:"varint,2,opt,name=max_verification_methods,json=maxVerificationMethods,proto3" json:"max_verification_methods,omitempty"`
// MaxServiceEndpoints limits the number of service endpoints
MaxServiceEndpoints int32 `protobuf:"varint,3,opt,name=max_service_endpoints,json=maxServiceEndpoints,proto3" json:"max_service_endpoints,omitempty"`
// MaxControllers limits the number of controllers per DID document
MaxControllers int32 `protobuf:"varint,4,opt,name=max_controllers,json=maxControllers,proto3" json:"max_controllers,omitempty"`
// DidDocumentMaxSize limits the maximum size of a DID document in bytes
DidDocumentMaxSize int64 `protobuf:"varint,5,opt,name=did_document_max_size,json=didDocumentMaxSize,proto3" json:"did_document_max_size,omitempty"`
// DidResolutionTimeout is the timeout for resolution operations in seconds
DidResolutionTimeout int64 `protobuf:"varint,6,opt,name=did_resolution_timeout,json=didResolutionTimeout,proto3" json:"did_resolution_timeout,omitempty"`
// KeyRotationInterval is the recommended interval for key rotation in seconds
KeyRotationInterval int64 `protobuf:"varint,7,opt,name=key_rotation_interval,json=keyRotationInterval,proto3" json:"key_rotation_interval,omitempty"`
// CredentialLifetime is the default lifetime in seconds
CredentialLifetime int64 `protobuf:"varint,8,opt,name=credential_lifetime,json=credentialLifetime,proto3" json:"credential_lifetime,omitempty"`
// Supported Assertion methods
SupportedAssertionMethods []string `protobuf:"bytes,9,rep,name=supported_assertion_methods,json=supportedAssertionMethods,proto3" json:"supported_assertion_methods,omitempty"`
// Supported Authentication methods
SupportedAuthenticationMethods []string `protobuf:"bytes,10,rep,name=supported_authentication_methods,json=supportedAuthenticationMethods,proto3" json:"supported_authentication_methods,omitempty"`
// Supported Invocation methods
SupportedInvocationMethods []string `protobuf:"bytes,11,rep,name=supported_invocation_methods,json=supportedInvocationMethods,proto3" json:"supported_invocation_methods,omitempty"`
// Supported Delegation methods
SupportedDelegationMethods []string `protobuf:"bytes,12,rep,name=supported_delegation_methods,json=supportedDelegationMethods,proto3" json:"supported_delegation_methods,omitempty"`
}
func (x *DocumentParams) Reset() {
*x = DocumentParams{}
2024-12-24 10:38:17 -05:00
if protoimpl.UnsafeEnabled {
mi := &file_did_v1_genesis_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) String() string {
2024-12-24 10:38:17 -05:00
return protoimpl.X.MessageStringOf(x)
}
2025-10-03 14:45:52 -04:00
func (*DocumentParams) ProtoMessage() {}
2024-12-24 10:38:17 -05:00
2025-10-03 14:45:52 -04:00
// Deprecated: Use DocumentParams.ProtoReflect.Descriptor instead.
func (*DocumentParams) Descriptor() ([]byte, []int) {
2024-12-24 10:38:17 -05:00
return file_did_v1_genesis_proto_rawDescGZIP(), []int{2}
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetAutoCreateVault() bool {
2024-12-24 10:38:17 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.AutoCreateVault
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return false
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetMaxVerificationMethods() int32 {
2024-12-24 10:38:17 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.MaxVerificationMethods
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetMaxServiceEndpoints() int32 {
if x != nil {
return x.MaxServiceEndpoints
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetMaxControllers() int32 {
if x != nil {
return x.MaxControllers
}
return 0
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetDidDocumentMaxSize() int64 {
if x != nil {
return x.DidDocumentMaxSize
}
return 0
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetDidResolutionTimeout() int64 {
2024-12-24 10:38:17 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.DidResolutionTimeout
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetKeyRotationInterval() int64 {
2024-12-24 10:38:17 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.KeyRotationInterval
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetCredentialLifetime() int64 {
2024-12-24 10:38:17 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.CredentialLifetime
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetSupportedAssertionMethods() []string {
2024-12-24 10:38:17 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.SupportedAssertionMethods
2024-12-24 10:38:17 -05:00
}
return nil
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetSupportedAuthenticationMethods() []string {
if x != nil {
return x.SupportedAuthenticationMethods
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return nil
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetSupportedInvocationMethods() []string {
2024-12-24 10:38:17 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.SupportedInvocationMethods
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return nil
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
func (x *DocumentParams) GetSupportedDelegationMethods() []string {
2024-12-24 10:38:17 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.SupportedDelegationMethods
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
return nil
2024-12-24 10:38:17 -05:00
}
2025-10-03 14:45:52 -04:00
// WebauthnParams defines the parameters for the WebAuthn module.
type WebauthnParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2025-10-03 14:45:52 -04:00
// ChallengeTimeout is the default timeout in seconds
ChallengeTimeout int64 `protobuf:"varint,1,opt,name=challenge_timeout,json=challengeTimeout,proto3" json:"challenge_timeout,omitempty"`
// AllowedOrigins are the allowed WebAuthn origins for credential creation
AllowedOrigins []string `protobuf:"bytes,2,rep,name=allowed_origins,json=allowedOrigins,proto3" json:"allowed_origins,omitempty"`
// SupportedAlgorithms are the supported signature for WebAuthn credentials
SupportedAlgorithms []string `protobuf:"bytes,3,rep,name=supported_algorithms,json=supportedAlgorithms,proto3" json:"supported_algorithms,omitempty"`
// RequireUserVerification enforces verification for WebAuthn credentials
RequireUserVerification bool `protobuf:"varint,4,opt,name=require_user_verification,json=requireUserVerification,proto3" json:"require_user_verification,omitempty"`
// MaxCredentialsPerDID limits the number of WebAuthn credentials per DID
MaxCredentialsPerDid int32 `protobuf:"varint,5,opt,name=max_credentials_per_did,json=maxCredentialsPerDid,proto3" json:"max_credentials_per_did,omitempty"`
// DefaultRPID is the default Relying Party ID for WebAuthn operations
DefaultRpId string `protobuf:"bytes,6,opt,name=default_rp_id,json=defaultRpId,proto3" json:"default_rp_id,omitempty"`
// DefaultRPName is the default Relying Party name for WebAuthn operations
DefaultRpName string `protobuf:"bytes,7,opt,name=default_rp_name,json=defaultRpName,proto3" json:"default_rp_name,omitempty"`
}
func (x *WebauthnParams) Reset() {
*x = WebauthnParams{}
if protoimpl.UnsafeEnabled {
2025-10-03 14:45:52 -04:00
mi := &file_did_v1_genesis_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
2025-10-03 14:45:52 -04:00
func (x *WebauthnParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
2025-10-03 14:45:52 -04:00
func (*WebauthnParams) ProtoMessage() {}
2025-10-03 14:45:52 -04:00
// Deprecated: Use WebauthnParams.ProtoReflect.Descriptor instead.
func (*WebauthnParams) Descriptor() ([]byte, []int) {
return file_did_v1_genesis_proto_rawDescGZIP(), []int{3}
}
2025-10-03 14:45:52 -04:00
func (x *WebauthnParams) GetChallengeTimeout() int64 {
2024-10-08 16:43:59 -04:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.ChallengeTimeout
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
func (x *WebauthnParams) GetAllowedOrigins() []string {
2024-10-08 16:43:59 -04:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.AllowedOrigins
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
return nil
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
func (x *WebauthnParams) GetSupportedAlgorithms() []string {
2024-10-08 16:43:59 -04:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.SupportedAlgorithms
2024-10-08 16:43:59 -04:00
}
return nil
}
2025-10-03 14:45:52 -04:00
func (x *WebauthnParams) GetRequireUserVerification() bool {
2024-10-08 16:43:59 -04:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.RequireUserVerification
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
return false
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
func (x *WebauthnParams) GetMaxCredentialsPerDid() int32 {
2024-10-08 16:43:59 -04:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.MaxCredentialsPerDid
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
func (x *WebauthnParams) GetDefaultRpId() string {
2024-10-08 16:43:59 -04:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.DefaultRpId
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
return ""
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
func (x *WebauthnParams) GetDefaultRpName() string {
2024-10-08 16:43:59 -04:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x.DefaultRpName
2024-10-08 16:43:59 -04:00
}
2025-10-03 14:45:52 -04:00
return ""
2024-10-08 16:43:59 -04:00
}
var File_did_v1_genesis_proto protoreflect.FileDescriptor
var file_did_v1_genesis_proto_rawDesc = []byte{
0x0a, 0x14, 0x64, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x1a, 0x11,
0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67,
2025-10-03 14:45:52 -04:00
0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73,
0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x18, 0x01, 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,
2025-10-03 14:45:52 -04:00
0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f,
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x65,
0x78, 0x70, 0x6f, 0x72, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x89, 0x01, 0x0a,
0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x32, 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d,
0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x69, 0x64, 0x2e,
0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x52, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x08, 0x77,
0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e,
0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x08, 0x77, 0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x3a,
0x17, 0x98, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x0a, 0x64, 0x69,
0x64, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xb5, 0x05, 0x0a, 0x0e, 0x44, 0x6f, 0x63,
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x61,
0x75, 0x74, 0x6f, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x75, 0x6c, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x61, 0x75, 0x74, 0x6f, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x38, 0x0a, 0x18, 0x6d, 0x61, 0x78, 0x5f, 0x76,
0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x68,
0x6f, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x6d, 0x61, 0x78, 0x56, 0x65,
0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64,
0x73, 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
0x52, 0x13, 0x6d, 0x61, 0x78, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70,
0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x6e,
0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e,
0x6d, 0x61, 0x78, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x73, 0x12, 0x31,
0x0a, 0x15, 0x64, 0x69, 0x64, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d,
0x61, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x64,
0x69, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x61, 0x78, 0x53, 0x69, 0x7a,
0x65, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74,
0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
0x03, 0x52, 0x14, 0x64, 0x69, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e,
0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x6b, 0x65, 0x79, 0x5f, 0x72,
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x6b, 0x65, 0x79, 0x52, 0x6f, 0x74, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x2f, 0x0a, 0x13, 0x63,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69,
0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x1b,
0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74,
0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28,
0x09, 0x52, 0x19, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65,
0x72, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x48, 0x0a, 0x20,
0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,
0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73,
0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x1e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65,
0x64, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d,
0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72,
0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d,
0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x1a, 0x73, 0x75,
0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x73, 0x75, 0x70, 0x70,
0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x1a,
0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01,
0x22, 0xde, 0x02, 0x0a, 0x0e, 0x57, 0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65,
0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10,
0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
0x12, 0x27, 0x0a, 0x0f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x6f, 0x72, 0x69, 0x67,
0x69, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
0x65, 0x64, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x73, 0x75, 0x70,
0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d,
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74,
0x65, 0x64, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x12, 0x3a, 0x0a, 0x19,
0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72,
0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
0x17, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x55, 0x73, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69,
0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x17, 0x6d, 0x61, 0x78, 0x5f,
0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f,
0x64, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x6d, 0x61, 0x78, 0x43, 0x72,
0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x50, 0x65, 0x72, 0x44, 0x69, 0x64, 0x12,
0x22, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x72, 0x70, 0x5f, 0x69, 0x64,
0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52,
0x70, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x72,
0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65,
0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f,
0x01, 0x42, 0x7d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x42,
0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72,
0x2d, 0x69, 0x6f, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x64, 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,
}
var (
file_did_v1_genesis_proto_rawDescOnce sync.Once
file_did_v1_genesis_proto_rawDescData = file_did_v1_genesis_proto_rawDesc
)
func file_did_v1_genesis_proto_rawDescGZIP() []byte {
file_did_v1_genesis_proto_rawDescOnce.Do(func() {
file_did_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_did_v1_genesis_proto_rawDescData)
})
return file_did_v1_genesis_proto_rawDescData
}
2025-10-03 14:45:52 -04:00
var file_did_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_did_v1_genesis_proto_goTypes = []interface{}{
2025-10-03 14:45:52 -04:00
(*GenesisState)(nil), // 0: did.v1.GenesisState
(*Params)(nil), // 1: did.v1.Params
(*DocumentParams)(nil), // 2: did.v1.DocumentParams
(*WebauthnParams)(nil), // 3: did.v1.WebauthnParams
2024-09-14 14:27:45 -04:00
}
var file_did_v1_genesis_proto_depIdxs = []int32{
2024-12-24 10:38:17 -05:00
1, // 0: did.v1.GenesisState.params:type_name -> did.v1.Params
2025-10-03 14:45:52 -04:00
2, // 1: did.v1.Params.document:type_name -> did.v1.DocumentParams
3, // 2: did.v1.Params.webauthn:type_name -> did.v1.WebauthnParams
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
2024-09-14 14:27:45 -04:00
}
func init() { file_did_v1_genesis_proto_init() }
func file_did_v1_genesis_proto_init() {
if File_did_v1_genesis_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_did_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GenesisState); i {
case 0:
return &v.state
2024-07-05 22:20:13 -04:00
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_did_v1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
2024-12-24 10:38:17 -05:00
switch v := v.(*Params); i {
2024-10-08 16:43:59 -04:00
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_did_v1_genesis_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
2025-10-03 14:45:52 -04:00
switch v := v.(*DocumentParams); i {
2024-12-24 10:38:17 -05:00
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_did_v1_genesis_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
2025-10-03 14:45:52 -04:00
switch v := v.(*WebauthnParams); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2024-07-05 22:20:13 -04:00
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_did_v1_genesis_proto_rawDesc,
NumEnums: 0,
2025-10-03 14:45:52 -04:00
NumMessages: 4,
2024-07-05 22:20:13 -04:00
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_did_v1_genesis_proto_goTypes,
DependencyIndexes: file_did_v1_genesis_proto_depIdxs,
MessageInfos: file_did_v1_genesis_proto_msgTypes,
}.Build()
File_did_v1_genesis_proto = out.File
file_did_v1_genesis_proto_rawDesc = nil
file_did_v1_genesis_proto_goTypes = nil
file_did_v1_genesis_proto_depIdxs = nil
}