2024-09-26 18:01:49 -04:00
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
2024-11-26 22:05:50 -05:00
package dwnv1
2024-09-26 18:01:49 -04:00
import (
fmt "fmt"
2025-10-03 14:45:52 -04:00
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
2024-09-26 18:01:49 -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"
)
2025-10-03 14:45:52 -04:00
var _ protoreflect . List = ( * _GenesisState_2_list )( nil )
type _GenesisState_2_list struct {
list * [] * DWNRecord
}
func ( x * _GenesisState_2_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _GenesisState_2_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _GenesisState_2_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * DWNRecord )
( * x . list )[ i ] = concreteValue
}
func ( x * _GenesisState_2_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * DWNRecord )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _GenesisState_2_list ) AppendMutable () protoreflect . Value {
v := new ( DWNRecord )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _GenesisState_2_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _GenesisState_2_list ) NewElement () protoreflect . Value {
v := new ( DWNRecord )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _GenesisState_2_list ) IsValid () bool {
return x . list != nil
}
var _ protoreflect . List = ( * _GenesisState_3_list )( nil )
type _GenesisState_3_list struct {
list * [] * DWNProtocol
}
func ( x * _GenesisState_3_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _GenesisState_3_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _GenesisState_3_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * DWNProtocol )
( * x . list )[ i ] = concreteValue
}
func ( x * _GenesisState_3_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * DWNProtocol )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _GenesisState_3_list ) AppendMutable () protoreflect . Value {
v := new ( DWNProtocol )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _GenesisState_3_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _GenesisState_3_list ) NewElement () protoreflect . Value {
v := new ( DWNProtocol )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _GenesisState_3_list ) IsValid () bool {
return x . list != nil
}
var _ protoreflect . List = ( * _GenesisState_4_list )( nil )
type _GenesisState_4_list struct {
list * [] * DWNPermission
}
func ( x * _GenesisState_4_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _GenesisState_4_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _GenesisState_4_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * DWNPermission )
( * x . list )[ i ] = concreteValue
}
func ( x * _GenesisState_4_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * DWNPermission )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _GenesisState_4_list ) AppendMutable () protoreflect . Value {
v := new ( DWNPermission )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _GenesisState_4_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _GenesisState_4_list ) NewElement () protoreflect . Value {
v := new ( DWNPermission )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _GenesisState_4_list ) IsValid () bool {
return x . list != nil
}
var _ protoreflect . List = ( * _GenesisState_5_list )( nil )
type _GenesisState_5_list struct {
list * [] * VaultState
}
func ( x * _GenesisState_5_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _GenesisState_5_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _GenesisState_5_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * VaultState )
( * x . list )[ i ] = concreteValue
}
func ( x * _GenesisState_5_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * VaultState )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _GenesisState_5_list ) AppendMutable () protoreflect . Value {
v := new ( VaultState )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _GenesisState_5_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _GenesisState_5_list ) NewElement () protoreflect . Value {
v := new ( VaultState )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _GenesisState_5_list ) IsValid () bool {
return x . list != nil
}
2024-09-26 18:01:49 -04:00
var (
2025-10-03 14:45:52 -04:00
md_GenesisState protoreflect . MessageDescriptor
fd_GenesisState_params protoreflect . FieldDescriptor
fd_GenesisState_records protoreflect . FieldDescriptor
fd_GenesisState_protocols protoreflect . FieldDescriptor
fd_GenesisState_permissions protoreflect . FieldDescriptor
fd_GenesisState_vaults protoreflect . FieldDescriptor
2024-09-26 18:01:49 -04:00
)
func init () {
2024-11-26 22:05:50 -05:00
file_dwn_v1_genesis_proto_init ()
md_GenesisState = File_dwn_v1_genesis_proto . Messages (). ByName ( "GenesisState" )
2024-09-26 18:01:49 -04:00
fd_GenesisState_params = md_GenesisState . Fields (). ByName ( "params" )
2025-10-03 14:45:52 -04:00
fd_GenesisState_records = md_GenesisState . Fields (). ByName ( "records" )
fd_GenesisState_protocols = md_GenesisState . Fields (). ByName ( "protocols" )
fd_GenesisState_permissions = md_GenesisState . Fields (). ByName ( "permissions" )
fd_GenesisState_vaults = md_GenesisState . Fields (). ByName ( "vaults" )
2024-09-26 18:01:49 -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 {
2024-11-26 22:05:50 -05:00
mi := & file_dwn_v1_genesis_proto_msgTypes [ 0 ]
2024-09-26 18:01:49 -04:00
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
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 len ( x . Records ) != 0 {
value := protoreflect . ValueOfList ( & _GenesisState_2_list { list : & x . Records })
if ! f ( fd_GenesisState_records , value ) {
return
}
}
if len ( x . Protocols ) != 0 {
value := protoreflect . ValueOfList ( & _GenesisState_3_list { list : & x . Protocols })
if ! f ( fd_GenesisState_protocols , value ) {
return
}
}
if len ( x . Permissions ) != 0 {
value := protoreflect . ValueOfList ( & _GenesisState_4_list { list : & x . Permissions })
if ! f ( fd_GenesisState_permissions , value ) {
return
}
}
if len ( x . Vaults ) != 0 {
value := protoreflect . ValueOfList ( & _GenesisState_5_list { list : & x . Vaults })
if ! f ( fd_GenesisState_vaults , value ) {
return
}
}
2024-09-26 18:01:49 -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 () {
2024-11-26 22:05:50 -05:00
case "dwn.v1.GenesisState.params" :
2024-09-26 18:01:49 -04:00
return x . Params != nil
2025-10-03 14:45:52 -04:00
case "dwn.v1.GenesisState.records" :
return len ( x . Records ) != 0
case "dwn.v1.GenesisState.protocols" :
return len ( x . Protocols ) != 0
case "dwn.v1.GenesisState.permissions" :
return len ( x . Permissions ) != 0
case "dwn.v1.GenesisState.vaults" :
return len ( x . Vaults ) != 0
2024-09-26 18:01:49 -04:00
default :
if fd . IsExtension () {
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.GenesisState" ))
2024-09-26 18:01:49 -04:00
}
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "message dwn.v1.GenesisState does not contain field %s" , fd . FullName ()))
2024-09-26 18:01:49 -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.
func ( x * fastReflection_GenesisState ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
2024-11-26 22:05:50 -05:00
case "dwn.v1.GenesisState.params" :
2024-09-26 18:01:49 -04:00
x . Params = nil
2025-10-03 14:45:52 -04:00
case "dwn.v1.GenesisState.records" :
x . Records = nil
case "dwn.v1.GenesisState.protocols" :
x . Protocols = nil
case "dwn.v1.GenesisState.permissions" :
x . Permissions = nil
case "dwn.v1.GenesisState.vaults" :
x . Vaults = nil
2024-09-26 18:01:49 -04:00
default :
if fd . IsExtension () {
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.GenesisState" ))
2024-09-26 18:01:49 -04:00
}
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "message dwn.v1.GenesisState does not contain field %s" , fd . FullName ()))
2024-09-26 18:01:49 -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.
func ( x * fastReflection_GenesisState ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
2024-11-26 22:05:50 -05:00
case "dwn.v1.GenesisState.params" :
2024-09-26 18:01:49 -04:00
value := x . Params
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
2025-10-03 14:45:52 -04:00
case "dwn.v1.GenesisState.records" :
if len ( x . Records ) == 0 {
return protoreflect . ValueOfList ( & _GenesisState_2_list {})
}
listValue := & _GenesisState_2_list { list : & x . Records }
return protoreflect . ValueOfList ( listValue )
case "dwn.v1.GenesisState.protocols" :
if len ( x . Protocols ) == 0 {
return protoreflect . ValueOfList ( & _GenesisState_3_list {})
}
listValue := & _GenesisState_3_list { list : & x . Protocols }
return protoreflect . ValueOfList ( listValue )
case "dwn.v1.GenesisState.permissions" :
if len ( x . Permissions ) == 0 {
return protoreflect . ValueOfList ( & _GenesisState_4_list {})
}
listValue := & _GenesisState_4_list { list : & x . Permissions }
return protoreflect . ValueOfList ( listValue )
case "dwn.v1.GenesisState.vaults" :
if len ( x . Vaults ) == 0 {
return protoreflect . ValueOfList ( & _GenesisState_5_list {})
}
listValue := & _GenesisState_5_list { list : & x . Vaults }
return protoreflect . ValueOfList ( listValue )
2024-09-26 18:01:49 -04:00
default :
if descriptor . IsExtension () {
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.GenesisState" ))
2024-09-26 18:01:49 -04:00
}
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "message dwn.v1.GenesisState does not contain field %s" , descriptor . FullName ()))
2024-09-26 18:01:49 -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.
func ( x * fastReflection_GenesisState ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
2024-11-26 22:05:50 -05:00
case "dwn.v1.GenesisState.params" :
2024-09-26 18:01:49 -04:00
x . Params = value . Message (). Interface ().( * Params )
2025-10-03 14:45:52 -04:00
case "dwn.v1.GenesisState.records" :
lv := value . List ()
clv := lv .( * _GenesisState_2_list )
x . Records = * clv . list
case "dwn.v1.GenesisState.protocols" :
lv := value . List ()
clv := lv .( * _GenesisState_3_list )
x . Protocols = * clv . list
case "dwn.v1.GenesisState.permissions" :
lv := value . List ()
clv := lv .( * _GenesisState_4_list )
x . Permissions = * clv . list
case "dwn.v1.GenesisState.vaults" :
lv := value . List ()
clv := lv .( * _GenesisState_5_list )
x . Vaults = * clv . list
2024-09-26 18:01:49 -04:00
default :
if fd . IsExtension () {
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.GenesisState" ))
2024-09-26 18:01:49 -04:00
}
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "message dwn.v1.GenesisState does not contain field %s" , fd . FullName ()))
2024-09-26 18:01:49 -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 {
switch fd . FullName () {
2024-11-26 22:05:50 -05:00
case "dwn.v1.GenesisState.params" :
2024-09-26 18:01:49 -04:00
if x . Params == nil {
x . Params = new ( Params )
}
return protoreflect . ValueOfMessage ( x . Params . ProtoReflect ())
2025-10-03 14:45:52 -04:00
case "dwn.v1.GenesisState.records" :
if x . Records == nil {
x . Records = [] * DWNRecord {}
}
value := & _GenesisState_2_list { list : & x . Records }
return protoreflect . ValueOfList ( value )
case "dwn.v1.GenesisState.protocols" :
if x . Protocols == nil {
x . Protocols = [] * DWNProtocol {}
}
value := & _GenesisState_3_list { list : & x . Protocols }
return protoreflect . ValueOfList ( value )
case "dwn.v1.GenesisState.permissions" :
if x . Permissions == nil {
x . Permissions = [] * DWNPermission {}
}
value := & _GenesisState_4_list { list : & x . Permissions }
return protoreflect . ValueOfList ( value )
case "dwn.v1.GenesisState.vaults" :
if x . Vaults == nil {
x . Vaults = [] * VaultState {}
}
value := & _GenesisState_5_list { list : & x . Vaults }
return protoreflect . ValueOfList ( value )
2024-09-26 18:01:49 -04:00
default :
if fd . IsExtension () {
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.GenesisState" ))
2024-09-26 18:01:49 -04:00
}
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "message dwn.v1.GenesisState does not contain field %s" , fd . FullName ()))
2024-09-26 18:01:49 -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 {
switch fd . FullName () {
2024-11-26 22:05:50 -05:00
case "dwn.v1.GenesisState.params" :
2024-09-26 18:01:49 -04:00
m := new ( Params )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
2025-10-03 14:45:52 -04:00
case "dwn.v1.GenesisState.records" :
list := [] * DWNRecord {}
return protoreflect . ValueOfList ( & _GenesisState_2_list { list : & list })
case "dwn.v1.GenesisState.protocols" :
list := [] * DWNProtocol {}
return protoreflect . ValueOfList ( & _GenesisState_3_list { list : & list })
case "dwn.v1.GenesisState.permissions" :
list := [] * DWNPermission {}
return protoreflect . ValueOfList ( & _GenesisState_4_list { list : & list })
case "dwn.v1.GenesisState.vaults" :
list := [] * VaultState {}
return protoreflect . ValueOfList ( & _GenesisState_5_list { list : & list })
2024-09-26 18:01:49 -04:00
default :
if fd . IsExtension () {
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.GenesisState" ))
2024-09-26 18:01:49 -04:00
}
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "message dwn.v1.GenesisState does not contain field %s" , fd . FullName ()))
2024-09-26 18:01:49 -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 {
switch d . FullName () {
default :
2024-11-26 22:05:50 -05:00
panic ( fmt . Errorf ( "%s is not a oneof field in dwn.v1.GenesisState" , d . FullName ()))
2024-09-26 18:01:49 -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 {
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 ) {
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 {
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 {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * GenesisState )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
if x . Params != nil {
l = options . Size ( x . Params )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
2025-10-03 14:45:52 -04:00
if len ( x . Records ) > 0 {
for _ , e := range x . Records {
l = options . Size ( e )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
}
if len ( x . Protocols ) > 0 {
for _ , e := range x . Protocols {
l = options . Size ( e )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
}
if len ( x . Permissions ) > 0 {
for _ , e := range x . Permissions {
l = options . Size ( e )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
}
if len ( x . Vaults ) > 0 {
for _ , e := range x . Vaults {
l = options . Size ( e )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
}
2024-09-26 18:01:49 -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 )
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 . Vaults ) > 0 {
for iNdEx := len ( x . Vaults ) - 1 ; iNdEx >= 0 ; iNdEx -- {
encoded , err := options . Marshal ( x . Vaults [ iNdEx ])
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0x2a
}
}
if len ( x . Permissions ) > 0 {
for iNdEx := len ( x . Permissions ) - 1 ; iNdEx >= 0 ; iNdEx -- {
encoded , err := options . Marshal ( x . Permissions [ iNdEx ])
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0x22
}
}
if len ( x . Protocols ) > 0 {
for iNdEx := len ( x . Protocols ) - 1 ; iNdEx >= 0 ; iNdEx -- {
encoded , err := options . Marshal ( x . Protocols [ iNdEx ])
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0x1a
}
}
if len ( x . Records ) > 0 {
for iNdEx := len ( x . Records ) - 1 ; iNdEx >= 0 ; iNdEx -- {
encoded , err := options . Marshal ( x . Records [ iNdEx ])
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0x12
}
}
2024-09-26 18:01:49 -04:00
if x . Params != nil {
encoded , err := options . Marshal ( x . Params )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0xa
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ().( * GenesisState )
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" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: GenesisState: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Params" , wireType )
}
var msglen int
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
if x . Params == nil {
x . Params = & Params {}
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Params ); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
iNdEx = postIndex
2025-10-03 14:45:52 -04:00
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Records" , wireType )
2024-09-26 18:01:49 -04:00
}
2025-10-03 14:45:52 -04: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
}
2024-09-26 18:01:49 -04:00
}
2025-10-03 14:45:52 -04:00
if msglen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
2024-09-26 18:01:49 -04:00
}
2025-10-03 14:45:52 -04:00
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
2024-09-27 20:58:05 -04:00
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
2025-10-03 14:45:52 -04:00
x . Records = append ( x . Records , & DWNRecord {})
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Records [ len ( x . Records ) - 1 ]); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
iNdEx = postIndex
case 3 :
2024-12-02 14:27:18 -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 Protocols" , wireType )
2024-12-02 14:27:18 -05:00
}
2024-12-18 15:53:45 -05:00
var msglen int
2024-12-02 14:27:18 -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 ++
2024-12-18 15:53:45 -05:00
msglen |= int ( b & 0x7F ) << shift
2024-12-02 14:27:18 -05:00
if b < 0x80 {
break
}
}
2024-12-18 15:53:45 -05:00
if msglen < 0 {
2024-12-02 14:27:18 -05:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
2024-12-18 15:53:45 -05:00
postIndex := iNdEx + msglen
2024-12-02 14:27:18 -05: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 . Protocols = append ( x . Protocols , & DWNProtocol {})
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Protocols [ len ( x . Protocols ) - 1 ]); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
iNdEx = postIndex
case 4 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Permissions" , 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
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
x . Permissions = append ( x . Permissions , & DWNPermission {})
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Permissions [ len ( x . Permissions ) - 1 ]); err != nil {
2024-12-18 15:53:45 -05:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
2024-12-02 14:27:18 -05:00
}
iNdEx = postIndex
2025-10-03 14:45:52 -04:00
case 5 :
2024-12-02 14:27:18 -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 Vaults" , wireType )
2024-12-02 14:27:18 -05:00
}
2024-12-18 15:53:45 -05:00
var msglen int
2024-12-02 14:27:18 -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 ++
2024-12-18 15:53:45 -05:00
msglen |= int ( b & 0x7F ) << shift
2024-12-02 14:27:18 -05:00
if b < 0x80 {
break
}
}
2024-12-18 15:53:45 -05:00
if msglen < 0 {
2024-12-02 14:27:18 -05:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
2024-12-18 15:53:45 -05:00
postIndex := iNdEx + msglen
2024-12-02 14:27:18 -05: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 . Vaults = append ( x . Vaults , & VaultState {})
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Vaults [ len ( x . Vaults ) - 1 ]); err != nil {
2024-12-18 15:53:45 -05:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
2024-12-02 14:27:18 -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 ,
}
}
2025-10-03 14:45:52 -04:00
var _ protoreflect . List = ( * _Params_9_list )( nil )
type _Params_9_list struct {
list * [] string
}
func ( x * _Params_9_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _Params_9_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfString (( * x . list )[ i ])
}
func ( x * _Params_9_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . String ()
concreteValue := valueUnwrapped
( * x . list )[ i ] = concreteValue
}
func ( x * _Params_9_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . String ()
concreteValue := valueUnwrapped
* x . list = append ( * x . list , concreteValue )
}
func ( x * _Params_9_list ) AppendMutable () protoreflect . Value {
panic ( fmt . Errorf ( "AppendMutable can not be called on message Params at list field EncryptedProtocols as it is not of Message kind" ))
}
func ( x * _Params_9_list ) Truncate ( n int ) {
* x . list = ( * x . list )[: n ]
}
func ( x * _Params_9_list ) NewElement () protoreflect . Value {
v := ""
return protoreflect . ValueOfString ( v )
}
func ( x * _Params_9_list ) IsValid () bool {
return x . list != nil
}
2024-12-18 15:53:45 -05:00
2025-10-03 14:45:52 -04:00
var _ protoreflect . List = ( * _Params_10_list )( nil )
type _Params_10_list struct {
2024-12-18 15:53:45 -05:00
list * [] string
}
2025-10-03 14:45:52 -04:00
func ( x * _Params_10_list ) Len () int {
2024-12-18 15:53:45 -05:00
if x . list == nil {
return 0
}
return len ( * x . list )
}
2025-10-03 14:45:52 -04:00
func ( x * _Params_10_list ) Get ( i int ) protoreflect . Value {
2024-12-18 15:53:45 -05:00
return protoreflect . ValueOfString (( * x . list )[ i ])
}
2025-10-03 14:45:52 -04:00
func ( x * _Params_10_list ) Set ( i int , value protoreflect . Value ) {
2024-12-18 15:53:45 -05:00
valueUnwrapped := value . String ()
concreteValue := valueUnwrapped
( * x . list )[ i ] = concreteValue
}
2025-10-03 14:45:52 -04:00
func ( x * _Params_10_list ) Append ( value protoreflect . Value ) {
2024-12-18 15:53:45 -05:00
valueUnwrapped := value . String ()
concreteValue := valueUnwrapped
* x . list = append ( * x . list , concreteValue )
}
2025-10-03 14:45:52 -04:00
func ( x * _Params_10_list ) AppendMutable () protoreflect . Value {
panic ( fmt . Errorf ( "AppendMutable can not be called on message Params at list field EncryptedSchemas as it is not of Message kind" ))
2024-12-18 15:53:45 -05:00
}
2025-10-03 14:45:52 -04:00
func ( x * _Params_10_list ) Truncate ( n int ) {
2024-12-18 15:53:45 -05:00
* x . list = ( * x . list )[: n ]
}
2025-10-03 14:45:52 -04:00
func ( x * _Params_10_list ) NewElement () protoreflect . Value {
2024-12-18 15:53:45 -05:00
v := ""
return protoreflect . ValueOfString ( v )
}
2025-10-03 14:45:52 -04:00
func ( x * _Params_10_list ) IsValid () bool {
2024-12-18 15:53:45 -05:00
return x . list != nil
}
var (
2025-10-03 14:45:52 -04:00
md_Params protoreflect . MessageDescriptor
fd_Params_max_record_size protoreflect . FieldDescriptor
fd_Params_max_protocols_per_dwn protoreflect . FieldDescriptor
fd_Params_max_permissions_per_dwn protoreflect . FieldDescriptor
fd_Params_vault_creation_enabled protoreflect . FieldDescriptor
fd_Params_min_vault_refresh_interval protoreflect . FieldDescriptor
fd_Params_encryption_enabled protoreflect . FieldDescriptor
fd_Params_key_rotation_days protoreflect . FieldDescriptor
fd_Params_min_validators_for_key_gen protoreflect . FieldDescriptor
fd_Params_encrypted_protocols protoreflect . FieldDescriptor
fd_Params_encrypted_schemas protoreflect . FieldDescriptor
fd_Params_single_node_fallback protoreflect . FieldDescriptor
2024-12-18 15:53:45 -05:00
)
2024-09-27 20:58:05 -04:00
func init () {
2024-11-26 22:05:50 -05:00
file_dwn_v1_genesis_proto_init ()
2025-10-03 14:45:52 -04:00
md_Params = File_dwn_v1_genesis_proto . Messages (). ByName ( "Params" )
fd_Params_max_record_size = md_Params . Fields (). ByName ( "max_record_size" )
fd_Params_max_protocols_per_dwn = md_Params . Fields (). ByName ( "max_protocols_per_dwn" )
fd_Params_max_permissions_per_dwn = md_Params . Fields (). ByName ( "max_permissions_per_dwn" )
fd_Params_vault_creation_enabled = md_Params . Fields (). ByName ( "vault_creation_enabled" )
fd_Params_min_vault_refresh_interval = md_Params . Fields (). ByName ( "min_vault_refresh_interval" )
fd_Params_encryption_enabled = md_Params . Fields (). ByName ( "encryption_enabled" )
fd_Params_key_rotation_days = md_Params . Fields (). ByName ( "key_rotation_days" )
fd_Params_min_validators_for_key_gen = md_Params . Fields (). ByName ( "min_validators_for_key_gen" )
fd_Params_encrypted_protocols = md_Params . Fields (). ByName ( "encrypted_protocols" )
fd_Params_encrypted_schemas = md_Params . Fields (). ByName ( "encrypted_schemas" )
fd_Params_single_node_fallback = md_Params . Fields (). ByName ( "single_node_fallback" )
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
var _ protoreflect . Message = ( * fastReflection_Params )( nil )
2024-09-27 20:58:05 -04:00
2025-10-03 14:45:52 -04:00
type fastReflection_Params Params
2024-09-27 20:58:05 -04:00
2025-10-03 14:45:52 -04:00
func ( x * Params ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_Params )( x )
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) slowProtoReflect () protoreflect . Message {
mi := & file_dwn_v1_genesis_proto_msgTypes [ 1 ]
2024-09-27 20:58:05 -04:00
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
2025-10-03 14:45:52 -04:00
var _fastReflection_Params_messageType fastReflection_Params_messageType
var _ protoreflect . MessageType = fastReflection_Params_messageType {}
2024-09-27 20:58:05 -04:00
2025-10-03 14:45:52 -04:00
type fastReflection_Params_messageType struct {}
2024-09-27 20:58:05 -04:00
2025-10-03 14:45:52 -04:00
func ( x fastReflection_Params_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_Params )( nil )
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x fastReflection_Params_messageType ) New () protoreflect . Message {
return new ( fastReflection_Params )
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x fastReflection_Params_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_Params
2024-09-27 20:58:05 -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_Params ) Descriptor () protoreflect . MessageDescriptor {
return md_Params
2024-09-27 20:58:05 -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_Params ) Type () protoreflect . MessageType {
return _fastReflection_Params_messageType
2024-09-27 20:58:05 -04:00
}
// New returns a newly allocated and mutable empty message.
2025-10-03 14:45:52 -04:00
func ( x * fastReflection_Params ) New () protoreflect . Message {
return new ( fastReflection_Params )
2024-09-27 20:58:05 -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_Params ) Interface () protoreflect . ProtoMessage {
return ( * Params )( x )
2024-09-27 20:58:05 -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_Params ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . MaxRecordSize != uint64 ( 0 ) {
value := protoreflect . ValueOfUint64 ( x . MaxRecordSize )
if ! f ( fd_Params_max_record_size , value ) {
return
}
}
if x . MaxProtocolsPerDwn != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . MaxProtocolsPerDwn )
if ! f ( fd_Params_max_protocols_per_dwn , value ) {
return
}
}
if x . MaxPermissionsPerDwn != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . MaxPermissionsPerDwn )
if ! f ( fd_Params_max_permissions_per_dwn , value ) {
return
}
}
if x . VaultCreationEnabled != false {
value := protoreflect . ValueOfBool ( x . VaultCreationEnabled )
if ! f ( fd_Params_vault_creation_enabled , value ) {
return
}
}
if x . MinVaultRefreshInterval != uint64 ( 0 ) {
value := protoreflect . ValueOfUint64 ( x . MinVaultRefreshInterval )
if ! f ( fd_Params_min_vault_refresh_interval , value ) {
return
}
}
if x . EncryptionEnabled != false {
value := protoreflect . ValueOfBool ( x . EncryptionEnabled )
if ! f ( fd_Params_encryption_enabled , value ) {
return
}
}
if x . KeyRotationDays != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . KeyRotationDays )
if ! f ( fd_Params_key_rotation_days , value ) {
return
}
}
if x . MinValidatorsForKeyGen != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . MinValidatorsForKeyGen )
if ! f ( fd_Params_min_validators_for_key_gen , value ) {
2024-11-26 22:05:50 -05:00
return
}
}
2025-10-03 14:45:52 -04:00
if len ( x . EncryptedProtocols ) != 0 {
value := protoreflect . ValueOfList ( & _Params_9_list { list : & x . EncryptedProtocols })
if ! f ( fd_Params_encrypted_protocols , value ) {
2024-11-26 22:05:50 -05:00
return
}
}
2025-10-03 14:45:52 -04:00
if len ( x . EncryptedSchemas ) != 0 {
value := protoreflect . ValueOfList ( & _Params_10_list { list : & x . EncryptedSchemas })
if ! f ( fd_Params_encrypted_schemas , value ) {
2024-11-26 22:05:50 -05:00
return
}
}
2025-10-03 14:45:52 -04:00
if x . SingleNodeFallback != false {
value := protoreflect . ValueOfBool ( x . SingleNodeFallback )
if ! f ( fd_Params_single_node_fallback , value ) {
2024-09-27 20:58:05 -04:00
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
2025-10-03 14:45:52 -04:00
func ( x * fastReflection_Params ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-09-27 20:58:05 -04:00
switch fd . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.Params.max_record_size" :
return x . MaxRecordSize != uint64 ( 0 )
case "dwn.v1.Params.max_protocols_per_dwn" :
return x . MaxProtocolsPerDwn != uint32 ( 0 )
case "dwn.v1.Params.max_permissions_per_dwn" :
return x . MaxPermissionsPerDwn != uint32 ( 0 )
case "dwn.v1.Params.vault_creation_enabled" :
return x . VaultCreationEnabled != false
case "dwn.v1.Params.min_vault_refresh_interval" :
return x . MinVaultRefreshInterval != uint64 ( 0 )
case "dwn.v1.Params.encryption_enabled" :
return x . EncryptionEnabled != false
case "dwn.v1.Params.key_rotation_days" :
return x . KeyRotationDays != uint32 ( 0 )
case "dwn.v1.Params.min_validators_for_key_gen" :
return x . MinValidatorsForKeyGen != uint32 ( 0 )
case "dwn.v1.Params.encrypted_protocols" :
return len ( x . EncryptedProtocols ) != 0
case "dwn.v1.Params.encrypted_schemas" :
return len ( x . EncryptedSchemas ) != 0
case "dwn.v1.Params.single_node_fallback" :
return x . SingleNodeFallback != false
2024-09-27 20:58:05 -04:00
default :
if fd . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.Params" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.Params does not contain field %s" , fd . FullName ()))
2024-09-27 20:58:05 -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_Params ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-09-27 20:58:05 -04:00
switch fd . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.Params.max_record_size" :
x . MaxRecordSize = uint64 ( 0 )
case "dwn.v1.Params.max_protocols_per_dwn" :
x . MaxProtocolsPerDwn = uint32 ( 0 )
case "dwn.v1.Params.max_permissions_per_dwn" :
x . MaxPermissionsPerDwn = uint32 ( 0 )
case "dwn.v1.Params.vault_creation_enabled" :
x . VaultCreationEnabled = false
case "dwn.v1.Params.min_vault_refresh_interval" :
x . MinVaultRefreshInterval = uint64 ( 0 )
case "dwn.v1.Params.encryption_enabled" :
x . EncryptionEnabled = false
case "dwn.v1.Params.key_rotation_days" :
x . KeyRotationDays = uint32 ( 0 )
case "dwn.v1.Params.min_validators_for_key_gen" :
x . MinValidatorsForKeyGen = uint32 ( 0 )
case "dwn.v1.Params.encrypted_protocols" :
x . EncryptedProtocols = nil
case "dwn.v1.Params.encrypted_schemas" :
x . EncryptedSchemas = nil
case "dwn.v1.Params.single_node_fallback" :
x . SingleNodeFallback = false
2024-09-27 20:58:05 -04:00
default :
if fd . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.Params" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.Params does not contain field %s" , fd . FullName ()))
2024-09-27 20:58:05 -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_Params ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-27 20:58:05 -04:00
switch descriptor . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.Params.max_record_size" :
value := x . MaxRecordSize
return protoreflect . ValueOfUint64 ( value )
case "dwn.v1.Params.max_protocols_per_dwn" :
value := x . MaxProtocolsPerDwn
return protoreflect . ValueOfUint32 ( value )
case "dwn.v1.Params.max_permissions_per_dwn" :
value := x . MaxPermissionsPerDwn
return protoreflect . ValueOfUint32 ( value )
case "dwn.v1.Params.vault_creation_enabled" :
value := x . VaultCreationEnabled
return protoreflect . ValueOfBool ( value )
case "dwn.v1.Params.min_vault_refresh_interval" :
value := x . MinVaultRefreshInterval
return protoreflect . ValueOfUint64 ( value )
case "dwn.v1.Params.encryption_enabled" :
value := x . EncryptionEnabled
return protoreflect . ValueOfBool ( value )
case "dwn.v1.Params.key_rotation_days" :
value := x . KeyRotationDays
return protoreflect . ValueOfUint32 ( value )
case "dwn.v1.Params.min_validators_for_key_gen" :
value := x . MinValidatorsForKeyGen
return protoreflect . ValueOfUint32 ( value )
case "dwn.v1.Params.encrypted_protocols" :
if len ( x . EncryptedProtocols ) == 0 {
return protoreflect . ValueOfList ( & _Params_9_list {})
}
listValue := & _Params_9_list { list : & x . EncryptedProtocols }
return protoreflect . ValueOfList ( listValue )
case "dwn.v1.Params.encrypted_schemas" :
if len ( x . EncryptedSchemas ) == 0 {
return protoreflect . ValueOfList ( & _Params_10_list {})
2024-12-18 15:53:45 -05:00
}
2025-10-03 14:45:52 -04:00
listValue := & _Params_10_list { list : & x . EncryptedSchemas }
2024-12-18 15:53:45 -05:00
return protoreflect . ValueOfList ( listValue )
2025-10-03 14:45:52 -04:00
case "dwn.v1.Params.single_node_fallback" :
value := x . SingleNodeFallback
return protoreflect . ValueOfBool ( value )
2024-09-27 20:58:05 -04:00
default :
if descriptor . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.Params" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.Params does not contain field %s" , descriptor . FullName ()))
2024-09-27 20:58:05 -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_Params ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-09-27 20:58:05 -04:00
switch fd . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.Params.max_record_size" :
x . MaxRecordSize = value . Uint ()
case "dwn.v1.Params.max_protocols_per_dwn" :
x . MaxProtocolsPerDwn = uint32 ( value . Uint ())
case "dwn.v1.Params.max_permissions_per_dwn" :
x . MaxPermissionsPerDwn = uint32 ( value . Uint ())
case "dwn.v1.Params.vault_creation_enabled" :
x . VaultCreationEnabled = value . Bool ()
case "dwn.v1.Params.min_vault_refresh_interval" :
x . MinVaultRefreshInterval = value . Uint ()
case "dwn.v1.Params.encryption_enabled" :
x . EncryptionEnabled = value . Bool ()
case "dwn.v1.Params.key_rotation_days" :
x . KeyRotationDays = uint32 ( value . Uint ())
case "dwn.v1.Params.min_validators_for_key_gen" :
x . MinValidatorsForKeyGen = uint32 ( value . Uint ())
case "dwn.v1.Params.encrypted_protocols" :
lv := value . List ()
clv := lv .( * _Params_9_list )
x . EncryptedProtocols = * clv . list
case "dwn.v1.Params.encrypted_schemas" :
2024-12-18 15:53:45 -05:00
lv := value . List ()
2025-10-03 14:45:52 -04:00
clv := lv .( * _Params_10_list )
x . EncryptedSchemas = * clv . list
case "dwn.v1.Params.single_node_fallback" :
x . SingleNodeFallback = value . Bool ()
2024-09-27 20:58:05 -04:00
default :
if fd . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.Params" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.Params does not contain field %s" , fd . FullName ()))
2024-09-27 20:58:05 -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_Params ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-27 20:58:05 -04:00
switch fd . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.Params.encrypted_protocols" :
if x . EncryptedProtocols == nil {
x . EncryptedProtocols = [] string {}
}
value := & _Params_9_list { list : & x . EncryptedProtocols }
return protoreflect . ValueOfList ( value )
case "dwn.v1.Params.encrypted_schemas" :
if x . EncryptedSchemas == nil {
x . EncryptedSchemas = [] string {}
2024-12-18 15:53:45 -05:00
}
2025-10-03 14:45:52 -04:00
value := & _Params_10_list { list : & x . EncryptedSchemas }
2024-12-18 15:53:45 -05:00
return protoreflect . ValueOfList ( value )
2025-10-03 14:45:52 -04:00
case "dwn.v1.Params.max_record_size" :
panic ( fmt . Errorf ( "field max_record_size of message dwn.v1.Params is not mutable" ))
case "dwn.v1.Params.max_protocols_per_dwn" :
panic ( fmt . Errorf ( "field max_protocols_per_dwn of message dwn.v1.Params is not mutable" ))
case "dwn.v1.Params.max_permissions_per_dwn" :
panic ( fmt . Errorf ( "field max_permissions_per_dwn of message dwn.v1.Params is not mutable" ))
case "dwn.v1.Params.vault_creation_enabled" :
panic ( fmt . Errorf ( "field vault_creation_enabled of message dwn.v1.Params is not mutable" ))
case "dwn.v1.Params.min_vault_refresh_interval" :
panic ( fmt . Errorf ( "field min_vault_refresh_interval of message dwn.v1.Params is not mutable" ))
case "dwn.v1.Params.encryption_enabled" :
panic ( fmt . Errorf ( "field encryption_enabled of message dwn.v1.Params is not mutable" ))
case "dwn.v1.Params.key_rotation_days" :
panic ( fmt . Errorf ( "field key_rotation_days of message dwn.v1.Params is not mutable" ))
case "dwn.v1.Params.min_validators_for_key_gen" :
panic ( fmt . Errorf ( "field min_validators_for_key_gen of message dwn.v1.Params is not mutable" ))
case "dwn.v1.Params.single_node_fallback" :
panic ( fmt . Errorf ( "field single_node_fallback of message dwn.v1.Params is not mutable" ))
2024-09-27 20:58:05 -04:00
default :
if fd . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.Params" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.Params does not contain field %s" , fd . FullName ()))
2024-09-27 20:58:05 -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_Params ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-27 20:58:05 -04:00
switch fd . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.Params.max_record_size" :
return protoreflect . ValueOfUint64 ( uint64 ( 0 ))
case "dwn.v1.Params.max_protocols_per_dwn" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
case "dwn.v1.Params.max_permissions_per_dwn" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
case "dwn.v1.Params.vault_creation_enabled" :
return protoreflect . ValueOfBool ( false )
case "dwn.v1.Params.min_vault_refresh_interval" :
return protoreflect . ValueOfUint64 ( uint64 ( 0 ))
case "dwn.v1.Params.encryption_enabled" :
return protoreflect . ValueOfBool ( false )
case "dwn.v1.Params.key_rotation_days" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
case "dwn.v1.Params.min_validators_for_key_gen" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
case "dwn.v1.Params.encrypted_protocols" :
list := [] string {}
return protoreflect . ValueOfList ( & _Params_9_list { list : & list })
case "dwn.v1.Params.encrypted_schemas" :
2024-12-18 15:53:45 -05:00
list := [] string {}
2025-10-03 14:45:52 -04:00
return protoreflect . ValueOfList ( & _Params_10_list { list : & list })
case "dwn.v1.Params.single_node_fallback" :
return protoreflect . ValueOfBool ( false )
2024-09-27 20:58:05 -04:00
default :
if fd . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.Params" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.Params does not contain field %s" , fd . FullName ()))
2024-09-27 20:58:05 -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_Params ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-09-27 20:58:05 -04:00
switch d . FullName () {
default :
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in dwn.v1.Params" , d . FullName ()))
2024-09-27 20:58:05 -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_Params ) GetUnknown () protoreflect . RawFields {
2024-09-27 20:58:05 -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_Params ) SetUnknown ( fields protoreflect . RawFields ) {
2024-09-27 20:58:05 -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_Params ) IsValid () bool {
2024-09-27 20:58:05 -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_Params ) ProtoMethods () * protoiface . Methods {
2024-09-27 20:58:05 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2025-10-03 14:45:52 -04:00
x := input . Message . Interface ().( * Params )
2024-09-27 20:58:05 -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 . MaxRecordSize != 0 {
n += 1 + runtime . Sov ( uint64 ( x . MaxRecordSize ))
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
if x . MaxProtocolsPerDwn != 0 {
n += 1 + runtime . Sov ( uint64 ( x . MaxProtocolsPerDwn ))
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
if x . MaxPermissionsPerDwn != 0 {
n += 1 + runtime . Sov ( uint64 ( x . MaxPermissionsPerDwn ))
}
if x . VaultCreationEnabled {
n += 2
}
if x . MinVaultRefreshInterval != 0 {
n += 1 + runtime . Sov ( uint64 ( x . MinVaultRefreshInterval ))
}
if x . EncryptionEnabled {
n += 2
}
if x . KeyRotationDays != 0 {
n += 1 + runtime . Sov ( uint64 ( x . KeyRotationDays ))
}
if x . MinValidatorsForKeyGen != 0 {
n += 1 + runtime . Sov ( uint64 ( x . MinValidatorsForKeyGen ))
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
if len ( x . EncryptedProtocols ) > 0 {
for _ , s := range x . EncryptedProtocols {
2024-12-18 15:53:45 -05:00
l = len ( s )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
if len ( x . EncryptedSchemas ) > 0 {
for _ , s := range x . EncryptedSchemas {
l = len ( s )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
}
if x . SingleNodeFallback {
n += 2
}
2024-09-27 20:58:05 -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 ) {
2025-10-03 14:45:52 -04:00
x := input . Message . Interface ().( * Params )
2024-09-27 20:58:05 -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 . SingleNodeFallback {
i --
if x . SingleNodeFallback {
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
i --
dAtA [ i ] = 0x58
}
if len ( x . EncryptedSchemas ) > 0 {
for iNdEx := len ( x . EncryptedSchemas ) - 1 ; iNdEx >= 0 ; iNdEx -- {
i -= len ( x . EncryptedSchemas [ iNdEx ])
copy ( dAtA [ i :], x . EncryptedSchemas [ iNdEx ])
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . EncryptedSchemas [ iNdEx ])))
2024-12-18 15:53:45 -05:00
i --
2025-10-03 14:45:52 -04:00
dAtA [ i ] = 0x52
}
}
if len ( x . EncryptedProtocols ) > 0 {
for iNdEx := len ( x . EncryptedProtocols ) - 1 ; iNdEx >= 0 ; iNdEx -- {
i -= len ( x . EncryptedProtocols [ iNdEx ])
copy ( dAtA [ i :], x . EncryptedProtocols [ iNdEx ])
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . EncryptedProtocols [ iNdEx ])))
i --
dAtA [ i ] = 0x4a
2024-12-18 15:53:45 -05:00
}
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
if x . MinValidatorsForKeyGen != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . MinValidatorsForKeyGen ))
2024-11-26 22:05:50 -05:00
i --
2025-10-03 14:45:52 -04:00
dAtA [ i ] = 0x40
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
if x . KeyRotationDays != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . KeyRotationDays ))
2024-11-26 22:05:50 -05:00
i --
2025-10-03 14:45:52 -04:00
dAtA [ i ] = 0x38
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
if x . EncryptionEnabled {
2024-11-26 22:05:50 -05:00
i --
2025-10-03 14:45:52 -04:00
if x . EncryptionEnabled {
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
i --
dAtA [ i ] = 0x30
}
if x . MinVaultRefreshInterval != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . MinVaultRefreshInterval ))
i --
dAtA [ i ] = 0x28
}
if x . VaultCreationEnabled {
i --
if x . VaultCreationEnabled {
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
i --
dAtA [ i ] = 0x20
}
if x . MaxPermissionsPerDwn != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . MaxPermissionsPerDwn ))
i --
dAtA [ i ] = 0x18
}
if x . MaxProtocolsPerDwn != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . MaxProtocolsPerDwn ))
i --
dAtA [ i ] = 0x10
}
if x . MaxRecordSize != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . MaxRecordSize ))
i --
dAtA [ i ] = 0x8
2024-11-26 22:05:50 -05:00
}
2024-09-27 20:58:05 -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 ().( * Params )
2024-09-27 20:58:05 -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: Params: wiretype end group for non-group" )
2024-09-27 20:58:05 -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: Params: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-09-27 20:58:05 -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 MaxRecordSize" , wireType )
}
x . MaxRecordSize = 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 . MaxRecordSize |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 2 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field MaxProtocolsPerDwn" , wireType )
}
x . MaxProtocolsPerDwn = 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 . MaxProtocolsPerDwn |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 3 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field MaxPermissionsPerDwn" , wireType )
}
x . MaxPermissionsPerDwn = 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 . MaxPermissionsPerDwn |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 4 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field VaultCreationEnabled" , wireType )
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
var v int
2024-11-26 22:05:50 -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-11-26 22:05:50 -05:00
if b < 0x80 {
break
}
}
2025-10-03 14:45:52 -04:00
x . VaultCreationEnabled = bool ( v != 0 )
case 5 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field MinVaultRefreshInterval" , wireType )
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
x . MinVaultRefreshInterval = 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 . MinVaultRefreshInterval |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
case 6 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field EncryptionEnabled" , wireType )
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
var v int
2024-11-26 22:05:50 -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-11-26 22:05:50 -05:00
if b < 0x80 {
break
}
}
2025-10-03 14:45:52 -04:00
x . EncryptionEnabled = bool ( v != 0 )
case 7 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field KeyRotationDays" , wireType )
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
x . KeyRotationDays = 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 . KeyRotationDays |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
case 8 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field MinValidatorsForKeyGen" , wireType )
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
x . MinValidatorsForKeyGen = 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 . MinValidatorsForKeyGen |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 9 :
2024-11-26 22:05:50 -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 EncryptedProtocols" , wireType )
2024-11-26 22:05:50 -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 . EncryptedProtocols = append ( x . EncryptedProtocols , string ( dAtA [ iNdEx : postIndex ]))
2024-11-26 22:05:50 -05:00
iNdEx = postIndex
2025-10-03 14:45:52 -04:00
case 10 :
2024-11-26 22:05:50 -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 EncryptedSchemas" , wireType )
2024-09-27 20:58:05 -04:00
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
2025-10-03 14:45:52 -04:00
x . EncryptedSchemas = append ( x . EncryptedSchemas , string ( dAtA [ iNdEx : postIndex ]))
2024-09-27 20:58:05 -04:00
iNdEx = postIndex
2025-10-03 14:45:52 -04:00
case 11 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field SingleNodeFallback" , wireType )
}
var v int
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
x . SingleNodeFallback = bool ( v != 0 )
2024-09-27 20:58:05 -04:00
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx :])
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct {}{},
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var (
2025-10-03 14:45:52 -04:00
md_IPFSStatus protoreflect . MessageDescriptor
fd_IPFSStatus_peer_id protoreflect . FieldDescriptor
fd_IPFSStatus_peer_name protoreflect . FieldDescriptor
fd_IPFSStatus_peer_type protoreflect . FieldDescriptor
fd_IPFSStatus_version protoreflect . FieldDescriptor
2024-09-27 20:58:05 -04:00
)
func init () {
2024-11-26 22:05:50 -05:00
file_dwn_v1_genesis_proto_init ()
2025-10-03 14:45:52 -04:00
md_IPFSStatus = File_dwn_v1_genesis_proto . Messages (). ByName ( "IPFSStatus" )
fd_IPFSStatus_peer_id = md_IPFSStatus . Fields (). ByName ( "peer_id" )
fd_IPFSStatus_peer_name = md_IPFSStatus . Fields (). ByName ( "peer_name" )
fd_IPFSStatus_peer_type = md_IPFSStatus . Fields (). ByName ( "peer_type" )
fd_IPFSStatus_version = md_IPFSStatus . Fields (). ByName ( "version" )
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
var _ protoreflect . Message = ( * fastReflection_IPFSStatus )( nil )
2024-09-27 20:58:05 -04:00
2025-10-03 14:45:52 -04:00
type fastReflection_IPFSStatus IPFSStatus
2024-09-27 20:58:05 -04:00
2025-10-03 14:45:52 -04:00
func ( x * IPFSStatus ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_IPFSStatus )( x )
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x * IPFSStatus ) slowProtoReflect () protoreflect . Message {
mi := & file_dwn_v1_genesis_proto_msgTypes [ 2 ]
2024-09-27 20:58:05 -04:00
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
2025-10-03 14:45:52 -04:00
var _fastReflection_IPFSStatus_messageType fastReflection_IPFSStatus_messageType
var _ protoreflect . MessageType = fastReflection_IPFSStatus_messageType {}
2024-09-27 20:58:05 -04:00
2025-10-03 14:45:52 -04:00
type fastReflection_IPFSStatus_messageType struct {}
2024-09-27 20:58:05 -04:00
2025-10-03 14:45:52 -04:00
func ( x fastReflection_IPFSStatus_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_IPFSStatus )( nil )
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x fastReflection_IPFSStatus_messageType ) New () protoreflect . Message {
return new ( fastReflection_IPFSStatus )
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x fastReflection_IPFSStatus_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_IPFSStatus
2024-09-27 20:58:05 -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_IPFSStatus ) Descriptor () protoreflect . MessageDescriptor {
return md_IPFSStatus
2024-09-27 20:58:05 -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_IPFSStatus ) Type () protoreflect . MessageType {
return _fastReflection_IPFSStatus_messageType
2024-09-27 20:58:05 -04:00
}
// New returns a newly allocated and mutable empty message.
2025-10-03 14:45:52 -04:00
func ( x * fastReflection_IPFSStatus ) New () protoreflect . Message {
return new ( fastReflection_IPFSStatus )
2024-09-27 20:58:05 -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_IPFSStatus ) Interface () protoreflect . ProtoMessage {
return ( * IPFSStatus )( x )
2024-09-27 20:58:05 -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_IPFSStatus ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . PeerId != "" {
value := protoreflect . ValueOfString ( x . PeerId )
if ! f ( fd_IPFSStatus_peer_id , value ) {
return
}
}
if x . PeerName != "" {
value := protoreflect . ValueOfString ( x . PeerName )
if ! f ( fd_IPFSStatus_peer_name , value ) {
return
}
}
if x . PeerType != "" {
value := protoreflect . ValueOfString ( x . PeerType )
if ! f ( fd_IPFSStatus_peer_type , value ) {
2024-11-26 22:05:50 -05:00
return
}
}
2025-10-03 14:45:52 -04:00
if x . Version != "" {
value := protoreflect . ValueOfString ( x . Version )
if ! f ( fd_IPFSStatus_version , value ) {
2024-09-27 20:58:05 -04:00
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
2025-10-03 14:45:52 -04:00
func ( x * fastReflection_IPFSStatus ) Has ( fd protoreflect . FieldDescriptor ) bool {
2024-09-27 20:58:05 -04:00
switch fd . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.IPFSStatus.peer_id" :
return x . PeerId != ""
case "dwn.v1.IPFSStatus.peer_name" :
return x . PeerName != ""
case "dwn.v1.IPFSStatus.peer_type" :
return x . PeerType != ""
case "dwn.v1.IPFSStatus.version" :
return x . Version != ""
2024-09-27 20:58:05 -04:00
default :
if fd . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.IPFSStatus" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.IPFSStatus does not contain field %s" , fd . FullName ()))
2024-09-27 20:58:05 -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_IPFSStatus ) Clear ( fd protoreflect . FieldDescriptor ) {
2024-09-27 20:58:05 -04:00
switch fd . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.IPFSStatus.peer_id" :
x . PeerId = ""
case "dwn.v1.IPFSStatus.peer_name" :
x . PeerName = ""
case "dwn.v1.IPFSStatus.peer_type" :
x . PeerType = ""
case "dwn.v1.IPFSStatus.version" :
x . Version = ""
2024-09-27 20:58:05 -04:00
default :
if fd . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.IPFSStatus" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.IPFSStatus does not contain field %s" , fd . FullName ()))
2024-09-27 20:58:05 -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_IPFSStatus ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-27 20:58:05 -04:00
switch descriptor . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.IPFSStatus.peer_id" :
value := x . PeerId
return protoreflect . ValueOfString ( value )
case "dwn.v1.IPFSStatus.peer_name" :
value := x . PeerName
2024-11-26 22:05:50 -05:00
return protoreflect . ValueOfString ( value )
2025-10-03 14:45:52 -04:00
case "dwn.v1.IPFSStatus.peer_type" :
value := x . PeerType
return protoreflect . ValueOfString ( value )
case "dwn.v1.IPFSStatus.version" :
value := x . Version
2024-11-26 22:05:50 -05:00
return protoreflect . ValueOfString ( value )
2024-09-27 20:58:05 -04:00
default :
if descriptor . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.IPFSStatus" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.IPFSStatus does not contain field %s" , descriptor . FullName ()))
2024-09-27 20:58:05 -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_IPFSStatus ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2024-09-27 20:58:05 -04:00
switch fd . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.IPFSStatus.peer_id" :
x . PeerId = value . Interface ().( string )
case "dwn.v1.IPFSStatus.peer_name" :
x . PeerName = value . Interface ().( string )
case "dwn.v1.IPFSStatus.peer_type" :
x . PeerType = value . Interface ().( string )
case "dwn.v1.IPFSStatus.version" :
x . Version = value . Interface ().( string )
2024-09-27 20:58:05 -04:00
default :
if fd . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.IPFSStatus" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.IPFSStatus does not contain field %s" , fd . FullName ()))
2024-09-27 20:58:05 -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_IPFSStatus ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-27 20:58:05 -04:00
switch fd . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.IPFSStatus.peer_id" :
panic ( fmt . Errorf ( "field peer_id of message dwn.v1.IPFSStatus is not mutable" ))
case "dwn.v1.IPFSStatus.peer_name" :
panic ( fmt . Errorf ( "field peer_name of message dwn.v1.IPFSStatus is not mutable" ))
case "dwn.v1.IPFSStatus.peer_type" :
panic ( fmt . Errorf ( "field peer_type of message dwn.v1.IPFSStatus is not mutable" ))
case "dwn.v1.IPFSStatus.version" :
panic ( fmt . Errorf ( "field version of message dwn.v1.IPFSStatus is not mutable" ))
2024-09-27 20:58:05 -04:00
default :
if fd . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.IPFSStatus" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.IPFSStatus does not contain field %s" , fd . FullName ()))
2024-09-27 20:58:05 -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_IPFSStatus ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2024-09-27 20:58:05 -04:00
switch fd . FullName () {
2025-10-03 14:45:52 -04:00
case "dwn.v1.IPFSStatus.peer_id" :
return protoreflect . ValueOfString ( "" )
case "dwn.v1.IPFSStatus.peer_name" :
2024-11-26 22:05:50 -05:00
return protoreflect . ValueOfString ( "" )
2025-10-03 14:45:52 -04:00
case "dwn.v1.IPFSStatus.peer_type" :
return protoreflect . ValueOfString ( "" )
case "dwn.v1.IPFSStatus.version" :
2024-11-26 22:05:50 -05:00
return protoreflect . ValueOfString ( "" )
2024-09-27 20:58:05 -04:00
default :
if fd . IsExtension () {
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dwn.v1.IPFSStatus" ))
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "message dwn.v1.IPFSStatus does not contain field %s" , fd . FullName ()))
2024-09-27 20:58:05 -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_IPFSStatus ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2024-09-27 20:58:05 -04:00
switch d . FullName () {
default :
2025-10-03 14:45:52 -04:00
panic ( fmt . Errorf ( "%s is not a oneof field in dwn.v1.IPFSStatus" , d . FullName ()))
2024-09-27 20:58:05 -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_IPFSStatus ) GetUnknown () protoreflect . RawFields {
2024-09-27 20:58:05 -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_IPFSStatus ) SetUnknown ( fields protoreflect . RawFields ) {
2024-09-27 20:58:05 -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_IPFSStatus ) IsValid () bool {
2024-09-27 20:58:05 -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_IPFSStatus ) ProtoMethods () * protoiface . Methods {
2024-09-27 20:58:05 -04:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2025-10-03 14:45:52 -04:00
x := input . Message . Interface ().( * IPFSStatus )
2024-09-27 20:58:05 -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
l = len ( x . PeerId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . PeerName )
2024-11-26 22:05:50 -05:00
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
2025-10-03 14:45:52 -04:00
l = len ( x . PeerType )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Version )
2024-11-26 22:05:50 -05:00
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
2024-09-27 20:58:05 -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 ) {
2025-10-03 14:45:52 -04:00
x := input . Message . Interface ().( * IPFSStatus )
2024-09-27 20:58:05 -04:00
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
2024-12-18 15:53:45 -05:00
}
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 . Version ) > 0 {
i -= len ( x . Version )
copy ( dAtA [ i :], x . Version )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Version )))
i --
dAtA [ i ] = 0x22
}
if len ( x . PeerType ) > 0 {
i -= len ( x . PeerType )
copy ( dAtA [ i :], x . PeerType )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . PeerType )))
i --
dAtA [ i ] = 0x1a
}
if len ( x . PeerName ) > 0 {
i -= len ( x . PeerName )
copy ( dAtA [ i :], x . PeerName )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . PeerName )))
2024-12-18 15:53:45 -05:00
i --
dAtA [ i ] = 0x12
}
2025-10-03 14:45:52 -04:00
if len ( x . PeerId ) > 0 {
i -= len ( x . PeerId )
copy ( dAtA [ i :], x . PeerId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . PeerId )))
2024-12-18 15:53:45 -05:00
i --
dAtA [ i ] = 0xa
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
2025-10-03 14:45:52 -04:00
x := input . Message . Interface ().( * IPFSStatus )
2024-12-18 15:53:45 -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
2024-09-26 18:14:18 -04:00
}
2024-12-18 15:53:45 -05:00
if iNdEx >= l {
2024-09-26 18:14:18 -04:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
2024-12-18 15:53:45 -05:00
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
2024-09-26 18:14:18 -04:00
}
2024-12-18 15:53:45 -05:00
}
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: IPFSStatus: wiretype end group for non-group" )
2024-12-18 15:53:45 -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: IPFSStatus: illegal tag %d (wire type %d)" , fieldNum , wire )
2024-12-18 15:53:45 -05:00
}
switch fieldNum {
case 1 :
2024-11-26 22:05:50 -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 PeerId" , wireType )
2024-11-26 22:05:50 -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 . PeerId = string ( dAtA [ iNdEx : postIndex ])
2024-11-26 22:05:50 -05:00
iNdEx = postIndex
2024-12-18 15:53:45 -05:00
case 2 :
2024-11-26 22:05:50 -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 PeerName" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . PeerName = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 3 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field PeerType" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . PeerType = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 4 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Version" , wireType )
2024-09-27 20:58:05 -04:00
}
2024-11-26 22:05:50 -05:00
var stringLen uint64
2024-09-27 20:58:05 -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
2024-09-26 18:14:18 -04:00
}
2024-09-27 20:58:05 -04:00
b := dAtA [ iNdEx ]
iNdEx ++
2024-11-26 22:05:50 -05:00
stringLen |= uint64 ( b & 0x7F ) << shift
2024-09-27 20:58:05 -04:00
if b < 0x80 {
break
2024-09-26 18:14:18 -04:00
}
}
2024-11-26 22:05:50 -05:00
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
2025-10-03 14:45:52 -04:00
x . Version = string ( dAtA [ iNdEx : postIndex ])
2024-11-26 22:05:50 -05:00
iNdEx = postIndex
2024-09-26 18:14:18 -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-09-26 18:01:49 -04:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
2024-11-26 22:05:50 -05:00
// source: dwn/v1/genesis.proto
2024-09-26 18:01:49 -04:00
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl . EnforceVersion ( 20 - protoimpl . MinVersion )
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl . EnforceVersion ( protoimpl . MaxVersion - 20 )
)
// 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
// DWN Records
Records [] * DWNRecord `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"`
// DWN Protocols
Protocols [] * DWNProtocol `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"`
// DWN Permissions
Permissions [] * DWNPermission `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"`
// Vaults
Vaults [] * VaultState `protobuf:"bytes,5,rep,name=vaults,proto3" json:"vaults,omitempty"`
2024-09-26 18:01:49 -04:00
}
func ( x * GenesisState ) Reset () {
* x = GenesisState {}
if protoimpl . UnsafeEnabled {
2024-11-26 22:05:50 -05:00
mi := & file_dwn_v1_genesis_proto_msgTypes [ 0 ]
2024-09-26 18:01:49 -04:00
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 ) {
2024-11-26 22:05:50 -05:00
return file_dwn_v1_genesis_proto_rawDescGZIP (), [] int { 0 }
2024-09-26 18:01:49 -04:00
}
func ( x * GenesisState ) GetParams () * Params {
if x != nil {
return x . Params
}
return nil
}
2025-10-03 14:45:52 -04:00
func ( x * GenesisState ) GetRecords () [] * DWNRecord {
if x != nil {
return x . Records
}
return nil
}
func ( x * GenesisState ) GetProtocols () [] * DWNProtocol {
if x != nil {
return x . Protocols
}
return nil
}
func ( x * GenesisState ) GetPermissions () [] * DWNPermission {
if x != nil {
return x . Permissions
}
return nil
}
func ( x * GenesisState ) GetVaults () [] * VaultState {
if x != nil {
return x . Vaults
}
return nil
}
2024-09-26 18:01:49 -04: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
// Maximum size for DWN record data in bytes
MaxRecordSize uint64 `protobuf:"varint,1,opt,name=max_record_size,json=maxRecordSize,proto3" json:"max_record_size,omitempty"`
// Maximum number of protocols per DWN
MaxProtocolsPerDwn uint32 `protobuf:"varint,2,opt,name=max_protocols_per_dwn,json=maxProtocolsPerDwn,proto3" json:"max_protocols_per_dwn,omitempty"`
// Maximum number of permissions per DWN
MaxPermissionsPerDwn uint32 `protobuf:"varint,3,opt,name=max_permissions_per_dwn,json=maxPermissionsPerDwn,proto3" json:"max_permissions_per_dwn,omitempty"`
// Enable vault creation
VaultCreationEnabled bool `protobuf:"varint,4,opt,name=vault_creation_enabled,json=vaultCreationEnabled,proto3" json:"vault_creation_enabled,omitempty"`
// Minimum vault refresh interval in blocks
MinVaultRefreshInterval uint64 `protobuf:"varint,5,opt,name=min_vault_refresh_interval,json=minVaultRefreshInterval,proto3" json:"min_vault_refresh_interval,omitempty"`
// Encryption configuration
EncryptionEnabled bool `protobuf:"varint,6,opt,name=encryption_enabled,json=encryptionEnabled,proto3" json:"encryption_enabled,omitempty"`
// Key rotation interval in days
KeyRotationDays uint32 `protobuf:"varint,7,opt,name=key_rotation_days,json=keyRotationDays,proto3" json:"key_rotation_days,omitempty"`
// Minimum validators required for key generation (percentage of active set)
MinValidatorsForKeyGen uint32 `protobuf:"varint,8,opt,name=min_validators_for_key_gen,json=minValidatorsForKeyGen,proto3" json:"min_validators_for_key_gen,omitempty"`
// Protocols that require encryption
EncryptedProtocols [] string `protobuf:"bytes,9,rep,name=encrypted_protocols,json=encryptedProtocols,proto3" json:"encrypted_protocols,omitempty"`
// Schemas that require encryption
EncryptedSchemas [] string `protobuf:"bytes,10,rep,name=encrypted_schemas,json=encryptedSchemas,proto3" json:"encrypted_schemas,omitempty"`
// Enable single-node fallback for development
SingleNodeFallback bool `protobuf:"varint,11,opt,name=single_node_fallback,json=singleNodeFallback,proto3" json:"single_node_fallback,omitempty"`
2024-09-26 18:01:49 -04:00
}
func ( x * Params ) Reset () {
* x = Params {}
if protoimpl . UnsafeEnabled {
2024-11-26 22:05:50 -05:00
mi := & file_dwn_v1_genesis_proto_msgTypes [ 1 ]
2024-09-26 18:01:49 -04:00
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 ) {
2024-11-26 22:05:50 -05:00
return file_dwn_v1_genesis_proto_rawDescGZIP (), [] int { 1 }
2024-09-26 18:01:49 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetMaxRecordSize () uint64 {
2024-09-27 20:58:05 -04:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x . MaxRecordSize
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetMaxProtocolsPerDwn () uint32 {
2024-12-02 14:27:18 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x . MaxProtocolsPerDwn
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetMaxPermissionsPerDwn () uint32 {
if x != nil {
return x . MaxPermissionsPerDwn
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetVaultCreationEnabled () bool {
2024-11-26 22:05:50 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x . VaultCreationEnabled
2024-11-26 22:05:50 -05:00
}
2025-10-03 14:45:52 -04:00
return false
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetMinVaultRefreshInterval () uint64 {
2024-09-27 20:58:05 -04:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x . MinVaultRefreshInterval
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetEncryptionEnabled () bool {
if x != nil {
return x . EncryptionEnabled
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
return false
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetKeyRotationDays () uint32 {
if x != nil {
return x . KeyRotationDays
}
return 0
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetMinValidatorsForKeyGen () uint32 {
2024-12-02 14:27:18 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x . MinValidatorsForKeyGen
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
return 0
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetEncryptedProtocols () [] string {
2024-12-02 14:27:18 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x . EncryptedProtocols
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
return nil
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetEncryptedSchemas () [] string {
2024-12-02 14:27:18 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x . EncryptedSchemas
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
return nil
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
func ( x * Params ) GetSingleNodeFallback () bool {
2024-12-02 14:27:18 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x . SingleNodeFallback
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
return false
2024-12-02 14:27:18 -05:00
}
2025-10-03 14:45:52 -04:00
type IPFSStatus struct {
2024-09-27 20:58:05 -04:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2025-10-03 14:45:52 -04:00
PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
PeerName string `protobuf:"bytes,2,opt,name=peer_name,json=peerName,proto3" json:"peer_name,omitempty"`
PeerType string `protobuf:"bytes,3,opt,name=peer_type,json=peerType,proto3" json:"peer_type,omitempty"`
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x * IPFSStatus ) Reset () {
* x = IPFSStatus {}
2024-09-27 20:58:05 -04:00
if protoimpl . UnsafeEnabled {
2025-10-03 14:45:52 -04:00
mi := & file_dwn_v1_genesis_proto_msgTypes [ 2 ]
2024-09-27 20:58:05 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
2025-10-03 14:45:52 -04:00
func ( x * IPFSStatus ) String () string {
2024-09-27 20:58:05 -04:00
return protoimpl . X . MessageStringOf ( x )
}
2025-10-03 14:45:52 -04:00
func ( * IPFSStatus ) ProtoMessage () {}
// Deprecated: Use IPFSStatus.ProtoReflect.Descriptor instead.
func ( * IPFSStatus ) Descriptor () ([] byte , [] int ) {
return file_dwn_v1_genesis_proto_rawDescGZIP (), [] int { 2 }
}
func ( x * IPFSStatus ) GetPeerId () string {
if x != nil {
return x . PeerId
}
return ""
}
2024-09-27 20:58:05 -04:00
2025-10-03 14:45:52 -04:00
func ( x * IPFSStatus ) GetPeerName () string {
if x != nil {
return x . PeerName
}
return ""
2024-09-27 20:58:05 -04:00
}
2025-10-03 14:45:52 -04:00
func ( x * IPFSStatus ) GetPeerType () string {
2024-09-26 18:01:49 -04:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x . PeerType
2024-09-26 18:01:49 -04:00
}
2024-11-26 22:05:50 -05:00
return ""
}
2025-10-03 14:45:52 -04:00
func ( x * IPFSStatus ) GetVersion () string {
2024-11-26 22:05:50 -05:00
if x != nil {
2025-10-03 14:45:52 -04:00
return x . Version
2024-11-26 22:05:50 -05:00
}
return ""
2024-09-26 18:01:49 -04:00
}
2024-11-26 22:05:50 -05:00
var File_dwn_v1_genesis_proto protoreflect . FileDescriptor
var file_dwn_v1_genesis_proto_rawDesc = [] byte {
0x0a , 0x14 , 0x64 , 0x77 , 0x6e , 0x2f , 0x76 , 0x31 , 0x2f , 0x67 , 0x65 , 0x6e , 0x65 , 0x73 , 0x69 , 0x73 ,
2025-10-03 14:45:52 -04:00
0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x06 , 0x64 , 0x77 , 0x6e , 0x2e , 0x76 , 0x31 , 0x1a , 0x11 ,
0x61 , 0x6d , 0x69 , 0x6e , 0x6f , 0x2f , 0x61 , 0x6d , 0x69 , 0x6e , 0x6f , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 ,
0x6f , 0x1a , 0x12 , 0x64 , 0x77 , 0x6e , 0x2f , 0x76 , 0x31 , 0x2f , 0x73 , 0x74 , 0x61 , 0x74 , 0x65 , 0x2e ,
0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x1a , 0x14 , 0x67 , 0x6f , 0x67 , 0x6f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f ,
0x2f , 0x67 , 0x6f , 0x67 , 0x6f , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x22 , 0x99 , 0x02 , 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 ,
0x77 , 0x6e , 0x2e , 0x76 , 0x31 , 0x2e , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x42 , 0x04 , 0xc8 , 0xde ,
0x1f , 0x00 , 0x52 , 0x06 , 0x70 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x12 , 0x31 , 0x0a , 0x07 , 0x72 , 0x65 ,
0x63 , 0x6f , 0x72 , 0x64 , 0x73 , 0x18 , 0x02 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x11 , 0x2e , 0x64 , 0x77 ,
0x6e , 0x2e , 0x76 , 0x31 , 0x2e , 0x44 , 0x57 , 0x4e , 0x52 , 0x65 , 0x63 , 0x6f , 0x72 , 0x64 , 0x42 , 0x04 ,
0xc8 , 0xde , 0x1f , 0x00 , 0x52 , 0x07 , 0x72 , 0x65 , 0x63 , 0x6f , 0x72 , 0x64 , 0x73 , 0x12 , 0x37 , 0x0a ,
0x09 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x63 , 0x6f , 0x6c , 0x73 , 0x18 , 0x03 , 0x20 , 0x03 , 0x28 , 0x0b ,
0x32 , 0x13 , 0x2e , 0x64 , 0x77 , 0x6e , 0x2e , 0x76 , 0x31 , 0x2e , 0x44 , 0x57 , 0x4e , 0x50 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x63 , 0x6f , 0x6c , 0x42 , 0x04 , 0xc8 , 0xde , 0x1f , 0x00 , 0x52 , 0x09 , 0x70 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x63 , 0x6f , 0x6c , 0x73 , 0x12 , 0x3d , 0x0a , 0x0b , 0x70 , 0x65 , 0x72 , 0x6d , 0x69 , 0x73 ,
0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x18 , 0x04 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x15 , 0x2e , 0x64 , 0x77 ,
0x6e , 0x2e , 0x76 , 0x31 , 0x2e , 0x44 , 0x57 , 0x4e , 0x50 , 0x65 , 0x72 , 0x6d , 0x69 , 0x73 , 0x73 , 0x69 ,
0x6f , 0x6e , 0x42 , 0x04 , 0xc8 , 0xde , 0x1f , 0x00 , 0x52 , 0x0b , 0x70 , 0x65 , 0x72 , 0x6d , 0x69 , 0x73 ,
0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x12 , 0x30 , 0x0a , 0x06 , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x73 , 0x18 ,
0x05 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x12 , 0x2e , 0x64 , 0x77 , 0x6e , 0x2e , 0x76 , 0x31 , 0x2e , 0x56 ,
0x61 , 0x75 , 0x6c , 0x74 , 0x53 , 0x74 , 0x61 , 0x74 , 0x65 , 0x42 , 0x04 , 0xc8 , 0xde , 0x1f , 0x00 , 0x52 ,
0x06 , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x73 , 0x22 , 0xcd , 0x04 , 0x0a , 0x06 , 0x50 , 0x61 , 0x72 , 0x61 ,
0x6d , 0x73 , 0x12 , 0x26 , 0x0a , 0x0f , 0x6d , 0x61 , 0x78 , 0x5f , 0x72 , 0x65 , 0x63 , 0x6f , 0x72 , 0x64 ,
0x5f , 0x73 , 0x69 , 0x7a , 0x65 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x04 , 0x52 , 0x0d , 0x6d , 0x61 , 0x78 ,
0x52 , 0x65 , 0x63 , 0x6f , 0x72 , 0x64 , 0x53 , 0x69 , 0x7a , 0x65 , 0x12 , 0x31 , 0x0a , 0x15 , 0x6d , 0x61 ,
0x78 , 0x5f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x63 , 0x6f , 0x6c , 0x73 , 0x5f , 0x70 , 0x65 , 0x72 , 0x5f ,
0x64 , 0x77 , 0x6e , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x12 , 0x6d , 0x61 , 0x78 , 0x50 , 0x72 ,
0x6f , 0x74 , 0x6f , 0x63 , 0x6f , 0x6c , 0x73 , 0x50 , 0x65 , 0x72 , 0x44 , 0x77 , 0x6e , 0x12 , 0x35 , 0x0a ,
0x17 , 0x6d , 0x61 , 0x78 , 0x5f , 0x70 , 0x65 , 0x72 , 0x6d , 0x69 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x73 ,
0x5f , 0x70 , 0x65 , 0x72 , 0x5f , 0x64 , 0x77 , 0x6e , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x14 ,
0x6d , 0x61 , 0x78 , 0x50 , 0x65 , 0x72 , 0x6d , 0x69 , 0x73 , 0x73 , 0x69 , 0x6f , 0x6e , 0x73 , 0x50 , 0x65 ,
0x72 , 0x44 , 0x77 , 0x6e , 0x12 , 0x34 , 0x0a , 0x16 , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x5f , 0x63 , 0x72 ,
0x65 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x65 , 0x6e , 0x61 , 0x62 , 0x6c , 0x65 , 0x64 , 0x18 , 0x04 ,
0x20 , 0x01 , 0x28 , 0x08 , 0x52 , 0x14 , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x43 , 0x72 , 0x65 , 0x61 , 0x74 ,
0x69 , 0x6f , 0x6e , 0x45 , 0x6e , 0x61 , 0x62 , 0x6c , 0x65 , 0x64 , 0x12 , 0x3b , 0x0a , 0x1a , 0x6d , 0x69 ,
0x6e , 0x5f , 0x76 , 0x61 , 0x75 , 0x6c , 0x74 , 0x5f , 0x72 , 0x65 , 0x66 , 0x72 , 0x65 , 0x73 , 0x68 , 0x5f ,
0x69 , 0x6e , 0x74 , 0x65 , 0x72 , 0x76 , 0x61 , 0x6c , 0x18 , 0x05 , 0x20 , 0x01 , 0x28 , 0x04 , 0x52 , 0x17 ,
0x6d , 0x69 , 0x6e , 0x56 , 0x61 , 0x75 , 0x6c , 0x74 , 0x52 , 0x65 , 0x66 , 0x72 , 0x65 , 0x73 , 0x68 , 0x49 ,
0x6e , 0x74 , 0x65 , 0x72 , 0x76 , 0x61 , 0x6c , 0x12 , 0x2d , 0x0a , 0x12 , 0x65 , 0x6e , 0x63 , 0x72 , 0x79 ,
0x70 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x65 , 0x6e , 0x61 , 0x62 , 0x6c , 0x65 , 0x64 , 0x18 , 0x06 , 0x20 ,
0x01 , 0x28 , 0x08 , 0x52 , 0x11 , 0x65 , 0x6e , 0x63 , 0x72 , 0x79 , 0x70 , 0x74 , 0x69 , 0x6f , 0x6e , 0x45 ,
0x6e , 0x61 , 0x62 , 0x6c , 0x65 , 0x64 , 0x12 , 0x2a , 0x0a , 0x11 , 0x6b , 0x65 , 0x79 , 0x5f , 0x72 , 0x6f ,
0x74 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x64 , 0x61 , 0x79 , 0x73 , 0x18 , 0x07 , 0x20 , 0x01 , 0x28 ,
0x0d , 0x52 , 0x0f , 0x6b , 0x65 , 0x79 , 0x52 , 0x6f , 0x74 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x44 , 0x61 ,
0x79 , 0x73 , 0x12 , 0x3a , 0x0a , 0x1a , 0x6d , 0x69 , 0x6e , 0x5f , 0x76 , 0x61 , 0x6c , 0x69 , 0x64 , 0x61 ,
0x74 , 0x6f , 0x72 , 0x73 , 0x5f , 0x66 , 0x6f , 0x72 , 0x5f , 0x6b , 0x65 , 0x79 , 0x5f , 0x67 , 0x65 , 0x6e ,
0x18 , 0x08 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x16 , 0x6d , 0x69 , 0x6e , 0x56 , 0x61 , 0x6c , 0x69 , 0x64 ,
0x61 , 0x74 , 0x6f , 0x72 , 0x73 , 0x46 , 0x6f , 0x72 , 0x4b , 0x65 , 0x79 , 0x47 , 0x65 , 0x6e , 0x12 , 0x2f ,
0x0a , 0x13 , 0x65 , 0x6e , 0x63 , 0x72 , 0x79 , 0x70 , 0x74 , 0x65 , 0x64 , 0x5f , 0x70 , 0x72 , 0x6f , 0x74 ,
0x6f , 0x63 , 0x6f , 0x6c , 0x73 , 0x18 , 0x09 , 0x20 , 0x03 , 0x28 , 0x09 , 0x52 , 0x12 , 0x65 , 0x6e , 0x63 ,
0x72 , 0x79 , 0x70 , 0x74 , 0x65 , 0x64 , 0x50 , 0x72 , 0x6f , 0x74 , 0x6f , 0x63 , 0x6f , 0x6c , 0x73 , 0x12 ,
0x2b , 0x0a , 0x11 , 0x65 , 0x6e , 0x63 , 0x72 , 0x79 , 0x70 , 0x74 , 0x65 , 0x64 , 0x5f , 0x73 , 0x63 , 0x68 ,
0x65 , 0x6d , 0x61 , 0x73 , 0x18 , 0x0a , 0x20 , 0x03 , 0x28 , 0x09 , 0x52 , 0x10 , 0x65 , 0x6e , 0x63 , 0x72 ,
0x79 , 0x70 , 0x74 , 0x65 , 0x64 , 0x53 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 , 0x73 , 0x12 , 0x30 , 0x0a , 0x14 ,
0x73 , 0x69 , 0x6e , 0x67 , 0x6c , 0x65 , 0x5f , 0x6e , 0x6f , 0x64 , 0x65 , 0x5f , 0x66 , 0x61 , 0x6c , 0x6c ,
0x62 , 0x61 , 0x63 , 0x6b , 0x18 , 0x0b , 0x20 , 0x01 , 0x28 , 0x08 , 0x52 , 0x12 , 0x73 , 0x69 , 0x6e , 0x67 ,
0x6c , 0x65 , 0x4e , 0x6f , 0x64 , 0x65 , 0x46 , 0x61 , 0x6c , 0x6c , 0x62 , 0x61 , 0x63 , 0x6b , 0x3a , 0x17 ,
0x98 , 0xa0 , 0x1f , 0x00 , 0xe8 , 0xa0 , 0x1f , 0x01 , 0x8a , 0xe7 , 0xb0 , 0x2a , 0x0a , 0x64 , 0x77 , 0x6e ,
0x2f , 0x70 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x22 , 0x79 , 0x0a , 0x0a , 0x49 , 0x50 , 0x46 , 0x53 , 0x53 ,
0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x12 , 0x17 , 0x0a , 0x07 , 0x70 , 0x65 , 0x65 , 0x72 , 0x5f , 0x69 , 0x64 ,
0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x70 , 0x65 , 0x65 , 0x72 , 0x49 , 0x64 , 0x12 , 0x1b ,
0x0a , 0x09 , 0x70 , 0x65 , 0x65 , 0x72 , 0x5f , 0x6e , 0x61 , 0x6d , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 ,
0x09 , 0x52 , 0x08 , 0x70 , 0x65 , 0x65 , 0x72 , 0x4e , 0x61 , 0x6d , 0x65 , 0x12 , 0x1b , 0x0a , 0x09 , 0x70 ,
0x65 , 0x65 , 0x72 , 0x5f , 0x74 , 0x79 , 0x70 , 0x65 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x08 ,
0x70 , 0x65 , 0x65 , 0x72 , 0x54 , 0x79 , 0x70 , 0x65 , 0x12 , 0x18 , 0x0a , 0x07 , 0x76 , 0x65 , 0x72 , 0x73 ,
0x69 , 0x6f , 0x6e , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 , 0x76 , 0x65 , 0x72 , 0x73 , 0x69 ,
0x6f , 0x6e , 0x42 , 0x7d , 0x0a , 0x0a , 0x63 , 0x6f , 0x6d , 0x2e , 0x64 , 0x77 , 0x6e , 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 , 0x77 ,
0x6e , 0x2f , 0x76 , 0x31 , 0x3b , 0x64 , 0x77 , 0x6e , 0x76 , 0x31 , 0xa2 , 0x02 , 0x03 , 0x44 , 0x58 , 0x58 ,
0xaa , 0x02 , 0x06 , 0x44 , 0x77 , 0x6e , 0x2e , 0x56 , 0x31 , 0xca , 0x02 , 0x06 , 0x44 , 0x77 , 0x6e , 0x5c ,
0x56 , 0x31 , 0xe2 , 0x02 , 0x12 , 0x44 , 0x77 , 0x6e , 0x5c , 0x56 , 0x31 , 0x5c , 0x47 , 0x50 , 0x42 , 0x4d ,
0x65 , 0x74 , 0x61 , 0x64 , 0x61 , 0x74 , 0x61 , 0xea , 0x02 , 0x07 , 0x44 , 0x77 , 0x6e , 0x3a , 0x3a , 0x56 ,
0x31 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
2024-09-26 18:01:49 -04:00
}
var (
2024-11-26 22:05:50 -05:00
file_dwn_v1_genesis_proto_rawDescOnce sync . Once
file_dwn_v1_genesis_proto_rawDescData = file_dwn_v1_genesis_proto_rawDesc
2024-09-26 18:01:49 -04:00
)
2024-11-26 22:05:50 -05:00
func file_dwn_v1_genesis_proto_rawDescGZIP () [] byte {
file_dwn_v1_genesis_proto_rawDescOnce . Do ( func () {
file_dwn_v1_genesis_proto_rawDescData = protoimpl . X . CompressGZIP ( file_dwn_v1_genesis_proto_rawDescData )
2024-09-26 18:01:49 -04:00
})
2024-11-26 22:05:50 -05:00
return file_dwn_v1_genesis_proto_rawDescData
}
2025-10-03 14:45:52 -04:00
var file_dwn_v1_genesis_proto_msgTypes = make ([] protoimpl . MessageInfo , 3 )
2024-11-26 22:05:50 -05:00
var file_dwn_v1_genesis_proto_goTypes = [] interface {}{
2025-10-03 14:45:52 -04:00
( * GenesisState )( nil ), // 0: dwn.v1.GenesisState
( * Params )( nil ), // 1: dwn.v1.Params
( * IPFSStatus )( nil ), // 2: dwn.v1.IPFSStatus
( * DWNRecord )( nil ), // 3: dwn.v1.DWNRecord
( * DWNProtocol )( nil ), // 4: dwn.v1.DWNProtocol
( * DWNPermission )( nil ), // 5: dwn.v1.DWNPermission
( * VaultState )( nil ), // 6: dwn.v1.VaultState
2024-11-26 22:05:50 -05:00
}
var file_dwn_v1_genesis_proto_depIdxs = [] int32 {
1 , // 0: dwn.v1.GenesisState.params:type_name -> dwn.v1.Params
2025-10-03 14:45:52 -04:00
3 , // 1: dwn.v1.GenesisState.records:type_name -> dwn.v1.DWNRecord
4 , // 2: dwn.v1.GenesisState.protocols:type_name -> dwn.v1.DWNProtocol
5 , // 3: dwn.v1.GenesisState.permissions:type_name -> dwn.v1.DWNPermission
6 , // 4: dwn.v1.GenesisState.vaults:type_name -> dwn.v1.VaultState
5 , // [5:5] is the sub-list for method output_type
5 , // [5:5] is the sub-list for method input_type
5 , // [5:5] is the sub-list for extension type_name
5 , // [5:5] is the sub-list for extension extendee
0 , // [0:5] is the sub-list for field type_name
2024-11-26 22:05:50 -05:00
}
func init () { file_dwn_v1_genesis_proto_init () }
func file_dwn_v1_genesis_proto_init () {
if File_dwn_v1_genesis_proto != nil {
2024-09-26 18:01:49 -04:00
return
}
2025-10-03 14:45:52 -04:00
file_dwn_v1_state_proto_init ()
2024-09-26 18:01:49 -04:00
if ! protoimpl . UnsafeEnabled {
2024-11-26 22:05:50 -05:00
file_dwn_v1_genesis_proto_msgTypes [ 0 ]. Exporter = func ( v interface {}, i int ) interface {} {
2024-09-26 18:01:49 -04:00
switch v := v .( * GenesisState ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2024-11-26 22:05:50 -05:00
file_dwn_v1_genesis_proto_msgTypes [ 1 ]. Exporter = func ( v interface {}, i int ) interface {} {
2024-09-26 18:01:49 -04:00
switch v := v .( * Params ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2024-11-26 22:05:50 -05:00
file_dwn_v1_genesis_proto_msgTypes [ 2 ]. Exporter = func ( v interface {}, i int ) interface {} {
2025-10-03 14:45:52 -04:00
switch v := v .( * IPFSStatus ); i {
2024-12-02 14:27:18 -05:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2024-09-26 18:01:49 -04:00
}
type x struct {}
out := protoimpl . TypeBuilder {
File : protoimpl . DescBuilder {
GoPackagePath : reflect . TypeOf ( x {}). PkgPath (),
2024-11-26 22:05:50 -05:00
RawDescriptor : file_dwn_v1_genesis_proto_rawDesc ,
2024-09-26 18:01:49 -04:00
NumEnums : 0 ,
2025-10-03 14:45:52 -04:00
NumMessages : 3 ,
2024-09-26 18:01:49 -04:00
NumExtensions : 0 ,
NumServices : 0 ,
},
2024-11-26 22:05:50 -05:00
GoTypes : file_dwn_v1_genesis_proto_goTypes ,
DependencyIndexes : file_dwn_v1_genesis_proto_depIdxs ,
MessageInfos : file_dwn_v1_genesis_proto_msgTypes ,
2024-09-26 18:01:49 -04:00
}. Build ()
2024-11-26 22:05:50 -05:00
File_dwn_v1_genesis_proto = out . File
file_dwn_v1_genesis_proto_rawDesc = nil
file_dwn_v1_genesis_proto_goTypes = nil
file_dwn_v1_genesis_proto_depIdxs = nil
2024-09-26 18:01:49 -04:00
}