diff --git a/.github/contribution/CLIENT_GUIDELINES.md b/.github/contribution/CLIENT_GUIDELINES.md
index 3ef11b707..1c60bb3d3 100644
--- a/.github/contribution/CLIENT_GUIDELINES.md
+++ b/.github/contribution/CLIENT_GUIDELINES.md
@@ -34,7 +34,7 @@ You will need to install and configure the following dependencies on your machin
You can setup your macOS or Linux machine to be ready for local development with these steps:
```sh
-git clone https://sonr.io/core.git # Clone the repository
+git clone https://github.com/sonr-io/sonr.git # Clone the repository
sh scripts/install.sh # Install dependencies
task # Display the available commands
```
diff --git a/.github/contribution/DEVELOPERS.md b/.github/contribution/DEVELOPERS.md
index 3cc06c441..4aab92179 100644
--- a/.github/contribution/DEVELOPERS.md
+++ b/.github/contribution/DEVELOPERS.md
@@ -32,7 +32,7 @@ You will need to install and configure the following dependencies on your machin
You can setup your macOS or Linux machine to be ready for local development with these steps:
```sh
-git clone https://sonr.io/core.git # Clone the repository
+git clone https://github.com/sonr-io/sonr.git # Clone the repository
sh scripts/install.sh # Install dependencies
task # Display the available commands
```
diff --git a/.github/contribution/TESTNET.md b/.github/contribution/TESTNET.md
index ffacae475..947a9d506 100644
--- a/.github/contribution/TESTNET.md
+++ b/.github/contribution/TESTNET.md
@@ -29,7 +29,7 @@ You will need to install and configure the following dependencies on your machin
You can setup your macOS or Linux machine to be ready for local development with these steps:
```sh
-git clone https://sonr.io/core.git # Clone the repository
+git clone https://github.com/sonr-io/sonr.git # Clone the repository
sh scripts/install.sh # Install dependencies
task # Display the available commands
```
@@ -45,7 +45,7 @@ You will need to install and configure the following dependencies on your machin
You can setup your macOS or Linux machine to be ready for local development with these steps:
```sh
-git clone https://sonr.io/core.git # Clone the repository
+git clone https://github.com/sonr-io/sonr.git # Clone the repository
sh scripts/install.sh # Install dependencies
task # Display the available commands
```
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 2d87306da..9fe452dd6 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -142,7 +142,7 @@ release:
If you prefer to build from source, you can use the following commands:
````bash
- git clone https://sonr.io/core
+ git clone https://github.com/sonr-io/sonr
cd core && git checkout v{{ .Version }}
make install
# Then run sonrd
diff --git a/README.md b/README.md
index 604fcef74..35fd573bb 100644
--- a/README.md
+++ b/README.md
@@ -119,7 +119,7 @@ Our approach for client libraries is uniform. Abstract away any blockchain speci
JavaScript (TypeScript) |
- sonr-js |
+ sonr-js |
auth-js |
database-js |
storage-js |
@@ -127,7 +127,7 @@ Our approach for client libraries is uniform. Abstract away any blockchain speci
Flutter |
- sonr-flutter |
+ sonr-flutter |
auth-dart |
database-dart |
storage-dart |
diff --git a/api/common/crypto/coin.pulsar.go b/api/common/crypto/coin.pulsar.go
new file mode 100644
index 000000000..630031306
--- /dev/null
+++ b/api/common/crypto/coin.pulsar.go
@@ -0,0 +1,817 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package crypto
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_AccountData protoreflect.MessageDescriptor
+ fd_AccountData_address protoreflect.FieldDescriptor
+ fd_AccountData_algo protoreflect.FieldDescriptor
+ fd_AccountData_publicKey protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_common_crypto_coin_proto_init()
+ md_AccountData = File_common_crypto_coin_proto.Messages().ByName("AccountData")
+ fd_AccountData_address = md_AccountData.Fields().ByName("address")
+ fd_AccountData_algo = md_AccountData.Fields().ByName("algo")
+ fd_AccountData_publicKey = md_AccountData.Fields().ByName("publicKey")
+}
+
+var _ protoreflect.Message = (*fastReflection_AccountData)(nil)
+
+type fastReflection_AccountData AccountData
+
+func (x *AccountData) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_AccountData)(x)
+}
+
+func (x *AccountData) slowProtoReflect() protoreflect.Message {
+ mi := &file_common_crypto_coin_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_AccountData_messageType fastReflection_AccountData_messageType
+var _ protoreflect.MessageType = fastReflection_AccountData_messageType{}
+
+type fastReflection_AccountData_messageType struct{}
+
+func (x fastReflection_AccountData_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_AccountData)(nil)
+}
+func (x fastReflection_AccountData_messageType) New() protoreflect.Message {
+ return new(fastReflection_AccountData)
+}
+func (x fastReflection_AccountData_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_AccountData
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_AccountData) Descriptor() protoreflect.MessageDescriptor {
+ return md_AccountData
+}
+
+// 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_AccountData) Type() protoreflect.MessageType {
+ return _fastReflection_AccountData_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_AccountData) New() protoreflect.Message {
+ return new(fastReflection_AccountData)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_AccountData) Interface() protoreflect.ProtoMessage {
+ return (*AccountData)(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_AccountData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_AccountData_address, value) {
+ return
+ }
+ }
+ if x.Algo != "" {
+ value := protoreflect.ValueOfString(x.Algo)
+ if !f(fd_AccountData_algo, value) {
+ return
+ }
+ }
+ if len(x.PublicKey) != 0 {
+ value := protoreflect.ValueOfBytes(x.PublicKey)
+ if !f(fd_AccountData_publicKey, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_AccountData) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "common.crypto.AccountData.address":
+ return x.Address != ""
+ case "common.crypto.AccountData.algo":
+ return x.Algo != ""
+ case "common.crypto.AccountData.publicKey":
+ return len(x.PublicKey) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.AccountData"))
+ }
+ panic(fmt.Errorf("message common.crypto.AccountData does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_AccountData) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "common.crypto.AccountData.address":
+ x.Address = ""
+ case "common.crypto.AccountData.algo":
+ x.Algo = ""
+ case "common.crypto.AccountData.publicKey":
+ x.PublicKey = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.AccountData"))
+ }
+ panic(fmt.Errorf("message common.crypto.AccountData does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_AccountData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "common.crypto.AccountData.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "common.crypto.AccountData.algo":
+ value := x.Algo
+ return protoreflect.ValueOfString(value)
+ case "common.crypto.AccountData.publicKey":
+ value := x.PublicKey
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.AccountData"))
+ }
+ panic(fmt.Errorf("message common.crypto.AccountData does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_AccountData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "common.crypto.AccountData.address":
+ x.Address = value.Interface().(string)
+ case "common.crypto.AccountData.algo":
+ x.Algo = value.Interface().(string)
+ case "common.crypto.AccountData.publicKey":
+ x.PublicKey = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.AccountData"))
+ }
+ panic(fmt.Errorf("message common.crypto.AccountData does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_AccountData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.crypto.AccountData.address":
+ panic(fmt.Errorf("field address of message common.crypto.AccountData is not mutable"))
+ case "common.crypto.AccountData.algo":
+ panic(fmt.Errorf("field algo of message common.crypto.AccountData is not mutable"))
+ case "common.crypto.AccountData.publicKey":
+ panic(fmt.Errorf("field publicKey of message common.crypto.AccountData is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.AccountData"))
+ }
+ panic(fmt.Errorf("message common.crypto.AccountData does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_AccountData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.crypto.AccountData.address":
+ return protoreflect.ValueOfString("")
+ case "common.crypto.AccountData.algo":
+ return protoreflect.ValueOfString("")
+ case "common.crypto.AccountData.publicKey":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.AccountData"))
+ }
+ panic(fmt.Errorf("message common.crypto.AccountData does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_AccountData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in common.crypto.AccountData", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_AccountData) 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_AccountData) 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_AccountData) 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_AccountData) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*AccountData)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Algo)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.PublicKey)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*AccountData)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.PublicKey) > 0 {
+ i -= len(x.PublicKey)
+ copy(dAtA[i:], x.PublicKey)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKey)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Algo) > 0 {
+ i -= len(x.Algo)
+ copy(dAtA[i:], x.Algo)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Algo)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 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().(*AccountData)
+ 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: AccountData: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AccountData: 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 Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Algo", 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.Algo = 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 PublicKey", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.PublicKey = append(x.PublicKey[:0], dAtA[iNdEx:postIndex]...)
+ if x.PublicKey == nil {
+ x.PublicKey = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: common/crypto/coin.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// CoinType is the BIP-0044 coin type for each supported coin.
+type CoinType int32
+
+const (
+ // Bitcoins coin type is 0
+ CoinType_CoinType_BITCOIN CoinType = 0
+ // Testnet coin type is 1
+ CoinType_CoinType_TESTNET CoinType = 1
+ // Litecoin coin type is 2
+ CoinType_CoinType_LITECOIN CoinType = 2
+ // Dogecoin coin type is 3
+ CoinType_CoinType_DOGE CoinType = 3
+ // Ethereum coin type is 60
+ CoinType_CoinType_ETHEREUM CoinType = 4
+ // Sonr coin type is 703
+ CoinType_CoinType_SONR CoinType = 5
+ // Cosmos coin type is 118
+ CoinType_CoinType_COSMOS CoinType = 6
+ // Filecoin coin type is 461
+ CoinType_CoinType_FILECOIN CoinType = 7
+ // Handshake coin type is 5353
+ CoinType_CoinType_HNS CoinType = 8
+ // Solana coin type is 501
+ CoinType_CoinType_SOLANA CoinType = 9
+ // Ripple coin type is 144
+ CoinType_CoinType_XRP CoinType = 10
+)
+
+// Enum value maps for CoinType.
+var (
+ CoinType_name = map[int32]string{
+ 0: "CoinType_BITCOIN",
+ 1: "CoinType_TESTNET",
+ 2: "CoinType_LITECOIN",
+ 3: "CoinType_DOGE",
+ 4: "CoinType_ETHEREUM",
+ 5: "CoinType_SONR",
+ 6: "CoinType_COSMOS",
+ 7: "CoinType_FILECOIN",
+ 8: "CoinType_HNS",
+ 9: "CoinType_SOLANA",
+ 10: "CoinType_XRP",
+ }
+ CoinType_value = map[string]int32{
+ "CoinType_BITCOIN": 0,
+ "CoinType_TESTNET": 1,
+ "CoinType_LITECOIN": 2,
+ "CoinType_DOGE": 3,
+ "CoinType_ETHEREUM": 4,
+ "CoinType_SONR": 5,
+ "CoinType_COSMOS": 6,
+ "CoinType_FILECOIN": 7,
+ "CoinType_HNS": 8,
+ "CoinType_SOLANA": 9,
+ "CoinType_XRP": 10,
+ }
+)
+
+func (x CoinType) Enum() *CoinType {
+ p := new(CoinType)
+ *p = x
+ return p
+}
+
+func (x CoinType) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (CoinType) Descriptor() protoreflect.EnumDescriptor {
+ return file_common_crypto_coin_proto_enumTypes[0].Descriptor()
+}
+
+func (CoinType) Type() protoreflect.EnumType {
+ return &file_common_crypto_coin_proto_enumTypes[0]
+}
+
+func (x CoinType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use CoinType.Descriptor instead.
+func (CoinType) EnumDescriptor() ([]byte, []int) {
+ return file_common_crypto_coin_proto_rawDescGZIP(), []int{0}
+}
+
+type AccountData struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
+ Algo string `protobuf:"bytes,2,opt,name=algo,proto3" json:"algo,omitempty"`
+ PublicKey []byte `protobuf:"bytes,3,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
+}
+
+func (x *AccountData) Reset() {
+ *x = AccountData{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_common_crypto_coin_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *AccountData) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AccountData) ProtoMessage() {}
+
+// Deprecated: Use AccountData.ProtoReflect.Descriptor instead.
+func (*AccountData) Descriptor() ([]byte, []int) {
+ return file_common_crypto_coin_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *AccountData) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *AccountData) GetAlgo() string {
+ if x != nil {
+ return x.Algo
+ }
+ return ""
+}
+
+func (x *AccountData) GetPublicKey() []byte {
+ if x != nil {
+ return x.PublicKey
+ }
+ return nil
+}
+
+var File_common_crypto_coin_proto protoreflect.FileDescriptor
+
+var file_common_crypto_coin_proto_rawDesc = []byte{
+ 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f,
+ 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x6d, 0x6d,
+ 0x6f, 0x6e, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x22, 0x59, 0x0a, 0x0b, 0x41, 0x63, 0x63,
+ 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
+ 0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69,
+ 0x63, 0x4b, 0x65, 0x79, 0x2a, 0xef, 0x01, 0x0a, 0x08, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x42, 0x49,
+ 0x54, 0x43, 0x4f, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x6f, 0x69, 0x6e, 0x54,
+ 0x79, 0x70, 0x65, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x10, 0x01, 0x12, 0x15, 0x0a,
+ 0x11, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x4c, 0x49, 0x54, 0x45, 0x43, 0x4f,
+ 0x49, 0x4e, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65,
+ 0x5f, 0x44, 0x4f, 0x47, 0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x6f, 0x69, 0x6e, 0x54,
+ 0x79, 0x70, 0x65, 0x5f, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, 0x10, 0x04, 0x12, 0x11,
+ 0x0a, 0x0d, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x53, 0x4f, 0x4e, 0x52, 0x10,
+ 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x43, 0x4f,
+ 0x53, 0x4d, 0x4f, 0x53, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79,
+ 0x70, 0x65, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x43, 0x4f, 0x49, 0x4e, 0x10, 0x07, 0x12, 0x10, 0x0a,
+ 0x0c, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x48, 0x4e, 0x53, 0x10, 0x08, 0x12,
+ 0x13, 0x0a, 0x0f, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x53, 0x4f, 0x4c, 0x41,
+ 0x4e, 0x41, 0x10, 0x09, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65,
+ 0x5f, 0x58, 0x52, 0x50, 0x10, 0x0a, 0x42, 0x99, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x42, 0x09, 0x43, 0x6f,
+ 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75,
+ 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70,
+ 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0xa2,
+ 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43,
+ 0x72, 0x79, 0x70, 0x74, 0x6f, 0xca, 0x02, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x43,
+ 0x72, 0x79, 0x70, 0x74, 0x6f, 0xe2, 0x02, 0x19, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x43,
+ 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3a, 0x3a, 0x43, 0x72, 0x79, 0x70,
+ 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_common_crypto_coin_proto_rawDescOnce sync.Once
+ file_common_crypto_coin_proto_rawDescData = file_common_crypto_coin_proto_rawDesc
+)
+
+func file_common_crypto_coin_proto_rawDescGZIP() []byte {
+ file_common_crypto_coin_proto_rawDescOnce.Do(func() {
+ file_common_crypto_coin_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_crypto_coin_proto_rawDescData)
+ })
+ return file_common_crypto_coin_proto_rawDescData
+}
+
+var file_common_crypto_coin_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_common_crypto_coin_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_common_crypto_coin_proto_goTypes = []interface{}{
+ (CoinType)(0), // 0: common.crypto.CoinType
+ (*AccountData)(nil), // 1: common.crypto.AccountData
+}
+var file_common_crypto_coin_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_common_crypto_coin_proto_init() }
+func file_common_crypto_coin_proto_init() {
+ if File_common_crypto_coin_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_common_crypto_coin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*AccountData); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_common_crypto_coin_proto_rawDesc,
+ NumEnums: 1,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_common_crypto_coin_proto_goTypes,
+ DependencyIndexes: file_common_crypto_coin_proto_depIdxs,
+ EnumInfos: file_common_crypto_coin_proto_enumTypes,
+ MessageInfos: file_common_crypto_coin_proto_msgTypes,
+ }.Build()
+ File_common_crypto_coin_proto = out.File
+ file_common_crypto_coin_proto_rawDesc = nil
+ file_common_crypto_coin_proto_goTypes = nil
+ file_common_crypto_coin_proto_depIdxs = nil
+}
diff --git a/api/common/crypto/ssi.pulsar.go b/api/common/crypto/ssi.pulsar.go
new file mode 100644
index 000000000..6812d9f8e
--- /dev/null
+++ b/api/common/crypto/ssi.pulsar.go
@@ -0,0 +1,3209 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package crypto
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sort "sort"
+ sync "sync"
+)
+
+var (
+ md_Proof protoreflect.MessageDescriptor
+ fd_Proof_type protoreflect.FieldDescriptor
+ fd_Proof_proof_purpose protoreflect.FieldDescriptor
+ fd_Proof_verification_method protoreflect.FieldDescriptor
+ fd_Proof_created protoreflect.FieldDescriptor
+ fd_Proof_domain protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_common_crypto_ssi_proto_init()
+ md_Proof = File_common_crypto_ssi_proto.Messages().ByName("Proof")
+ fd_Proof_type = md_Proof.Fields().ByName("type")
+ fd_Proof_proof_purpose = md_Proof.Fields().ByName("proof_purpose")
+ fd_Proof_verification_method = md_Proof.Fields().ByName("verification_method")
+ fd_Proof_created = md_Proof.Fields().ByName("created")
+ fd_Proof_domain = md_Proof.Fields().ByName("domain")
+}
+
+var _ protoreflect.Message = (*fastReflection_Proof)(nil)
+
+type fastReflection_Proof Proof
+
+func (x *Proof) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Proof)(x)
+}
+
+func (x *Proof) slowProtoReflect() protoreflect.Message {
+ mi := &file_common_crypto_ssi_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Proof_messageType fastReflection_Proof_messageType
+var _ protoreflect.MessageType = fastReflection_Proof_messageType{}
+
+type fastReflection_Proof_messageType struct{}
+
+func (x fastReflection_Proof_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Proof)(nil)
+}
+func (x fastReflection_Proof_messageType) New() protoreflect.Message {
+ return new(fastReflection_Proof)
+}
+func (x fastReflection_Proof_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Proof
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Proof) Descriptor() protoreflect.MessageDescriptor {
+ return md_Proof
+}
+
+// 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_Proof) Type() protoreflect.MessageType {
+ return _fastReflection_Proof_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Proof) New() protoreflect.Message {
+ return new(fastReflection_Proof)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Proof) Interface() protoreflect.ProtoMessage {
+ return (*Proof)(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_Proof) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Type_ != 0 {
+ value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Type_))
+ if !f(fd_Proof_type, value) {
+ return
+ }
+ }
+ if x.ProofPurpose != "" {
+ value := protoreflect.ValueOfString(x.ProofPurpose)
+ if !f(fd_Proof_proof_purpose, value) {
+ return
+ }
+ }
+ if x.VerificationMethod != "" {
+ value := protoreflect.ValueOfString(x.VerificationMethod)
+ if !f(fd_Proof_verification_method, value) {
+ return
+ }
+ }
+ if x.Created != "" {
+ value := protoreflect.ValueOfString(x.Created)
+ if !f(fd_Proof_created, value) {
+ return
+ }
+ }
+ if x.Domain != "" {
+ value := protoreflect.ValueOfString(x.Domain)
+ if !f(fd_Proof_domain, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Proof) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "common.crypto.Proof.type":
+ return x.Type_ != 0
+ case "common.crypto.Proof.proof_purpose":
+ return x.ProofPurpose != ""
+ case "common.crypto.Proof.verification_method":
+ return x.VerificationMethod != ""
+ case "common.crypto.Proof.created":
+ return x.Created != ""
+ case "common.crypto.Proof.domain":
+ return x.Domain != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Proof) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "common.crypto.Proof.type":
+ x.Type_ = 0
+ case "common.crypto.Proof.proof_purpose":
+ x.ProofPurpose = ""
+ case "common.crypto.Proof.verification_method":
+ x.VerificationMethod = ""
+ case "common.crypto.Proof.created":
+ x.Created = ""
+ case "common.crypto.Proof.domain":
+ x.Domain = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Proof) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "common.crypto.Proof.type":
+ value := x.Type_
+ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
+ case "common.crypto.Proof.proof_purpose":
+ value := x.ProofPurpose
+ return protoreflect.ValueOfString(value)
+ case "common.crypto.Proof.verification_method":
+ value := x.VerificationMethod
+ return protoreflect.ValueOfString(value)
+ case "common.crypto.Proof.created":
+ value := x.Created
+ return protoreflect.ValueOfString(value)
+ case "common.crypto.Proof.domain":
+ value := x.Domain
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.Proof does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Proof) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "common.crypto.Proof.type":
+ x.Type_ = (ProofType)(value.Enum())
+ case "common.crypto.Proof.proof_purpose":
+ x.ProofPurpose = value.Interface().(string)
+ case "common.crypto.Proof.verification_method":
+ x.VerificationMethod = value.Interface().(string)
+ case "common.crypto.Proof.created":
+ x.Created = value.Interface().(string)
+ case "common.crypto.Proof.domain":
+ x.Domain = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Proof) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.crypto.Proof.type":
+ panic(fmt.Errorf("field type of message common.crypto.Proof is not mutable"))
+ case "common.crypto.Proof.proof_purpose":
+ panic(fmt.Errorf("field proof_purpose of message common.crypto.Proof is not mutable"))
+ case "common.crypto.Proof.verification_method":
+ panic(fmt.Errorf("field verification_method of message common.crypto.Proof is not mutable"))
+ case "common.crypto.Proof.created":
+ panic(fmt.Errorf("field created of message common.crypto.Proof is not mutable"))
+ case "common.crypto.Proof.domain":
+ panic(fmt.Errorf("field domain of message common.crypto.Proof is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Proof) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.crypto.Proof.type":
+ return protoreflect.ValueOfEnum(0)
+ case "common.crypto.Proof.proof_purpose":
+ return protoreflect.ValueOfString("")
+ case "common.crypto.Proof.verification_method":
+ return protoreflect.ValueOfString("")
+ case "common.crypto.Proof.created":
+ return protoreflect.ValueOfString("")
+ case "common.crypto.Proof.domain":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Proof) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in common.crypto.Proof", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Proof) 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_Proof) 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_Proof) 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_Proof) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Proof)
+ 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.Type_ != 0 {
+ n += 1 + runtime.Sov(uint64(x.Type_))
+ }
+ l = len(x.ProofPurpose)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.VerificationMethod)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Created)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Domain)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Proof)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Domain) > 0 {
+ i -= len(x.Domain)
+ copy(dAtA[i:], x.Domain)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Domain)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(x.Created) > 0 {
+ i -= len(x.Created)
+ copy(dAtA[i:], x.Created)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Created)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.VerificationMethod) > 0 {
+ i -= len(x.VerificationMethod)
+ copy(dAtA[i:], x.VerificationMethod)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.VerificationMethod)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.ProofPurpose) > 0 {
+ i -= len(x.ProofPurpose)
+ copy(dAtA[i:], x.ProofPurpose)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProofPurpose)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Type_ != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_))
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Proof)
+ 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: Proof: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Proof: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType)
+ }
+ x.Type_ = 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.Type_ |= ProofType(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProofPurpose", 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.ProofPurpose = 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 VerificationMethod", 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.VerificationMethod = 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 Created", 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.Created = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Domain", 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.Domain = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_JSONWebSignature2020Proof protoreflect.MessageDescriptor
+ fd_JSONWebSignature2020Proof_proof protoreflect.FieldDescriptor
+ fd_JSONWebSignature2020Proof_jws protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_common_crypto_ssi_proto_init()
+ md_JSONWebSignature2020Proof = File_common_crypto_ssi_proto.Messages().ByName("JSONWebSignature2020Proof")
+ fd_JSONWebSignature2020Proof_proof = md_JSONWebSignature2020Proof.Fields().ByName("proof")
+ fd_JSONWebSignature2020Proof_jws = md_JSONWebSignature2020Proof.Fields().ByName("jws")
+}
+
+var _ protoreflect.Message = (*fastReflection_JSONWebSignature2020Proof)(nil)
+
+type fastReflection_JSONWebSignature2020Proof JSONWebSignature2020Proof
+
+func (x *JSONWebSignature2020Proof) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_JSONWebSignature2020Proof)(x)
+}
+
+func (x *JSONWebSignature2020Proof) slowProtoReflect() protoreflect.Message {
+ mi := &file_common_crypto_ssi_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_JSONWebSignature2020Proof_messageType fastReflection_JSONWebSignature2020Proof_messageType
+var _ protoreflect.MessageType = fastReflection_JSONWebSignature2020Proof_messageType{}
+
+type fastReflection_JSONWebSignature2020Proof_messageType struct{}
+
+func (x fastReflection_JSONWebSignature2020Proof_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_JSONWebSignature2020Proof)(nil)
+}
+func (x fastReflection_JSONWebSignature2020Proof_messageType) New() protoreflect.Message {
+ return new(fastReflection_JSONWebSignature2020Proof)
+}
+func (x fastReflection_JSONWebSignature2020Proof_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_JSONWebSignature2020Proof
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_JSONWebSignature2020Proof) Descriptor() protoreflect.MessageDescriptor {
+ return md_JSONWebSignature2020Proof
+}
+
+// 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_JSONWebSignature2020Proof) Type() protoreflect.MessageType {
+ return _fastReflection_JSONWebSignature2020Proof_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_JSONWebSignature2020Proof) New() protoreflect.Message {
+ return new(fastReflection_JSONWebSignature2020Proof)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_JSONWebSignature2020Proof) Interface() protoreflect.ProtoMessage {
+ return (*JSONWebSignature2020Proof)(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_JSONWebSignature2020Proof) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Proof != nil {
+ value := protoreflect.ValueOfMessage(x.Proof.ProtoReflect())
+ if !f(fd_JSONWebSignature2020Proof_proof, value) {
+ return
+ }
+ }
+ if x.Jws != "" {
+ value := protoreflect.ValueOfString(x.Jws)
+ if !f(fd_JSONWebSignature2020Proof_jws, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_JSONWebSignature2020Proof) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "common.crypto.JSONWebSignature2020Proof.proof":
+ return x.Proof != nil
+ case "common.crypto.JSONWebSignature2020Proof.jws":
+ return x.Jws != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.JSONWebSignature2020Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.JSONWebSignature2020Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_JSONWebSignature2020Proof) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "common.crypto.JSONWebSignature2020Proof.proof":
+ x.Proof = nil
+ case "common.crypto.JSONWebSignature2020Proof.jws":
+ x.Jws = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.JSONWebSignature2020Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.JSONWebSignature2020Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_JSONWebSignature2020Proof) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "common.crypto.JSONWebSignature2020Proof.proof":
+ value := x.Proof
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "common.crypto.JSONWebSignature2020Proof.jws":
+ value := x.Jws
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.JSONWebSignature2020Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.JSONWebSignature2020Proof does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_JSONWebSignature2020Proof) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "common.crypto.JSONWebSignature2020Proof.proof":
+ x.Proof = value.Message().Interface().(*Proof)
+ case "common.crypto.JSONWebSignature2020Proof.jws":
+ x.Jws = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.JSONWebSignature2020Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.JSONWebSignature2020Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_JSONWebSignature2020Proof) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.crypto.JSONWebSignature2020Proof.proof":
+ if x.Proof == nil {
+ x.Proof = new(Proof)
+ }
+ return protoreflect.ValueOfMessage(x.Proof.ProtoReflect())
+ case "common.crypto.JSONWebSignature2020Proof.jws":
+ panic(fmt.Errorf("field jws of message common.crypto.JSONWebSignature2020Proof is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.JSONWebSignature2020Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.JSONWebSignature2020Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_JSONWebSignature2020Proof) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.crypto.JSONWebSignature2020Proof.proof":
+ m := new(Proof)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "common.crypto.JSONWebSignature2020Proof.jws":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.JSONWebSignature2020Proof"))
+ }
+ panic(fmt.Errorf("message common.crypto.JSONWebSignature2020Proof does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_JSONWebSignature2020Proof) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in common.crypto.JSONWebSignature2020Proof", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_JSONWebSignature2020Proof) 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_JSONWebSignature2020Proof) 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_JSONWebSignature2020Proof) 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_JSONWebSignature2020Proof) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*JSONWebSignature2020Proof)
+ 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.Proof != nil {
+ l = options.Size(x.Proof)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Jws)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*JSONWebSignature2020Proof)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Jws) > 0 {
+ i -= len(x.Jws)
+ copy(dAtA[i:], x.Jws)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jws)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Proof != nil {
+ encoded, err := options.Marshal(x.Proof)
+ 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().(*JSONWebSignature2020Proof)
+ 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: JSONWebSignature2020Proof: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: JSONWebSignature2020Proof: 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 Proof", 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.Proof == nil {
+ x.Proof = &Proof{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proof); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Jws", 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.Jws = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_VerifiableCredential_2_list)(nil)
+
+type _VerifiableCredential_2_list struct {
+ list *[]string
+}
+
+func (x *_VerifiableCredential_2_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_VerifiableCredential_2_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_VerifiableCredential_2_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_VerifiableCredential_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_VerifiableCredential_2_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message VerifiableCredential at list field Context as it is not of Message kind"))
+}
+
+func (x *_VerifiableCredential_2_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_VerifiableCredential_2_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_VerifiableCredential_2_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_VerifiableCredential_3_list)(nil)
+
+type _VerifiableCredential_3_list struct {
+ list *[]string
+}
+
+func (x *_VerifiableCredential_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_VerifiableCredential_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_VerifiableCredential_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_VerifiableCredential_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_VerifiableCredential_3_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message VerifiableCredential at list field Type_ as it is not of Message kind"))
+}
+
+func (x *_VerifiableCredential_3_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_VerifiableCredential_3_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_VerifiableCredential_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.Map = (*_VerifiableCredential_7_map)(nil)
+
+type _VerifiableCredential_7_map struct {
+ m *map[string]string
+}
+
+func (x *_VerifiableCredential_7_map) Len() int {
+ if x.m == nil {
+ return 0
+ }
+ return len(*x.m)
+}
+
+func (x *_VerifiableCredential_7_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) {
+ if x.m == nil {
+ return
+ }
+ for k, v := range *x.m {
+ mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k))
+ mapValue := protoreflect.ValueOfString(v)
+ if !f(mapKey, mapValue) {
+ break
+ }
+ }
+}
+
+func (x *_VerifiableCredential_7_map) Has(key protoreflect.MapKey) bool {
+ if x.m == nil {
+ return false
+ }
+ keyUnwrapped := key.String()
+ concreteValue := keyUnwrapped
+ _, ok := (*x.m)[concreteValue]
+ return ok
+}
+
+func (x *_VerifiableCredential_7_map) Clear(key protoreflect.MapKey) {
+ if x.m == nil {
+ return
+ }
+ keyUnwrapped := key.String()
+ concreteKey := keyUnwrapped
+ delete(*x.m, concreteKey)
+}
+
+func (x *_VerifiableCredential_7_map) Get(key protoreflect.MapKey) protoreflect.Value {
+ if x.m == nil {
+ return protoreflect.Value{}
+ }
+ keyUnwrapped := key.String()
+ concreteKey := keyUnwrapped
+ v, ok := (*x.m)[concreteKey]
+ if !ok {
+ return protoreflect.Value{}
+ }
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_VerifiableCredential_7_map) Set(key protoreflect.MapKey, value protoreflect.Value) {
+ if !key.IsValid() || !value.IsValid() {
+ panic("invalid key or value provided")
+ }
+ keyUnwrapped := key.String()
+ concreteKey := keyUnwrapped
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.m)[concreteKey] = concreteValue
+}
+
+func (x *_VerifiableCredential_7_map) Mutable(key protoreflect.MapKey) protoreflect.Value {
+ panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message")
+}
+
+func (x *_VerifiableCredential_7_map) NewValue() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_VerifiableCredential_7_map) IsValid() bool {
+ return x.m != nil
+}
+
+var _ protoreflect.Map = (*_VerifiableCredential_8_map)(nil)
+
+type _VerifiableCredential_8_map struct {
+ m *map[string]string
+}
+
+func (x *_VerifiableCredential_8_map) Len() int {
+ if x.m == nil {
+ return 0
+ }
+ return len(*x.m)
+}
+
+func (x *_VerifiableCredential_8_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) {
+ if x.m == nil {
+ return
+ }
+ for k, v := range *x.m {
+ mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k))
+ mapValue := protoreflect.ValueOfString(v)
+ if !f(mapKey, mapValue) {
+ break
+ }
+ }
+}
+
+func (x *_VerifiableCredential_8_map) Has(key protoreflect.MapKey) bool {
+ if x.m == nil {
+ return false
+ }
+ keyUnwrapped := key.String()
+ concreteValue := keyUnwrapped
+ _, ok := (*x.m)[concreteValue]
+ return ok
+}
+
+func (x *_VerifiableCredential_8_map) Clear(key protoreflect.MapKey) {
+ if x.m == nil {
+ return
+ }
+ keyUnwrapped := key.String()
+ concreteKey := keyUnwrapped
+ delete(*x.m, concreteKey)
+}
+
+func (x *_VerifiableCredential_8_map) Get(key protoreflect.MapKey) protoreflect.Value {
+ if x.m == nil {
+ return protoreflect.Value{}
+ }
+ keyUnwrapped := key.String()
+ concreteKey := keyUnwrapped
+ v, ok := (*x.m)[concreteKey]
+ if !ok {
+ return protoreflect.Value{}
+ }
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_VerifiableCredential_8_map) Set(key protoreflect.MapKey, value protoreflect.Value) {
+ if !key.IsValid() || !value.IsValid() {
+ panic("invalid key or value provided")
+ }
+ keyUnwrapped := key.String()
+ concreteKey := keyUnwrapped
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.m)[concreteKey] = concreteValue
+}
+
+func (x *_VerifiableCredential_8_map) Mutable(key protoreflect.MapKey) protoreflect.Value {
+ panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message")
+}
+
+func (x *_VerifiableCredential_8_map) NewValue() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_VerifiableCredential_8_map) IsValid() bool {
+ return x.m != nil
+}
+
+var (
+ md_VerifiableCredential protoreflect.MessageDescriptor
+ fd_VerifiableCredential_id protoreflect.FieldDescriptor
+ fd_VerifiableCredential_context protoreflect.FieldDescriptor
+ fd_VerifiableCredential_type protoreflect.FieldDescriptor
+ fd_VerifiableCredential_issuer protoreflect.FieldDescriptor
+ fd_VerifiableCredential_issuance_date protoreflect.FieldDescriptor
+ fd_VerifiableCredential_expiration_date protoreflect.FieldDescriptor
+ fd_VerifiableCredential_credential_subject protoreflect.FieldDescriptor
+ fd_VerifiableCredential_proof protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_common_crypto_ssi_proto_init()
+ md_VerifiableCredential = File_common_crypto_ssi_proto.Messages().ByName("VerifiableCredential")
+ fd_VerifiableCredential_id = md_VerifiableCredential.Fields().ByName("id")
+ fd_VerifiableCredential_context = md_VerifiableCredential.Fields().ByName("context")
+ fd_VerifiableCredential_type = md_VerifiableCredential.Fields().ByName("type")
+ fd_VerifiableCredential_issuer = md_VerifiableCredential.Fields().ByName("issuer")
+ fd_VerifiableCredential_issuance_date = md_VerifiableCredential.Fields().ByName("issuance_date")
+ fd_VerifiableCredential_expiration_date = md_VerifiableCredential.Fields().ByName("expiration_date")
+ fd_VerifiableCredential_credential_subject = md_VerifiableCredential.Fields().ByName("credential_subject")
+ fd_VerifiableCredential_proof = md_VerifiableCredential.Fields().ByName("proof")
+}
+
+var _ protoreflect.Message = (*fastReflection_VerifiableCredential)(nil)
+
+type fastReflection_VerifiableCredential VerifiableCredential
+
+func (x *VerifiableCredential) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_VerifiableCredential)(x)
+}
+
+func (x *VerifiableCredential) slowProtoReflect() protoreflect.Message {
+ mi := &file_common_crypto_ssi_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_VerifiableCredential_messageType fastReflection_VerifiableCredential_messageType
+var _ protoreflect.MessageType = fastReflection_VerifiableCredential_messageType{}
+
+type fastReflection_VerifiableCredential_messageType struct{}
+
+func (x fastReflection_VerifiableCredential_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_VerifiableCredential)(nil)
+}
+func (x fastReflection_VerifiableCredential_messageType) New() protoreflect.Message {
+ return new(fastReflection_VerifiableCredential)
+}
+func (x fastReflection_VerifiableCredential_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerifiableCredential
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_VerifiableCredential) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerifiableCredential
+}
+
+// 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_VerifiableCredential) Type() protoreflect.MessageType {
+ return _fastReflection_VerifiableCredential_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_VerifiableCredential) New() protoreflect.Message {
+ return new(fastReflection_VerifiableCredential)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_VerifiableCredential) Interface() protoreflect.ProtoMessage {
+ return (*VerifiableCredential)(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_VerifiableCredential) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Id != "" {
+ value := protoreflect.ValueOfString(x.Id)
+ if !f(fd_VerifiableCredential_id, value) {
+ return
+ }
+ }
+ if len(x.Context) != 0 {
+ value := protoreflect.ValueOfList(&_VerifiableCredential_2_list{list: &x.Context})
+ if !f(fd_VerifiableCredential_context, value) {
+ return
+ }
+ }
+ if len(x.Type_) != 0 {
+ value := protoreflect.ValueOfList(&_VerifiableCredential_3_list{list: &x.Type_})
+ if !f(fd_VerifiableCredential_type, value) {
+ return
+ }
+ }
+ if x.Issuer != "" {
+ value := protoreflect.ValueOfString(x.Issuer)
+ if !f(fd_VerifiableCredential_issuer, value) {
+ return
+ }
+ }
+ if x.IssuanceDate != "" {
+ value := protoreflect.ValueOfString(x.IssuanceDate)
+ if !f(fd_VerifiableCredential_issuance_date, value) {
+ return
+ }
+ }
+ if x.ExpirationDate != "" {
+ value := protoreflect.ValueOfString(x.ExpirationDate)
+ if !f(fd_VerifiableCredential_expiration_date, value) {
+ return
+ }
+ }
+ if len(x.CredentialSubject) != 0 {
+ value := protoreflect.ValueOfMap(&_VerifiableCredential_7_map{m: &x.CredentialSubject})
+ if !f(fd_VerifiableCredential_credential_subject, value) {
+ return
+ }
+ }
+ if len(x.Proof) != 0 {
+ value := protoreflect.ValueOfMap(&_VerifiableCredential_8_map{m: &x.Proof})
+ if !f(fd_VerifiableCredential_proof, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_VerifiableCredential) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "common.crypto.VerifiableCredential.id":
+ return x.Id != ""
+ case "common.crypto.VerifiableCredential.context":
+ return len(x.Context) != 0
+ case "common.crypto.VerifiableCredential.type":
+ return len(x.Type_) != 0
+ case "common.crypto.VerifiableCredential.issuer":
+ return x.Issuer != ""
+ case "common.crypto.VerifiableCredential.issuance_date":
+ return x.IssuanceDate != ""
+ case "common.crypto.VerifiableCredential.expiration_date":
+ return x.ExpirationDate != ""
+ case "common.crypto.VerifiableCredential.credential_subject":
+ return len(x.CredentialSubject) != 0
+ case "common.crypto.VerifiableCredential.proof":
+ return len(x.Proof) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.VerifiableCredential"))
+ }
+ panic(fmt.Errorf("message common.crypto.VerifiableCredential does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifiableCredential) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "common.crypto.VerifiableCredential.id":
+ x.Id = ""
+ case "common.crypto.VerifiableCredential.context":
+ x.Context = nil
+ case "common.crypto.VerifiableCredential.type":
+ x.Type_ = nil
+ case "common.crypto.VerifiableCredential.issuer":
+ x.Issuer = ""
+ case "common.crypto.VerifiableCredential.issuance_date":
+ x.IssuanceDate = ""
+ case "common.crypto.VerifiableCredential.expiration_date":
+ x.ExpirationDate = ""
+ case "common.crypto.VerifiableCredential.credential_subject":
+ x.CredentialSubject = nil
+ case "common.crypto.VerifiableCredential.proof":
+ x.Proof = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.VerifiableCredential"))
+ }
+ panic(fmt.Errorf("message common.crypto.VerifiableCredential does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_VerifiableCredential) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "common.crypto.VerifiableCredential.id":
+ value := x.Id
+ return protoreflect.ValueOfString(value)
+ case "common.crypto.VerifiableCredential.context":
+ if len(x.Context) == 0 {
+ return protoreflect.ValueOfList(&_VerifiableCredential_2_list{})
+ }
+ listValue := &_VerifiableCredential_2_list{list: &x.Context}
+ return protoreflect.ValueOfList(listValue)
+ case "common.crypto.VerifiableCredential.type":
+ if len(x.Type_) == 0 {
+ return protoreflect.ValueOfList(&_VerifiableCredential_3_list{})
+ }
+ listValue := &_VerifiableCredential_3_list{list: &x.Type_}
+ return protoreflect.ValueOfList(listValue)
+ case "common.crypto.VerifiableCredential.issuer":
+ value := x.Issuer
+ return protoreflect.ValueOfString(value)
+ case "common.crypto.VerifiableCredential.issuance_date":
+ value := x.IssuanceDate
+ return protoreflect.ValueOfString(value)
+ case "common.crypto.VerifiableCredential.expiration_date":
+ value := x.ExpirationDate
+ return protoreflect.ValueOfString(value)
+ case "common.crypto.VerifiableCredential.credential_subject":
+ if len(x.CredentialSubject) == 0 {
+ return protoreflect.ValueOfMap(&_VerifiableCredential_7_map{})
+ }
+ mapValue := &_VerifiableCredential_7_map{m: &x.CredentialSubject}
+ return protoreflect.ValueOfMap(mapValue)
+ case "common.crypto.VerifiableCredential.proof":
+ if len(x.Proof) == 0 {
+ return protoreflect.ValueOfMap(&_VerifiableCredential_8_map{})
+ }
+ mapValue := &_VerifiableCredential_8_map{m: &x.Proof}
+ return protoreflect.ValueOfMap(mapValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.VerifiableCredential"))
+ }
+ panic(fmt.Errorf("message common.crypto.VerifiableCredential does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifiableCredential) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "common.crypto.VerifiableCredential.id":
+ x.Id = value.Interface().(string)
+ case "common.crypto.VerifiableCredential.context":
+ lv := value.List()
+ clv := lv.(*_VerifiableCredential_2_list)
+ x.Context = *clv.list
+ case "common.crypto.VerifiableCredential.type":
+ lv := value.List()
+ clv := lv.(*_VerifiableCredential_3_list)
+ x.Type_ = *clv.list
+ case "common.crypto.VerifiableCredential.issuer":
+ x.Issuer = value.Interface().(string)
+ case "common.crypto.VerifiableCredential.issuance_date":
+ x.IssuanceDate = value.Interface().(string)
+ case "common.crypto.VerifiableCredential.expiration_date":
+ x.ExpirationDate = value.Interface().(string)
+ case "common.crypto.VerifiableCredential.credential_subject":
+ mv := value.Map()
+ cmv := mv.(*_VerifiableCredential_7_map)
+ x.CredentialSubject = *cmv.m
+ case "common.crypto.VerifiableCredential.proof":
+ mv := value.Map()
+ cmv := mv.(*_VerifiableCredential_8_map)
+ x.Proof = *cmv.m
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.VerifiableCredential"))
+ }
+ panic(fmt.Errorf("message common.crypto.VerifiableCredential does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifiableCredential) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.crypto.VerifiableCredential.context":
+ if x.Context == nil {
+ x.Context = []string{}
+ }
+ value := &_VerifiableCredential_2_list{list: &x.Context}
+ return protoreflect.ValueOfList(value)
+ case "common.crypto.VerifiableCredential.type":
+ if x.Type_ == nil {
+ x.Type_ = []string{}
+ }
+ value := &_VerifiableCredential_3_list{list: &x.Type_}
+ return protoreflect.ValueOfList(value)
+ case "common.crypto.VerifiableCredential.credential_subject":
+ if x.CredentialSubject == nil {
+ x.CredentialSubject = make(map[string]string)
+ }
+ value := &_VerifiableCredential_7_map{m: &x.CredentialSubject}
+ return protoreflect.ValueOfMap(value)
+ case "common.crypto.VerifiableCredential.proof":
+ if x.Proof == nil {
+ x.Proof = make(map[string]string)
+ }
+ value := &_VerifiableCredential_8_map{m: &x.Proof}
+ return protoreflect.ValueOfMap(value)
+ case "common.crypto.VerifiableCredential.id":
+ panic(fmt.Errorf("field id of message common.crypto.VerifiableCredential is not mutable"))
+ case "common.crypto.VerifiableCredential.issuer":
+ panic(fmt.Errorf("field issuer of message common.crypto.VerifiableCredential is not mutable"))
+ case "common.crypto.VerifiableCredential.issuance_date":
+ panic(fmt.Errorf("field issuance_date of message common.crypto.VerifiableCredential is not mutable"))
+ case "common.crypto.VerifiableCredential.expiration_date":
+ panic(fmt.Errorf("field expiration_date of message common.crypto.VerifiableCredential is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.VerifiableCredential"))
+ }
+ panic(fmt.Errorf("message common.crypto.VerifiableCredential does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_VerifiableCredential) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.crypto.VerifiableCredential.id":
+ return protoreflect.ValueOfString("")
+ case "common.crypto.VerifiableCredential.context":
+ list := []string{}
+ return protoreflect.ValueOfList(&_VerifiableCredential_2_list{list: &list})
+ case "common.crypto.VerifiableCredential.type":
+ list := []string{}
+ return protoreflect.ValueOfList(&_VerifiableCredential_3_list{list: &list})
+ case "common.crypto.VerifiableCredential.issuer":
+ return protoreflect.ValueOfString("")
+ case "common.crypto.VerifiableCredential.issuance_date":
+ return protoreflect.ValueOfString("")
+ case "common.crypto.VerifiableCredential.expiration_date":
+ return protoreflect.ValueOfString("")
+ case "common.crypto.VerifiableCredential.credential_subject":
+ m := make(map[string]string)
+ return protoreflect.ValueOfMap(&_VerifiableCredential_7_map{m: &m})
+ case "common.crypto.VerifiableCredential.proof":
+ m := make(map[string]string)
+ return protoreflect.ValueOfMap(&_VerifiableCredential_8_map{m: &m})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.VerifiableCredential"))
+ }
+ panic(fmt.Errorf("message common.crypto.VerifiableCredential does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_VerifiableCredential) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in common.crypto.VerifiableCredential", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_VerifiableCredential) 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_VerifiableCredential) 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_VerifiableCredential) 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_VerifiableCredential) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*VerifiableCredential)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Id)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Context) > 0 {
+ for _, s := range x.Context {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.Type_) > 0 {
+ for _, s := range x.Type_ {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ l = len(x.Issuer)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.IssuanceDate)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.ExpirationDate)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.CredentialSubject) > 0 {
+ SiZeMaP := func(k string, v string) {
+ mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + len(v) + runtime.Sov(uint64(len(v)))
+ n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize))
+ }
+ if options.Deterministic {
+ sortme := make([]string, 0, len(x.CredentialSubject))
+ for k := range x.CredentialSubject {
+ sortme = append(sortme, k)
+ }
+ sort.Strings(sortme)
+ for _, k := range sortme {
+ v := x.CredentialSubject[k]
+ SiZeMaP(k, v)
+ }
+ } else {
+ for k, v := range x.CredentialSubject {
+ SiZeMaP(k, v)
+ }
+ }
+ }
+ if len(x.Proof) > 0 {
+ SiZeMaP := func(k string, v string) {
+ mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + len(v) + runtime.Sov(uint64(len(v)))
+ n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize))
+ }
+ if options.Deterministic {
+ sortme := make([]string, 0, len(x.Proof))
+ for k := range x.Proof {
+ sortme = append(sortme, k)
+ }
+ sort.Strings(sortme)
+ for _, k := range sortme {
+ v := x.Proof[k]
+ SiZeMaP(k, v)
+ }
+ } else {
+ for k, v := range x.Proof {
+ SiZeMaP(k, v)
+ }
+ }
+ }
+ 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().(*VerifiableCredential)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Proof) > 0 {
+ MaRsHaLmAp := func(k string, v string) (protoiface.MarshalOutput, error) {
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(k)
+ copy(dAtA[i:], k)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(k)))
+ i--
+ dAtA[i] = 0xa
+ i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x42
+ return protoiface.MarshalOutput{}, nil
+ }
+ if options.Deterministic {
+ keysForProof := make([]string, 0, len(x.Proof))
+ for k := range x.Proof {
+ keysForProof = append(keysForProof, string(k))
+ }
+ sort.Slice(keysForProof, func(i, j int) bool {
+ return keysForProof[i] < keysForProof[j]
+ })
+ for iNdEx := len(keysForProof) - 1; iNdEx >= 0; iNdEx-- {
+ v := x.Proof[string(keysForProof[iNdEx])]
+ out, err := MaRsHaLmAp(keysForProof[iNdEx], v)
+ if err != nil {
+ return out, err
+ }
+ }
+ } else {
+ for k := range x.Proof {
+ v := x.Proof[k]
+ out, err := MaRsHaLmAp(k, v)
+ if err != nil {
+ return out, err
+ }
+ }
+ }
+ }
+ if len(x.CredentialSubject) > 0 {
+ MaRsHaLmAp := func(k string, v string) (protoiface.MarshalOutput, error) {
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(k)
+ copy(dAtA[i:], k)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(k)))
+ i--
+ dAtA[i] = 0xa
+ i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x3a
+ return protoiface.MarshalOutput{}, nil
+ }
+ if options.Deterministic {
+ keysForCredentialSubject := make([]string, 0, len(x.CredentialSubject))
+ for k := range x.CredentialSubject {
+ keysForCredentialSubject = append(keysForCredentialSubject, string(k))
+ }
+ sort.Slice(keysForCredentialSubject, func(i, j int) bool {
+ return keysForCredentialSubject[i] < keysForCredentialSubject[j]
+ })
+ for iNdEx := len(keysForCredentialSubject) - 1; iNdEx >= 0; iNdEx-- {
+ v := x.CredentialSubject[string(keysForCredentialSubject[iNdEx])]
+ out, err := MaRsHaLmAp(keysForCredentialSubject[iNdEx], v)
+ if err != nil {
+ return out, err
+ }
+ }
+ } else {
+ for k := range x.CredentialSubject {
+ v := x.CredentialSubject[k]
+ out, err := MaRsHaLmAp(k, v)
+ if err != nil {
+ return out, err
+ }
+ }
+ }
+ }
+ if len(x.ExpirationDate) > 0 {
+ i -= len(x.ExpirationDate)
+ copy(dAtA[i:], x.ExpirationDate)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ExpirationDate)))
+ i--
+ dAtA[i] = 0x32
+ }
+ if len(x.IssuanceDate) > 0 {
+ i -= len(x.IssuanceDate)
+ copy(dAtA[i:], x.IssuanceDate)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IssuanceDate)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(x.Issuer) > 0 {
+ i -= len(x.Issuer)
+ copy(dAtA[i:], x.Issuer)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.Type_) > 0 {
+ for iNdEx := len(x.Type_) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Type_[iNdEx])
+ copy(dAtA[i:], x.Type_[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Type_[iNdEx])))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if len(x.Context) > 0 {
+ for iNdEx := len(x.Context) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Context[iNdEx])
+ copy(dAtA[i:], x.Context[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Context[iNdEx])))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if len(x.Id) > 0 {
+ i -= len(x.Id)
+ copy(dAtA[i:], x.Id)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
+ 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().(*VerifiableCredential)
+ 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: VerifiableCredential: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerifiableCredential: 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 Id", 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.Id = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Context", 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.Context = append(x.Context, 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 Type_", 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.Type_ = append(x.Type_, 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 Issuer", 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.Issuer = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuanceDate", 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.IssuanceDate = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpirationDate", 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.ExpirationDate = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSubject", 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.CredentialSubject == nil {
+ x.CredentialSubject = make(map[string]string)
+ }
+ var mapkey string
+ var mapvalue string
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postStringIndexmapkey > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var stringLenmapvalue 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++
+ stringLenmapvalue |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapvalue := int(stringLenmapvalue)
+ if intStringLenmapvalue < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postStringIndexmapvalue > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > postIndex {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ x.CredentialSubject[mapkey] = mapvalue
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proof", 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.Proof == nil {
+ x.Proof = make(map[string]string)
+ }
+ var mapkey string
+ var mapvalue string
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postStringIndexmapkey > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var stringLenmapvalue 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++
+ stringLenmapvalue |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapvalue := int(stringLenmapvalue)
+ if intStringLenmapvalue < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postStringIndexmapvalue > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > postIndex {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ x.Proof[mapkey] = mapvalue
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: common/crypto/ssi.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// KeyType is the type of key used to sign a DID document.
+type KeyType int32
+
+const (
+ // No key type specified
+ KeyType_KeyType_UNSPECIFIED KeyType = 0
+ // JsonWebKey2020 is a VerificationMethod type.
+ // https://w3c-ccg.github.io/lds-jws2020/
+ KeyType_KeyType_JSON_WEB_KEY_2020 KeyType = 1
+ // ED25519VerificationKey2018 is the Ed25519VerificationKey2018 verification
+ // key type as specified here: https://w3c-ccg.github.io/lds-ed25519-2018/
+ KeyType_KeyType_ED25519_VERIFICATION_KEY_2018 KeyType = 2
+ // ECDSASECP256K1VerificationKey2019 is the EcdsaSecp256k1VerificationKey2019
+ // verification key type as specified here:
+ // https://w3c-ccg.github.io/lds-ecdsa-secp256k1-2019/
+ KeyType_KeyType_ECDSA_SECP256K1_VERIFICATION_KEY_2019 KeyType = 3
+ // RSAVerificationKey2018 is the RsaVerificationKey2018 verification key type
+ // as specified here: https://w3c-ccg.github.io/lds-rsa2018/
+ KeyType_KeyType_RSA_VERIFICATION_KEY_2018 KeyType = 4
+ // WebAuthnAuthentication2018 is the WebAuthnAuthentication2018 verification
+ // key type as specified here: https://w3c-ccg.github.io/lds-webauthn/
+ KeyType_KeyType_WEB_AUTHN_AUTHENTICATION_2018 KeyType = 5
+)
+
+// Enum value maps for KeyType.
+var (
+ KeyType_name = map[int32]string{
+ 0: "KeyType_UNSPECIFIED",
+ 1: "KeyType_JSON_WEB_KEY_2020",
+ 2: "KeyType_ED25519_VERIFICATION_KEY_2018",
+ 3: "KeyType_ECDSA_SECP256K1_VERIFICATION_KEY_2019",
+ 4: "KeyType_RSA_VERIFICATION_KEY_2018",
+ 5: "KeyType_WEB_AUTHN_AUTHENTICATION_2018",
+ }
+ KeyType_value = map[string]int32{
+ "KeyType_UNSPECIFIED": 0,
+ "KeyType_JSON_WEB_KEY_2020": 1,
+ "KeyType_ED25519_VERIFICATION_KEY_2018": 2,
+ "KeyType_ECDSA_SECP256K1_VERIFICATION_KEY_2019": 3,
+ "KeyType_RSA_VERIFICATION_KEY_2018": 4,
+ "KeyType_WEB_AUTHN_AUTHENTICATION_2018": 5,
+ }
+)
+
+func (x KeyType) Enum() *KeyType {
+ p := new(KeyType)
+ *p = x
+ return p
+}
+
+func (x KeyType) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (KeyType) Descriptor() protoreflect.EnumDescriptor {
+ return file_common_crypto_ssi_proto_enumTypes[0].Descriptor()
+}
+
+func (KeyType) Type() protoreflect.EnumType {
+ return &file_common_crypto_ssi_proto_enumTypes[0]
+}
+
+func (x KeyType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use KeyType.Descriptor instead.
+func (KeyType) EnumDescriptor() ([]byte, []int) {
+ return file_common_crypto_ssi_proto_rawDescGZIP(), []int{0}
+}
+
+// ProofType is the type of proof used to present claims over a DID document.
+type ProofType int32
+
+const (
+ // No proof type specified
+ ProofType_ProofType_UNSPECIFIED ProofType = 0
+ // JsonWebSignature2020 is a proof type.
+ // https://w3c-ccg.github.io/lds-jws2020/
+ ProofType_ProofType_JSON_WEB_SIGNATURE_2020 ProofType = 1
+ // ED25519Signature2018 is the Ed25519Signature2018 proof type as specified
+ // here: https://w3c-ccg.github.io/lds-ed25519-2018/
+ ProofType_ProofType_ED25519_SIGNATURE_2018 ProofType = 2
+ // EcdsaSecp256k1Signature2019 is the EcdsaSecp256k1Signature2019 proof type
+ // as specified here: https://w3c-ccg.github.io/lds-ecdsa-secp256k1-2019/
+ ProofType_ProofType_ECDSA_SECP256K1_SIGNATURE_2019 ProofType = 3
+ // RsaSignature2018 is the RsaSignature2018 proof type as specified here:
+ // https://w3c-ccg.github.io/lds-rsa2018/
+ ProofType_ProofType_RSA_SIGNATURE_2018 ProofType = 4
+)
+
+// Enum value maps for ProofType.
+var (
+ ProofType_name = map[int32]string{
+ 0: "ProofType_UNSPECIFIED",
+ 1: "ProofType_JSON_WEB_SIGNATURE_2020",
+ 2: "ProofType_ED25519_SIGNATURE_2018",
+ 3: "ProofType_ECDSA_SECP256K1_SIGNATURE_2019",
+ 4: "ProofType_RSA_SIGNATURE_2018",
+ }
+ ProofType_value = map[string]int32{
+ "ProofType_UNSPECIFIED": 0,
+ "ProofType_JSON_WEB_SIGNATURE_2020": 1,
+ "ProofType_ED25519_SIGNATURE_2018": 2,
+ "ProofType_ECDSA_SECP256K1_SIGNATURE_2019": 3,
+ "ProofType_RSA_SIGNATURE_2018": 4,
+ }
+)
+
+func (x ProofType) Enum() *ProofType {
+ p := new(ProofType)
+ *p = x
+ return p
+}
+
+func (x ProofType) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (ProofType) Descriptor() protoreflect.EnumDescriptor {
+ return file_common_crypto_ssi_proto_enumTypes[1].Descriptor()
+}
+
+func (ProofType) Type() protoreflect.EnumType {
+ return &file_common_crypto_ssi_proto_enumTypes[1]
+}
+
+func (x ProofType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use ProofType.Descriptor instead.
+func (ProofType) EnumDescriptor() ([]byte, []int) {
+ return file_common_crypto_ssi_proto_rawDescGZIP(), []int{1}
+}
+
+// Proof represents a credential/presentation proof as defined by the Linked
+// Data Proofs 1.0 specification (https://w3c-ccg.github.io/ld-proofs/).
+type Proof struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // Type defines the specific proof type used. For example, an
+ // Ed25519Signature2018 type indicates that the proof includes a digital
+ // signature produced by an ed25519 cryptographic key.
+ Type_ ProofType `protobuf:"varint,1,opt,name=type,proto3,enum=common.crypto.ProofType" json:"type,omitempty"`
+ // ProofPurpose defines the intent for the proof, the reason why an entity
+ // created it. Acts as a safeguard to prevent the proof from being misused for
+ // a purpose other than the one it was intended for.
+ ProofPurpose string `protobuf:"bytes,2,opt,name=proof_purpose,json=proofPurpose,proto3" json:"proof_purpose,omitempty"`
+ // VerificationMethod points to the ID that can be used to verify the proof,
+ // eg: a public key.
+ VerificationMethod string `protobuf:"bytes,3,opt,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"`
+ // Created notes when the proof was created using a iso8601 string
+ Created string `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
+ // Domain specifies the restricted domain of the proof
+ Domain string `protobuf:"bytes,5,opt,name=domain,proto3" json:"domain,omitempty"`
+}
+
+func (x *Proof) Reset() {
+ *x = Proof{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_common_crypto_ssi_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Proof) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Proof) ProtoMessage() {}
+
+// Deprecated: Use Proof.ProtoReflect.Descriptor instead.
+func (*Proof) Descriptor() ([]byte, []int) {
+ return file_common_crypto_ssi_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Proof) GetType_() ProofType {
+ if x != nil {
+ return x.Type_
+ }
+ return ProofType_ProofType_UNSPECIFIED
+}
+
+func (x *Proof) GetProofPurpose() string {
+ if x != nil {
+ return x.ProofPurpose
+ }
+ return ""
+}
+
+func (x *Proof) GetVerificationMethod() string {
+ if x != nil {
+ return x.VerificationMethod
+ }
+ return ""
+}
+
+func (x *Proof) GetCreated() string {
+ if x != nil {
+ return x.Created
+ }
+ return ""
+}
+
+func (x *Proof) GetDomain() string {
+ if x != nil {
+ return x.Domain
+ }
+ return ""
+}
+
+// JSONWebSignature2020Proof is a VC proof with a signature according to
+// JsonWebSignature2020
+type JSONWebSignature2020Proof struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Proof *Proof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
+ Jws string `protobuf:"bytes,2,opt,name=jws,proto3" json:"jws,omitempty"`
+}
+
+func (x *JSONWebSignature2020Proof) Reset() {
+ *x = JSONWebSignature2020Proof{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_common_crypto_ssi_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *JSONWebSignature2020Proof) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*JSONWebSignature2020Proof) ProtoMessage() {}
+
+// Deprecated: Use JSONWebSignature2020Proof.ProtoReflect.Descriptor instead.
+func (*JSONWebSignature2020Proof) Descriptor() ([]byte, []int) {
+ return file_common_crypto_ssi_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *JSONWebSignature2020Proof) GetProof() *Proof {
+ if x != nil {
+ return x.Proof
+ }
+ return nil
+}
+
+func (x *JSONWebSignature2020Proof) GetJws() string {
+ if x != nil {
+ return x.Jws
+ }
+ return ""
+}
+
+// VerifiableCredential represents a credential as defined by the Verifiable
+// Credentials Data Model 1.0 specification
+// (https://www.w3.org/TR/vc-data-model/).
+type VerifiableCredential struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // ID is the unique identifier for the credential.
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ // Context is a list of URIs that define the context of the credential.
+ Context []string `protobuf:"bytes,2,rep,name=context,proto3" json:"context,omitempty"`
+ // Type is a list of URIs that define the type of the credential.
+ Type_ []string `protobuf:"bytes,3,rep,name=type,proto3" json:"type,omitempty"`
+ // Issuer is the DID of the issuer of the credential.
+ Issuer string `protobuf:"bytes,4,opt,name=issuer,proto3" json:"issuer,omitempty"`
+ // IssuanceDate is the date the credential was issued.
+ IssuanceDate string `protobuf:"bytes,5,opt,name=issuance_date,json=issuanceDate,proto3" json:"issuance_date,omitempty"`
+ // ExpirationDate is the date the credential expires.
+ ExpirationDate string `protobuf:"bytes,6,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"`
+ // CredentialSubject is the subject of the credential.
+ CredentialSubject map[string]string `protobuf:"bytes,7,rep,name=credential_subject,json=credentialSubject,proto3" json:"credential_subject,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
+ // Proof is the proof of the credential.
+ Proof map[string]string `protobuf:"bytes,8,rep,name=proof,proto3" json:"proof,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
+}
+
+func (x *VerifiableCredential) Reset() {
+ *x = VerifiableCredential{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_common_crypto_ssi_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *VerifiableCredential) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*VerifiableCredential) ProtoMessage() {}
+
+// Deprecated: Use VerifiableCredential.ProtoReflect.Descriptor instead.
+func (*VerifiableCredential) Descriptor() ([]byte, []int) {
+ return file_common_crypto_ssi_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *VerifiableCredential) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *VerifiableCredential) GetContext() []string {
+ if x != nil {
+ return x.Context
+ }
+ return nil
+}
+
+func (x *VerifiableCredential) GetType_() []string {
+ if x != nil {
+ return x.Type_
+ }
+ return nil
+}
+
+func (x *VerifiableCredential) GetIssuer() string {
+ if x != nil {
+ return x.Issuer
+ }
+ return ""
+}
+
+func (x *VerifiableCredential) GetIssuanceDate() string {
+ if x != nil {
+ return x.IssuanceDate
+ }
+ return ""
+}
+
+func (x *VerifiableCredential) GetExpirationDate() string {
+ if x != nil {
+ return x.ExpirationDate
+ }
+ return ""
+}
+
+func (x *VerifiableCredential) GetCredentialSubject() map[string]string {
+ if x != nil {
+ return x.CredentialSubject
+ }
+ return nil
+}
+
+func (x *VerifiableCredential) GetProof() map[string]string {
+ if x != nil {
+ return x.Proof
+ }
+ return nil
+}
+
+var File_common_crypto_ssi_proto protoreflect.FileDescriptor
+
+var file_common_crypto_ssi_proto_rawDesc = []byte{
+ 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f,
+ 0x73, 0x73, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
+ 0x6e, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x22, 0xbd, 0x01, 0x0a, 0x05, 0x50, 0x72, 0x6f,
+ 0x6f, 0x66, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
+ 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f,
+ 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
+ 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x50, 0x75,
+ 0x72, 0x70, 0x6f, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x12, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
+ 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
+ 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x59, 0x0a, 0x19, 0x4a, 0x53, 0x4f, 0x4e,
+ 0x57, 0x65, 0x62, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x32, 0x30, 0x32, 0x30,
+ 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x2a, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x63, 0x72,
+ 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f,
+ 0x66, 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
+ 0x6a, 0x77, 0x73, 0x22, 0xeb, 0x03, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62,
+ 0x6c, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02,
+ 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07,
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,
+ 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73,
+ 0x73, 0x75, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75,
+ 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x64,
+ 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x61,
+ 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65,
+ 0x12, 0x69, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73,
+ 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x56, 0x65, 0x72,
+ 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
+ 0x6c, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6a,
+ 0x65, 0x63, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
+ 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x44, 0x0a, 0x05, 0x70,
+ 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x6f, 0x6d,
+ 0x6d, 0x6f, 0x6e, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66,
+ 0x69, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2e,
+ 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f,
+ 0x66, 0x1a, 0x44, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53,
+ 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
+ 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
+ 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x38, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x6f, 0x66,
+ 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
+ 0x01, 0x2a, 0xf1, 0x01, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a,
+ 0x13, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70,
+ 0x65, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x57, 0x45, 0x42, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x32,
+ 0x30, 0x32, 0x30, 0x10, 0x01, 0x12, 0x29, 0x0a, 0x25, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65,
+ 0x5f, 0x45, 0x44, 0x32, 0x35, 0x35, 0x31, 0x39, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43,
+ 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x32, 0x30, 0x31, 0x38, 0x10, 0x02,
+ 0x12, 0x31, 0x0a, 0x2d, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x45, 0x43, 0x44, 0x53,
+ 0x41, 0x5f, 0x53, 0x45, 0x43, 0x50, 0x32, 0x35, 0x36, 0x4b, 0x31, 0x5f, 0x56, 0x45, 0x52, 0x49,
+ 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x32, 0x30, 0x31,
+ 0x39, 0x10, 0x03, 0x12, 0x25, 0x0a, 0x21, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x52,
+ 0x53, 0x41, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
+ 0x4b, 0x45, 0x59, 0x5f, 0x32, 0x30, 0x31, 0x38, 0x10, 0x04, 0x12, 0x29, 0x0a, 0x25, 0x4b, 0x65,
+ 0x79, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x57, 0x45, 0x42, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x4e, 0x5f,
+ 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x32,
+ 0x30, 0x31, 0x38, 0x10, 0x05, 0x2a, 0xc3, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x54,
+ 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x54, 0x79, 0x70, 0x65,
+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x25,
+ 0x0a, 0x21, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x4a, 0x53, 0x4f, 0x4e,
+ 0x5f, 0x57, 0x45, 0x42, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x32,
+ 0x30, 0x32, 0x30, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x54, 0x79,
+ 0x70, 0x65, 0x5f, 0x45, 0x44, 0x32, 0x35, 0x35, 0x31, 0x39, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41,
+ 0x54, 0x55, 0x52, 0x45, 0x5f, 0x32, 0x30, 0x31, 0x38, 0x10, 0x02, 0x12, 0x2c, 0x0a, 0x28, 0x50,
+ 0x72, 0x6f, 0x6f, 0x66, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x53,
+ 0x45, 0x43, 0x50, 0x32, 0x35, 0x36, 0x4b, 0x31, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55,
+ 0x52, 0x45, 0x5f, 0x32, 0x30, 0x31, 0x39, 0x10, 0x03, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x72, 0x6f,
+ 0x6f, 0x66, 0x54, 0x79, 0x70, 0x65, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41,
+ 0x54, 0x55, 0x52, 0x45, 0x5f, 0x32, 0x30, 0x31, 0x38, 0x10, 0x04, 0x42, 0x98, 0x01, 0x0a, 0x11,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74,
+ 0x6f, 0x42, 0x08, 0x53, 0x73, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 0x67,
+ 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69,
+ 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x72, 0x79,
+ 0x70, 0x74, 0x6f, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, 0x6d, 0x6d,
+ 0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0xca, 0x02, 0x0d, 0x43, 0x6f, 0x6d, 0x6d,
+ 0x6f, 0x6e, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0xe2, 0x02, 0x19, 0x43, 0x6f, 0x6d, 0x6d,
+ 0x6f, 0x6e, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3a, 0x3a,
+ 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_common_crypto_ssi_proto_rawDescOnce sync.Once
+ file_common_crypto_ssi_proto_rawDescData = file_common_crypto_ssi_proto_rawDesc
+)
+
+func file_common_crypto_ssi_proto_rawDescGZIP() []byte {
+ file_common_crypto_ssi_proto_rawDescOnce.Do(func() {
+ file_common_crypto_ssi_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_crypto_ssi_proto_rawDescData)
+ })
+ return file_common_crypto_ssi_proto_rawDescData
+}
+
+var file_common_crypto_ssi_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
+var file_common_crypto_ssi_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
+var file_common_crypto_ssi_proto_goTypes = []interface{}{
+ (KeyType)(0), // 0: common.crypto.KeyType
+ (ProofType)(0), // 1: common.crypto.ProofType
+ (*Proof)(nil), // 2: common.crypto.Proof
+ (*JSONWebSignature2020Proof)(nil), // 3: common.crypto.JSONWebSignature2020Proof
+ (*VerifiableCredential)(nil), // 4: common.crypto.VerifiableCredential
+ nil, // 5: common.crypto.VerifiableCredential.CredentialSubjectEntry
+ nil, // 6: common.crypto.VerifiableCredential.ProofEntry
+}
+var file_common_crypto_ssi_proto_depIdxs = []int32{
+ 1, // 0: common.crypto.Proof.type:type_name -> common.crypto.ProofType
+ 2, // 1: common.crypto.JSONWebSignature2020Proof.proof:type_name -> common.crypto.Proof
+ 5, // 2: common.crypto.VerifiableCredential.credential_subject:type_name -> common.crypto.VerifiableCredential.CredentialSubjectEntry
+ 6, // 3: common.crypto.VerifiableCredential.proof:type_name -> common.crypto.VerifiableCredential.ProofEntry
+ 4, // [4:4] is the sub-list for method output_type
+ 4, // [4:4] is the sub-list for method input_type
+ 4, // [4:4] is the sub-list for extension type_name
+ 4, // [4:4] is the sub-list for extension extendee
+ 0, // [0:4] is the sub-list for field type_name
+}
+
+func init() { file_common_crypto_ssi_proto_init() }
+func file_common_crypto_ssi_proto_init() {
+ if File_common_crypto_ssi_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_common_crypto_ssi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Proof); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_common_crypto_ssi_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*JSONWebSignature2020Proof); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_common_crypto_ssi_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*VerifiableCredential); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_common_crypto_ssi_proto_rawDesc,
+ NumEnums: 2,
+ NumMessages: 5,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_common_crypto_ssi_proto_goTypes,
+ DependencyIndexes: file_common_crypto_ssi_proto_depIdxs,
+ EnumInfos: file_common_crypto_ssi_proto_enumTypes,
+ MessageInfos: file_common_crypto_ssi_proto_msgTypes,
+ }.Build()
+ File_common_crypto_ssi_proto = out.File
+ file_common_crypto_ssi_proto_rawDesc = nil
+ file_common_crypto_ssi_proto_goTypes = nil
+ file_common_crypto_ssi_proto_depIdxs = nil
+}
diff --git a/api/common/crypto/vc.pulsar.go b/api/common/crypto/vc.pulsar.go
new file mode 100644
index 000000000..6250d8e0b
--- /dev/null
+++ b/api/common/crypto/vc.pulsar.go
@@ -0,0 +1,640 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package crypto
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_PubKey protoreflect.MessageDescriptor
+ fd_PubKey_key protoreflect.FieldDescriptor
+ fd_PubKey_key_type protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_common_crypto_vc_proto_init()
+ md_PubKey = File_common_crypto_vc_proto.Messages().ByName("PubKey")
+ fd_PubKey_key = md_PubKey.Fields().ByName("key")
+ fd_PubKey_key_type = md_PubKey.Fields().ByName("key_type")
+}
+
+var _ protoreflect.Message = (*fastReflection_PubKey)(nil)
+
+type fastReflection_PubKey PubKey
+
+func (x *PubKey) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_PubKey)(x)
+}
+
+func (x *PubKey) slowProtoReflect() protoreflect.Message {
+ mi := &file_common_crypto_vc_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_PubKey_messageType fastReflection_PubKey_messageType
+var _ protoreflect.MessageType = fastReflection_PubKey_messageType{}
+
+type fastReflection_PubKey_messageType struct{}
+
+func (x fastReflection_PubKey_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_PubKey)(nil)
+}
+func (x fastReflection_PubKey_messageType) New() protoreflect.Message {
+ return new(fastReflection_PubKey)
+}
+func (x fastReflection_PubKey_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_PubKey
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_PubKey) Descriptor() protoreflect.MessageDescriptor {
+ return md_PubKey
+}
+
+// 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_PubKey) Type() protoreflect.MessageType {
+ return _fastReflection_PubKey_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_PubKey) New() protoreflect.Message {
+ return new(fastReflection_PubKey)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_PubKey) Interface() protoreflect.ProtoMessage {
+ return (*PubKey)(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_PubKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Key) != 0 {
+ value := protoreflect.ValueOfBytes(x.Key)
+ if !f(fd_PubKey_key, value) {
+ return
+ }
+ }
+ if x.KeyType != "" {
+ value := protoreflect.ValueOfString(x.KeyType)
+ if !f(fd_PubKey_key_type, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_PubKey) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "common.crypto.PubKey.key":
+ return len(x.Key) != 0
+ case "common.crypto.PubKey.key_type":
+ return x.KeyType != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.PubKey"))
+ }
+ panic(fmt.Errorf("message common.crypto.PubKey does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_PubKey) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "common.crypto.PubKey.key":
+ x.Key = nil
+ case "common.crypto.PubKey.key_type":
+ x.KeyType = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.PubKey"))
+ }
+ panic(fmt.Errorf("message common.crypto.PubKey does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_PubKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "common.crypto.PubKey.key":
+ value := x.Key
+ return protoreflect.ValueOfBytes(value)
+ case "common.crypto.PubKey.key_type":
+ value := x.KeyType
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.PubKey"))
+ }
+ panic(fmt.Errorf("message common.crypto.PubKey does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_PubKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "common.crypto.PubKey.key":
+ x.Key = value.Bytes()
+ case "common.crypto.PubKey.key_type":
+ x.KeyType = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.PubKey"))
+ }
+ panic(fmt.Errorf("message common.crypto.PubKey does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_PubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.crypto.PubKey.key":
+ panic(fmt.Errorf("field key of message common.crypto.PubKey is not mutable"))
+ case "common.crypto.PubKey.key_type":
+ panic(fmt.Errorf("field key_type of message common.crypto.PubKey is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.PubKey"))
+ }
+ panic(fmt.Errorf("message common.crypto.PubKey does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_PubKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.crypto.PubKey.key":
+ return protoreflect.ValueOfBytes(nil)
+ case "common.crypto.PubKey.key_type":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.crypto.PubKey"))
+ }
+ panic(fmt.Errorf("message common.crypto.PubKey does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_PubKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in common.crypto.PubKey", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_PubKey) 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_PubKey) 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_PubKey) 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_PubKey) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*PubKey)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Key)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.KeyType)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*PubKey)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.KeyType) > 0 {
+ i -= len(x.KeyType)
+ copy(dAtA[i:], x.KeyType)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyType)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Key) > 0 {
+ i -= len(x.Key)
+ copy(dAtA[i:], x.Key)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Key)))
+ 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().(*PubKey)
+ 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: PubKey: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PubKey: 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 Key", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Key = append(x.Key[:0], dAtA[iNdEx:postIndex]...)
+ if x.Key == nil {
+ x.Key = []byte{}
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyType", 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.KeyType = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: common/crypto/vc.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// PubKey represents a public key in bytes format.
+type PubKey struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
+ KeyType string `protobuf:"bytes,2,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"`
+}
+
+func (x *PubKey) Reset() {
+ *x = PubKey{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_common_crypto_vc_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *PubKey) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PubKey) ProtoMessage() {}
+
+// Deprecated: Use PubKey.ProtoReflect.Descriptor instead.
+func (*PubKey) Descriptor() ([]byte, []int) {
+ return file_common_crypto_vc_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *PubKey) GetKey() []byte {
+ if x != nil {
+ return x.Key
+ }
+ return nil
+}
+
+func (x *PubKey) GetKeyType() string {
+ if x != nil {
+ return x.KeyType
+ }
+ return ""
+}
+
+var File_common_crypto_vc_proto protoreflect.FileDescriptor
+
+var file_common_crypto_vc_proto_rawDesc = []byte{
+ 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f,
+ 0x76, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
+ 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x22, 0x35, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65,
+ 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03,
+ 0x6b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x42, 0x97,
+ 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x63, 0x72,
+ 0x79, 0x70, 0x74, 0x6f, 0x42, 0x07, 0x56, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
+ 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72,
+ 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63,
+ 0x72, 0x79, 0x70, 0x74, 0x6f, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f,
+ 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0xca, 0x02, 0x0d, 0x43, 0x6f,
+ 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0xe2, 0x02, 0x19, 0x43, 0x6f,
+ 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5c, 0x47, 0x50, 0x42, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
+ 0x3a, 0x3a, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_common_crypto_vc_proto_rawDescOnce sync.Once
+ file_common_crypto_vc_proto_rawDescData = file_common_crypto_vc_proto_rawDesc
+)
+
+func file_common_crypto_vc_proto_rawDescGZIP() []byte {
+ file_common_crypto_vc_proto_rawDescOnce.Do(func() {
+ file_common_crypto_vc_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_crypto_vc_proto_rawDescData)
+ })
+ return file_common_crypto_vc_proto_rawDescData
+}
+
+var file_common_crypto_vc_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_common_crypto_vc_proto_goTypes = []interface{}{
+ (*PubKey)(nil), // 0: common.crypto.PubKey
+}
+var file_common_crypto_vc_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_common_crypto_vc_proto_init() }
+func file_common_crypto_vc_proto_init() {
+ if File_common_crypto_vc_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_common_crypto_vc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*PubKey); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_common_crypto_vc_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_common_crypto_vc_proto_goTypes,
+ DependencyIndexes: file_common_crypto_vc_proto_depIdxs,
+ MessageInfos: file_common_crypto_vc_proto_msgTypes,
+ }.Build()
+ File_common_crypto_vc_proto = out.File
+ file_common_crypto_vc_proto_rawDesc = nil
+ file_common_crypto_vc_proto_goTypes = nil
+ file_common_crypto_vc_proto_depIdxs = nil
+}
diff --git a/api/common/webauthn/credential.pulsar.go b/api/common/webauthn/credential.pulsar.go
new file mode 100644
index 000000000..752640df5
--- /dev/null
+++ b/api/common/webauthn/credential.pulsar.go
@@ -0,0 +1,1649 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package webauthn
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_Credential_4_list)(nil)
+
+type _Credential_4_list struct {
+ list *[]string
+}
+
+func (x *_Credential_4_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_Credential_4_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_Credential_4_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_Credential_4_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_Credential_4_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message Credential at list field Transport as it is not of Message kind"))
+}
+
+func (x *_Credential_4_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_Credential_4_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_Credential_4_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_Credential protoreflect.MessageDescriptor
+ fd_Credential_id protoreflect.FieldDescriptor
+ fd_Credential_public_key protoreflect.FieldDescriptor
+ fd_Credential_attestation_type protoreflect.FieldDescriptor
+ fd_Credential_transport protoreflect.FieldDescriptor
+ fd_Credential_authenticator protoreflect.FieldDescriptor
+ fd_Credential_controller protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_common_webauthn_credential_proto_init()
+ md_Credential = File_common_webauthn_credential_proto.Messages().ByName("Credential")
+ fd_Credential_id = md_Credential.Fields().ByName("id")
+ fd_Credential_public_key = md_Credential.Fields().ByName("public_key")
+ fd_Credential_attestation_type = md_Credential.Fields().ByName("attestation_type")
+ fd_Credential_transport = md_Credential.Fields().ByName("transport")
+ fd_Credential_authenticator = md_Credential.Fields().ByName("authenticator")
+ fd_Credential_controller = md_Credential.Fields().ByName("controller")
+}
+
+var _ protoreflect.Message = (*fastReflection_Credential)(nil)
+
+type fastReflection_Credential Credential
+
+func (x *Credential) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Credential)(x)
+}
+
+func (x *Credential) slowProtoReflect() protoreflect.Message {
+ mi := &file_common_webauthn_credential_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Credential_messageType fastReflection_Credential_messageType
+var _ protoreflect.MessageType = fastReflection_Credential_messageType{}
+
+type fastReflection_Credential_messageType struct{}
+
+func (x fastReflection_Credential_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Credential)(nil)
+}
+func (x fastReflection_Credential_messageType) New() protoreflect.Message {
+ return new(fastReflection_Credential)
+}
+func (x fastReflection_Credential_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Credential
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Credential) Descriptor() protoreflect.MessageDescriptor {
+ return md_Credential
+}
+
+// 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_Credential) Type() protoreflect.MessageType {
+ return _fastReflection_Credential_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Credential) New() protoreflect.Message {
+ return new(fastReflection_Credential)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Credential) Interface() protoreflect.ProtoMessage {
+ return (*Credential)(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_Credential) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Id) != 0 {
+ value := protoreflect.ValueOfBytes(x.Id)
+ if !f(fd_Credential_id, value) {
+ return
+ }
+ }
+ if len(x.PublicKey) != 0 {
+ value := protoreflect.ValueOfBytes(x.PublicKey)
+ if !f(fd_Credential_public_key, value) {
+ return
+ }
+ }
+ if x.AttestationType != "" {
+ value := protoreflect.ValueOfString(x.AttestationType)
+ if !f(fd_Credential_attestation_type, value) {
+ return
+ }
+ }
+ if len(x.Transport) != 0 {
+ value := protoreflect.ValueOfList(&_Credential_4_list{list: &x.Transport})
+ if !f(fd_Credential_transport, value) {
+ return
+ }
+ }
+ if x.Authenticator != nil {
+ value := protoreflect.ValueOfMessage(x.Authenticator.ProtoReflect())
+ if !f(fd_Credential_authenticator, value) {
+ return
+ }
+ }
+ if x.Controller != "" {
+ value := protoreflect.ValueOfString(x.Controller)
+ if !f(fd_Credential_controller, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Credential) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "common.webauthn.Credential.id":
+ return len(x.Id) != 0
+ case "common.webauthn.Credential.public_key":
+ return len(x.PublicKey) != 0
+ case "common.webauthn.Credential.attestation_type":
+ return x.AttestationType != ""
+ case "common.webauthn.Credential.transport":
+ return len(x.Transport) != 0
+ case "common.webauthn.Credential.authenticator":
+ return x.Authenticator != nil
+ case "common.webauthn.Credential.controller":
+ return x.Controller != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Credential"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Credential does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Credential) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "common.webauthn.Credential.id":
+ x.Id = nil
+ case "common.webauthn.Credential.public_key":
+ x.PublicKey = nil
+ case "common.webauthn.Credential.attestation_type":
+ x.AttestationType = ""
+ case "common.webauthn.Credential.transport":
+ x.Transport = nil
+ case "common.webauthn.Credential.authenticator":
+ x.Authenticator = nil
+ case "common.webauthn.Credential.controller":
+ x.Controller = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Credential"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Credential does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Credential) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "common.webauthn.Credential.id":
+ value := x.Id
+ return protoreflect.ValueOfBytes(value)
+ case "common.webauthn.Credential.public_key":
+ value := x.PublicKey
+ return protoreflect.ValueOfBytes(value)
+ case "common.webauthn.Credential.attestation_type":
+ value := x.AttestationType
+ return protoreflect.ValueOfString(value)
+ case "common.webauthn.Credential.transport":
+ if len(x.Transport) == 0 {
+ return protoreflect.ValueOfList(&_Credential_4_list{})
+ }
+ listValue := &_Credential_4_list{list: &x.Transport}
+ return protoreflect.ValueOfList(listValue)
+ case "common.webauthn.Credential.authenticator":
+ value := x.Authenticator
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "common.webauthn.Credential.controller":
+ value := x.Controller
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Credential"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Credential does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Credential) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "common.webauthn.Credential.id":
+ x.Id = value.Bytes()
+ case "common.webauthn.Credential.public_key":
+ x.PublicKey = value.Bytes()
+ case "common.webauthn.Credential.attestation_type":
+ x.AttestationType = value.Interface().(string)
+ case "common.webauthn.Credential.transport":
+ lv := value.List()
+ clv := lv.(*_Credential_4_list)
+ x.Transport = *clv.list
+ case "common.webauthn.Credential.authenticator":
+ x.Authenticator = value.Message().Interface().(*Authenticator)
+ case "common.webauthn.Credential.controller":
+ x.Controller = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Credential"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Credential does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Credential) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.webauthn.Credential.transport":
+ if x.Transport == nil {
+ x.Transport = []string{}
+ }
+ value := &_Credential_4_list{list: &x.Transport}
+ return protoreflect.ValueOfList(value)
+ case "common.webauthn.Credential.authenticator":
+ if x.Authenticator == nil {
+ x.Authenticator = new(Authenticator)
+ }
+ return protoreflect.ValueOfMessage(x.Authenticator.ProtoReflect())
+ case "common.webauthn.Credential.id":
+ panic(fmt.Errorf("field id of message common.webauthn.Credential is not mutable"))
+ case "common.webauthn.Credential.public_key":
+ panic(fmt.Errorf("field public_key of message common.webauthn.Credential is not mutable"))
+ case "common.webauthn.Credential.attestation_type":
+ panic(fmt.Errorf("field attestation_type of message common.webauthn.Credential is not mutable"))
+ case "common.webauthn.Credential.controller":
+ panic(fmt.Errorf("field controller of message common.webauthn.Credential is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Credential"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Credential does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Credential) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.webauthn.Credential.id":
+ return protoreflect.ValueOfBytes(nil)
+ case "common.webauthn.Credential.public_key":
+ return protoreflect.ValueOfBytes(nil)
+ case "common.webauthn.Credential.attestation_type":
+ return protoreflect.ValueOfString("")
+ case "common.webauthn.Credential.transport":
+ list := []string{}
+ return protoreflect.ValueOfList(&_Credential_4_list{list: &list})
+ case "common.webauthn.Credential.authenticator":
+ m := new(Authenticator)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "common.webauthn.Credential.controller":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Credential"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Credential does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Credential) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in common.webauthn.Credential", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Credential) 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_Credential) 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_Credential) 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_Credential) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Credential)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Id)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.PublicKey)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.AttestationType)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Transport) > 0 {
+ for _, s := range x.Transport {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Authenticator != nil {
+ l = options.Size(x.Authenticator)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Controller)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Credential)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Controller) > 0 {
+ i -= len(x.Controller)
+ copy(dAtA[i:], x.Controller)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Controller)))
+ i--
+ dAtA[i] = 0x32
+ }
+ if x.Authenticator != nil {
+ encoded, err := options.Marshal(x.Authenticator)
+ 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.Transport) > 0 {
+ for iNdEx := len(x.Transport) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Transport[iNdEx])
+ copy(dAtA[i:], x.Transport[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Transport[iNdEx])))
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ if len(x.AttestationType) > 0 {
+ i -= len(x.AttestationType)
+ copy(dAtA[i:], x.AttestationType)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AttestationType)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.PublicKey) > 0 {
+ i -= len(x.PublicKey)
+ copy(dAtA[i:], x.PublicKey)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKey)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Id) > 0 {
+ i -= len(x.Id)
+ copy(dAtA[i:], x.Id)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
+ 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().(*Credential)
+ 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: Credential: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Credential: 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 Id", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Id = append(x.Id[:0], dAtA[iNdEx:postIndex]...)
+ if x.Id == nil {
+ x.Id = []byte{}
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.PublicKey = append(x.PublicKey[:0], dAtA[iNdEx:postIndex]...)
+ if x.PublicKey == nil {
+ x.PublicKey = []byte{}
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AttestationType", 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.AttestationType = 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 Transport", 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.Transport = append(x.Transport, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authenticator", 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.Authenticator == nil {
+ x.Authenticator = &Authenticator{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Authenticator); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Controller = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_Authenticator protoreflect.MessageDescriptor
+ fd_Authenticator_aaguid protoreflect.FieldDescriptor
+ fd_Authenticator_sign_count protoreflect.FieldDescriptor
+ fd_Authenticator_attachment protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_common_webauthn_credential_proto_init()
+ md_Authenticator = File_common_webauthn_credential_proto.Messages().ByName("Authenticator")
+ fd_Authenticator_aaguid = md_Authenticator.Fields().ByName("aaguid")
+ fd_Authenticator_sign_count = md_Authenticator.Fields().ByName("sign_count")
+ fd_Authenticator_attachment = md_Authenticator.Fields().ByName("attachment")
+}
+
+var _ protoreflect.Message = (*fastReflection_Authenticator)(nil)
+
+type fastReflection_Authenticator Authenticator
+
+func (x *Authenticator) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Authenticator)(x)
+}
+
+func (x *Authenticator) slowProtoReflect() protoreflect.Message {
+ mi := &file_common_webauthn_credential_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Authenticator_messageType fastReflection_Authenticator_messageType
+var _ protoreflect.MessageType = fastReflection_Authenticator_messageType{}
+
+type fastReflection_Authenticator_messageType struct{}
+
+func (x fastReflection_Authenticator_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Authenticator)(nil)
+}
+func (x fastReflection_Authenticator_messageType) New() protoreflect.Message {
+ return new(fastReflection_Authenticator)
+}
+func (x fastReflection_Authenticator_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Authenticator
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Authenticator) Descriptor() protoreflect.MessageDescriptor {
+ return md_Authenticator
+}
+
+// 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_Authenticator) Type() protoreflect.MessageType {
+ return _fastReflection_Authenticator_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Authenticator) New() protoreflect.Message {
+ return new(fastReflection_Authenticator)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Authenticator) Interface() protoreflect.ProtoMessage {
+ return (*Authenticator)(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_Authenticator) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Aaguid) != 0 {
+ value := protoreflect.ValueOfBytes(x.Aaguid)
+ if !f(fd_Authenticator_aaguid, value) {
+ return
+ }
+ }
+ if x.SignCount != uint32(0) {
+ value := protoreflect.ValueOfUint32(x.SignCount)
+ if !f(fd_Authenticator_sign_count, value) {
+ return
+ }
+ }
+ if x.Attachment != "" {
+ value := protoreflect.ValueOfString(x.Attachment)
+ if !f(fd_Authenticator_attachment, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Authenticator) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "common.webauthn.Authenticator.aaguid":
+ return len(x.Aaguid) != 0
+ case "common.webauthn.Authenticator.sign_count":
+ return x.SignCount != uint32(0)
+ case "common.webauthn.Authenticator.attachment":
+ return x.Attachment != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Authenticator"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Authenticator does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Authenticator) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "common.webauthn.Authenticator.aaguid":
+ x.Aaguid = nil
+ case "common.webauthn.Authenticator.sign_count":
+ x.SignCount = uint32(0)
+ case "common.webauthn.Authenticator.attachment":
+ x.Attachment = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Authenticator"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Authenticator does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Authenticator) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "common.webauthn.Authenticator.aaguid":
+ value := x.Aaguid
+ return protoreflect.ValueOfBytes(value)
+ case "common.webauthn.Authenticator.sign_count":
+ value := x.SignCount
+ return protoreflect.ValueOfUint32(value)
+ case "common.webauthn.Authenticator.attachment":
+ value := x.Attachment
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Authenticator"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Authenticator does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Authenticator) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "common.webauthn.Authenticator.aaguid":
+ x.Aaguid = value.Bytes()
+ case "common.webauthn.Authenticator.sign_count":
+ x.SignCount = uint32(value.Uint())
+ case "common.webauthn.Authenticator.attachment":
+ x.Attachment = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Authenticator"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Authenticator does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Authenticator) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.webauthn.Authenticator.aaguid":
+ panic(fmt.Errorf("field aaguid of message common.webauthn.Authenticator is not mutable"))
+ case "common.webauthn.Authenticator.sign_count":
+ panic(fmt.Errorf("field sign_count of message common.webauthn.Authenticator is not mutable"))
+ case "common.webauthn.Authenticator.attachment":
+ panic(fmt.Errorf("field attachment of message common.webauthn.Authenticator is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Authenticator"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Authenticator does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Authenticator) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "common.webauthn.Authenticator.aaguid":
+ return protoreflect.ValueOfBytes(nil)
+ case "common.webauthn.Authenticator.sign_count":
+ return protoreflect.ValueOfUint32(uint32(0))
+ case "common.webauthn.Authenticator.attachment":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: common.webauthn.Authenticator"))
+ }
+ panic(fmt.Errorf("message common.webauthn.Authenticator does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Authenticator) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in common.webauthn.Authenticator", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Authenticator) 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_Authenticator) 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_Authenticator) 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_Authenticator) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Authenticator)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Aaguid)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.SignCount != 0 {
+ n += 1 + runtime.Sov(uint64(x.SignCount))
+ }
+ l = len(x.Attachment)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Authenticator)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Attachment) > 0 {
+ i -= len(x.Attachment)
+ copy(dAtA[i:], x.Attachment)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Attachment)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if x.SignCount != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.SignCount))
+ i--
+ dAtA[i] = 0x10
+ }
+ if len(x.Aaguid) > 0 {
+ i -= len(x.Aaguid)
+ copy(dAtA[i:], x.Aaguid)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Aaguid)))
+ 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().(*Authenticator)
+ 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: Authenticator: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Authenticator: 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 Aaguid", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Aaguid = append(x.Aaguid[:0], dAtA[iNdEx:postIndex]...)
+ if x.Aaguid == nil {
+ x.Aaguid = []byte{}
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SignCount", wireType)
+ }
+ x.SignCount = 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.SignCount |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 3:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Attachment", 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.Attachment = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// The core.service package contains all the core services.
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: common/webauthn/credential.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Credential is a message type that contains all needed information
+// about a WebAuthn credential for storage.
+type Credential struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // id is a probabilistically-unique byte sequence identifying a public key
+ // credential source and its authentication assertions.
+ Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ // public_key is the public key portion of a Relying Party-specific credential
+ // key pair, generated by an authenticator and returned to a Relying Party at
+ // registration time.
+ PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
+ // attestation_type is the attestation format used (if any) by the
+ // authenticator when creating the credential.
+ AttestationType string `protobuf:"bytes,3,opt,name=attestation_type,json=attestationType,proto3" json:"attestation_type,omitempty"`
+ // transport is the transports used by the authenticator when creating the
+ // credential.
+ Transport []string `protobuf:"bytes,4,rep,name=transport,proto3" json:"transport,omitempty"`
+ // Authenticator is the Authenticator information for a given certificate.
+ Authenticator *Authenticator `protobuf:"bytes,5,opt,name=authenticator,proto3" json:"authenticator,omitempty"`
+ // controller is the DID Controller of the credential.
+ Controller string `protobuf:"bytes,6,opt,name=controller,proto3" json:"controller,omitempty"`
+}
+
+func (x *Credential) Reset() {
+ *x = Credential{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_common_webauthn_credential_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Credential) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Credential) ProtoMessage() {}
+
+// Deprecated: Use Credential.ProtoReflect.Descriptor instead.
+func (*Credential) Descriptor() ([]byte, []int) {
+ return file_common_webauthn_credential_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Credential) GetId() []byte {
+ if x != nil {
+ return x.Id
+ }
+ return nil
+}
+
+func (x *Credential) GetPublicKey() []byte {
+ if x != nil {
+ return x.PublicKey
+ }
+ return nil
+}
+
+func (x *Credential) GetAttestationType() string {
+ if x != nil {
+ return x.AttestationType
+ }
+ return ""
+}
+
+func (x *Credential) GetTransport() []string {
+ if x != nil {
+ return x.Transport
+ }
+ return nil
+}
+
+func (x *Credential) GetAuthenticator() *Authenticator {
+ if x != nil {
+ return x.Authenticator
+ }
+ return nil
+}
+
+func (x *Credential) GetController() string {
+ if x != nil {
+ return x.Controller
+ }
+ return ""
+}
+
+// Authenticator is a message type that contains certificate information
+// about a WebAuthn authenticator.
+type Authenticator struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // aaguid is the AAGUID of the authenticator. An AAGUID is defined as an array
+ // containing the globally unique identifier of the authenticator model being
+ // sought.
+ Aaguid []byte `protobuf:"bytes,1,opt,name=aaguid,proto3" json:"aaguid,omitempty"`
+ // sign_count is the SignCount -Upon a new login operation, the Relying Party
+ // compares the stored signature counter value with the new signCount value
+ // returned in the assertion’s authenticator data.
+ SignCount uint32 `protobuf:"varint,2,opt,name=sign_count,json=signCount,proto3" json:"sign_count,omitempty"`
+ // attachment is a signal that the authenticator may be cloned, i.e. at
+ // least two copies of the credential private key may exist and are being used
+ // in parallel.
+ Attachment string `protobuf:"bytes,3,opt,name=attachment,proto3" json:"attachment,omitempty"`
+}
+
+func (x *Authenticator) Reset() {
+ *x = Authenticator{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_common_webauthn_credential_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Authenticator) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Authenticator) ProtoMessage() {}
+
+// Deprecated: Use Authenticator.ProtoReflect.Descriptor instead.
+func (*Authenticator) Descriptor() ([]byte, []int) {
+ return file_common_webauthn_credential_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *Authenticator) GetAaguid() []byte {
+ if x != nil {
+ return x.Aaguid
+ }
+ return nil
+}
+
+func (x *Authenticator) GetSignCount() uint32 {
+ if x != nil {
+ return x.SignCount
+ }
+ return 0
+}
+
+func (x *Authenticator) GetAttachment() string {
+ if x != nil {
+ return x.Attachment
+ }
+ return ""
+}
+
+var File_common_webauthn_credential_proto protoreflect.FileDescriptor
+
+var file_common_webauthn_credential_proto_rawDesc = []byte{
+ 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x77, 0x65, 0x62, 0x61, 0x75, 0x74, 0x68,
+ 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x61, 0x75,
+ 0x74, 0x68, 0x6e, 0x22, 0xea, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
+ 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02,
+ 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65,
+ 0x79, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x74, 0x74,
+ 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09,
+ 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52,
+ 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x44, 0x0a, 0x0d, 0x61, 0x75,
+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x61, 0x75,
+ 0x74, 0x68, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f,
+ 0x72, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72,
+ 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x06,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
+ 0x22, 0x66, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f,
+ 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x61, 0x67, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0c, 0x52, 0x06, 0x61, 0x61, 0x67, 0x75, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x67,
+ 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73,
+ 0x69, 0x67, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x61,
+ 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x74,
+ 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0xab, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e,
+ 0x42, 0x0f, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74,
+ 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
+ 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
+ 0x6f, 0x6e, 0x2f, 0x77, 0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x57,
+ 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x57, 0x65, 0x62, 0x61, 0x75,
+ 0x74, 0x68, 0x6e, 0xca, 0x02, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x57, 0x65, 0x62,
+ 0x61, 0x75, 0x74, 0x68, 0x6e, 0xe2, 0x02, 0x1b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x57,
+ 0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3a, 0x3a, 0x57, 0x65,
+ 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_common_webauthn_credential_proto_rawDescOnce sync.Once
+ file_common_webauthn_credential_proto_rawDescData = file_common_webauthn_credential_proto_rawDesc
+)
+
+func file_common_webauthn_credential_proto_rawDescGZIP() []byte {
+ file_common_webauthn_credential_proto_rawDescOnce.Do(func() {
+ file_common_webauthn_credential_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_webauthn_credential_proto_rawDescData)
+ })
+ return file_common_webauthn_credential_proto_rawDescData
+}
+
+var file_common_webauthn_credential_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_common_webauthn_credential_proto_goTypes = []interface{}{
+ (*Credential)(nil), // 0: common.webauthn.Credential
+ (*Authenticator)(nil), // 1: common.webauthn.Authenticator
+}
+var file_common_webauthn_credential_proto_depIdxs = []int32{
+ 1, // 0: common.webauthn.Credential.authenticator:type_name -> common.webauthn.Authenticator
+ 1, // [1:1] is the sub-list for method output_type
+ 1, // [1:1] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_common_webauthn_credential_proto_init() }
+func file_common_webauthn_credential_proto_init() {
+ if File_common_webauthn_credential_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_common_webauthn_credential_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Credential); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_common_webauthn_credential_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Authenticator); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_common_webauthn_credential_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_common_webauthn_credential_proto_goTypes,
+ DependencyIndexes: file_common_webauthn_credential_proto_depIdxs,
+ MessageInfos: file_common_webauthn_credential_proto_msgTypes,
+ }.Build()
+ File_common_webauthn_credential_proto = out.File
+ file_common_webauthn_credential_proto_rawDesc = nil
+ file_common_webauthn_credential_proto_goTypes = nil
+ file_common_webauthn_credential_proto_depIdxs = nil
+}
diff --git a/api/core/domain/genesis.pulsar.go b/api/core/domain/genesis.pulsar.go
new file mode 100644
index 000000000..59f7b7b09
--- /dev/null
+++ b/api/core/domain/genesis.pulsar.go
@@ -0,0 +1,745 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package domain
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_GenesisState_2_list)(nil)
+
+type _GenesisState_2_list struct {
+ list *[]*UsernameRecord
+}
+
+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().(*UsernameRecord)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*UsernameRecord)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
+ v := new(UsernameRecord)
+ *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(UsernameRecord)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+ fd_GenesisState_usernameRecordsList protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_domain_genesis_proto_init()
+ md_GenesisState = File_core_domain_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+ fd_GenesisState_usernameRecordsList = md_GenesisState.Fields().ByName("usernameRecordsList")
+}
+
+var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
+
+type fastReflection_GenesisState GenesisState
+
+func (x *GenesisState) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_GenesisState)(x)
+}
+
+func (x *GenesisState) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_genesis_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
+var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
+
+type fastReflection_GenesisState_messageType struct{}
+
+func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_GenesisState)(nil)
+}
+func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
+ return new(fastReflection_GenesisState)
+}
+func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_GenesisState
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
+ return md_GenesisState
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
+ return _fastReflection_GenesisState_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_GenesisState) New() protoreflect.Message {
+ return new(fastReflection_GenesisState)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
+ return (*GenesisState)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_GenesisState_params, value) {
+ return
+ }
+ }
+ if len(x.UsernameRecordsList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.UsernameRecordsList})
+ if !f(fd_GenesisState_usernameRecordsList, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.domain.GenesisState.params":
+ return x.Params != nil
+ case "core.domain.GenesisState.usernameRecordsList":
+ return len(x.UsernameRecordsList) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.domain.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.domain.GenesisState.params":
+ x.Params = nil
+ case "core.domain.GenesisState.usernameRecordsList":
+ x.UsernameRecordsList = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.domain.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.domain.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "core.domain.GenesisState.usernameRecordsList":
+ if len(x.UsernameRecordsList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_2_list{})
+ }
+ listValue := &_GenesisState_2_list{list: &x.UsernameRecordsList}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.domain.GenesisState does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.domain.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ case "core.domain.GenesisState.usernameRecordsList":
+ lv := value.List()
+ clv := lv.(*_GenesisState_2_list)
+ x.UsernameRecordsList = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.domain.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.GenesisState.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "core.domain.GenesisState.usernameRecordsList":
+ if x.UsernameRecordsList == nil {
+ x.UsernameRecordsList = []*UsernameRecord{}
+ }
+ value := &_GenesisState_2_list{list: &x.UsernameRecordsList}
+ return protoreflect.ValueOfList(value)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.domain.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "core.domain.GenesisState.usernameRecordsList":
+ list := []*UsernameRecord{}
+ return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.domain.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.GenesisState", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_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))
+ }
+ if len(x.UsernameRecordsList) > 0 {
+ for _, e := range x.UsernameRecordsList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*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)
+ }
+ if len(x.UsernameRecordsList) > 0 {
+ for iNdEx := len(x.UsernameRecordsList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.UsernameRecordsList[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if 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
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UsernameRecordsList", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.UsernameRecordsList = append(x.UsernameRecordsList, &UsernameRecord{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UsernameRecordsList[len(x.UsernameRecordsList)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/domain/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the domain module's genesis state.
+type GenesisState struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+ UsernameRecordsList []*UsernameRecord `protobuf:"bytes,2,rep,name=usernameRecordsList,proto3" json:"usernameRecordsList,omitempty"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_genesis_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GenesisState) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GenesisState) ProtoMessage() {}
+
+// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
+func (*GenesisState) Descriptor() ([]byte, []int) {
+ return file_core_domain_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+func (x *GenesisState) GetUsernameRecordsList() []*UsernameRecord {
+ if x != nil {
+ return x.UsernameRecordsList
+ }
+ return nil
+}
+
+var File_core_domain_genesis_proto protoreflect.FileDescriptor
+
+var file_core_domain_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x19, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x67, 0x65,
+ 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x18, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64,
+ 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f,
+ 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 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, 0x96, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74,
+ 0x61, 0x74, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69,
+ 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06,
+ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x53, 0x0a, 0x13, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61,
+ 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69,
+ 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
+ 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x13, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
+ 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x90, 0x01, 0x0a, 0x0f,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42,
+ 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
+ 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72,
+ 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d,
+ 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x44, 0x58, 0xaa, 0x02, 0x0b, 0x43, 0x6f, 0x72, 0x65,
+ 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x0b, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x44,
+ 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x17, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x44, 0x6f, 0x6d,
+ 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
+ 0x02, 0x0c, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_domain_genesis_proto_rawDescOnce sync.Once
+ file_core_domain_genesis_proto_rawDescData = file_core_domain_genesis_proto_rawDesc
+)
+
+func file_core_domain_genesis_proto_rawDescGZIP() []byte {
+ file_core_domain_genesis_proto_rawDescOnce.Do(func() {
+ file_core_domain_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_domain_genesis_proto_rawDescData)
+ })
+ return file_core_domain_genesis_proto_rawDescData
+}
+
+var file_core_domain_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_core_domain_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: core.domain.GenesisState
+ (*Params)(nil), // 1: core.domain.Params
+ (*UsernameRecord)(nil), // 2: core.domain.UsernameRecord
+}
+var file_core_domain_genesis_proto_depIdxs = []int32{
+ 1, // 0: core.domain.GenesisState.params:type_name -> core.domain.Params
+ 2, // 1: core.domain.GenesisState.usernameRecordsList:type_name -> core.domain.UsernameRecord
+ 2, // [2:2] is the sub-list for method output_type
+ 2, // [2:2] is the sub-list for method input_type
+ 2, // [2:2] is the sub-list for extension type_name
+ 2, // [2:2] is the sub-list for extension extendee
+ 0, // [0:2] is the sub-list for field type_name
+}
+
+func init() { file_core_domain_genesis_proto_init() }
+func file_core_domain_genesis_proto_init() {
+ if File_core_domain_genesis_proto != nil {
+ return
+ }
+ file_core_domain_params_proto_init()
+ file_core_domain_record_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_core_domain_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_domain_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_domain_genesis_proto_goTypes,
+ DependencyIndexes: file_core_domain_genesis_proto_depIdxs,
+ MessageInfos: file_core_domain_genesis_proto_msgTypes,
+ }.Build()
+ File_core_domain_genesis_proto = out.File
+ file_core_domain_genesis_proto_rawDesc = nil
+ file_core_domain_genesis_proto_goTypes = nil
+ file_core_domain_genesis_proto_depIdxs = nil
+}
diff --git a/api/core/domain/params.pulsar.go b/api/core/domain/params.pulsar.go
new file mode 100644
index 000000000..35c620122
--- /dev/null
+++ b/api/core/domain/params.pulsar.go
@@ -0,0 +1,493 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package domain
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Params protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_domain_params_proto_init()
+ md_Params = File_core_domain_params_proto.Messages().ByName("Params")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_params_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.Params"))
+ }
+ panic(fmt.Errorf("message core.domain.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.Params"))
+ }
+ panic(fmt.Errorf("message core.domain.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.Params"))
+ }
+ panic(fmt.Errorf("message core.domain.Params does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.Params"))
+ }
+ panic(fmt.Errorf("message core.domain.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.Params"))
+ }
+ panic(fmt.Errorf("message core.domain.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.Params"))
+ }
+ panic(fmt.Errorf("message core.domain.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.Params", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ 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().(*Params)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/domain/params.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Params defines the parameters for the module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_core_domain_params_proto_rawDescGZIP(), []int{0}
+}
+
+var File_core_domain_params_proto protoreflect.FileDescriptor
+
+var file_core_domain_params_proto_rawDesc = []byte{
+ 0x0a, 0x18, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x63, 0x6f, 0x72, 0x65,
+ 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0e, 0x0a,
+ 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x04, 0x98, 0xa0, 0x1f, 0x00, 0x42, 0x8f, 0x01,
+ 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69,
+ 0x6e, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e,
+ 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f,
+ 0x6d, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x44, 0x58, 0xaa, 0x02, 0x0b, 0x43, 0x6f, 0x72,
+ 0x65, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x0b, 0x43, 0x6f, 0x72, 0x65, 0x5c,
+ 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x17, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x44, 0x6f,
+ 0x6d, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0xea, 0x02, 0x0c, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_domain_params_proto_rawDescOnce sync.Once
+ file_core_domain_params_proto_rawDescData = file_core_domain_params_proto_rawDesc
+)
+
+func file_core_domain_params_proto_rawDescGZIP() []byte {
+ file_core_domain_params_proto_rawDescOnce.Do(func() {
+ file_core_domain_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_domain_params_proto_rawDescData)
+ })
+ return file_core_domain_params_proto_rawDescData
+}
+
+var file_core_domain_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_core_domain_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: core.domain.Params
+}
+var file_core_domain_params_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_core_domain_params_proto_init() }
+func file_core_domain_params_proto_init() {
+ if File_core_domain_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_core_domain_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_domain_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_domain_params_proto_goTypes,
+ DependencyIndexes: file_core_domain_params_proto_depIdxs,
+ MessageInfos: file_core_domain_params_proto_msgTypes,
+ }.Build()
+ File_core_domain_params_proto = out.File
+ file_core_domain_params_proto_rawDesc = nil
+ file_core_domain_params_proto_goTypes = nil
+ file_core_domain_params_proto_depIdxs = nil
+}
diff --git a/api/core/domain/query.pulsar.go b/api/core/domain/query.pulsar.go
new file mode 100644
index 000000000..ba54510a6
--- /dev/null
+++ b/api/core/domain/query.pulsar.go
@@ -0,0 +1,3139 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package domain
+
+import (
+ v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/gogoproto"
+ _ "github.com/sonr-io/api/google/api"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_domain_query_proto_init()
+ md_QueryParamsRequest = File_core_domain_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.QueryParamsRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryParamsRequest) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_domain_query_proto_init()
+ md_QueryParamsResponse = File_core_domain_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_QueryParamsResponse_params, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.domain.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.domain.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.domain.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.domain.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.QueryParamsResponse.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.QueryParamsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryParamsResponse) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Params != nil {
+ encoded, err := options.Marshal(x.Params)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Params == nil {
+ x.Params = &Params{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetUsernameRecordsRequest protoreflect.MessageDescriptor
+ fd_QueryGetUsernameRecordsRequest_index protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_domain_query_proto_init()
+ md_QueryGetUsernameRecordsRequest = File_core_domain_query_proto.Messages().ByName("QueryGetUsernameRecordsRequest")
+ fd_QueryGetUsernameRecordsRequest_index = md_QueryGetUsernameRecordsRequest.Fields().ByName("index")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetUsernameRecordsRequest)(nil)
+
+type fastReflection_QueryGetUsernameRecordsRequest QueryGetUsernameRecordsRequest
+
+func (x *QueryGetUsernameRecordsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetUsernameRecordsRequest)(x)
+}
+
+func (x *QueryGetUsernameRecordsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_query_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetUsernameRecordsRequest_messageType fastReflection_QueryGetUsernameRecordsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetUsernameRecordsRequest_messageType{}
+
+type fastReflection_QueryGetUsernameRecordsRequest_messageType struct{}
+
+func (x fastReflection_QueryGetUsernameRecordsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetUsernameRecordsRequest)(nil)
+}
+func (x fastReflection_QueryGetUsernameRecordsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetUsernameRecordsRequest)
+}
+func (x fastReflection_QueryGetUsernameRecordsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetUsernameRecordsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetUsernameRecordsRequest
+}
+
+// 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_QueryGetUsernameRecordsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetUsernameRecordsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetUsernameRecordsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetUsernameRecordsRequest)(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_QueryGetUsernameRecordsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Index != "" {
+ value := protoreflect.ValueOfString(x.Index)
+ if !f(fd_QueryGetUsernameRecordsRequest_index, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.domain.QueryGetUsernameRecordsRequest.index":
+ return x.Index != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.domain.QueryGetUsernameRecordsRequest.index":
+ x.Index = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.domain.QueryGetUsernameRecordsRequest.index":
+ value := x.Index
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.domain.QueryGetUsernameRecordsRequest.index":
+ x.Index = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.QueryGetUsernameRecordsRequest.index":
+ panic(fmt.Errorf("field index of message core.domain.QueryGetUsernameRecordsRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.QueryGetUsernameRecordsRequest.index":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.QueryGetUsernameRecordsRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryGetUsernameRecordsRequest) 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_QueryGetUsernameRecordsRequest) 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_QueryGetUsernameRecordsRequest) 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_QueryGetUsernameRecordsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetUsernameRecordsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Index)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetUsernameRecordsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Index) > 0 {
+ i -= len(x.Index)
+ copy(dAtA[i:], x.Index)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Index)))
+ 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().(*QueryGetUsernameRecordsRequest)
+ 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: QueryGetUsernameRecordsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUsernameRecordsRequest: 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 Index", 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.Index = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetUsernameRecordsResponse protoreflect.MessageDescriptor
+ fd_QueryGetUsernameRecordsResponse_usernameRecords protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_domain_query_proto_init()
+ md_QueryGetUsernameRecordsResponse = File_core_domain_query_proto.Messages().ByName("QueryGetUsernameRecordsResponse")
+ fd_QueryGetUsernameRecordsResponse_usernameRecords = md_QueryGetUsernameRecordsResponse.Fields().ByName("usernameRecords")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetUsernameRecordsResponse)(nil)
+
+type fastReflection_QueryGetUsernameRecordsResponse QueryGetUsernameRecordsResponse
+
+func (x *QueryGetUsernameRecordsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetUsernameRecordsResponse)(x)
+}
+
+func (x *QueryGetUsernameRecordsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_query_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetUsernameRecordsResponse_messageType fastReflection_QueryGetUsernameRecordsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetUsernameRecordsResponse_messageType{}
+
+type fastReflection_QueryGetUsernameRecordsResponse_messageType struct{}
+
+func (x fastReflection_QueryGetUsernameRecordsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetUsernameRecordsResponse)(nil)
+}
+func (x fastReflection_QueryGetUsernameRecordsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetUsernameRecordsResponse)
+}
+func (x fastReflection_QueryGetUsernameRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetUsernameRecordsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetUsernameRecordsResponse
+}
+
+// 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_QueryGetUsernameRecordsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetUsernameRecordsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetUsernameRecordsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetUsernameRecordsResponse)(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_QueryGetUsernameRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.UsernameRecords != nil {
+ value := protoreflect.ValueOfMessage(x.UsernameRecords.ProtoReflect())
+ if !f(fd_QueryGetUsernameRecordsResponse_usernameRecords, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.domain.QueryGetUsernameRecordsResponse.usernameRecords":
+ return x.UsernameRecords != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.domain.QueryGetUsernameRecordsResponse.usernameRecords":
+ x.UsernameRecords = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.domain.QueryGetUsernameRecordsResponse.usernameRecords":
+ value := x.UsernameRecords
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.domain.QueryGetUsernameRecordsResponse.usernameRecords":
+ x.UsernameRecords = value.Message().Interface().(*UsernameRecord)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.QueryGetUsernameRecordsResponse.usernameRecords":
+ if x.UsernameRecords == nil {
+ x.UsernameRecords = new(UsernameRecord)
+ }
+ return protoreflect.ValueOfMessage(x.UsernameRecords.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.QueryGetUsernameRecordsResponse.usernameRecords":
+ m := new(UsernameRecord)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryGetUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryGetUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.QueryGetUsernameRecordsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryGetUsernameRecordsResponse) 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_QueryGetUsernameRecordsResponse) 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_QueryGetUsernameRecordsResponse) 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_QueryGetUsernameRecordsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetUsernameRecordsResponse)
+ 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.UsernameRecords != nil {
+ l = options.Size(x.UsernameRecords)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetUsernameRecordsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.UsernameRecords != nil {
+ encoded, err := options.Marshal(x.UsernameRecords)
+ 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().(*QueryGetUsernameRecordsResponse)
+ 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: QueryGetUsernameRecordsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUsernameRecordsResponse: 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 UsernameRecords", 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.UsernameRecords == nil {
+ x.UsernameRecords = &UsernameRecord{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UsernameRecords); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryAllUsernameRecordsRequest protoreflect.MessageDescriptor
+ fd_QueryAllUsernameRecordsRequest_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_domain_query_proto_init()
+ md_QueryAllUsernameRecordsRequest = File_core_domain_query_proto.Messages().ByName("QueryAllUsernameRecordsRequest")
+ fd_QueryAllUsernameRecordsRequest_pagination = md_QueryAllUsernameRecordsRequest.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllUsernameRecordsRequest)(nil)
+
+type fastReflection_QueryAllUsernameRecordsRequest QueryAllUsernameRecordsRequest
+
+func (x *QueryAllUsernameRecordsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllUsernameRecordsRequest)(x)
+}
+
+func (x *QueryAllUsernameRecordsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_query_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllUsernameRecordsRequest_messageType fastReflection_QueryAllUsernameRecordsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllUsernameRecordsRequest_messageType{}
+
+type fastReflection_QueryAllUsernameRecordsRequest_messageType struct{}
+
+func (x fastReflection_QueryAllUsernameRecordsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllUsernameRecordsRequest)(nil)
+}
+func (x fastReflection_QueryAllUsernameRecordsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllUsernameRecordsRequest)
+}
+func (x fastReflection_QueryAllUsernameRecordsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllUsernameRecordsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllUsernameRecordsRequest
+}
+
+// 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_QueryAllUsernameRecordsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllUsernameRecordsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllUsernameRecordsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllUsernameRecordsRequest)(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_QueryAllUsernameRecordsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllUsernameRecordsRequest_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.domain.QueryAllUsernameRecordsRequest.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.domain.QueryAllUsernameRecordsRequest.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.domain.QueryAllUsernameRecordsRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.domain.QueryAllUsernameRecordsRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.QueryAllUsernameRecordsRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.QueryAllUsernameRecordsRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsRequest"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.QueryAllUsernameRecordsRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAllUsernameRecordsRequest) 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_QueryAllUsernameRecordsRequest) 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_QueryAllUsernameRecordsRequest) 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_QueryAllUsernameRecordsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllUsernameRecordsRequest)
+ 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.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllUsernameRecordsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 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().(*QueryAllUsernameRecordsRequest)
+ 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: QueryAllUsernameRecordsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllUsernameRecordsRequest: 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 Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_QueryAllUsernameRecordsResponse_1_list)(nil)
+
+type _QueryAllUsernameRecordsResponse_1_list struct {
+ list *[]*UsernameRecord
+}
+
+func (x *_QueryAllUsernameRecordsResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllUsernameRecordsResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllUsernameRecordsResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*UsernameRecord)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllUsernameRecordsResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*UsernameRecord)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllUsernameRecordsResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(UsernameRecord)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllUsernameRecordsResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllUsernameRecordsResponse_1_list) NewElement() protoreflect.Value {
+ v := new(UsernameRecord)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllUsernameRecordsResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllUsernameRecordsResponse protoreflect.MessageDescriptor
+ fd_QueryAllUsernameRecordsResponse_usernameRecords protoreflect.FieldDescriptor
+ fd_QueryAllUsernameRecordsResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_domain_query_proto_init()
+ md_QueryAllUsernameRecordsResponse = File_core_domain_query_proto.Messages().ByName("QueryAllUsernameRecordsResponse")
+ fd_QueryAllUsernameRecordsResponse_usernameRecords = md_QueryAllUsernameRecordsResponse.Fields().ByName("usernameRecords")
+ fd_QueryAllUsernameRecordsResponse_pagination = md_QueryAllUsernameRecordsResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllUsernameRecordsResponse)(nil)
+
+type fastReflection_QueryAllUsernameRecordsResponse QueryAllUsernameRecordsResponse
+
+func (x *QueryAllUsernameRecordsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllUsernameRecordsResponse)(x)
+}
+
+func (x *QueryAllUsernameRecordsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_query_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllUsernameRecordsResponse_messageType fastReflection_QueryAllUsernameRecordsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllUsernameRecordsResponse_messageType{}
+
+type fastReflection_QueryAllUsernameRecordsResponse_messageType struct{}
+
+func (x fastReflection_QueryAllUsernameRecordsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllUsernameRecordsResponse)(nil)
+}
+func (x fastReflection_QueryAllUsernameRecordsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllUsernameRecordsResponse)
+}
+func (x fastReflection_QueryAllUsernameRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllUsernameRecordsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllUsernameRecordsResponse
+}
+
+// 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_QueryAllUsernameRecordsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllUsernameRecordsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllUsernameRecordsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllUsernameRecordsResponse)(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_QueryAllUsernameRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.UsernameRecords) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllUsernameRecordsResponse_1_list{list: &x.UsernameRecords})
+ if !f(fd_QueryAllUsernameRecordsResponse_usernameRecords, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllUsernameRecordsResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.domain.QueryAllUsernameRecordsResponse.usernameRecords":
+ return len(x.UsernameRecords) != 0
+ case "core.domain.QueryAllUsernameRecordsResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.domain.QueryAllUsernameRecordsResponse.usernameRecords":
+ x.UsernameRecords = nil
+ case "core.domain.QueryAllUsernameRecordsResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.domain.QueryAllUsernameRecordsResponse.usernameRecords":
+ if len(x.UsernameRecords) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllUsernameRecordsResponse_1_list{})
+ }
+ listValue := &_QueryAllUsernameRecordsResponse_1_list{list: &x.UsernameRecords}
+ return protoreflect.ValueOfList(listValue)
+ case "core.domain.QueryAllUsernameRecordsResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.domain.QueryAllUsernameRecordsResponse.usernameRecords":
+ lv := value.List()
+ clv := lv.(*_QueryAllUsernameRecordsResponse_1_list)
+ x.UsernameRecords = *clv.list
+ case "core.domain.QueryAllUsernameRecordsResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.QueryAllUsernameRecordsResponse.usernameRecords":
+ if x.UsernameRecords == nil {
+ x.UsernameRecords = []*UsernameRecord{}
+ }
+ value := &_QueryAllUsernameRecordsResponse_1_list{list: &x.UsernameRecords}
+ return protoreflect.ValueOfList(value)
+ case "core.domain.QueryAllUsernameRecordsResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.QueryAllUsernameRecordsResponse.usernameRecords":
+ list := []*UsernameRecord{}
+ return protoreflect.ValueOfList(&_QueryAllUsernameRecordsResponse_1_list{list: &list})
+ case "core.domain.QueryAllUsernameRecordsResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.QueryAllUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.QueryAllUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.QueryAllUsernameRecordsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAllUsernameRecordsResponse) 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_QueryAllUsernameRecordsResponse) 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_QueryAllUsernameRecordsResponse) 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_QueryAllUsernameRecordsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllUsernameRecordsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if len(x.UsernameRecords) > 0 {
+ for _, e := range x.UsernameRecords {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllUsernameRecordsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.UsernameRecords) > 0 {
+ for iNdEx := len(x.UsernameRecords) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.UsernameRecords[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllUsernameRecordsResponse)
+ 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: QueryAllUsernameRecordsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllUsernameRecordsResponse: 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 UsernameRecords", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.UsernameRecords = append(x.UsernameRecords, &UsernameRecord{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UsernameRecords[len(x.UsernameRecords)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/domain/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_core_domain_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+// It holds all the parameters of this module.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_core_domain_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// QueryGetUsernameRecordsRequest is the request type for the
+// Query/UsernameRecord RPC method. It contains the index of the UsernameRecords
+// to be queried.
+type QueryGetUsernameRecordsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
+}
+
+func (x *QueryGetUsernameRecordsRequest) Reset() {
+ *x = QueryGetUsernameRecordsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_query_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetUsernameRecordsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetUsernameRecordsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetUsernameRecordsRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetUsernameRecordsRequest) Descriptor() ([]byte, []int) {
+ return file_core_domain_query_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *QueryGetUsernameRecordsRequest) GetIndex() string {
+ if x != nil {
+ return x.Index
+ }
+ return ""
+}
+
+// QueryGetUsernameRecordsResponse is the response type for the
+// Query/UsernameRecord RPC method. It contains the queried UsernameRecords.
+type QueryGetUsernameRecordsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UsernameRecords *UsernameRecord `protobuf:"bytes,1,opt,name=usernameRecords,proto3" json:"usernameRecords,omitempty"`
+}
+
+func (x *QueryGetUsernameRecordsResponse) Reset() {
+ *x = QueryGetUsernameRecordsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_query_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetUsernameRecordsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetUsernameRecordsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetUsernameRecordsResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetUsernameRecordsResponse) Descriptor() ([]byte, []int) {
+ return file_core_domain_query_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *QueryGetUsernameRecordsResponse) GetUsernameRecords() *UsernameRecord {
+ if x != nil {
+ return x.UsernameRecords
+ }
+ return nil
+}
+
+// QueryAllUsernameRecordsRequest is the request type for the
+// Query/UsernameRecordAll RPC method. It contains the pagination information
+// for the query.
+type QueryAllUsernameRecordsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllUsernameRecordsRequest) Reset() {
+ *x = QueryAllUsernameRecordsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_query_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllUsernameRecordsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllUsernameRecordsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllUsernameRecordsRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllUsernameRecordsRequest) Descriptor() ([]byte, []int) {
+ return file_core_domain_query_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *QueryAllUsernameRecordsRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+// QueryAllUsernameRecordsResponse is the response type for the
+// Query/UsernameRecordAll RPC method. It contains all queried UsernameRecords
+// and the pagination information.
+type QueryAllUsernameRecordsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UsernameRecords []*UsernameRecord `protobuf:"bytes,1,rep,name=usernameRecords,proto3" json:"usernameRecords,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllUsernameRecordsResponse) Reset() {
+ *x = QueryAllUsernameRecordsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_query_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllUsernameRecordsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllUsernameRecordsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllUsernameRecordsResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllUsernameRecordsResponse) Descriptor() ([]byte, []int) {
+ return file_core_domain_query_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *QueryAllUsernameRecordsResponse) GetUsernameRecords() []*UsernameRecord {
+ if x != nil {
+ return x.UsernameRecords
+ }
+ return nil
+}
+
+func (x *QueryAllUsernameRecordsResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+var File_core_domain_query_proto protoreflect.FileDescriptor
+
+var file_core_domain_query_proto_rawDesc = []byte{
+ 0x0a, 0x17, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x71, 0x75,
+ 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x63, 0x6f, 0x72, 0x65, 0x2e,
+ 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x18, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d,
+ 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x18, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x72, 0x65,
+ 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31,
+ 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f,
+ 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x22, 0x48, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64,
+ 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde,
+ 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x36, 0x0a, 0x1e, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65,
+ 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05,
+ 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x64,
+ 0x65, 0x78, 0x22, 0x6e, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x55, 0x73,
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d,
+ 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
+ 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x55, 0x73, 0x65,
+ 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f,
+ 0x00, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72,
+ 0x64, 0x73, 0x22, 0x68, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x55, 0x73,
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
+ 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62,
+ 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb7, 0x01, 0x0a,
+ 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d,
+ 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x12, 0x4b, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f,
+ 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x72, 0x65,
+ 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
+ 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x75, 0x73,
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x47, 0x0a,
+ 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61,
+ 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69,
+ 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0x96, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x12, 0x68, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1f, 0x2e, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x63, 0x6f,
+ 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50,
+ 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d,
+ 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x0e, 0x55,
+ 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f,
+ 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65,
+ 0x74, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f,
+ 0x12, 0x1d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x75,
+ 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, 0x12,
+ 0x8d, 0x01, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f,
+ 0x72, 0x64, 0x41, 0x6c, 0x6c, 0x12, 0x2b, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d,
+ 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72,
+ 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
+ 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d,
+ 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f,
+ 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x42,
+ 0x8e, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d,
+ 0x61, 0x69, 0x6e, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
+ 0x01, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f,
+ 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64,
+ 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x44, 0x58, 0xaa, 0x02, 0x0b, 0x43, 0x6f,
+ 0x72, 0x65, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x0b, 0x43, 0x6f, 0x72, 0x65,
+ 0x5c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x17, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x44,
+ 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0xea, 0x02, 0x0c, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_domain_query_proto_rawDescOnce sync.Once
+ file_core_domain_query_proto_rawDescData = file_core_domain_query_proto_rawDesc
+)
+
+func file_core_domain_query_proto_rawDescGZIP() []byte {
+ file_core_domain_query_proto_rawDescOnce.Do(func() {
+ file_core_domain_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_domain_query_proto_rawDescData)
+ })
+ return file_core_domain_query_proto_rawDescData
+}
+
+var file_core_domain_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_core_domain_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: core.domain.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: core.domain.QueryParamsResponse
+ (*QueryGetUsernameRecordsRequest)(nil), // 2: core.domain.QueryGetUsernameRecordsRequest
+ (*QueryGetUsernameRecordsResponse)(nil), // 3: core.domain.QueryGetUsernameRecordsResponse
+ (*QueryAllUsernameRecordsRequest)(nil), // 4: core.domain.QueryAllUsernameRecordsRequest
+ (*QueryAllUsernameRecordsResponse)(nil), // 5: core.domain.QueryAllUsernameRecordsResponse
+ (*Params)(nil), // 6: core.domain.Params
+ (*UsernameRecord)(nil), // 7: core.domain.UsernameRecord
+ (*v1beta1.PageRequest)(nil), // 8: cosmos.base.query.v1beta1.PageRequest
+ (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse
+}
+var file_core_domain_query_proto_depIdxs = []int32{
+ 6, // 0: core.domain.QueryParamsResponse.params:type_name -> core.domain.Params
+ 7, // 1: core.domain.QueryGetUsernameRecordsResponse.usernameRecords:type_name -> core.domain.UsernameRecord
+ 8, // 2: core.domain.QueryAllUsernameRecordsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 7, // 3: core.domain.QueryAllUsernameRecordsResponse.usernameRecords:type_name -> core.domain.UsernameRecord
+ 9, // 4: core.domain.QueryAllUsernameRecordsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 0, // 5: core.domain.Query.Params:input_type -> core.domain.QueryParamsRequest
+ 2, // 6: core.domain.Query.UsernameRecord:input_type -> core.domain.QueryGetUsernameRecordsRequest
+ 4, // 7: core.domain.Query.UsernameRecordAll:input_type -> core.domain.QueryAllUsernameRecordsRequest
+ 1, // 8: core.domain.Query.Params:output_type -> core.domain.QueryParamsResponse
+ 3, // 9: core.domain.Query.UsernameRecord:output_type -> core.domain.QueryGetUsernameRecordsResponse
+ 5, // 10: core.domain.Query.UsernameRecordAll:output_type -> core.domain.QueryAllUsernameRecordsResponse
+ 8, // [8:11] is the sub-list for method output_type
+ 5, // [5:8] 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
+}
+
+func init() { file_core_domain_query_proto_init() }
+func file_core_domain_query_proto_init() {
+ if File_core_domain_query_proto != nil {
+ return
+ }
+ file_core_domain_params_proto_init()
+ file_core_domain_record_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_core_domain_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_domain_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_domain_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetUsernameRecordsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_domain_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetUsernameRecordsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_domain_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllUsernameRecordsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_domain_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllUsernameRecordsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_domain_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_core_domain_query_proto_goTypes,
+ DependencyIndexes: file_core_domain_query_proto_depIdxs,
+ MessageInfos: file_core_domain_query_proto_msgTypes,
+ }.Build()
+ File_core_domain_query_proto = out.File
+ file_core_domain_query_proto_rawDesc = nil
+ file_core_domain_query_proto_goTypes = nil
+ file_core_domain_query_proto_depIdxs = nil
+}
diff --git a/api/core/domain/query_grpc.pb.go b/api/core/domain/query_grpc.pb.go
new file mode 100644
index 000000000..82762eca4
--- /dev/null
+++ b/api/core/domain/query_grpc.pb.go
@@ -0,0 +1,195 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: core/domain/query.proto
+
+package domain
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ Query_Params_FullMethodName = "/core.domain.Query/Params"
+ Query_UsernameRecord_FullMethodName = "/core.domain.Query/UsernameRecord"
+ Query_UsernameRecordAll_FullMethodName = "/core.domain.Query/UsernameRecordAll"
+)
+
+// QueryClient is the client API for Query service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type QueryClient interface {
+ // Params queries the parameters of the module.
+ // It returns the parameters of the module.
+ Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
+ // UsernameRecord queries a list of UsernameRecords items by index.
+ // It returns a list of UsernameRecords items.
+ UsernameRecord(ctx context.Context, in *QueryGetUsernameRecordsRequest, opts ...grpc.CallOption) (*QueryGetUsernameRecordsResponse, error)
+ // UsernameRecordAll queries all UsernameRecords items.
+ // It returns all UsernameRecords items.
+ UsernameRecordAll(ctx context.Context, in *QueryAllUsernameRecordsRequest, opts ...grpc.CallOption) (*QueryAllUsernameRecordsResponse, error)
+}
+
+type queryClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
+ return &queryClient{cc}
+}
+
+func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
+ out := new(QueryParamsResponse)
+ err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) UsernameRecord(ctx context.Context, in *QueryGetUsernameRecordsRequest, opts ...grpc.CallOption) (*QueryGetUsernameRecordsResponse, error) {
+ out := new(QueryGetUsernameRecordsResponse)
+ err := c.cc.Invoke(ctx, Query_UsernameRecord_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) UsernameRecordAll(ctx context.Context, in *QueryAllUsernameRecordsRequest, opts ...grpc.CallOption) (*QueryAllUsernameRecordsResponse, error) {
+ out := new(QueryAllUsernameRecordsResponse)
+ err := c.cc.Invoke(ctx, Query_UsernameRecordAll_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// QueryServer is the server API for Query service.
+// All implementations must embed UnimplementedQueryServer
+// for forward compatibility
+type QueryServer interface {
+ // Params queries the parameters of the module.
+ // It returns the parameters of the module.
+ Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
+ // UsernameRecord queries a list of UsernameRecords items by index.
+ // It returns a list of UsernameRecords items.
+ UsernameRecord(context.Context, *QueryGetUsernameRecordsRequest) (*QueryGetUsernameRecordsResponse, error)
+ // UsernameRecordAll queries all UsernameRecords items.
+ // It returns all UsernameRecords items.
+ UsernameRecordAll(context.Context, *QueryAllUsernameRecordsRequest) (*QueryAllUsernameRecordsResponse, error)
+ mustEmbedUnimplementedQueryServer()
+}
+
+// UnimplementedQueryServer must be embedded to have forward compatible implementations.
+type UnimplementedQueryServer struct {
+}
+
+func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
+}
+func (UnimplementedQueryServer) UsernameRecord(context.Context, *QueryGetUsernameRecordsRequest) (*QueryGetUsernameRecordsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UsernameRecord not implemented")
+}
+func (UnimplementedQueryServer) UsernameRecordAll(context.Context, *QueryAllUsernameRecordsRequest) (*QueryAllUsernameRecordsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UsernameRecordAll not implemented")
+}
+func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
+
+// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to QueryServer will
+// result in compilation errors.
+type UnsafeQueryServer interface {
+ mustEmbedUnimplementedQueryServer()
+}
+
+func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) {
+ s.RegisterService(&Query_ServiceDesc, srv)
+}
+
+func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryParamsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).Params(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_Params_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_UsernameRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryGetUsernameRecordsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).UsernameRecord(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_UsernameRecord_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).UsernameRecord(ctx, req.(*QueryGetUsernameRecordsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_UsernameRecordAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryAllUsernameRecordsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).UsernameRecordAll(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_UsernameRecordAll_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).UsernameRecordAll(ctx, req.(*QueryAllUsernameRecordsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var Query_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "core.domain.Query",
+ HandlerType: (*QueryServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "Params",
+ Handler: _Query_Params_Handler,
+ },
+ {
+ MethodName: "UsernameRecord",
+ Handler: _Query_UsernameRecord_Handler,
+ },
+ {
+ MethodName: "UsernameRecordAll",
+ Handler: _Query_UsernameRecordAll_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "core/domain/query.proto",
+}
diff --git a/api/core/domain/record.pulsar.go b/api/core/domain/record.pulsar.go
new file mode 100644
index 000000000..91f4b6f56
--- /dev/null
+++ b/api/core/domain/record.pulsar.go
@@ -0,0 +1,711 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package domain
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_UsernameRecord protoreflect.MessageDescriptor
+ fd_UsernameRecord_index protoreflect.FieldDescriptor
+ fd_UsernameRecord_address protoreflect.FieldDescriptor
+ fd_UsernameRecord_method protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_domain_record_proto_init()
+ md_UsernameRecord = File_core_domain_record_proto.Messages().ByName("UsernameRecord")
+ fd_UsernameRecord_index = md_UsernameRecord.Fields().ByName("index")
+ fd_UsernameRecord_address = md_UsernameRecord.Fields().ByName("address")
+ fd_UsernameRecord_method = md_UsernameRecord.Fields().ByName("method")
+}
+
+var _ protoreflect.Message = (*fastReflection_UsernameRecord)(nil)
+
+type fastReflection_UsernameRecord UsernameRecord
+
+func (x *UsernameRecord) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_UsernameRecord)(x)
+}
+
+func (x *UsernameRecord) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_record_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_UsernameRecord_messageType fastReflection_UsernameRecord_messageType
+var _ protoreflect.MessageType = fastReflection_UsernameRecord_messageType{}
+
+type fastReflection_UsernameRecord_messageType struct{}
+
+func (x fastReflection_UsernameRecord_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_UsernameRecord)(nil)
+}
+func (x fastReflection_UsernameRecord_messageType) New() protoreflect.Message {
+ return new(fastReflection_UsernameRecord)
+}
+func (x fastReflection_UsernameRecord_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_UsernameRecord
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_UsernameRecord) Descriptor() protoreflect.MessageDescriptor {
+ return md_UsernameRecord
+}
+
+// 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_UsernameRecord) Type() protoreflect.MessageType {
+ return _fastReflection_UsernameRecord_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_UsernameRecord) New() protoreflect.Message {
+ return new(fastReflection_UsernameRecord)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_UsernameRecord) Interface() protoreflect.ProtoMessage {
+ return (*UsernameRecord)(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_UsernameRecord) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Index != "" {
+ value := protoreflect.ValueOfString(x.Index)
+ if !f(fd_UsernameRecord_index, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_UsernameRecord_address, value) {
+ return
+ }
+ }
+ if x.Method != "" {
+ value := protoreflect.ValueOfString(x.Method)
+ if !f(fd_UsernameRecord_method, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_UsernameRecord) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.domain.UsernameRecord.index":
+ return x.Index != ""
+ case "core.domain.UsernameRecord.address":
+ return x.Address != ""
+ case "core.domain.UsernameRecord.method":
+ return x.Method != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.UsernameRecord"))
+ }
+ panic(fmt.Errorf("message core.domain.UsernameRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_UsernameRecord) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.domain.UsernameRecord.index":
+ x.Index = ""
+ case "core.domain.UsernameRecord.address":
+ x.Address = ""
+ case "core.domain.UsernameRecord.method":
+ x.Method = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.UsernameRecord"))
+ }
+ panic(fmt.Errorf("message core.domain.UsernameRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_UsernameRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.domain.UsernameRecord.index":
+ value := x.Index
+ return protoreflect.ValueOfString(value)
+ case "core.domain.UsernameRecord.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "core.domain.UsernameRecord.method":
+ value := x.Method
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.UsernameRecord"))
+ }
+ panic(fmt.Errorf("message core.domain.UsernameRecord does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_UsernameRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.domain.UsernameRecord.index":
+ x.Index = value.Interface().(string)
+ case "core.domain.UsernameRecord.address":
+ x.Address = value.Interface().(string)
+ case "core.domain.UsernameRecord.method":
+ x.Method = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.UsernameRecord"))
+ }
+ panic(fmt.Errorf("message core.domain.UsernameRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_UsernameRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.UsernameRecord.index":
+ panic(fmt.Errorf("field index of message core.domain.UsernameRecord is not mutable"))
+ case "core.domain.UsernameRecord.address":
+ panic(fmt.Errorf("field address of message core.domain.UsernameRecord is not mutable"))
+ case "core.domain.UsernameRecord.method":
+ panic(fmt.Errorf("field method of message core.domain.UsernameRecord is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.UsernameRecord"))
+ }
+ panic(fmt.Errorf("message core.domain.UsernameRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_UsernameRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.UsernameRecord.index":
+ return protoreflect.ValueOfString("")
+ case "core.domain.UsernameRecord.address":
+ return protoreflect.ValueOfString("")
+ case "core.domain.UsernameRecord.method":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.UsernameRecord"))
+ }
+ panic(fmt.Errorf("message core.domain.UsernameRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_UsernameRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.UsernameRecord", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_UsernameRecord) 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_UsernameRecord) 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_UsernameRecord) 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_UsernameRecord) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*UsernameRecord)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Index)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Method)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*UsernameRecord)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Method) > 0 {
+ i -= len(x.Method)
+ copy(dAtA[i:], x.Method)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Method)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Index) > 0 {
+ i -= len(x.Index)
+ copy(dAtA[i:], x.Index)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Index)))
+ 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().(*UsernameRecord)
+ 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: UsernameRecord: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: UsernameRecord: 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 Index", 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.Index = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Method", 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.Method = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/domain/record.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type UsernameRecord struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
+ Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
+ Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
+}
+
+func (x *UsernameRecord) Reset() {
+ *x = UsernameRecord{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_record_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UsernameRecord) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UsernameRecord) ProtoMessage() {}
+
+// Deprecated: Use UsernameRecord.ProtoReflect.Descriptor instead.
+func (*UsernameRecord) Descriptor() ([]byte, []int) {
+ return file_core_domain_record_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *UsernameRecord) GetIndex() string {
+ if x != nil {
+ return x.Index
+ }
+ return ""
+}
+
+func (x *UsernameRecord) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *UsernameRecord) GetMethod() string {
+ if x != nil {
+ return x.Method
+ }
+ return ""
+}
+
+var File_core_domain_record_proto protoreflect.FileDescriptor
+
+var file_core_domain_record_proto_rawDesc = []byte{
+ 0x0a, 0x18, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x72, 0x65,
+ 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x63, 0x6f, 0x72, 0x65,
+ 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x58, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x6e,
+ 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64,
+ 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12,
+ 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74,
+ 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
+ 0x64, 0x42, 0x8f, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64,
+ 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
+ 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72,
+ 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x44, 0x58, 0xaa, 0x02,
+ 0x0b, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x0b, 0x43,
+ 0x6f, 0x72, 0x65, 0x5c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x17, 0x43, 0x6f, 0x72,
+ 0x65, 0x5c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x44, 0x6f, 0x6d,
+ 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_domain_record_proto_rawDescOnce sync.Once
+ file_core_domain_record_proto_rawDescData = file_core_domain_record_proto_rawDesc
+)
+
+func file_core_domain_record_proto_rawDescGZIP() []byte {
+ file_core_domain_record_proto_rawDescOnce.Do(func() {
+ file_core_domain_record_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_domain_record_proto_rawDescData)
+ })
+ return file_core_domain_record_proto_rawDescData
+}
+
+var file_core_domain_record_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_core_domain_record_proto_goTypes = []interface{}{
+ (*UsernameRecord)(nil), // 0: core.domain.UsernameRecord
+}
+var file_core_domain_record_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_core_domain_record_proto_init() }
+func file_core_domain_record_proto_init() {
+ if File_core_domain_record_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_core_domain_record_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UsernameRecord); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_domain_record_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_domain_record_proto_goTypes,
+ DependencyIndexes: file_core_domain_record_proto_depIdxs,
+ MessageInfos: file_core_domain_record_proto_msgTypes,
+ }.Build()
+ File_core_domain_record_proto = out.File
+ file_core_domain_record_proto_rawDesc = nil
+ file_core_domain_record_proto_goTypes = nil
+ file_core_domain_record_proto_depIdxs = nil
+}
diff --git a/api/core/domain/tx.pulsar.go b/api/core/domain/tx.pulsar.go
new file mode 100644
index 000000000..199e6a3f7
--- /dev/null
+++ b/api/core/domain/tx.pulsar.go
@@ -0,0 +1,3031 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package domain
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_MsgCreateUsernameRecords protoreflect.MessageDescriptor
+ fd_MsgCreateUsernameRecords_creator protoreflect.FieldDescriptor
+ fd_MsgCreateUsernameRecords_index protoreflect.FieldDescriptor
+ fd_MsgCreateUsernameRecords_method protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_domain_tx_proto_init()
+ md_MsgCreateUsernameRecords = File_core_domain_tx_proto.Messages().ByName("MsgCreateUsernameRecords")
+ fd_MsgCreateUsernameRecords_creator = md_MsgCreateUsernameRecords.Fields().ByName("creator")
+ fd_MsgCreateUsernameRecords_index = md_MsgCreateUsernameRecords.Fields().ByName("index")
+ fd_MsgCreateUsernameRecords_method = md_MsgCreateUsernameRecords.Fields().ByName("method")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgCreateUsernameRecords)(nil)
+
+type fastReflection_MsgCreateUsernameRecords MsgCreateUsernameRecords
+
+func (x *MsgCreateUsernameRecords) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgCreateUsernameRecords)(x)
+}
+
+func (x *MsgCreateUsernameRecords) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgCreateUsernameRecords_messageType fastReflection_MsgCreateUsernameRecords_messageType
+var _ protoreflect.MessageType = fastReflection_MsgCreateUsernameRecords_messageType{}
+
+type fastReflection_MsgCreateUsernameRecords_messageType struct{}
+
+func (x fastReflection_MsgCreateUsernameRecords_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgCreateUsernameRecords)(nil)
+}
+func (x fastReflection_MsgCreateUsernameRecords_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateUsernameRecords)
+}
+func (x fastReflection_MsgCreateUsernameRecords_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateUsernameRecords
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgCreateUsernameRecords) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateUsernameRecords
+}
+
+// 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_MsgCreateUsernameRecords) Type() protoreflect.MessageType {
+ return _fastReflection_MsgCreateUsernameRecords_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgCreateUsernameRecords) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateUsernameRecords)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgCreateUsernameRecords) Interface() protoreflect.ProtoMessage {
+ return (*MsgCreateUsernameRecords)(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_MsgCreateUsernameRecords) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Creator != "" {
+ value := protoreflect.ValueOfString(x.Creator)
+ if !f(fd_MsgCreateUsernameRecords_creator, value) {
+ return
+ }
+ }
+ if x.Index != "" {
+ value := protoreflect.ValueOfString(x.Index)
+ if !f(fd_MsgCreateUsernameRecords_index, value) {
+ return
+ }
+ }
+ if x.Method != "" {
+ value := protoreflect.ValueOfString(x.Method)
+ if !f(fd_MsgCreateUsernameRecords_method, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgCreateUsernameRecords) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.domain.MsgCreateUsernameRecords.creator":
+ return x.Creator != ""
+ case "core.domain.MsgCreateUsernameRecords.index":
+ return x.Index != ""
+ case "core.domain.MsgCreateUsernameRecords.method":
+ return x.Method != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateUsernameRecords) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.domain.MsgCreateUsernameRecords.creator":
+ x.Creator = ""
+ case "core.domain.MsgCreateUsernameRecords.index":
+ x.Index = ""
+ case "core.domain.MsgCreateUsernameRecords.method":
+ x.Method = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgCreateUsernameRecords) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.domain.MsgCreateUsernameRecords.creator":
+ value := x.Creator
+ return protoreflect.ValueOfString(value)
+ case "core.domain.MsgCreateUsernameRecords.index":
+ value := x.Index
+ return protoreflect.ValueOfString(value)
+ case "core.domain.MsgCreateUsernameRecords.method":
+ value := x.Method
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecords does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateUsernameRecords) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.domain.MsgCreateUsernameRecords.creator":
+ x.Creator = value.Interface().(string)
+ case "core.domain.MsgCreateUsernameRecords.index":
+ x.Index = value.Interface().(string)
+ case "core.domain.MsgCreateUsernameRecords.method":
+ x.Method = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateUsernameRecords) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.MsgCreateUsernameRecords.creator":
+ panic(fmt.Errorf("field creator of message core.domain.MsgCreateUsernameRecords is not mutable"))
+ case "core.domain.MsgCreateUsernameRecords.index":
+ panic(fmt.Errorf("field index of message core.domain.MsgCreateUsernameRecords is not mutable"))
+ case "core.domain.MsgCreateUsernameRecords.method":
+ panic(fmt.Errorf("field method of message core.domain.MsgCreateUsernameRecords is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgCreateUsernameRecords) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.MsgCreateUsernameRecords.creator":
+ return protoreflect.ValueOfString("")
+ case "core.domain.MsgCreateUsernameRecords.index":
+ return protoreflect.ValueOfString("")
+ case "core.domain.MsgCreateUsernameRecords.method":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgCreateUsernameRecords) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.MsgCreateUsernameRecords", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgCreateUsernameRecords) 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_MsgCreateUsernameRecords) 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_MsgCreateUsernameRecords) 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_MsgCreateUsernameRecords) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgCreateUsernameRecords)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Creator)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Index)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Method)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgCreateUsernameRecords)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Method) > 0 {
+ i -= len(x.Method)
+ copy(dAtA[i:], x.Method)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Method)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Index) > 0 {
+ i -= len(x.Index)
+ copy(dAtA[i:], x.Index)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Index)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Creator) > 0 {
+ i -= len(x.Creator)
+ copy(dAtA[i:], x.Creator)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
+ 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().(*MsgCreateUsernameRecords)
+ 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: MsgCreateUsernameRecords: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateUsernameRecords: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Index", 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.Index = 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 Method", 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.Method = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgCreateUsernameRecordsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_domain_tx_proto_init()
+ md_MsgCreateUsernameRecordsResponse = File_core_domain_tx_proto.Messages().ByName("MsgCreateUsernameRecordsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgCreateUsernameRecordsResponse)(nil)
+
+type fastReflection_MsgCreateUsernameRecordsResponse MsgCreateUsernameRecordsResponse
+
+func (x *MsgCreateUsernameRecordsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgCreateUsernameRecordsResponse)(x)
+}
+
+func (x *MsgCreateUsernameRecordsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgCreateUsernameRecordsResponse_messageType fastReflection_MsgCreateUsernameRecordsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgCreateUsernameRecordsResponse_messageType{}
+
+type fastReflection_MsgCreateUsernameRecordsResponse_messageType struct{}
+
+func (x fastReflection_MsgCreateUsernameRecordsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgCreateUsernameRecordsResponse)(nil)
+}
+func (x fastReflection_MsgCreateUsernameRecordsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateUsernameRecordsResponse)
+}
+func (x fastReflection_MsgCreateUsernameRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateUsernameRecordsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateUsernameRecordsResponse
+}
+
+// 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_MsgCreateUsernameRecordsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgCreateUsernameRecordsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateUsernameRecordsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgCreateUsernameRecordsResponse)(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_MsgCreateUsernameRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecordsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgCreateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgCreateUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.MsgCreateUsernameRecordsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgCreateUsernameRecordsResponse) 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_MsgCreateUsernameRecordsResponse) 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_MsgCreateUsernameRecordsResponse) 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_MsgCreateUsernameRecordsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgCreateUsernameRecordsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgCreateUsernameRecordsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgCreateUsernameRecordsResponse)
+ 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: MsgCreateUsernameRecordsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateUsernameRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUpdateUsernameRecords protoreflect.MessageDescriptor
+ fd_MsgUpdateUsernameRecords_creator protoreflect.FieldDescriptor
+ fd_MsgUpdateUsernameRecords_index protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_domain_tx_proto_init()
+ md_MsgUpdateUsernameRecords = File_core_domain_tx_proto.Messages().ByName("MsgUpdateUsernameRecords")
+ fd_MsgUpdateUsernameRecords_creator = md_MsgUpdateUsernameRecords.Fields().ByName("creator")
+ fd_MsgUpdateUsernameRecords_index = md_MsgUpdateUsernameRecords.Fields().ByName("index")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateUsernameRecords)(nil)
+
+type fastReflection_MsgUpdateUsernameRecords MsgUpdateUsernameRecords
+
+func (x *MsgUpdateUsernameRecords) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateUsernameRecords)(x)
+}
+
+func (x *MsgUpdateUsernameRecords) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_tx_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateUsernameRecords_messageType fastReflection_MsgUpdateUsernameRecords_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateUsernameRecords_messageType{}
+
+type fastReflection_MsgUpdateUsernameRecords_messageType struct{}
+
+func (x fastReflection_MsgUpdateUsernameRecords_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateUsernameRecords)(nil)
+}
+func (x fastReflection_MsgUpdateUsernameRecords_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateUsernameRecords)
+}
+func (x fastReflection_MsgUpdateUsernameRecords_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateUsernameRecords
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateUsernameRecords) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateUsernameRecords
+}
+
+// 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_MsgUpdateUsernameRecords) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateUsernameRecords_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateUsernameRecords) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateUsernameRecords)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateUsernameRecords) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateUsernameRecords)(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_MsgUpdateUsernameRecords) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Creator != "" {
+ value := protoreflect.ValueOfString(x.Creator)
+ if !f(fd_MsgUpdateUsernameRecords_creator, value) {
+ return
+ }
+ }
+ if x.Index != "" {
+ value := protoreflect.ValueOfString(x.Index)
+ if !f(fd_MsgUpdateUsernameRecords_index, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateUsernameRecords) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.domain.MsgUpdateUsernameRecords.creator":
+ return x.Creator != ""
+ case "core.domain.MsgUpdateUsernameRecords.index":
+ return x.Index != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateUsernameRecords) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.domain.MsgUpdateUsernameRecords.creator":
+ x.Creator = ""
+ case "core.domain.MsgUpdateUsernameRecords.index":
+ x.Index = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgUpdateUsernameRecords) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.domain.MsgUpdateUsernameRecords.creator":
+ value := x.Creator
+ return protoreflect.ValueOfString(value)
+ case "core.domain.MsgUpdateUsernameRecords.index":
+ value := x.Index
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecords does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateUsernameRecords) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.domain.MsgUpdateUsernameRecords.creator":
+ x.Creator = value.Interface().(string)
+ case "core.domain.MsgUpdateUsernameRecords.index":
+ x.Index = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateUsernameRecords) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.MsgUpdateUsernameRecords.creator":
+ panic(fmt.Errorf("field creator of message core.domain.MsgUpdateUsernameRecords is not mutable"))
+ case "core.domain.MsgUpdateUsernameRecords.index":
+ panic(fmt.Errorf("field index of message core.domain.MsgUpdateUsernameRecords is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateUsernameRecords) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.MsgUpdateUsernameRecords.creator":
+ return protoreflect.ValueOfString("")
+ case "core.domain.MsgUpdateUsernameRecords.index":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateUsernameRecords) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.MsgUpdateUsernameRecords", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgUpdateUsernameRecords) 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_MsgUpdateUsernameRecords) 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_MsgUpdateUsernameRecords) 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_MsgUpdateUsernameRecords) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateUsernameRecords)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Creator)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Index)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateUsernameRecords)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Index) > 0 {
+ i -= len(x.Index)
+ copy(dAtA[i:], x.Index)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Index)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Creator) > 0 {
+ i -= len(x.Creator)
+ copy(dAtA[i:], x.Creator)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
+ 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().(*MsgUpdateUsernameRecords)
+ 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: MsgUpdateUsernameRecords: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateUsernameRecords: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Index", 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.Index = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUpdateUsernameRecordsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_domain_tx_proto_init()
+ md_MsgUpdateUsernameRecordsResponse = File_core_domain_tx_proto.Messages().ByName("MsgUpdateUsernameRecordsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateUsernameRecordsResponse)(nil)
+
+type fastReflection_MsgUpdateUsernameRecordsResponse MsgUpdateUsernameRecordsResponse
+
+func (x *MsgUpdateUsernameRecordsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateUsernameRecordsResponse)(x)
+}
+
+func (x *MsgUpdateUsernameRecordsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_tx_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateUsernameRecordsResponse_messageType fastReflection_MsgUpdateUsernameRecordsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateUsernameRecordsResponse_messageType{}
+
+type fastReflection_MsgUpdateUsernameRecordsResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateUsernameRecordsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateUsernameRecordsResponse)(nil)
+}
+func (x fastReflection_MsgUpdateUsernameRecordsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateUsernameRecordsResponse)
+}
+func (x fastReflection_MsgUpdateUsernameRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateUsernameRecordsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateUsernameRecordsResponse
+}
+
+// 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_MsgUpdateUsernameRecordsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateUsernameRecordsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateUsernameRecordsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateUsernameRecordsResponse)(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_MsgUpdateUsernameRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecordsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgUpdateUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgUpdateUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.MsgUpdateUsernameRecordsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgUpdateUsernameRecordsResponse) 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_MsgUpdateUsernameRecordsResponse) 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_MsgUpdateUsernameRecordsResponse) 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_MsgUpdateUsernameRecordsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateUsernameRecordsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateUsernameRecordsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateUsernameRecordsResponse)
+ 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: MsgUpdateUsernameRecordsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateUsernameRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgDeleteUsernameRecords protoreflect.MessageDescriptor
+ fd_MsgDeleteUsernameRecords_creator protoreflect.FieldDescriptor
+ fd_MsgDeleteUsernameRecords_index protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_domain_tx_proto_init()
+ md_MsgDeleteUsernameRecords = File_core_domain_tx_proto.Messages().ByName("MsgDeleteUsernameRecords")
+ fd_MsgDeleteUsernameRecords_creator = md_MsgDeleteUsernameRecords.Fields().ByName("creator")
+ fd_MsgDeleteUsernameRecords_index = md_MsgDeleteUsernameRecords.Fields().ByName("index")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgDeleteUsernameRecords)(nil)
+
+type fastReflection_MsgDeleteUsernameRecords MsgDeleteUsernameRecords
+
+func (x *MsgDeleteUsernameRecords) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgDeleteUsernameRecords)(x)
+}
+
+func (x *MsgDeleteUsernameRecords) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_tx_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgDeleteUsernameRecords_messageType fastReflection_MsgDeleteUsernameRecords_messageType
+var _ protoreflect.MessageType = fastReflection_MsgDeleteUsernameRecords_messageType{}
+
+type fastReflection_MsgDeleteUsernameRecords_messageType struct{}
+
+func (x fastReflection_MsgDeleteUsernameRecords_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgDeleteUsernameRecords)(nil)
+}
+func (x fastReflection_MsgDeleteUsernameRecords_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteUsernameRecords)
+}
+func (x fastReflection_MsgDeleteUsernameRecords_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteUsernameRecords
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgDeleteUsernameRecords) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteUsernameRecords
+}
+
+// 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_MsgDeleteUsernameRecords) Type() protoreflect.MessageType {
+ return _fastReflection_MsgDeleteUsernameRecords_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgDeleteUsernameRecords) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteUsernameRecords)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgDeleteUsernameRecords) Interface() protoreflect.ProtoMessage {
+ return (*MsgDeleteUsernameRecords)(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_MsgDeleteUsernameRecords) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Creator != "" {
+ value := protoreflect.ValueOfString(x.Creator)
+ if !f(fd_MsgDeleteUsernameRecords_creator, value) {
+ return
+ }
+ }
+ if x.Index != "" {
+ value := protoreflect.ValueOfString(x.Index)
+ if !f(fd_MsgDeleteUsernameRecords_index, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgDeleteUsernameRecords) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.domain.MsgDeleteUsernameRecords.creator":
+ return x.Creator != ""
+ case "core.domain.MsgDeleteUsernameRecords.index":
+ return x.Index != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteUsernameRecords) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.domain.MsgDeleteUsernameRecords.creator":
+ x.Creator = ""
+ case "core.domain.MsgDeleteUsernameRecords.index":
+ x.Index = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgDeleteUsernameRecords) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.domain.MsgDeleteUsernameRecords.creator":
+ value := x.Creator
+ return protoreflect.ValueOfString(value)
+ case "core.domain.MsgDeleteUsernameRecords.index":
+ value := x.Index
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecords does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteUsernameRecords) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.domain.MsgDeleteUsernameRecords.creator":
+ x.Creator = value.Interface().(string)
+ case "core.domain.MsgDeleteUsernameRecords.index":
+ x.Index = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteUsernameRecords) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.MsgDeleteUsernameRecords.creator":
+ panic(fmt.Errorf("field creator of message core.domain.MsgDeleteUsernameRecords is not mutable"))
+ case "core.domain.MsgDeleteUsernameRecords.index":
+ panic(fmt.Errorf("field index of message core.domain.MsgDeleteUsernameRecords is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgDeleteUsernameRecords) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.domain.MsgDeleteUsernameRecords.creator":
+ return protoreflect.ValueOfString("")
+ case "core.domain.MsgDeleteUsernameRecords.index":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecords"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecords does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgDeleteUsernameRecords) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.MsgDeleteUsernameRecords", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgDeleteUsernameRecords) 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_MsgDeleteUsernameRecords) 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_MsgDeleteUsernameRecords) 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_MsgDeleteUsernameRecords) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgDeleteUsernameRecords)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Creator)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Index)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgDeleteUsernameRecords)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Index) > 0 {
+ i -= len(x.Index)
+ copy(dAtA[i:], x.Index)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Index)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Creator) > 0 {
+ i -= len(x.Creator)
+ copy(dAtA[i:], x.Creator)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
+ 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().(*MsgDeleteUsernameRecords)
+ 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: MsgDeleteUsernameRecords: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteUsernameRecords: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Index", 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.Index = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgDeleteUsernameRecordsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_domain_tx_proto_init()
+ md_MsgDeleteUsernameRecordsResponse = File_core_domain_tx_proto.Messages().ByName("MsgDeleteUsernameRecordsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgDeleteUsernameRecordsResponse)(nil)
+
+type fastReflection_MsgDeleteUsernameRecordsResponse MsgDeleteUsernameRecordsResponse
+
+func (x *MsgDeleteUsernameRecordsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgDeleteUsernameRecordsResponse)(x)
+}
+
+func (x *MsgDeleteUsernameRecordsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_domain_tx_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgDeleteUsernameRecordsResponse_messageType fastReflection_MsgDeleteUsernameRecordsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgDeleteUsernameRecordsResponse_messageType{}
+
+type fastReflection_MsgDeleteUsernameRecordsResponse_messageType struct{}
+
+func (x fastReflection_MsgDeleteUsernameRecordsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgDeleteUsernameRecordsResponse)(nil)
+}
+func (x fastReflection_MsgDeleteUsernameRecordsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteUsernameRecordsResponse)
+}
+func (x fastReflection_MsgDeleteUsernameRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteUsernameRecordsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteUsernameRecordsResponse
+}
+
+// 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_MsgDeleteUsernameRecordsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgDeleteUsernameRecordsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteUsernameRecordsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgDeleteUsernameRecordsResponse)(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_MsgDeleteUsernameRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecordsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.domain.MsgDeleteUsernameRecordsResponse"))
+ }
+ panic(fmt.Errorf("message core.domain.MsgDeleteUsernameRecordsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.domain.MsgDeleteUsernameRecordsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgDeleteUsernameRecordsResponse) 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_MsgDeleteUsernameRecordsResponse) 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_MsgDeleteUsernameRecordsResponse) 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_MsgDeleteUsernameRecordsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgDeleteUsernameRecordsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgDeleteUsernameRecordsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgDeleteUsernameRecordsResponse)
+ 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: MsgDeleteUsernameRecordsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteUsernameRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/domain/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgCreateUsernameRecords represents a request to create a UsernameRecord.
+type MsgCreateUsernameRecords struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // The creator of the UsernameRecord.
+ Index string `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` // The index of the UsernameRecord.
+ Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` // The method used to create the UsernameRecord.
+}
+
+func (x *MsgCreateUsernameRecords) Reset() {
+ *x = MsgCreateUsernameRecords{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgCreateUsernameRecords) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgCreateUsernameRecords) ProtoMessage() {}
+
+// Deprecated: Use MsgCreateUsernameRecords.ProtoReflect.Descriptor instead.
+func (*MsgCreateUsernameRecords) Descriptor() ([]byte, []int) {
+ return file_core_domain_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgCreateUsernameRecords) GetCreator() string {
+ if x != nil {
+ return x.Creator
+ }
+ return ""
+}
+
+func (x *MsgCreateUsernameRecords) GetIndex() string {
+ if x != nil {
+ return x.Index
+ }
+ return ""
+}
+
+func (x *MsgCreateUsernameRecords) GetMethod() string {
+ if x != nil {
+ return x.Method
+ }
+ return ""
+}
+
+// MsgCreateUsernameRecordsResponse represents the response from creating a
+// UsernameRecord.
+type MsgCreateUsernameRecordsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgCreateUsernameRecordsResponse) Reset() {
+ *x = MsgCreateUsernameRecordsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgCreateUsernameRecordsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgCreateUsernameRecordsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgCreateUsernameRecordsResponse.ProtoReflect.Descriptor instead.
+func (*MsgCreateUsernameRecordsResponse) Descriptor() ([]byte, []int) {
+ return file_core_domain_tx_proto_rawDescGZIP(), []int{1}
+}
+
+// MsgUpdateUsernameRecords represents a request to update a UsernameRecord.
+type MsgUpdateUsernameRecords struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // The creator of the UsernameRecord.
+ Index string `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` // The index of the UsernameRecord.
+}
+
+func (x *MsgUpdateUsernameRecords) Reset() {
+ *x = MsgUpdateUsernameRecords{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_tx_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateUsernameRecords) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateUsernameRecords) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateUsernameRecords.ProtoReflect.Descriptor instead.
+func (*MsgUpdateUsernameRecords) Descriptor() ([]byte, []int) {
+ return file_core_domain_tx_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *MsgUpdateUsernameRecords) GetCreator() string {
+ if x != nil {
+ return x.Creator
+ }
+ return ""
+}
+
+func (x *MsgUpdateUsernameRecords) GetIndex() string {
+ if x != nil {
+ return x.Index
+ }
+ return ""
+}
+
+// MsgUpdateUsernameRecordsResponse represents the response from updating a
+// UsernameRecord.
+type MsgUpdateUsernameRecordsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUpdateUsernameRecordsResponse) Reset() {
+ *x = MsgUpdateUsernameRecordsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_tx_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateUsernameRecordsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateUsernameRecordsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateUsernameRecordsResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateUsernameRecordsResponse) Descriptor() ([]byte, []int) {
+ return file_core_domain_tx_proto_rawDescGZIP(), []int{3}
+}
+
+// MsgDeleteUsernameRecords represents a request to delete a UsernameRecord.
+type MsgDeleteUsernameRecords struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // The creator of the UsernameRecord.
+ Index string `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` // The index of the UsernameRecord.
+}
+
+func (x *MsgDeleteUsernameRecords) Reset() {
+ *x = MsgDeleteUsernameRecords{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_tx_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgDeleteUsernameRecords) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgDeleteUsernameRecords) ProtoMessage() {}
+
+// Deprecated: Use MsgDeleteUsernameRecords.ProtoReflect.Descriptor instead.
+func (*MsgDeleteUsernameRecords) Descriptor() ([]byte, []int) {
+ return file_core_domain_tx_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *MsgDeleteUsernameRecords) GetCreator() string {
+ if x != nil {
+ return x.Creator
+ }
+ return ""
+}
+
+func (x *MsgDeleteUsernameRecords) GetIndex() string {
+ if x != nil {
+ return x.Index
+ }
+ return ""
+}
+
+// MsgDeleteUsernameRecordsResponse represents the response from deleting a
+// UsernameRecord.
+type MsgDeleteUsernameRecordsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgDeleteUsernameRecordsResponse) Reset() {
+ *x = MsgDeleteUsernameRecordsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_domain_tx_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgDeleteUsernameRecordsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgDeleteUsernameRecordsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgDeleteUsernameRecordsResponse.ProtoReflect.Descriptor instead.
+func (*MsgDeleteUsernameRecordsResponse) Descriptor() ([]byte, []int) {
+ return file_core_domain_tx_proto_rawDescGZIP(), []int{5}
+}
+
+var File_core_domain_tx_proto protoreflect.FileDescriptor
+
+var file_core_domain_tx_proto_rawDesc = []byte{
+ 0x0a, 0x14, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x78,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d,
+ 0x61, 0x69, 0x6e, 0x1a, 0x18, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
+ 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x62, 0x0a,
+ 0x18, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61,
+ 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65,
+ 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61,
+ 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74,
+ 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
+ 0x64, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73,
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
+ 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69,
+ 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65,
+ 0x78, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73,
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65,
+ 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
+ 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69,
+ 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65,
+ 0x78, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73,
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xcf, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x6c, 0x0a,
+ 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52,
+ 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d,
+ 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65,
+ 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x1a, 0x2d, 0x2e, 0x63,
+ 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72,
+ 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f,
+ 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x14, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63,
+ 0x6f, 0x72, 0x64, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69,
+ 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e,
+ 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x1a, 0x2d, 0x2e, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x14, 0x44, 0x65, 0x6c,
+ 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72,
+ 0x64, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e,
+ 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d,
+ 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x1a, 0x2d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
+ 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x8b, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x07, 0x54, 0x78, 0x50,
+ 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
+ 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
+ 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x44, 0x58,
+ 0xaa, 0x02, 0x0b, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xca, 0x02,
+ 0x0b, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x17, 0x43,
+ 0x6f, 0x72, 0x65, 0x5c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x44,
+ 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_domain_tx_proto_rawDescOnce sync.Once
+ file_core_domain_tx_proto_rawDescData = file_core_domain_tx_proto_rawDesc
+)
+
+func file_core_domain_tx_proto_rawDescGZIP() []byte {
+ file_core_domain_tx_proto_rawDescOnce.Do(func() {
+ file_core_domain_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_domain_tx_proto_rawDescData)
+ })
+ return file_core_domain_tx_proto_rawDescData
+}
+
+var file_core_domain_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_core_domain_tx_proto_goTypes = []interface{}{
+ (*MsgCreateUsernameRecords)(nil), // 0: core.domain.MsgCreateUsernameRecords
+ (*MsgCreateUsernameRecordsResponse)(nil), // 1: core.domain.MsgCreateUsernameRecordsResponse
+ (*MsgUpdateUsernameRecords)(nil), // 2: core.domain.MsgUpdateUsernameRecords
+ (*MsgUpdateUsernameRecordsResponse)(nil), // 3: core.domain.MsgUpdateUsernameRecordsResponse
+ (*MsgDeleteUsernameRecords)(nil), // 4: core.domain.MsgDeleteUsernameRecords
+ (*MsgDeleteUsernameRecordsResponse)(nil), // 5: core.domain.MsgDeleteUsernameRecordsResponse
+}
+var file_core_domain_tx_proto_depIdxs = []int32{
+ 0, // 0: core.domain.Msg.CreateUsernameRecord:input_type -> core.domain.MsgCreateUsernameRecords
+ 2, // 1: core.domain.Msg.UpdateUsernameRecord:input_type -> core.domain.MsgUpdateUsernameRecords
+ 4, // 2: core.domain.Msg.DeleteUsernameRecord:input_type -> core.domain.MsgDeleteUsernameRecords
+ 1, // 3: core.domain.Msg.CreateUsernameRecord:output_type -> core.domain.MsgCreateUsernameRecordsResponse
+ 3, // 4: core.domain.Msg.UpdateUsernameRecord:output_type -> core.domain.MsgUpdateUsernameRecordsResponse
+ 5, // 5: core.domain.Msg.DeleteUsernameRecord:output_type -> core.domain.MsgDeleteUsernameRecordsResponse
+ 3, // [3:6] is the sub-list for method output_type
+ 0, // [0:3] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_core_domain_tx_proto_init() }
+func file_core_domain_tx_proto_init() {
+ if File_core_domain_tx_proto != nil {
+ return
+ }
+ file_core_domain_record_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_core_domain_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgCreateUsernameRecords); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_domain_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgCreateUsernameRecordsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_domain_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateUsernameRecords); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_domain_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateUsernameRecordsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_domain_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgDeleteUsernameRecords); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_domain_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgDeleteUsernameRecordsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_domain_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_core_domain_tx_proto_goTypes,
+ DependencyIndexes: file_core_domain_tx_proto_depIdxs,
+ MessageInfos: file_core_domain_tx_proto_msgTypes,
+ }.Build()
+ File_core_domain_tx_proto = out.File
+ file_core_domain_tx_proto_rawDesc = nil
+ file_core_domain_tx_proto_goTypes = nil
+ file_core_domain_tx_proto_depIdxs = nil
+}
diff --git a/api/core/domain/tx_grpc.pb.go b/api/core/domain/tx_grpc.pb.go
new file mode 100644
index 000000000..2692bf833
--- /dev/null
+++ b/api/core/domain/tx_grpc.pb.go
@@ -0,0 +1,189 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: core/domain/tx.proto
+
+package domain
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ Msg_CreateUsernameRecord_FullMethodName = "/core.domain.Msg/CreateUsernameRecord"
+ Msg_UpdateUsernameRecord_FullMethodName = "/core.domain.Msg/UpdateUsernameRecord"
+ Msg_DeleteUsernameRecord_FullMethodName = "/core.domain.Msg/DeleteUsernameRecord"
+)
+
+// MsgClient is the client API for Msg service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type MsgClient interface {
+ // CreateUsernameRecord creates a new UsernameRecord.
+ CreateUsernameRecord(ctx context.Context, in *MsgCreateUsernameRecords, opts ...grpc.CallOption) (*MsgCreateUsernameRecordsResponse, error)
+ // UpdateUsernameRecord updates an existing UsernameRecord.
+ UpdateUsernameRecord(ctx context.Context, in *MsgUpdateUsernameRecords, opts ...grpc.CallOption) (*MsgUpdateUsernameRecordsResponse, error)
+ // DeleteUsernameRecord deletes an existing UsernameRecord.
+ DeleteUsernameRecord(ctx context.Context, in *MsgDeleteUsernameRecords, opts ...grpc.CallOption) (*MsgDeleteUsernameRecordsResponse, error)
+}
+
+type msgClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
+ return &msgClient{cc}
+}
+
+func (c *msgClient) CreateUsernameRecord(ctx context.Context, in *MsgCreateUsernameRecords, opts ...grpc.CallOption) (*MsgCreateUsernameRecordsResponse, error) {
+ out := new(MsgCreateUsernameRecordsResponse)
+ err := c.cc.Invoke(ctx, Msg_CreateUsernameRecord_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) UpdateUsernameRecord(ctx context.Context, in *MsgUpdateUsernameRecords, opts ...grpc.CallOption) (*MsgUpdateUsernameRecordsResponse, error) {
+ out := new(MsgUpdateUsernameRecordsResponse)
+ err := c.cc.Invoke(ctx, Msg_UpdateUsernameRecord_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) DeleteUsernameRecord(ctx context.Context, in *MsgDeleteUsernameRecords, opts ...grpc.CallOption) (*MsgDeleteUsernameRecordsResponse, error) {
+ out := new(MsgDeleteUsernameRecordsResponse)
+ err := c.cc.Invoke(ctx, Msg_DeleteUsernameRecord_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// MsgServer is the server API for Msg service.
+// All implementations must embed UnimplementedMsgServer
+// for forward compatibility
+type MsgServer interface {
+ // CreateUsernameRecord creates a new UsernameRecord.
+ CreateUsernameRecord(context.Context, *MsgCreateUsernameRecords) (*MsgCreateUsernameRecordsResponse, error)
+ // UpdateUsernameRecord updates an existing UsernameRecord.
+ UpdateUsernameRecord(context.Context, *MsgUpdateUsernameRecords) (*MsgUpdateUsernameRecordsResponse, error)
+ // DeleteUsernameRecord deletes an existing UsernameRecord.
+ DeleteUsernameRecord(context.Context, *MsgDeleteUsernameRecords) (*MsgDeleteUsernameRecordsResponse, error)
+ mustEmbedUnimplementedMsgServer()
+}
+
+// UnimplementedMsgServer must be embedded to have forward compatible implementations.
+type UnimplementedMsgServer struct {
+}
+
+func (UnimplementedMsgServer) CreateUsernameRecord(context.Context, *MsgCreateUsernameRecords) (*MsgCreateUsernameRecordsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateUsernameRecord not implemented")
+}
+func (UnimplementedMsgServer) UpdateUsernameRecord(context.Context, *MsgUpdateUsernameRecords) (*MsgUpdateUsernameRecordsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateUsernameRecord not implemented")
+}
+func (UnimplementedMsgServer) DeleteUsernameRecord(context.Context, *MsgDeleteUsernameRecords) (*MsgDeleteUsernameRecordsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteUsernameRecord not implemented")
+}
+func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
+
+// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to MsgServer will
+// result in compilation errors.
+type UnsafeMsgServer interface {
+ mustEmbedUnimplementedMsgServer()
+}
+
+func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
+ s.RegisterService(&Msg_ServiceDesc, srv)
+}
+
+func _Msg_CreateUsernameRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgCreateUsernameRecords)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).CreateUsernameRecord(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Msg_CreateUsernameRecord_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).CreateUsernameRecord(ctx, req.(*MsgCreateUsernameRecords))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_UpdateUsernameRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgUpdateUsernameRecords)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).UpdateUsernameRecord(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Msg_UpdateUsernameRecord_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).UpdateUsernameRecord(ctx, req.(*MsgUpdateUsernameRecords))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_DeleteUsernameRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgDeleteUsernameRecords)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).DeleteUsernameRecord(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Msg_DeleteUsernameRecord_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).DeleteUsernameRecord(ctx, req.(*MsgDeleteUsernameRecords))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var Msg_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "core.domain.Msg",
+ HandlerType: (*MsgServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "CreateUsernameRecord",
+ Handler: _Msg_CreateUsernameRecord_Handler,
+ },
+ {
+ MethodName: "UpdateUsernameRecord",
+ Handler: _Msg_UpdateUsernameRecord_Handler,
+ },
+ {
+ MethodName: "DeleteUsernameRecord",
+ Handler: _Msg_DeleteUsernameRecord_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "core/domain/tx.proto",
+}
diff --git a/api/core/identity/account.pulsar.go b/api/core/identity/account.pulsar.go
new file mode 100644
index 000000000..2427044c0
--- /dev/null
+++ b/api/core/identity/account.pulsar.go
@@ -0,0 +1,908 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package identity
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_ControllerAccount_3_list)(nil)
+
+type _ControllerAccount_3_list struct {
+ list *[]string
+}
+
+func (x *_ControllerAccount_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_ControllerAccount_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_ControllerAccount_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_ControllerAccount_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_ControllerAccount_3_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message ControllerAccount at list field Authenticators as it is not of Message kind"))
+}
+
+func (x *_ControllerAccount_3_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_ControllerAccount_3_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_ControllerAccount_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_ControllerAccount_4_list)(nil)
+
+type _ControllerAccount_4_list struct {
+ list *[]string
+}
+
+func (x *_ControllerAccount_4_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_ControllerAccount_4_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_ControllerAccount_4_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_ControllerAccount_4_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_ControllerAccount_4_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message ControllerAccount at list field Wallets as it is not of Message kind"))
+}
+
+func (x *_ControllerAccount_4_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_ControllerAccount_4_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_ControllerAccount_4_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_ControllerAccount protoreflect.MessageDescriptor
+ fd_ControllerAccount_address protoreflect.FieldDescriptor
+ fd_ControllerAccount_publicKey protoreflect.FieldDescriptor
+ fd_ControllerAccount_authenticators protoreflect.FieldDescriptor
+ fd_ControllerAccount_wallets protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_account_proto_init()
+ md_ControllerAccount = File_core_identity_account_proto.Messages().ByName("ControllerAccount")
+ fd_ControllerAccount_address = md_ControllerAccount.Fields().ByName("address")
+ fd_ControllerAccount_publicKey = md_ControllerAccount.Fields().ByName("publicKey")
+ fd_ControllerAccount_authenticators = md_ControllerAccount.Fields().ByName("authenticators")
+ fd_ControllerAccount_wallets = md_ControllerAccount.Fields().ByName("wallets")
+}
+
+var _ protoreflect.Message = (*fastReflection_ControllerAccount)(nil)
+
+type fastReflection_ControllerAccount ControllerAccount
+
+func (x *ControllerAccount) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ControllerAccount)(x)
+}
+
+func (x *ControllerAccount) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_account_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_ControllerAccount_messageType fastReflection_ControllerAccount_messageType
+var _ protoreflect.MessageType = fastReflection_ControllerAccount_messageType{}
+
+type fastReflection_ControllerAccount_messageType struct{}
+
+func (x fastReflection_ControllerAccount_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ControllerAccount)(nil)
+}
+func (x fastReflection_ControllerAccount_messageType) New() protoreflect.Message {
+ return new(fastReflection_ControllerAccount)
+}
+func (x fastReflection_ControllerAccount_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ControllerAccount
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ControllerAccount) Descriptor() protoreflect.MessageDescriptor {
+ return md_ControllerAccount
+}
+
+// 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_ControllerAccount) Type() protoreflect.MessageType {
+ return _fastReflection_ControllerAccount_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ControllerAccount) New() protoreflect.Message {
+ return new(fastReflection_ControllerAccount)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ControllerAccount) Interface() protoreflect.ProtoMessage {
+ return (*ControllerAccount)(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_ControllerAccount) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_ControllerAccount_address, value) {
+ return
+ }
+ }
+ if x.PublicKey != "" {
+ value := protoreflect.ValueOfString(x.PublicKey)
+ if !f(fd_ControllerAccount_publicKey, value) {
+ return
+ }
+ }
+ if len(x.Authenticators) != 0 {
+ value := protoreflect.ValueOfList(&_ControllerAccount_3_list{list: &x.Authenticators})
+ if !f(fd_ControllerAccount_authenticators, value) {
+ return
+ }
+ }
+ if len(x.Wallets) != 0 {
+ value := protoreflect.ValueOfList(&_ControllerAccount_4_list{list: &x.Wallets})
+ if !f(fd_ControllerAccount_wallets, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_ControllerAccount) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.ControllerAccount.address":
+ return x.Address != ""
+ case "core.identity.ControllerAccount.publicKey":
+ return x.PublicKey != ""
+ case "core.identity.ControllerAccount.authenticators":
+ return len(x.Authenticators) != 0
+ case "core.identity.ControllerAccount.wallets":
+ return len(x.Wallets) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.ControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.ControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ControllerAccount) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.ControllerAccount.address":
+ x.Address = ""
+ case "core.identity.ControllerAccount.publicKey":
+ x.PublicKey = ""
+ case "core.identity.ControllerAccount.authenticators":
+ x.Authenticators = nil
+ case "core.identity.ControllerAccount.wallets":
+ x.Wallets = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.ControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.ControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_ControllerAccount) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.ControllerAccount.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "core.identity.ControllerAccount.publicKey":
+ value := x.PublicKey
+ return protoreflect.ValueOfString(value)
+ case "core.identity.ControllerAccount.authenticators":
+ if len(x.Authenticators) == 0 {
+ return protoreflect.ValueOfList(&_ControllerAccount_3_list{})
+ }
+ listValue := &_ControllerAccount_3_list{list: &x.Authenticators}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.ControllerAccount.wallets":
+ if len(x.Wallets) == 0 {
+ return protoreflect.ValueOfList(&_ControllerAccount_4_list{})
+ }
+ listValue := &_ControllerAccount_4_list{list: &x.Wallets}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.ControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.ControllerAccount does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ControllerAccount) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.ControllerAccount.address":
+ x.Address = value.Interface().(string)
+ case "core.identity.ControllerAccount.publicKey":
+ x.PublicKey = value.Interface().(string)
+ case "core.identity.ControllerAccount.authenticators":
+ lv := value.List()
+ clv := lv.(*_ControllerAccount_3_list)
+ x.Authenticators = *clv.list
+ case "core.identity.ControllerAccount.wallets":
+ lv := value.List()
+ clv := lv.(*_ControllerAccount_4_list)
+ x.Wallets = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.ControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.ControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ControllerAccount) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.ControllerAccount.authenticators":
+ if x.Authenticators == nil {
+ x.Authenticators = []string{}
+ }
+ value := &_ControllerAccount_3_list{list: &x.Authenticators}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.ControllerAccount.wallets":
+ if x.Wallets == nil {
+ x.Wallets = []string{}
+ }
+ value := &_ControllerAccount_4_list{list: &x.Wallets}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.ControllerAccount.address":
+ panic(fmt.Errorf("field address of message core.identity.ControllerAccount is not mutable"))
+ case "core.identity.ControllerAccount.publicKey":
+ panic(fmt.Errorf("field publicKey of message core.identity.ControllerAccount is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.ControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.ControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ControllerAccount) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.ControllerAccount.address":
+ return protoreflect.ValueOfString("")
+ case "core.identity.ControllerAccount.publicKey":
+ return protoreflect.ValueOfString("")
+ case "core.identity.ControllerAccount.authenticators":
+ list := []string{}
+ return protoreflect.ValueOfList(&_ControllerAccount_3_list{list: &list})
+ case "core.identity.ControllerAccount.wallets":
+ list := []string{}
+ return protoreflect.ValueOfList(&_ControllerAccount_4_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.ControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.ControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ControllerAccount) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.ControllerAccount", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_ControllerAccount) 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_ControllerAccount) 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_ControllerAccount) 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_ControllerAccount) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ControllerAccount)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.PublicKey)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Authenticators) > 0 {
+ for _, s := range x.Authenticators {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.Wallets) > 0 {
+ for _, s := range x.Wallets {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*ControllerAccount)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Wallets) > 0 {
+ for iNdEx := len(x.Wallets) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Wallets[iNdEx])
+ copy(dAtA[i:], x.Wallets[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Wallets[iNdEx])))
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ if len(x.Authenticators) > 0 {
+ for iNdEx := len(x.Authenticators) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Authenticators[iNdEx])
+ copy(dAtA[i:], x.Authenticators[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authenticators[iNdEx])))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if len(x.PublicKey) > 0 {
+ i -= len(x.PublicKey)
+ copy(dAtA[i:], x.PublicKey)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKey)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 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().(*ControllerAccount)
+ 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: ControllerAccount: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ControllerAccount: 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 Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PublicKey", 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.PublicKey = 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 Authenticators", 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.Authenticators = append(x.Authenticators, 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 Wallets", 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.Wallets = append(x.Wallets, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/identity/account.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type ControllerAccount struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
+ PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
+ Authenticators []string `protobuf:"bytes,3,rep,name=authenticators,proto3" json:"authenticators,omitempty"`
+ Wallets []string `protobuf:"bytes,4,rep,name=wallets,proto3" json:"wallets,omitempty"`
+}
+
+func (x *ControllerAccount) Reset() {
+ *x = ControllerAccount{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_account_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ControllerAccount) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ControllerAccount) ProtoMessage() {}
+
+// Deprecated: Use ControllerAccount.ProtoReflect.Descriptor instead.
+func (*ControllerAccount) Descriptor() ([]byte, []int) {
+ return file_core_identity_account_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *ControllerAccount) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *ControllerAccount) GetPublicKey() string {
+ if x != nil {
+ return x.PublicKey
+ }
+ return ""
+}
+
+func (x *ControllerAccount) GetAuthenticators() []string {
+ if x != nil {
+ return x.Authenticators
+ }
+ return nil
+}
+
+func (x *ControllerAccount) GetWallets() []string {
+ if x != nil {
+ return x.Wallets
+ }
+ return nil
+}
+
+var File_core_identity_account_proto protoreflect.FileDescriptor
+
+var file_core_identity_account_proto_rawDesc = []byte{
+ 0x0a, 0x1b, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f,
+ 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63,
+ 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x8d, 0x01, 0x0a,
+ 0x11, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75,
+ 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x09,
+ 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x75,
+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03,
+ 0x28, 0x09, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f,
+ 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20,
+ 0x03, 0x28, 0x09, 0x52, 0x07, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x42, 0x9c, 0x01, 0x0a,
+ 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
+ 0x74, 0x79, 0x42, 0x0c, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f,
+ 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73,
+ 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f,
+ 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xa2, 0x02, 0x03, 0x43, 0x49, 0x58, 0xaa, 0x02,
+ 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xca, 0x02,
+ 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xe2, 0x02,
+ 0x19, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, 0x47,
+ 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x72,
+ 0x65, 0x3a, 0x3a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_identity_account_proto_rawDescOnce sync.Once
+ file_core_identity_account_proto_rawDescData = file_core_identity_account_proto_rawDesc
+)
+
+func file_core_identity_account_proto_rawDescGZIP() []byte {
+ file_core_identity_account_proto_rawDescOnce.Do(func() {
+ file_core_identity_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_identity_account_proto_rawDescData)
+ })
+ return file_core_identity_account_proto_rawDescData
+}
+
+var file_core_identity_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_core_identity_account_proto_goTypes = []interface{}{
+ (*ControllerAccount)(nil), // 0: core.identity.ControllerAccount
+}
+var file_core_identity_account_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_core_identity_account_proto_init() }
+func file_core_identity_account_proto_init() {
+ if File_core_identity_account_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_core_identity_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ControllerAccount); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_identity_account_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_identity_account_proto_goTypes,
+ DependencyIndexes: file_core_identity_account_proto_depIdxs,
+ MessageInfos: file_core_identity_account_proto_msgTypes,
+ }.Build()
+ File_core_identity_account_proto = out.File
+ file_core_identity_account_proto_rawDesc = nil
+ file_core_identity_account_proto_goTypes = nil
+ file_core_identity_account_proto_depIdxs = nil
+}
diff --git a/api/core/identity/did.pulsar.go b/api/core/identity/did.pulsar.go
new file mode 100644
index 000000000..1cf6f5656
--- /dev/null
+++ b/api/core/identity/did.pulsar.go
@@ -0,0 +1,3499 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package identity
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_DIDDocument_1_list)(nil)
+
+type _DIDDocument_1_list struct {
+ list *[]string
+}
+
+func (x *_DIDDocument_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_DIDDocument_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_DIDDocument_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_DIDDocument_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_DIDDocument_1_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message DIDDocument at list field Context as it is not of Message kind"))
+}
+
+func (x *_DIDDocument_1_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_DIDDocument_1_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_DIDDocument_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_DIDDocument_3_list)(nil)
+
+type _DIDDocument_3_list struct {
+ list *[]string
+}
+
+func (x *_DIDDocument_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_DIDDocument_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_DIDDocument_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_DIDDocument_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_DIDDocument_3_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message DIDDocument at list field Controller as it is not of Message kind"))
+}
+
+func (x *_DIDDocument_3_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_DIDDocument_3_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_DIDDocument_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_DIDDocument_5_list)(nil)
+
+type _DIDDocument_5_list struct {
+ list *[]*VerificationRelationship
+}
+
+func (x *_DIDDocument_5_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_DIDDocument_5_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_DIDDocument_5_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*VerificationRelationship)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_DIDDocument_5_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*VerificationRelationship)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_DIDDocument_5_list) AppendMutable() protoreflect.Value {
+ v := new(VerificationRelationship)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_DIDDocument_5_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_DIDDocument_5_list) NewElement() protoreflect.Value {
+ v := new(VerificationRelationship)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_DIDDocument_5_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_DIDDocument_6_list)(nil)
+
+type _DIDDocument_6_list struct {
+ list *[]*VerificationRelationship
+}
+
+func (x *_DIDDocument_6_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_DIDDocument_6_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_DIDDocument_6_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*VerificationRelationship)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_DIDDocument_6_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*VerificationRelationship)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_DIDDocument_6_list) AppendMutable() protoreflect.Value {
+ v := new(VerificationRelationship)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_DIDDocument_6_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_DIDDocument_6_list) NewElement() protoreflect.Value {
+ v := new(VerificationRelationship)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_DIDDocument_6_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_DIDDocument_7_list)(nil)
+
+type _DIDDocument_7_list struct {
+ list *[]*VerificationRelationship
+}
+
+func (x *_DIDDocument_7_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_DIDDocument_7_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_DIDDocument_7_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*VerificationRelationship)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_DIDDocument_7_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*VerificationRelationship)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_DIDDocument_7_list) AppendMutable() protoreflect.Value {
+ v := new(VerificationRelationship)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_DIDDocument_7_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_DIDDocument_7_list) NewElement() protoreflect.Value {
+ v := new(VerificationRelationship)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_DIDDocument_7_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_DIDDocument_8_list)(nil)
+
+type _DIDDocument_8_list struct {
+ list *[]*VerificationRelationship
+}
+
+func (x *_DIDDocument_8_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_DIDDocument_8_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_DIDDocument_8_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*VerificationRelationship)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_DIDDocument_8_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*VerificationRelationship)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_DIDDocument_8_list) AppendMutable() protoreflect.Value {
+ v := new(VerificationRelationship)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_DIDDocument_8_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_DIDDocument_8_list) NewElement() protoreflect.Value {
+ v := new(VerificationRelationship)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_DIDDocument_8_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_DIDDocument_9_list)(nil)
+
+type _DIDDocument_9_list struct {
+ list *[]*VerificationRelationship
+}
+
+func (x *_DIDDocument_9_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_DIDDocument_9_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_DIDDocument_9_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*VerificationRelationship)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_DIDDocument_9_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*VerificationRelationship)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_DIDDocument_9_list) AppendMutable() protoreflect.Value {
+ v := new(VerificationRelationship)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_DIDDocument_9_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_DIDDocument_9_list) NewElement() protoreflect.Value {
+ v := new(VerificationRelationship)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_DIDDocument_9_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_DIDDocument_10_list)(nil)
+
+type _DIDDocument_10_list struct {
+ list *[]string
+}
+
+func (x *_DIDDocument_10_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_DIDDocument_10_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_DIDDocument_10_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_DIDDocument_10_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_DIDDocument_10_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message DIDDocument at list field AlsoKnownAs as it is not of Message kind"))
+}
+
+func (x *_DIDDocument_10_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_DIDDocument_10_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_DIDDocument_10_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_DIDDocument protoreflect.MessageDescriptor
+ fd_DIDDocument_context protoreflect.FieldDescriptor
+ fd_DIDDocument_id protoreflect.FieldDescriptor
+ fd_DIDDocument_controller protoreflect.FieldDescriptor
+ fd_DIDDocument_authentication protoreflect.FieldDescriptor
+ fd_DIDDocument_assertion_method protoreflect.FieldDescriptor
+ fd_DIDDocument_capability_invocation protoreflect.FieldDescriptor
+ fd_DIDDocument_capability_delegation protoreflect.FieldDescriptor
+ fd_DIDDocument_key_agreement protoreflect.FieldDescriptor
+ fd_DIDDocument_also_known_as protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_did_proto_init()
+ md_DIDDocument = File_core_identity_did_proto.Messages().ByName("DIDDocument")
+ fd_DIDDocument_context = md_DIDDocument.Fields().ByName("context")
+ fd_DIDDocument_id = md_DIDDocument.Fields().ByName("id")
+ fd_DIDDocument_controller = md_DIDDocument.Fields().ByName("controller")
+ fd_DIDDocument_authentication = md_DIDDocument.Fields().ByName("authentication")
+ fd_DIDDocument_assertion_method = md_DIDDocument.Fields().ByName("assertion_method")
+ fd_DIDDocument_capability_invocation = md_DIDDocument.Fields().ByName("capability_invocation")
+ fd_DIDDocument_capability_delegation = md_DIDDocument.Fields().ByName("capability_delegation")
+ fd_DIDDocument_key_agreement = md_DIDDocument.Fields().ByName("key_agreement")
+ fd_DIDDocument_also_known_as = md_DIDDocument.Fields().ByName("also_known_as")
+}
+
+var _ protoreflect.Message = (*fastReflection_DIDDocument)(nil)
+
+type fastReflection_DIDDocument DIDDocument
+
+func (x *DIDDocument) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_DIDDocument)(x)
+}
+
+func (x *DIDDocument) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_did_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_DIDDocument_messageType fastReflection_DIDDocument_messageType
+var _ protoreflect.MessageType = fastReflection_DIDDocument_messageType{}
+
+type fastReflection_DIDDocument_messageType struct{}
+
+func (x fastReflection_DIDDocument_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_DIDDocument)(nil)
+}
+func (x fastReflection_DIDDocument_messageType) New() protoreflect.Message {
+ return new(fastReflection_DIDDocument)
+}
+func (x fastReflection_DIDDocument_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_DIDDocument
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_DIDDocument) Descriptor() protoreflect.MessageDescriptor {
+ return md_DIDDocument
+}
+
+// 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_DIDDocument) Type() protoreflect.MessageType {
+ return _fastReflection_DIDDocument_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_DIDDocument) New() protoreflect.Message {
+ return new(fastReflection_DIDDocument)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_DIDDocument) Interface() protoreflect.ProtoMessage {
+ return (*DIDDocument)(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_DIDDocument) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Context) != 0 {
+ value := protoreflect.ValueOfList(&_DIDDocument_1_list{list: &x.Context})
+ if !f(fd_DIDDocument_context, value) {
+ return
+ }
+ }
+ if x.Id != "" {
+ value := protoreflect.ValueOfString(x.Id)
+ if !f(fd_DIDDocument_id, value) {
+ return
+ }
+ }
+ if len(x.Controller) != 0 {
+ value := protoreflect.ValueOfList(&_DIDDocument_3_list{list: &x.Controller})
+ if !f(fd_DIDDocument_controller, value) {
+ return
+ }
+ }
+ if len(x.Authentication) != 0 {
+ value := protoreflect.ValueOfList(&_DIDDocument_5_list{list: &x.Authentication})
+ if !f(fd_DIDDocument_authentication, value) {
+ return
+ }
+ }
+ if len(x.AssertionMethod) != 0 {
+ value := protoreflect.ValueOfList(&_DIDDocument_6_list{list: &x.AssertionMethod})
+ if !f(fd_DIDDocument_assertion_method, value) {
+ return
+ }
+ }
+ if len(x.CapabilityInvocation) != 0 {
+ value := protoreflect.ValueOfList(&_DIDDocument_7_list{list: &x.CapabilityInvocation})
+ if !f(fd_DIDDocument_capability_invocation, value) {
+ return
+ }
+ }
+ if len(x.CapabilityDelegation) != 0 {
+ value := protoreflect.ValueOfList(&_DIDDocument_8_list{list: &x.CapabilityDelegation})
+ if !f(fd_DIDDocument_capability_delegation, value) {
+ return
+ }
+ }
+ if len(x.KeyAgreement) != 0 {
+ value := protoreflect.ValueOfList(&_DIDDocument_9_list{list: &x.KeyAgreement})
+ if !f(fd_DIDDocument_key_agreement, value) {
+ return
+ }
+ }
+ if len(x.AlsoKnownAs) != 0 {
+ value := protoreflect.ValueOfList(&_DIDDocument_10_list{list: &x.AlsoKnownAs})
+ if !f(fd_DIDDocument_also_known_as, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_DIDDocument) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.DIDDocument.context":
+ return len(x.Context) != 0
+ case "core.identity.DIDDocument.id":
+ return x.Id != ""
+ case "core.identity.DIDDocument.controller":
+ return len(x.Controller) != 0
+ case "core.identity.DIDDocument.authentication":
+ return len(x.Authentication) != 0
+ case "core.identity.DIDDocument.assertion_method":
+ return len(x.AssertionMethod) != 0
+ case "core.identity.DIDDocument.capability_invocation":
+ return len(x.CapabilityInvocation) != 0
+ case "core.identity.DIDDocument.capability_delegation":
+ return len(x.CapabilityDelegation) != 0
+ case "core.identity.DIDDocument.key_agreement":
+ return len(x.KeyAgreement) != 0
+ case "core.identity.DIDDocument.also_known_as":
+ return len(x.AlsoKnownAs) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.DIDDocument"))
+ }
+ panic(fmt.Errorf("message core.identity.DIDDocument does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_DIDDocument) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.DIDDocument.context":
+ x.Context = nil
+ case "core.identity.DIDDocument.id":
+ x.Id = ""
+ case "core.identity.DIDDocument.controller":
+ x.Controller = nil
+ case "core.identity.DIDDocument.authentication":
+ x.Authentication = nil
+ case "core.identity.DIDDocument.assertion_method":
+ x.AssertionMethod = nil
+ case "core.identity.DIDDocument.capability_invocation":
+ x.CapabilityInvocation = nil
+ case "core.identity.DIDDocument.capability_delegation":
+ x.CapabilityDelegation = nil
+ case "core.identity.DIDDocument.key_agreement":
+ x.KeyAgreement = nil
+ case "core.identity.DIDDocument.also_known_as":
+ x.AlsoKnownAs = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.DIDDocument"))
+ }
+ panic(fmt.Errorf("message core.identity.DIDDocument does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_DIDDocument) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.DIDDocument.context":
+ if len(x.Context) == 0 {
+ return protoreflect.ValueOfList(&_DIDDocument_1_list{})
+ }
+ listValue := &_DIDDocument_1_list{list: &x.Context}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.DIDDocument.id":
+ value := x.Id
+ return protoreflect.ValueOfString(value)
+ case "core.identity.DIDDocument.controller":
+ if len(x.Controller) == 0 {
+ return protoreflect.ValueOfList(&_DIDDocument_3_list{})
+ }
+ listValue := &_DIDDocument_3_list{list: &x.Controller}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.DIDDocument.authentication":
+ if len(x.Authentication) == 0 {
+ return protoreflect.ValueOfList(&_DIDDocument_5_list{})
+ }
+ listValue := &_DIDDocument_5_list{list: &x.Authentication}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.DIDDocument.assertion_method":
+ if len(x.AssertionMethod) == 0 {
+ return protoreflect.ValueOfList(&_DIDDocument_6_list{})
+ }
+ listValue := &_DIDDocument_6_list{list: &x.AssertionMethod}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.DIDDocument.capability_invocation":
+ if len(x.CapabilityInvocation) == 0 {
+ return protoreflect.ValueOfList(&_DIDDocument_7_list{})
+ }
+ listValue := &_DIDDocument_7_list{list: &x.CapabilityInvocation}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.DIDDocument.capability_delegation":
+ if len(x.CapabilityDelegation) == 0 {
+ return protoreflect.ValueOfList(&_DIDDocument_8_list{})
+ }
+ listValue := &_DIDDocument_8_list{list: &x.CapabilityDelegation}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.DIDDocument.key_agreement":
+ if len(x.KeyAgreement) == 0 {
+ return protoreflect.ValueOfList(&_DIDDocument_9_list{})
+ }
+ listValue := &_DIDDocument_9_list{list: &x.KeyAgreement}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.DIDDocument.also_known_as":
+ if len(x.AlsoKnownAs) == 0 {
+ return protoreflect.ValueOfList(&_DIDDocument_10_list{})
+ }
+ listValue := &_DIDDocument_10_list{list: &x.AlsoKnownAs}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.DIDDocument"))
+ }
+ panic(fmt.Errorf("message core.identity.DIDDocument does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_DIDDocument) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.DIDDocument.context":
+ lv := value.List()
+ clv := lv.(*_DIDDocument_1_list)
+ x.Context = *clv.list
+ case "core.identity.DIDDocument.id":
+ x.Id = value.Interface().(string)
+ case "core.identity.DIDDocument.controller":
+ lv := value.List()
+ clv := lv.(*_DIDDocument_3_list)
+ x.Controller = *clv.list
+ case "core.identity.DIDDocument.authentication":
+ lv := value.List()
+ clv := lv.(*_DIDDocument_5_list)
+ x.Authentication = *clv.list
+ case "core.identity.DIDDocument.assertion_method":
+ lv := value.List()
+ clv := lv.(*_DIDDocument_6_list)
+ x.AssertionMethod = *clv.list
+ case "core.identity.DIDDocument.capability_invocation":
+ lv := value.List()
+ clv := lv.(*_DIDDocument_7_list)
+ x.CapabilityInvocation = *clv.list
+ case "core.identity.DIDDocument.capability_delegation":
+ lv := value.List()
+ clv := lv.(*_DIDDocument_8_list)
+ x.CapabilityDelegation = *clv.list
+ case "core.identity.DIDDocument.key_agreement":
+ lv := value.List()
+ clv := lv.(*_DIDDocument_9_list)
+ x.KeyAgreement = *clv.list
+ case "core.identity.DIDDocument.also_known_as":
+ lv := value.List()
+ clv := lv.(*_DIDDocument_10_list)
+ x.AlsoKnownAs = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.DIDDocument"))
+ }
+ panic(fmt.Errorf("message core.identity.DIDDocument does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_DIDDocument) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.DIDDocument.context":
+ if x.Context == nil {
+ x.Context = []string{}
+ }
+ value := &_DIDDocument_1_list{list: &x.Context}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.DIDDocument.controller":
+ if x.Controller == nil {
+ x.Controller = []string{}
+ }
+ value := &_DIDDocument_3_list{list: &x.Controller}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.DIDDocument.authentication":
+ if x.Authentication == nil {
+ x.Authentication = []*VerificationRelationship{}
+ }
+ value := &_DIDDocument_5_list{list: &x.Authentication}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.DIDDocument.assertion_method":
+ if x.AssertionMethod == nil {
+ x.AssertionMethod = []*VerificationRelationship{}
+ }
+ value := &_DIDDocument_6_list{list: &x.AssertionMethod}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.DIDDocument.capability_invocation":
+ if x.CapabilityInvocation == nil {
+ x.CapabilityInvocation = []*VerificationRelationship{}
+ }
+ value := &_DIDDocument_7_list{list: &x.CapabilityInvocation}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.DIDDocument.capability_delegation":
+ if x.CapabilityDelegation == nil {
+ x.CapabilityDelegation = []*VerificationRelationship{}
+ }
+ value := &_DIDDocument_8_list{list: &x.CapabilityDelegation}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.DIDDocument.key_agreement":
+ if x.KeyAgreement == nil {
+ x.KeyAgreement = []*VerificationRelationship{}
+ }
+ value := &_DIDDocument_9_list{list: &x.KeyAgreement}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.DIDDocument.also_known_as":
+ if x.AlsoKnownAs == nil {
+ x.AlsoKnownAs = []string{}
+ }
+ value := &_DIDDocument_10_list{list: &x.AlsoKnownAs}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.DIDDocument.id":
+ panic(fmt.Errorf("field id of message core.identity.DIDDocument is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.DIDDocument"))
+ }
+ panic(fmt.Errorf("message core.identity.DIDDocument does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_DIDDocument) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.DIDDocument.context":
+ list := []string{}
+ return protoreflect.ValueOfList(&_DIDDocument_1_list{list: &list})
+ case "core.identity.DIDDocument.id":
+ return protoreflect.ValueOfString("")
+ case "core.identity.DIDDocument.controller":
+ list := []string{}
+ return protoreflect.ValueOfList(&_DIDDocument_3_list{list: &list})
+ case "core.identity.DIDDocument.authentication":
+ list := []*VerificationRelationship{}
+ return protoreflect.ValueOfList(&_DIDDocument_5_list{list: &list})
+ case "core.identity.DIDDocument.assertion_method":
+ list := []*VerificationRelationship{}
+ return protoreflect.ValueOfList(&_DIDDocument_6_list{list: &list})
+ case "core.identity.DIDDocument.capability_invocation":
+ list := []*VerificationRelationship{}
+ return protoreflect.ValueOfList(&_DIDDocument_7_list{list: &list})
+ case "core.identity.DIDDocument.capability_delegation":
+ list := []*VerificationRelationship{}
+ return protoreflect.ValueOfList(&_DIDDocument_8_list{list: &list})
+ case "core.identity.DIDDocument.key_agreement":
+ list := []*VerificationRelationship{}
+ return protoreflect.ValueOfList(&_DIDDocument_9_list{list: &list})
+ case "core.identity.DIDDocument.also_known_as":
+ list := []string{}
+ return protoreflect.ValueOfList(&_DIDDocument_10_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.DIDDocument"))
+ }
+ panic(fmt.Errorf("message core.identity.DIDDocument does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_DIDDocument) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.DIDDocument", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_DIDDocument) 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_DIDDocument) 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_DIDDocument) 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_DIDDocument) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*DIDDocument)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if len(x.Context) > 0 {
+ for _, s := range x.Context {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ l = len(x.Id)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Controller) > 0 {
+ for _, s := range x.Controller {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.Authentication) > 0 {
+ for _, e := range x.Authentication {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.AssertionMethod) > 0 {
+ for _, e := range x.AssertionMethod {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.CapabilityInvocation) > 0 {
+ for _, e := range x.CapabilityInvocation {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.CapabilityDelegation) > 0 {
+ for _, e := range x.CapabilityDelegation {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.KeyAgreement) > 0 {
+ for _, e := range x.KeyAgreement {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.AlsoKnownAs) > 0 {
+ for _, s := range x.AlsoKnownAs {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*DIDDocument)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.AlsoKnownAs) > 0 {
+ for iNdEx := len(x.AlsoKnownAs) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.AlsoKnownAs[iNdEx])
+ copy(dAtA[i:], x.AlsoKnownAs[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AlsoKnownAs[iNdEx])))
+ i--
+ dAtA[i] = 0x52
+ }
+ }
+ if len(x.KeyAgreement) > 0 {
+ for iNdEx := len(x.KeyAgreement) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.KeyAgreement[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] = 0x4a
+ }
+ }
+ if len(x.CapabilityDelegation) > 0 {
+ for iNdEx := len(x.CapabilityDelegation) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.CapabilityDelegation[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] = 0x42
+ }
+ }
+ if len(x.CapabilityInvocation) > 0 {
+ for iNdEx := len(x.CapabilityInvocation) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.CapabilityInvocation[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] = 0x3a
+ }
+ }
+ if len(x.AssertionMethod) > 0 {
+ for iNdEx := len(x.AssertionMethod) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.AssertionMethod[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] = 0x32
+ }
+ }
+ if len(x.Authentication) > 0 {
+ for iNdEx := len(x.Authentication) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Authentication[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.Controller) > 0 {
+ for iNdEx := len(x.Controller) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Controller[iNdEx])
+ copy(dAtA[i:], x.Controller[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Controller[iNdEx])))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if len(x.Id) > 0 {
+ i -= len(x.Id)
+ copy(dAtA[i:], x.Id)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Context) > 0 {
+ for iNdEx := len(x.Context) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Context[iNdEx])
+ copy(dAtA[i:], x.Context[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Context[iNdEx])))
+ 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().(*DIDDocument)
+ 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: DIDDocument: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DIDDocument: 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 Context", 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.Context = append(x.Context, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", 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.Id = 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 Controller", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Controller = append(x.Controller, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authentication", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authentication = append(x.Authentication, &VerificationRelationship{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Authentication[len(x.Authentication)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AssertionMethod", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.AssertionMethod = append(x.AssertionMethod, &VerificationRelationship{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AssertionMethod[len(x.AssertionMethod)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CapabilityInvocation", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.CapabilityInvocation = append(x.CapabilityInvocation, &VerificationRelationship{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CapabilityInvocation[len(x.CapabilityInvocation)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CapabilityDelegation", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.CapabilityDelegation = append(x.CapabilityDelegation, &VerificationRelationship{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CapabilityDelegation[len(x.CapabilityDelegation)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyAgreement", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.KeyAgreement = append(x.KeyAgreement, &VerificationRelationship{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.KeyAgreement[len(x.KeyAgreement)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 10:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AlsoKnownAs", 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.AlsoKnownAs = append(x.AlsoKnownAs, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_VerificationMethod_8_list)(nil)
+
+type _VerificationMethod_8_list struct {
+ list *[]string
+}
+
+func (x *_VerificationMethod_8_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_VerificationMethod_8_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_VerificationMethod_8_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_VerificationMethod_8_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_VerificationMethod_8_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message VerificationMethod at list field Transports as it is not of Message kind"))
+}
+
+func (x *_VerificationMethod_8_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_VerificationMethod_8_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_VerificationMethod_8_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_VerificationMethod protoreflect.MessageDescriptor
+ fd_VerificationMethod_id protoreflect.FieldDescriptor
+ fd_VerificationMethod_type protoreflect.FieldDescriptor
+ fd_VerificationMethod_controller protoreflect.FieldDescriptor
+ fd_VerificationMethod_public_key_jwk protoreflect.FieldDescriptor
+ fd_VerificationMethod_public_key_multibase protoreflect.FieldDescriptor
+ fd_VerificationMethod_blockchain_account_id protoreflect.FieldDescriptor
+ fd_VerificationMethod_attestation_type protoreflect.FieldDescriptor
+ fd_VerificationMethod_transports protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_did_proto_init()
+ md_VerificationMethod = File_core_identity_did_proto.Messages().ByName("VerificationMethod")
+ fd_VerificationMethod_id = md_VerificationMethod.Fields().ByName("id")
+ fd_VerificationMethod_type = md_VerificationMethod.Fields().ByName("type")
+ fd_VerificationMethod_controller = md_VerificationMethod.Fields().ByName("controller")
+ fd_VerificationMethod_public_key_jwk = md_VerificationMethod.Fields().ByName("public_key_jwk")
+ fd_VerificationMethod_public_key_multibase = md_VerificationMethod.Fields().ByName("public_key_multibase")
+ fd_VerificationMethod_blockchain_account_id = md_VerificationMethod.Fields().ByName("blockchain_account_id")
+ fd_VerificationMethod_attestation_type = md_VerificationMethod.Fields().ByName("attestation_type")
+ fd_VerificationMethod_transports = md_VerificationMethod.Fields().ByName("transports")
+}
+
+var _ protoreflect.Message = (*fastReflection_VerificationMethod)(nil)
+
+type fastReflection_VerificationMethod VerificationMethod
+
+func (x *VerificationMethod) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_VerificationMethod)(x)
+}
+
+func (x *VerificationMethod) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_did_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_VerificationMethod_messageType fastReflection_VerificationMethod_messageType
+var _ protoreflect.MessageType = fastReflection_VerificationMethod_messageType{}
+
+type fastReflection_VerificationMethod_messageType struct{}
+
+func (x fastReflection_VerificationMethod_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_VerificationMethod)(nil)
+}
+func (x fastReflection_VerificationMethod_messageType) New() protoreflect.Message {
+ return new(fastReflection_VerificationMethod)
+}
+func (x fastReflection_VerificationMethod_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerificationMethod
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_VerificationMethod) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerificationMethod
+}
+
+// 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_VerificationMethod) Type() protoreflect.MessageType {
+ return _fastReflection_VerificationMethod_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_VerificationMethod) New() protoreflect.Message {
+ return new(fastReflection_VerificationMethod)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_VerificationMethod) Interface() protoreflect.ProtoMessage {
+ return (*VerificationMethod)(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_VerificationMethod) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Id != "" {
+ value := protoreflect.ValueOfString(x.Id)
+ if !f(fd_VerificationMethod_id, value) {
+ return
+ }
+ }
+ if x.Type_ != "" {
+ value := protoreflect.ValueOfString(x.Type_)
+ if !f(fd_VerificationMethod_type, value) {
+ return
+ }
+ }
+ if x.Controller != "" {
+ value := protoreflect.ValueOfString(x.Controller)
+ if !f(fd_VerificationMethod_controller, value) {
+ return
+ }
+ }
+ if x.PublicKeyJwk != "" {
+ value := protoreflect.ValueOfString(x.PublicKeyJwk)
+ if !f(fd_VerificationMethod_public_key_jwk, value) {
+ return
+ }
+ }
+ if x.PublicKeyMultibase != "" {
+ value := protoreflect.ValueOfString(x.PublicKeyMultibase)
+ if !f(fd_VerificationMethod_public_key_multibase, value) {
+ return
+ }
+ }
+ if x.BlockchainAccountId != "" {
+ value := protoreflect.ValueOfString(x.BlockchainAccountId)
+ if !f(fd_VerificationMethod_blockchain_account_id, value) {
+ return
+ }
+ }
+ if x.AttestationType != "" {
+ value := protoreflect.ValueOfString(x.AttestationType)
+ if !f(fd_VerificationMethod_attestation_type, value) {
+ return
+ }
+ }
+ if len(x.Transports) != 0 {
+ value := protoreflect.ValueOfList(&_VerificationMethod_8_list{list: &x.Transports})
+ if !f(fd_VerificationMethod_transports, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_VerificationMethod) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.VerificationMethod.id":
+ return x.Id != ""
+ case "core.identity.VerificationMethod.type":
+ return x.Type_ != ""
+ case "core.identity.VerificationMethod.controller":
+ return x.Controller != ""
+ case "core.identity.VerificationMethod.public_key_jwk":
+ return x.PublicKeyJwk != ""
+ case "core.identity.VerificationMethod.public_key_multibase":
+ return x.PublicKeyMultibase != ""
+ case "core.identity.VerificationMethod.blockchain_account_id":
+ return x.BlockchainAccountId != ""
+ case "core.identity.VerificationMethod.attestation_type":
+ return x.AttestationType != ""
+ case "core.identity.VerificationMethod.transports":
+ return len(x.Transports) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationMethod"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationMethod does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerificationMethod) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.VerificationMethod.id":
+ x.Id = ""
+ case "core.identity.VerificationMethod.type":
+ x.Type_ = ""
+ case "core.identity.VerificationMethod.controller":
+ x.Controller = ""
+ case "core.identity.VerificationMethod.public_key_jwk":
+ x.PublicKeyJwk = ""
+ case "core.identity.VerificationMethod.public_key_multibase":
+ x.PublicKeyMultibase = ""
+ case "core.identity.VerificationMethod.blockchain_account_id":
+ x.BlockchainAccountId = ""
+ case "core.identity.VerificationMethod.attestation_type":
+ x.AttestationType = ""
+ case "core.identity.VerificationMethod.transports":
+ x.Transports = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationMethod"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationMethod does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_VerificationMethod) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.VerificationMethod.id":
+ value := x.Id
+ return protoreflect.ValueOfString(value)
+ case "core.identity.VerificationMethod.type":
+ value := x.Type_
+ return protoreflect.ValueOfString(value)
+ case "core.identity.VerificationMethod.controller":
+ value := x.Controller
+ return protoreflect.ValueOfString(value)
+ case "core.identity.VerificationMethod.public_key_jwk":
+ value := x.PublicKeyJwk
+ return protoreflect.ValueOfString(value)
+ case "core.identity.VerificationMethod.public_key_multibase":
+ value := x.PublicKeyMultibase
+ return protoreflect.ValueOfString(value)
+ case "core.identity.VerificationMethod.blockchain_account_id":
+ value := x.BlockchainAccountId
+ return protoreflect.ValueOfString(value)
+ case "core.identity.VerificationMethod.attestation_type":
+ value := x.AttestationType
+ return protoreflect.ValueOfString(value)
+ case "core.identity.VerificationMethod.transports":
+ if len(x.Transports) == 0 {
+ return protoreflect.ValueOfList(&_VerificationMethod_8_list{})
+ }
+ listValue := &_VerificationMethod_8_list{list: &x.Transports}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationMethod"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationMethod does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerificationMethod) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.VerificationMethod.id":
+ x.Id = value.Interface().(string)
+ case "core.identity.VerificationMethod.type":
+ x.Type_ = value.Interface().(string)
+ case "core.identity.VerificationMethod.controller":
+ x.Controller = value.Interface().(string)
+ case "core.identity.VerificationMethod.public_key_jwk":
+ x.PublicKeyJwk = value.Interface().(string)
+ case "core.identity.VerificationMethod.public_key_multibase":
+ x.PublicKeyMultibase = value.Interface().(string)
+ case "core.identity.VerificationMethod.blockchain_account_id":
+ x.BlockchainAccountId = value.Interface().(string)
+ case "core.identity.VerificationMethod.attestation_type":
+ x.AttestationType = value.Interface().(string)
+ case "core.identity.VerificationMethod.transports":
+ lv := value.List()
+ clv := lv.(*_VerificationMethod_8_list)
+ x.Transports = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationMethod"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationMethod does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerificationMethod) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.VerificationMethod.transports":
+ if x.Transports == nil {
+ x.Transports = []string{}
+ }
+ value := &_VerificationMethod_8_list{list: &x.Transports}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.VerificationMethod.id":
+ panic(fmt.Errorf("field id of message core.identity.VerificationMethod is not mutable"))
+ case "core.identity.VerificationMethod.type":
+ panic(fmt.Errorf("field type of message core.identity.VerificationMethod is not mutable"))
+ case "core.identity.VerificationMethod.controller":
+ panic(fmt.Errorf("field controller of message core.identity.VerificationMethod is not mutable"))
+ case "core.identity.VerificationMethod.public_key_jwk":
+ panic(fmt.Errorf("field public_key_jwk of message core.identity.VerificationMethod is not mutable"))
+ case "core.identity.VerificationMethod.public_key_multibase":
+ panic(fmt.Errorf("field public_key_multibase of message core.identity.VerificationMethod is not mutable"))
+ case "core.identity.VerificationMethod.blockchain_account_id":
+ panic(fmt.Errorf("field blockchain_account_id of message core.identity.VerificationMethod is not mutable"))
+ case "core.identity.VerificationMethod.attestation_type":
+ panic(fmt.Errorf("field attestation_type of message core.identity.VerificationMethod is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationMethod"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationMethod does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_VerificationMethod) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.VerificationMethod.id":
+ return protoreflect.ValueOfString("")
+ case "core.identity.VerificationMethod.type":
+ return protoreflect.ValueOfString("")
+ case "core.identity.VerificationMethod.controller":
+ return protoreflect.ValueOfString("")
+ case "core.identity.VerificationMethod.public_key_jwk":
+ return protoreflect.ValueOfString("")
+ case "core.identity.VerificationMethod.public_key_multibase":
+ return protoreflect.ValueOfString("")
+ case "core.identity.VerificationMethod.blockchain_account_id":
+ return protoreflect.ValueOfString("")
+ case "core.identity.VerificationMethod.attestation_type":
+ return protoreflect.ValueOfString("")
+ case "core.identity.VerificationMethod.transports":
+ list := []string{}
+ return protoreflect.ValueOfList(&_VerificationMethod_8_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationMethod"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationMethod does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_VerificationMethod) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.VerificationMethod", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_VerificationMethod) 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_VerificationMethod) 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_VerificationMethod) 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_VerificationMethod) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*VerificationMethod)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Id)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Type_)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Controller)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.PublicKeyJwk)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.PublicKeyMultibase)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.BlockchainAccountId)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.AttestationType)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Transports) > 0 {
+ for _, s := range x.Transports {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*VerificationMethod)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Transports) > 0 {
+ for iNdEx := len(x.Transports) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Transports[iNdEx])
+ copy(dAtA[i:], x.Transports[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Transports[iNdEx])))
+ i--
+ dAtA[i] = 0x42
+ }
+ }
+ if len(x.AttestationType) > 0 {
+ i -= len(x.AttestationType)
+ copy(dAtA[i:], x.AttestationType)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AttestationType)))
+ i--
+ dAtA[i] = 0x3a
+ }
+ if len(x.BlockchainAccountId) > 0 {
+ i -= len(x.BlockchainAccountId)
+ copy(dAtA[i:], x.BlockchainAccountId)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BlockchainAccountId)))
+ i--
+ dAtA[i] = 0x32
+ }
+ if len(x.PublicKeyMultibase) > 0 {
+ i -= len(x.PublicKeyMultibase)
+ copy(dAtA[i:], x.PublicKeyMultibase)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKeyMultibase)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(x.PublicKeyJwk) > 0 {
+ i -= len(x.PublicKeyJwk)
+ copy(dAtA[i:], x.PublicKeyJwk)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKeyJwk)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.Controller) > 0 {
+ i -= len(x.Controller)
+ copy(dAtA[i:], x.Controller)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Controller)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Type_) > 0 {
+ i -= len(x.Type_)
+ copy(dAtA[i:], x.Type_)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Type_)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Id) > 0 {
+ i -= len(x.Id)
+ copy(dAtA[i:], x.Id)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
+ 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().(*VerificationMethod)
+ 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: VerificationMethod: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerificationMethod: 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 Id", 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.Id = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", 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.Type_ = 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 Controller", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Controller = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PublicKeyJwk", 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.PublicKeyJwk = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PublicKeyMultibase", 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.PublicKeyMultibase = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockchainAccountId", 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.BlockchainAccountId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AttestationType", 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.AttestationType = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Transports", 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.Transports = append(x.Transports, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_VerificationRelationship protoreflect.MessageDescriptor
+ fd_VerificationRelationship_verification_method protoreflect.FieldDescriptor
+ fd_VerificationRelationship_reference protoreflect.FieldDescriptor
+ fd_VerificationRelationship_type protoreflect.FieldDescriptor
+ fd_VerificationRelationship_owner protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_did_proto_init()
+ md_VerificationRelationship = File_core_identity_did_proto.Messages().ByName("VerificationRelationship")
+ fd_VerificationRelationship_verification_method = md_VerificationRelationship.Fields().ByName("verification_method")
+ fd_VerificationRelationship_reference = md_VerificationRelationship.Fields().ByName("reference")
+ fd_VerificationRelationship_type = md_VerificationRelationship.Fields().ByName("type")
+ fd_VerificationRelationship_owner = md_VerificationRelationship.Fields().ByName("owner")
+}
+
+var _ protoreflect.Message = (*fastReflection_VerificationRelationship)(nil)
+
+type fastReflection_VerificationRelationship VerificationRelationship
+
+func (x *VerificationRelationship) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_VerificationRelationship)(x)
+}
+
+func (x *VerificationRelationship) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_did_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_VerificationRelationship_messageType fastReflection_VerificationRelationship_messageType
+var _ protoreflect.MessageType = fastReflection_VerificationRelationship_messageType{}
+
+type fastReflection_VerificationRelationship_messageType struct{}
+
+func (x fastReflection_VerificationRelationship_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_VerificationRelationship)(nil)
+}
+func (x fastReflection_VerificationRelationship_messageType) New() protoreflect.Message {
+ return new(fastReflection_VerificationRelationship)
+}
+func (x fastReflection_VerificationRelationship_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerificationRelationship
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_VerificationRelationship) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerificationRelationship
+}
+
+// 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_VerificationRelationship) Type() protoreflect.MessageType {
+ return _fastReflection_VerificationRelationship_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_VerificationRelationship) New() protoreflect.Message {
+ return new(fastReflection_VerificationRelationship)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_VerificationRelationship) Interface() protoreflect.ProtoMessage {
+ return (*VerificationRelationship)(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_VerificationRelationship) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.VerificationMethod != nil {
+ value := protoreflect.ValueOfMessage(x.VerificationMethod.ProtoReflect())
+ if !f(fd_VerificationRelationship_verification_method, value) {
+ return
+ }
+ }
+ if x.Reference != "" {
+ value := protoreflect.ValueOfString(x.Reference)
+ if !f(fd_VerificationRelationship_reference, value) {
+ return
+ }
+ }
+ if x.Type_ != "" {
+ value := protoreflect.ValueOfString(x.Type_)
+ if !f(fd_VerificationRelationship_type, value) {
+ return
+ }
+ }
+ if x.Owner != "" {
+ value := protoreflect.ValueOfString(x.Owner)
+ if !f(fd_VerificationRelationship_owner, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_VerificationRelationship) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.VerificationRelationship.verification_method":
+ return x.VerificationMethod != nil
+ case "core.identity.VerificationRelationship.reference":
+ return x.Reference != ""
+ case "core.identity.VerificationRelationship.type":
+ return x.Type_ != ""
+ case "core.identity.VerificationRelationship.owner":
+ return x.Owner != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationRelationship"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationRelationship does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerificationRelationship) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.VerificationRelationship.verification_method":
+ x.VerificationMethod = nil
+ case "core.identity.VerificationRelationship.reference":
+ x.Reference = ""
+ case "core.identity.VerificationRelationship.type":
+ x.Type_ = ""
+ case "core.identity.VerificationRelationship.owner":
+ x.Owner = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationRelationship"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationRelationship does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_VerificationRelationship) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.VerificationRelationship.verification_method":
+ value := x.VerificationMethod
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "core.identity.VerificationRelationship.reference":
+ value := x.Reference
+ return protoreflect.ValueOfString(value)
+ case "core.identity.VerificationRelationship.type":
+ value := x.Type_
+ return protoreflect.ValueOfString(value)
+ case "core.identity.VerificationRelationship.owner":
+ value := x.Owner
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationRelationship"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationRelationship does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerificationRelationship) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.VerificationRelationship.verification_method":
+ x.VerificationMethod = value.Message().Interface().(*VerificationMethod)
+ case "core.identity.VerificationRelationship.reference":
+ x.Reference = value.Interface().(string)
+ case "core.identity.VerificationRelationship.type":
+ x.Type_ = value.Interface().(string)
+ case "core.identity.VerificationRelationship.owner":
+ x.Owner = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationRelationship"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationRelationship does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerificationRelationship) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.VerificationRelationship.verification_method":
+ if x.VerificationMethod == nil {
+ x.VerificationMethod = new(VerificationMethod)
+ }
+ return protoreflect.ValueOfMessage(x.VerificationMethod.ProtoReflect())
+ case "core.identity.VerificationRelationship.reference":
+ panic(fmt.Errorf("field reference of message core.identity.VerificationRelationship is not mutable"))
+ case "core.identity.VerificationRelationship.type":
+ panic(fmt.Errorf("field type of message core.identity.VerificationRelationship is not mutable"))
+ case "core.identity.VerificationRelationship.owner":
+ panic(fmt.Errorf("field owner of message core.identity.VerificationRelationship is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationRelationship"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationRelationship does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_VerificationRelationship) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.VerificationRelationship.verification_method":
+ m := new(VerificationMethod)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "core.identity.VerificationRelationship.reference":
+ return protoreflect.ValueOfString("")
+ case "core.identity.VerificationRelationship.type":
+ return protoreflect.ValueOfString("")
+ case "core.identity.VerificationRelationship.owner":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.VerificationRelationship"))
+ }
+ panic(fmt.Errorf("message core.identity.VerificationRelationship does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_VerificationRelationship) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.VerificationRelationship", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_VerificationRelationship) 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_VerificationRelationship) 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_VerificationRelationship) 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_VerificationRelationship) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*VerificationRelationship)
+ 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.VerificationMethod != nil {
+ l = options.Size(x.VerificationMethod)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Reference)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Type_)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Owner)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*VerificationRelationship)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Owner) > 0 {
+ i -= len(x.Owner)
+ copy(dAtA[i:], x.Owner)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.Type_) > 0 {
+ i -= len(x.Type_)
+ copy(dAtA[i:], x.Type_)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Type_)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Reference) > 0 {
+ i -= len(x.Reference)
+ copy(dAtA[i:], x.Reference)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reference)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.VerificationMethod != nil {
+ encoded, err := options.Marshal(x.VerificationMethod)
+ 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().(*VerificationRelationship)
+ 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: VerificationRelationship: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerificationRelationship: 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 VerificationMethod", 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.VerificationMethod == nil {
+ x.VerificationMethod = &VerificationMethod{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VerificationMethod); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reference", 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.Reference = 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 Type_", 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.Type_ = 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 Owner", 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.Owner = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/identity/did.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// DIDDocument represents a Decentralized Identifier (DID) document that
+// contains information about the DID subject, such as public keys, verification
+// methods, and services.
+type DIDDocument struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"` // The JSON-LD context(s) used in the document
+ Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // The identifier for the DID subject
+ Controller []string `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"` // optional, the entity/entities controlling the DID subject
+ Authentication []*VerificationRelationship `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"` // optional, the set of authentication methods associated with the DID
+ AssertionMethod []*VerificationRelationship `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"` // optional, the set of assertion methods associated with the DID
+ CapabilityInvocation []*VerificationRelationship `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"` // optional, the set of capability invocation methods associated with
+ CapabilityDelegation []*VerificationRelationship `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"` // optional, the set of capability delegation methods associated with
+ KeyAgreement []*VerificationRelationship `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"` // optional, the set of key agreement methods associated with the DID
+ AlsoKnownAs []string `protobuf:"bytes,10,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"` // optional, the set of identifiers for other personas or identities
+}
+
+func (x *DIDDocument) Reset() {
+ *x = DIDDocument{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_did_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DIDDocument) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DIDDocument) ProtoMessage() {}
+
+// Deprecated: Use DIDDocument.ProtoReflect.Descriptor instead.
+func (*DIDDocument) Descriptor() ([]byte, []int) {
+ return file_core_identity_did_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *DIDDocument) GetContext() []string {
+ if x != nil {
+ return x.Context
+ }
+ return nil
+}
+
+func (x *DIDDocument) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *DIDDocument) GetController() []string {
+ if x != nil {
+ return x.Controller
+ }
+ return nil
+}
+
+func (x *DIDDocument) GetAuthentication() []*VerificationRelationship {
+ if x != nil {
+ return x.Authentication
+ }
+ return nil
+}
+
+func (x *DIDDocument) GetAssertionMethod() []*VerificationRelationship {
+ if x != nil {
+ return x.AssertionMethod
+ }
+ return nil
+}
+
+func (x *DIDDocument) GetCapabilityInvocation() []*VerificationRelationship {
+ if x != nil {
+ return x.CapabilityInvocation
+ }
+ return nil
+}
+
+func (x *DIDDocument) GetCapabilityDelegation() []*VerificationRelationship {
+ if x != nil {
+ return x.CapabilityDelegation
+ }
+ return nil
+}
+
+func (x *DIDDocument) GetKeyAgreement() []*VerificationRelationship {
+ if x != nil {
+ return x.KeyAgreement
+ }
+ return nil
+}
+
+func (x *DIDDocument) GetAlsoKnownAs() []string {
+ if x != nil {
+ return x.AlsoKnownAs
+ }
+ return nil
+}
+
+// VerificationMethod represents a verification method that can be used to
+// authenticate the DID subject or perform other cryptographic operations.
+type VerificationMethod struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The identifier for the verification method
+ Type_ string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // The type of the verification method
+ Controller string `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"` // The entity controlling the verification method
+ PublicKeyJwk string `protobuf:"bytes,4,opt,name=public_key_jwk,json=publicKeyJwk,proto3" json:"public_key_jwk,omitempty"` // optional, the public key in JSON Web Key (JWK) format
+ PublicKeyMultibase string `protobuf:"bytes,5,opt,name=public_key_multibase,json=publicKeyMultibase,proto3" json:"public_key_multibase,omitempty"` // optional, the public key in multibase-encoded format
+ BlockchainAccountId string `protobuf:"bytes,6,opt,name=blockchain_account_id,json=blockchainAccountId,proto3" json:"blockchain_account_id,omitempty"` // optional, the blockchain account identifier associated with the
+ AttestationType string `protobuf:"bytes,7,opt,name=attestation_type,json=attestationType,proto3" json:"attestation_type,omitempty"` // optional, the type of attestation associated with the verification
+ Transports []string `protobuf:"bytes,8,rep,name=transports,proto3" json:"transports,omitempty"` // optional, the set of transport protocols supported by the
+}
+
+func (x *VerificationMethod) Reset() {
+ *x = VerificationMethod{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_did_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *VerificationMethod) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*VerificationMethod) ProtoMessage() {}
+
+// Deprecated: Use VerificationMethod.ProtoReflect.Descriptor instead.
+func (*VerificationMethod) Descriptor() ([]byte, []int) {
+ return file_core_identity_did_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *VerificationMethod) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *VerificationMethod) GetType_() string {
+ if x != nil {
+ return x.Type_
+ }
+ return ""
+}
+
+func (x *VerificationMethod) GetController() string {
+ if x != nil {
+ return x.Controller
+ }
+ return ""
+}
+
+func (x *VerificationMethod) GetPublicKeyJwk() string {
+ if x != nil {
+ return x.PublicKeyJwk
+ }
+ return ""
+}
+
+func (x *VerificationMethod) GetPublicKeyMultibase() string {
+ if x != nil {
+ return x.PublicKeyMultibase
+ }
+ return ""
+}
+
+func (x *VerificationMethod) GetBlockchainAccountId() string {
+ if x != nil {
+ return x.BlockchainAccountId
+ }
+ return ""
+}
+
+func (x *VerificationMethod) GetAttestationType() string {
+ if x != nil {
+ return x.AttestationType
+ }
+ return ""
+}
+
+func (x *VerificationMethod) GetTransports() []string {
+ if x != nil {
+ return x.Transports
+ }
+ return nil
+}
+
+// VerificationRelationship represents a relationship between a verification
+// method and a specific verification purpose (e.g., authentication, assertion,
+// etc.).
+type VerificationRelationship struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ VerificationMethod *VerificationMethod `protobuf:"bytes,1,opt,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"` // The verification method associated with the relationship
+ Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` // The reference identifier for the relationship
+ Type_ string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // The type of the verification relationship
+ Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` // The idx address of the owner of the verification relationship
+}
+
+func (x *VerificationRelationship) Reset() {
+ *x = VerificationRelationship{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_did_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *VerificationRelationship) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*VerificationRelationship) ProtoMessage() {}
+
+// Deprecated: Use VerificationRelationship.ProtoReflect.Descriptor instead.
+func (*VerificationRelationship) Descriptor() ([]byte, []int) {
+ return file_core_identity_did_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *VerificationRelationship) GetVerificationMethod() *VerificationMethod {
+ if x != nil {
+ return x.VerificationMethod
+ }
+ return nil
+}
+
+func (x *VerificationRelationship) GetReference() string {
+ if x != nil {
+ return x.Reference
+ }
+ return ""
+}
+
+func (x *VerificationRelationship) GetType_() string {
+ if x != nil {
+ return x.Type_
+ }
+ return ""
+}
+
+func (x *VerificationRelationship) GetOwner() string {
+ if x != nil {
+ return x.Owner
+ }
+ return ""
+}
+
+var File_core_identity_did_proto protoreflect.FileDescriptor
+
+var file_core_identity_did_proto_rawDesc = []byte{
+ 0x0a, 0x17, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f,
+ 0x64, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x72, 0x65, 0x2e,
+ 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xaa, 0x04, 0x0a, 0x0b, 0x44, 0x49, 0x44,
+ 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74,
+ 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x78, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
+ 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
+ 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+ 0x68, 0x69, 0x70, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x12, 0x52, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e,
+ 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x65,
+ 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x0f, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f,
+ 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x5c, 0x0a, 0x15, 0x63, 0x61, 0x70, 0x61, 0x62,
+ 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52,
+ 0x14, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x76, 0x6f, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5c, 0x0a, 0x15, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c,
+ 0x69, 0x74, 0x79, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e,
+ 0x74, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x14, 0x63,
+ 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x5f, 0x61, 0x67, 0x72, 0x65, 0x65,
+ 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+ 0x68, 0x69, 0x70, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x41, 0x67, 0x72, 0x65, 0x65, 0x6d, 0x65, 0x6e,
+ 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x6c, 0x73, 0x6f, 0x5f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f,
+ 0x61, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x6c, 0x73, 0x6f, 0x4b, 0x6e,
+ 0x6f, 0x77, 0x6e, 0x41, 0x73, 0x22, 0xaf, 0x02, 0x0a, 0x12, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x0e, 0x0a, 0x02,
+ 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
+ 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
+ 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6a,
+ 0x77, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
+ 0x4b, 0x65, 0x79, 0x4a, 0x77, 0x6b, 0x12, 0x30, 0x0a, 0x14, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
+ 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x61, 0x73, 0x65, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x4d,
+ 0x75, 0x6c, 0x74, 0x69, 0x62, 0x61, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x62, 0x6c, 0x6f, 0x63,
+ 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69,
+ 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
+ 0x61, 0x69, 0x6e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10,
+ 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x6e, 0x73,
+ 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x72, 0x61,
+ 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x22, 0xb6, 0x01, 0x0a, 0x18, 0x56, 0x65, 0x72, 0x69,
+ 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x73, 0x68, 0x69, 0x70, 0x12, 0x52, 0x0a, 0x13, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
+ 0x79, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65,
+ 0x74, 0x68, 0x6f, 0x64, 0x52, 0x12, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65,
+ 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66,
+ 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77,
+ 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72,
+ 0x42, 0x98, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, 0x08, 0x44, 0x69, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f,
+ 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73,
+ 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f,
+ 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xa2, 0x02, 0x03, 0x43, 0x49, 0x58, 0xaa, 0x02,
+ 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xca, 0x02,
+ 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xe2, 0x02,
+ 0x19, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, 0x47,
+ 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x72,
+ 0x65, 0x3a, 0x3a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_identity_did_proto_rawDescOnce sync.Once
+ file_core_identity_did_proto_rawDescData = file_core_identity_did_proto_rawDesc
+)
+
+func file_core_identity_did_proto_rawDescGZIP() []byte {
+ file_core_identity_did_proto_rawDescOnce.Do(func() {
+ file_core_identity_did_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_identity_did_proto_rawDescData)
+ })
+ return file_core_identity_did_proto_rawDescData
+}
+
+var file_core_identity_did_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_core_identity_did_proto_goTypes = []interface{}{
+ (*DIDDocument)(nil), // 0: core.identity.DIDDocument
+ (*VerificationMethod)(nil), // 1: core.identity.VerificationMethod
+ (*VerificationRelationship)(nil), // 2: core.identity.VerificationRelationship
+}
+var file_core_identity_did_proto_depIdxs = []int32{
+ 2, // 0: core.identity.DIDDocument.authentication:type_name -> core.identity.VerificationRelationship
+ 2, // 1: core.identity.DIDDocument.assertion_method:type_name -> core.identity.VerificationRelationship
+ 2, // 2: core.identity.DIDDocument.capability_invocation:type_name -> core.identity.VerificationRelationship
+ 2, // 3: core.identity.DIDDocument.capability_delegation:type_name -> core.identity.VerificationRelationship
+ 2, // 4: core.identity.DIDDocument.key_agreement:type_name -> core.identity.VerificationRelationship
+ 1, // 5: core.identity.VerificationRelationship.verification_method:type_name -> core.identity.VerificationMethod
+ 6, // [6:6] is the sub-list for method output_type
+ 6, // [6:6] is the sub-list for method input_type
+ 6, // [6:6] is the sub-list for extension type_name
+ 6, // [6:6] is the sub-list for extension extendee
+ 0, // [0:6] is the sub-list for field type_name
+}
+
+func init() { file_core_identity_did_proto_init() }
+func file_core_identity_did_proto_init() {
+ if File_core_identity_did_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_core_identity_did_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DIDDocument); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_did_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*VerificationMethod); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_did_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*VerificationRelationship); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_identity_did_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 3,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_identity_did_proto_goTypes,
+ DependencyIndexes: file_core_identity_did_proto_depIdxs,
+ MessageInfos: file_core_identity_did_proto_msgTypes,
+ }.Build()
+ File_core_identity_did_proto = out.File
+ file_core_identity_did_proto_rawDesc = nil
+ file_core_identity_did_proto_goTypes = nil
+ file_core_identity_did_proto_depIdxs = nil
+}
diff --git a/api/core/identity/genesis.pulsar.go b/api/core/identity/genesis.pulsar.go
new file mode 100644
index 000000000..65f96986c
--- /dev/null
+++ b/api/core/identity/genesis.pulsar.go
@@ -0,0 +1,962 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package identity
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_GenesisState_2_list)(nil)
+
+type _GenesisState_2_list struct {
+ list *[]*DIDDocument
+}
+
+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().(*DIDDocument)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*DIDDocument)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
+ v := new(DIDDocument)
+ *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(DIDDocument)
+ 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 *[]*ControllerAccount
+}
+
+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().(*ControllerAccount)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*ControllerAccount)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value {
+ v := new(ControllerAccount)
+ *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(ControllerAccount)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+ fd_GenesisState_dIDDocumentList protoreflect.FieldDescriptor
+ fd_GenesisState_controllerAccountList protoreflect.FieldDescriptor
+ fd_GenesisState_controllerAccountCount protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_genesis_proto_init()
+ md_GenesisState = File_core_identity_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+ fd_GenesisState_dIDDocumentList = md_GenesisState.Fields().ByName("dIDDocumentList")
+ fd_GenesisState_controllerAccountList = md_GenesisState.Fields().ByName("controllerAccountList")
+ fd_GenesisState_controllerAccountCount = md_GenesisState.Fields().ByName("controllerAccountCount")
+}
+
+var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
+
+type fastReflection_GenesisState GenesisState
+
+func (x *GenesisState) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_GenesisState)(x)
+}
+
+func (x *GenesisState) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_genesis_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
+var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
+
+type fastReflection_GenesisState_messageType struct{}
+
+func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_GenesisState)(nil)
+}
+func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
+ return new(fastReflection_GenesisState)
+}
+func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_GenesisState
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
+ return md_GenesisState
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
+ return _fastReflection_GenesisState_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_GenesisState) New() protoreflect.Message {
+ return new(fastReflection_GenesisState)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
+ return (*GenesisState)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_GenesisState_params, value) {
+ return
+ }
+ }
+ if len(x.DIDDocumentList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.DIDDocumentList})
+ if !f(fd_GenesisState_dIDDocumentList, value) {
+ return
+ }
+ }
+ if len(x.ControllerAccountList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.ControllerAccountList})
+ if !f(fd_GenesisState_controllerAccountList, value) {
+ return
+ }
+ }
+ if x.ControllerAccountCount != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.ControllerAccountCount)
+ if !f(fd_GenesisState_controllerAccountCount, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.GenesisState.params":
+ return x.Params != nil
+ case "core.identity.GenesisState.dIDDocumentList":
+ return len(x.DIDDocumentList) != 0
+ case "core.identity.GenesisState.controllerAccountList":
+ return len(x.ControllerAccountList) != 0
+ case "core.identity.GenesisState.controllerAccountCount":
+ return x.ControllerAccountCount != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.identity.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.GenesisState.params":
+ x.Params = nil
+ case "core.identity.GenesisState.dIDDocumentList":
+ x.DIDDocumentList = nil
+ case "core.identity.GenesisState.controllerAccountList":
+ x.ControllerAccountList = nil
+ case "core.identity.GenesisState.controllerAccountCount":
+ x.ControllerAccountCount = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.identity.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "core.identity.GenesisState.dIDDocumentList":
+ if len(x.DIDDocumentList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_2_list{})
+ }
+ listValue := &_GenesisState_2_list{list: &x.DIDDocumentList}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.GenesisState.controllerAccountList":
+ if len(x.ControllerAccountList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_3_list{})
+ }
+ listValue := &_GenesisState_3_list{list: &x.ControllerAccountList}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.GenesisState.controllerAccountCount":
+ value := x.ControllerAccountCount
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.identity.GenesisState does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ case "core.identity.GenesisState.dIDDocumentList":
+ lv := value.List()
+ clv := lv.(*_GenesisState_2_list)
+ x.DIDDocumentList = *clv.list
+ case "core.identity.GenesisState.controllerAccountList":
+ lv := value.List()
+ clv := lv.(*_GenesisState_3_list)
+ x.ControllerAccountList = *clv.list
+ case "core.identity.GenesisState.controllerAccountCount":
+ x.ControllerAccountCount = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.identity.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.GenesisState.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "core.identity.GenesisState.dIDDocumentList":
+ if x.DIDDocumentList == nil {
+ x.DIDDocumentList = []*DIDDocument{}
+ }
+ value := &_GenesisState_2_list{list: &x.DIDDocumentList}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.GenesisState.controllerAccountList":
+ if x.ControllerAccountList == nil {
+ x.ControllerAccountList = []*ControllerAccount{}
+ }
+ value := &_GenesisState_3_list{list: &x.ControllerAccountList}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.GenesisState.controllerAccountCount":
+ panic(fmt.Errorf("field controllerAccountCount of message core.identity.GenesisState is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.identity.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "core.identity.GenesisState.dIDDocumentList":
+ list := []*DIDDocument{}
+ return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
+ case "core.identity.GenesisState.controllerAccountList":
+ list := []*ControllerAccount{}
+ return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list})
+ case "core.identity.GenesisState.controllerAccountCount":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.identity.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.GenesisState", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_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))
+ }
+ if len(x.DIDDocumentList) > 0 {
+ for _, e := range x.DIDDocumentList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.ControllerAccountList) > 0 {
+ for _, e := range x.ControllerAccountList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.ControllerAccountCount != 0 {
+ n += 1 + runtime.Sov(uint64(x.ControllerAccountCount))
+ }
+ 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)
+ }
+ if x.ControllerAccountCount != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.ControllerAccountCount))
+ i--
+ dAtA[i] = 0x20
+ }
+ if len(x.ControllerAccountList) > 0 {
+ for iNdEx := len(x.ControllerAccountList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.ControllerAccountList[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.DIDDocumentList) > 0 {
+ for iNdEx := len(x.DIDDocumentList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.DIDDocumentList[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if 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
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DIDDocumentList", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.DIDDocumentList = append(x.DIDDocumentList, &DIDDocument{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DIDDocumentList[len(x.DIDDocumentList)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ControllerAccountList", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.ControllerAccountList = append(x.ControllerAccountList, &ControllerAccount{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ControllerAccountList[len(x.ControllerAccountList)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ControllerAccountCount", wireType)
+ }
+ x.ControllerAccountCount = 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.ControllerAccountCount |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/identity/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the identity module's genesis state.
+type GenesisState struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+ DIDDocumentList []*DIDDocument `protobuf:"bytes,2,rep,name=dIDDocumentList,proto3" json:"dIDDocumentList,omitempty"`
+ ControllerAccountList []*ControllerAccount `protobuf:"bytes,3,rep,name=controllerAccountList,proto3" json:"controllerAccountList,omitempty"`
+ ControllerAccountCount uint64 `protobuf:"varint,4,opt,name=controllerAccountCount,proto3" json:"controllerAccountCount,omitempty"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_genesis_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GenesisState) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GenesisState) ProtoMessage() {}
+
+// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
+func (*GenesisState) Descriptor() ([]byte, []int) {
+ return file_core_identity_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+func (x *GenesisState) GetDIDDocumentList() []*DIDDocument {
+ if x != nil {
+ return x.DIDDocumentList
+ }
+ return nil
+}
+
+func (x *GenesisState) GetControllerAccountList() []*ControllerAccount {
+ if x != nil {
+ return x.ControllerAccountList
+ }
+ return nil
+}
+
+func (x *GenesisState) GetControllerAccountCount() uint64 {
+ if x != nil {
+ return x.ControllerAccountCount
+ }
+ return 0
+}
+
+var File_core_identity_genesis_proto protoreflect.FileDescriptor
+
+var file_core_identity_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x1b, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f,
+ 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63,
+ 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x1b, 0x63, 0x6f,
+ 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63, 0x6f,
+ 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x72, 0x65, 0x2f,
+ 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x64, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
+ 0x79, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 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, 0xa5, 0x02, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73,
+ 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65,
+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde,
+ 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4a, 0x0a, 0x0f, 0x64, 0x49,
+ 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0x2e, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x42,
+ 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x64, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65,
+ 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x5c, 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x18,
+ 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65,
+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
+ 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x63,
+ 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+ 0x4c, 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x16, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
+ 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x9c, 0x01, 0x0a,
+ 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
+ 0x74, 0x79, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f,
+ 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73,
+ 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f,
+ 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xa2, 0x02, 0x03, 0x43, 0x49, 0x58, 0xaa, 0x02,
+ 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xca, 0x02,
+ 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xe2, 0x02,
+ 0x19, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, 0x47,
+ 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x72,
+ 0x65, 0x3a, 0x3a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_identity_genesis_proto_rawDescOnce sync.Once
+ file_core_identity_genesis_proto_rawDescData = file_core_identity_genesis_proto_rawDesc
+)
+
+func file_core_identity_genesis_proto_rawDescGZIP() []byte {
+ file_core_identity_genesis_proto_rawDescOnce.Do(func() {
+ file_core_identity_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_identity_genesis_proto_rawDescData)
+ })
+ return file_core_identity_genesis_proto_rawDescData
+}
+
+var file_core_identity_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_core_identity_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: core.identity.GenesisState
+ (*Params)(nil), // 1: core.identity.Params
+ (*DIDDocument)(nil), // 2: core.identity.DIDDocument
+ (*ControllerAccount)(nil), // 3: core.identity.ControllerAccount
+}
+var file_core_identity_genesis_proto_depIdxs = []int32{
+ 1, // 0: core.identity.GenesisState.params:type_name -> core.identity.Params
+ 2, // 1: core.identity.GenesisState.dIDDocumentList:type_name -> core.identity.DIDDocument
+ 3, // 2: core.identity.GenesisState.controllerAccountList:type_name -> core.identity.ControllerAccount
+ 3, // [3:3] is the sub-list for method output_type
+ 3, // [3:3] is the sub-list for method input_type
+ 3, // [3:3] is the sub-list for extension type_name
+ 3, // [3:3] is the sub-list for extension extendee
+ 0, // [0:3] is the sub-list for field type_name
+}
+
+func init() { file_core_identity_genesis_proto_init() }
+func file_core_identity_genesis_proto_init() {
+ if File_core_identity_genesis_proto != nil {
+ return
+ }
+ file_core_identity_account_proto_init()
+ file_core_identity_did_proto_init()
+ file_core_identity_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_core_identity_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_identity_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_identity_genesis_proto_goTypes,
+ DependencyIndexes: file_core_identity_genesis_proto_depIdxs,
+ MessageInfos: file_core_identity_genesis_proto_msgTypes,
+ }.Build()
+ File_core_identity_genesis_proto = out.File
+ file_core_identity_genesis_proto_rawDesc = nil
+ file_core_identity_genesis_proto_goTypes = nil
+ file_core_identity_genesis_proto_depIdxs = nil
+}
diff --git a/api/core/identity/identifier.pulsar.go b/api/core/identity/identifier.pulsar.go
new file mode 100644
index 000000000..f7f60ebd7
--- /dev/null
+++ b/api/core/identity/identifier.pulsar.go
@@ -0,0 +1,1225 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package identity
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_UserIdentifier protoreflect.MessageDescriptor
+ fd_UserIdentifier_type protoreflect.FieldDescriptor
+ fd_UserIdentifier_identifier protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_identifier_proto_init()
+ md_UserIdentifier = File_core_identity_identifier_proto.Messages().ByName("UserIdentifier")
+ fd_UserIdentifier_type = md_UserIdentifier.Fields().ByName("type")
+ fd_UserIdentifier_identifier = md_UserIdentifier.Fields().ByName("identifier")
+}
+
+var _ protoreflect.Message = (*fastReflection_UserIdentifier)(nil)
+
+type fastReflection_UserIdentifier UserIdentifier
+
+func (x *UserIdentifier) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_UserIdentifier)(x)
+}
+
+func (x *UserIdentifier) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_identifier_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_UserIdentifier_messageType fastReflection_UserIdentifier_messageType
+var _ protoreflect.MessageType = fastReflection_UserIdentifier_messageType{}
+
+type fastReflection_UserIdentifier_messageType struct{}
+
+func (x fastReflection_UserIdentifier_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_UserIdentifier)(nil)
+}
+func (x fastReflection_UserIdentifier_messageType) New() protoreflect.Message {
+ return new(fastReflection_UserIdentifier)
+}
+func (x fastReflection_UserIdentifier_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_UserIdentifier
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_UserIdentifier) Descriptor() protoreflect.MessageDescriptor {
+ return md_UserIdentifier
+}
+
+// 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_UserIdentifier) Type() protoreflect.MessageType {
+ return _fastReflection_UserIdentifier_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_UserIdentifier) New() protoreflect.Message {
+ return new(fastReflection_UserIdentifier)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_UserIdentifier) Interface() protoreflect.ProtoMessage {
+ return (*UserIdentifier)(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_UserIdentifier) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Type_ != 0 {
+ value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Type_))
+ if !f(fd_UserIdentifier_type, value) {
+ return
+ }
+ }
+ if x.Identifier != "" {
+ value := protoreflect.ValueOfString(x.Identifier)
+ if !f(fd_UserIdentifier_identifier, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_UserIdentifier) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.UserIdentifier.type":
+ return x.Type_ != 0
+ case "core.identity.UserIdentifier.identifier":
+ return x.Identifier != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.UserIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.UserIdentifier does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_UserIdentifier) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.UserIdentifier.type":
+ x.Type_ = 0
+ case "core.identity.UserIdentifier.identifier":
+ x.Identifier = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.UserIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.UserIdentifier does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_UserIdentifier) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.UserIdentifier.type":
+ value := x.Type_
+ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
+ case "core.identity.UserIdentifier.identifier":
+ value := x.Identifier
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.UserIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.UserIdentifier does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_UserIdentifier) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.UserIdentifier.type":
+ x.Type_ = (UserIdentifierType)(value.Enum())
+ case "core.identity.UserIdentifier.identifier":
+ x.Identifier = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.UserIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.UserIdentifier does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_UserIdentifier) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.UserIdentifier.type":
+ panic(fmt.Errorf("field type of message core.identity.UserIdentifier is not mutable"))
+ case "core.identity.UserIdentifier.identifier":
+ panic(fmt.Errorf("field identifier of message core.identity.UserIdentifier is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.UserIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.UserIdentifier does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_UserIdentifier) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.UserIdentifier.type":
+ return protoreflect.ValueOfEnum(0)
+ case "core.identity.UserIdentifier.identifier":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.UserIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.UserIdentifier does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_UserIdentifier) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.UserIdentifier", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_UserIdentifier) 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_UserIdentifier) 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_UserIdentifier) 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_UserIdentifier) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*UserIdentifier)
+ 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.Type_ != 0 {
+ n += 1 + runtime.Sov(uint64(x.Type_))
+ }
+ l = len(x.Identifier)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*UserIdentifier)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Identifier) > 0 {
+ i -= len(x.Identifier)
+ copy(dAtA[i:], x.Identifier)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Identifier)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Type_ != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_))
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*UserIdentifier)
+ 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: UserIdentifier: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: UserIdentifier: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType)
+ }
+ x.Type_ = 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.Type_ |= UserIdentifierType(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Identifier", 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.Identifier = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_WalletIdentifier protoreflect.MessageDescriptor
+ fd_WalletIdentifier_chain_id protoreflect.FieldDescriptor
+ fd_WalletIdentifier_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_identifier_proto_init()
+ md_WalletIdentifier = File_core_identity_identifier_proto.Messages().ByName("WalletIdentifier")
+ fd_WalletIdentifier_chain_id = md_WalletIdentifier.Fields().ByName("chain_id")
+ fd_WalletIdentifier_address = md_WalletIdentifier.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_WalletIdentifier)(nil)
+
+type fastReflection_WalletIdentifier WalletIdentifier
+
+func (x *WalletIdentifier) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_WalletIdentifier)(x)
+}
+
+func (x *WalletIdentifier) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_identifier_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_WalletIdentifier_messageType fastReflection_WalletIdentifier_messageType
+var _ protoreflect.MessageType = fastReflection_WalletIdentifier_messageType{}
+
+type fastReflection_WalletIdentifier_messageType struct{}
+
+func (x fastReflection_WalletIdentifier_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_WalletIdentifier)(nil)
+}
+func (x fastReflection_WalletIdentifier_messageType) New() protoreflect.Message {
+ return new(fastReflection_WalletIdentifier)
+}
+func (x fastReflection_WalletIdentifier_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_WalletIdentifier
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_WalletIdentifier) Descriptor() protoreflect.MessageDescriptor {
+ return md_WalletIdentifier
+}
+
+// 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_WalletIdentifier) Type() protoreflect.MessageType {
+ return _fastReflection_WalletIdentifier_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_WalletIdentifier) New() protoreflect.Message {
+ return new(fastReflection_WalletIdentifier)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_WalletIdentifier) Interface() protoreflect.ProtoMessage {
+ return (*WalletIdentifier)(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_WalletIdentifier) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.ChainId != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.ChainId)
+ if !f(fd_WalletIdentifier_chain_id, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_WalletIdentifier_address, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_WalletIdentifier) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.WalletIdentifier.chain_id":
+ return x.ChainId != uint64(0)
+ case "core.identity.WalletIdentifier.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.WalletIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.WalletIdentifier does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_WalletIdentifier) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.WalletIdentifier.chain_id":
+ x.ChainId = uint64(0)
+ case "core.identity.WalletIdentifier.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.WalletIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.WalletIdentifier does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_WalletIdentifier) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.WalletIdentifier.chain_id":
+ value := x.ChainId
+ return protoreflect.ValueOfUint64(value)
+ case "core.identity.WalletIdentifier.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.WalletIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.WalletIdentifier does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_WalletIdentifier) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.WalletIdentifier.chain_id":
+ x.ChainId = value.Uint()
+ case "core.identity.WalletIdentifier.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.WalletIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.WalletIdentifier does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_WalletIdentifier) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.WalletIdentifier.chain_id":
+ panic(fmt.Errorf("field chain_id of message core.identity.WalletIdentifier is not mutable"))
+ case "core.identity.WalletIdentifier.address":
+ panic(fmt.Errorf("field address of message core.identity.WalletIdentifier is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.WalletIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.WalletIdentifier does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_WalletIdentifier) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.WalletIdentifier.chain_id":
+ return protoreflect.ValueOfUint64(uint64(0))
+ case "core.identity.WalletIdentifier.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.WalletIdentifier"))
+ }
+ panic(fmt.Errorf("message core.identity.WalletIdentifier does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_WalletIdentifier) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.WalletIdentifier", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_WalletIdentifier) 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_WalletIdentifier) 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_WalletIdentifier) 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_WalletIdentifier) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*WalletIdentifier)
+ 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.ChainId != 0 {
+ n += 1 + runtime.Sov(uint64(x.ChainId))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*WalletIdentifier)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.ChainId != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.ChainId))
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*WalletIdentifier)
+ 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: WalletIdentifier: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WalletIdentifier: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType)
+ }
+ x.ChainId = 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.ChainId |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/identity/identifier.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// UserIdentifierType defines the type of the user identifier\
+type UserIdentifierType int32
+
+const (
+ UserIdentifierType_NONE UserIdentifierType = 0
+ UserIdentifierType_EMAIL UserIdentifierType = 1
+ UserIdentifierType_PHONE UserIdentifierType = 2
+ UserIdentifierType_FIDO UserIdentifierType = 3
+ UserIdentifierType_PASSKEY UserIdentifierType = 4
+ UserIdentifierType_GPG UserIdentifierType = 5
+)
+
+// Enum value maps for UserIdentifierType.
+var (
+ UserIdentifierType_name = map[int32]string{
+ 0: "NONE",
+ 1: "EMAIL",
+ 2: "PHONE",
+ 3: "FIDO",
+ 4: "PASSKEY",
+ 5: "GPG",
+ }
+ UserIdentifierType_value = map[string]int32{
+ "NONE": 0,
+ "EMAIL": 1,
+ "PHONE": 2,
+ "FIDO": 3,
+ "PASSKEY": 4,
+ "GPG": 5,
+ }
+)
+
+func (x UserIdentifierType) Enum() *UserIdentifierType {
+ p := new(UserIdentifierType)
+ *p = x
+ return p
+}
+
+func (x UserIdentifierType) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (UserIdentifierType) Descriptor() protoreflect.EnumDescriptor {
+ return file_core_identity_identifier_proto_enumTypes[0].Descriptor()
+}
+
+func (UserIdentifierType) Type() protoreflect.EnumType {
+ return &file_core_identity_identifier_proto_enumTypes[0]
+}
+
+func (x UserIdentifierType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use UserIdentifierType.Descriptor instead.
+func (UserIdentifierType) EnumDescriptor() ([]byte, []int) {
+ return file_core_identity_identifier_proto_rawDescGZIP(), []int{0}
+}
+
+// UserIdentifier defines a user identifier
+type UserIdentifier struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Type_ UserIdentifierType `protobuf:"varint,1,opt,name=type,proto3,enum=core.identity.UserIdentifierType" json:"type,omitempty"`
+ Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
+}
+
+func (x *UserIdentifier) Reset() {
+ *x = UserIdentifier{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_identifier_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UserIdentifier) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UserIdentifier) ProtoMessage() {}
+
+// Deprecated: Use UserIdentifier.ProtoReflect.Descriptor instead.
+func (*UserIdentifier) Descriptor() ([]byte, []int) {
+ return file_core_identity_identifier_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *UserIdentifier) GetType_() UserIdentifierType {
+ if x != nil {
+ return x.Type_
+ }
+ return UserIdentifierType_NONE
+}
+
+func (x *UserIdentifier) GetIdentifier() string {
+ if x != nil {
+ return x.Identifier
+ }
+ return ""
+}
+
+// WalletIdentifier defines a wallet identifier
+type WalletIdentifier struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
+ Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
+}
+
+func (x *WalletIdentifier) Reset() {
+ *x = WalletIdentifier{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_identifier_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *WalletIdentifier) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*WalletIdentifier) ProtoMessage() {}
+
+// Deprecated: Use WalletIdentifier.ProtoReflect.Descriptor instead.
+func (*WalletIdentifier) Descriptor() ([]byte, []int) {
+ return file_core_identity_identifier_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *WalletIdentifier) GetChainId() uint64 {
+ if x != nil {
+ return x.ChainId
+ }
+ return 0
+}
+
+func (x *WalletIdentifier) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+var File_core_identity_identifier_proto protoreflect.FileDescriptor
+
+var file_core_identity_identifier_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f,
+ 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x0d, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22,
+ 0x67, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65,
+ 0x72, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
+ 0x21, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e,
+ 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x54, 0x79,
+ 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e,
+ 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x22, 0x47, 0x0a, 0x10, 0x57, 0x61, 0x6c, 0x6c,
+ 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08,
+ 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07,
+ 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x2a, 0x54, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66,
+ 0x69, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10,
+ 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
+ 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x49, 0x44, 0x4f, 0x10,
+ 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x41, 0x53, 0x53, 0x4b, 0x45, 0x59, 0x10, 0x04, 0x12, 0x07,
+ 0x0a, 0x03, 0x47, 0x50, 0x47, 0x10, 0x05, 0x42, 0x9f, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, 0x0f, 0x49,
+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e,
+ 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xa2, 0x02, 0x03, 0x43, 0x49, 0x58, 0xaa, 0x02, 0x0d, 0x43,
+ 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xca, 0x02, 0x0d, 0x43,
+ 0x6f, 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xe2, 0x02, 0x19, 0x43,
+ 0x6f, 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, 0x47, 0x50, 0x42,
+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x72, 0x65, 0x3a,
+ 0x3a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x33,
+}
+
+var (
+ file_core_identity_identifier_proto_rawDescOnce sync.Once
+ file_core_identity_identifier_proto_rawDescData = file_core_identity_identifier_proto_rawDesc
+)
+
+func file_core_identity_identifier_proto_rawDescGZIP() []byte {
+ file_core_identity_identifier_proto_rawDescOnce.Do(func() {
+ file_core_identity_identifier_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_identity_identifier_proto_rawDescData)
+ })
+ return file_core_identity_identifier_proto_rawDescData
+}
+
+var file_core_identity_identifier_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_core_identity_identifier_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_core_identity_identifier_proto_goTypes = []interface{}{
+ (UserIdentifierType)(0), // 0: core.identity.UserIdentifierType
+ (*UserIdentifier)(nil), // 1: core.identity.UserIdentifier
+ (*WalletIdentifier)(nil), // 2: core.identity.WalletIdentifier
+}
+var file_core_identity_identifier_proto_depIdxs = []int32{
+ 0, // 0: core.identity.UserIdentifier.type:type_name -> core.identity.UserIdentifierType
+ 1, // [1:1] is the sub-list for method output_type
+ 1, // [1:1] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_core_identity_identifier_proto_init() }
+func file_core_identity_identifier_proto_init() {
+ if File_core_identity_identifier_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_core_identity_identifier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UserIdentifier); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_identifier_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*WalletIdentifier); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_identity_identifier_proto_rawDesc,
+ NumEnums: 1,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_identity_identifier_proto_goTypes,
+ DependencyIndexes: file_core_identity_identifier_proto_depIdxs,
+ EnumInfos: file_core_identity_identifier_proto_enumTypes,
+ MessageInfos: file_core_identity_identifier_proto_msgTypes,
+ }.Build()
+ File_core_identity_identifier_proto = out.File
+ file_core_identity_identifier_proto_rawDesc = nil
+ file_core_identity_identifier_proto_goTypes = nil
+ file_core_identity_identifier_proto_depIdxs = nil
+}
diff --git a/api/core/identity/params.pulsar.go b/api/core/identity/params.pulsar.go
new file mode 100644
index 000000000..6820e6a0c
--- /dev/null
+++ b/api/core/identity/params.pulsar.go
@@ -0,0 +1,975 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package identity
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_Params_6_list)(nil)
+
+type _Params_6_list struct {
+ list *[]string
+}
+
+func (x *_Params_6_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_Params_6_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_Params_6_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_Params_6_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_Params_6_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message Params at list field SupportedDidMethods as it is not of Message kind"))
+}
+
+func (x *_Params_6_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_Params_6_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_Params_6_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_Params protoreflect.MessageDescriptor
+ fd_Params_account_did_method_name protoreflect.FieldDescriptor
+ fd_Params_account_did_method_context protoreflect.FieldDescriptor
+ fd_Params_acccount_discovery_reward protoreflect.FieldDescriptor
+ fd_Params_did_base_context protoreflect.FieldDescriptor
+ fd_Params_maximum_identity_aliases protoreflect.FieldDescriptor
+ fd_Params_supported_did_methods protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_params_proto_init()
+ md_Params = File_core_identity_params_proto.Messages().ByName("Params")
+ fd_Params_account_did_method_name = md_Params.Fields().ByName("account_did_method_name")
+ fd_Params_account_did_method_context = md_Params.Fields().ByName("account_did_method_context")
+ fd_Params_acccount_discovery_reward = md_Params.Fields().ByName("acccount_discovery_reward")
+ fd_Params_did_base_context = md_Params.Fields().ByName("did_base_context")
+ fd_Params_maximum_identity_aliases = md_Params.Fields().ByName("maximum_identity_aliases")
+ fd_Params_supported_did_methods = md_Params.Fields().ByName("supported_did_methods")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_params_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.AccountDidMethodName != "" {
+ value := protoreflect.ValueOfString(x.AccountDidMethodName)
+ if !f(fd_Params_account_did_method_name, value) {
+ return
+ }
+ }
+ if x.AccountDidMethodContext != "" {
+ value := protoreflect.ValueOfString(x.AccountDidMethodContext)
+ if !f(fd_Params_account_did_method_context, value) {
+ return
+ }
+ }
+ if x.AcccountDiscoveryReward != int64(0) {
+ value := protoreflect.ValueOfInt64(x.AcccountDiscoveryReward)
+ if !f(fd_Params_acccount_discovery_reward, value) {
+ return
+ }
+ }
+ if x.DidBaseContext != "" {
+ value := protoreflect.ValueOfString(x.DidBaseContext)
+ if !f(fd_Params_did_base_context, value) {
+ return
+ }
+ }
+ if x.MaximumIdentityAliases != int32(0) {
+ value := protoreflect.ValueOfInt32(x.MaximumIdentityAliases)
+ if !f(fd_Params_maximum_identity_aliases, value) {
+ return
+ }
+ }
+ if len(x.SupportedDidMethods) != 0 {
+ value := protoreflect.ValueOfList(&_Params_6_list{list: &x.SupportedDidMethods})
+ if !f(fd_Params_supported_did_methods, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.Params.account_did_method_name":
+ return x.AccountDidMethodName != ""
+ case "core.identity.Params.account_did_method_context":
+ return x.AccountDidMethodContext != ""
+ case "core.identity.Params.acccount_discovery_reward":
+ return x.AcccountDiscoveryReward != int64(0)
+ case "core.identity.Params.did_base_context":
+ return x.DidBaseContext != ""
+ case "core.identity.Params.maximum_identity_aliases":
+ return x.MaximumIdentityAliases != int32(0)
+ case "core.identity.Params.supported_did_methods":
+ return len(x.SupportedDidMethods) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Params"))
+ }
+ panic(fmt.Errorf("message core.identity.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.Params.account_did_method_name":
+ x.AccountDidMethodName = ""
+ case "core.identity.Params.account_did_method_context":
+ x.AccountDidMethodContext = ""
+ case "core.identity.Params.acccount_discovery_reward":
+ x.AcccountDiscoveryReward = int64(0)
+ case "core.identity.Params.did_base_context":
+ x.DidBaseContext = ""
+ case "core.identity.Params.maximum_identity_aliases":
+ x.MaximumIdentityAliases = int32(0)
+ case "core.identity.Params.supported_did_methods":
+ x.SupportedDidMethods = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Params"))
+ }
+ panic(fmt.Errorf("message core.identity.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.Params.account_did_method_name":
+ value := x.AccountDidMethodName
+ return protoreflect.ValueOfString(value)
+ case "core.identity.Params.account_did_method_context":
+ value := x.AccountDidMethodContext
+ return protoreflect.ValueOfString(value)
+ case "core.identity.Params.acccount_discovery_reward":
+ value := x.AcccountDiscoveryReward
+ return protoreflect.ValueOfInt64(value)
+ case "core.identity.Params.did_base_context":
+ value := x.DidBaseContext
+ return protoreflect.ValueOfString(value)
+ case "core.identity.Params.maximum_identity_aliases":
+ value := x.MaximumIdentityAliases
+ return protoreflect.ValueOfInt32(value)
+ case "core.identity.Params.supported_did_methods":
+ if len(x.SupportedDidMethods) == 0 {
+ return protoreflect.ValueOfList(&_Params_6_list{})
+ }
+ listValue := &_Params_6_list{list: &x.SupportedDidMethods}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Params"))
+ }
+ panic(fmt.Errorf("message core.identity.Params does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.Params.account_did_method_name":
+ x.AccountDidMethodName = value.Interface().(string)
+ case "core.identity.Params.account_did_method_context":
+ x.AccountDidMethodContext = value.Interface().(string)
+ case "core.identity.Params.acccount_discovery_reward":
+ x.AcccountDiscoveryReward = value.Int()
+ case "core.identity.Params.did_base_context":
+ x.DidBaseContext = value.Interface().(string)
+ case "core.identity.Params.maximum_identity_aliases":
+ x.MaximumIdentityAliases = int32(value.Int())
+ case "core.identity.Params.supported_did_methods":
+ lv := value.List()
+ clv := lv.(*_Params_6_list)
+ x.SupportedDidMethods = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Params"))
+ }
+ panic(fmt.Errorf("message core.identity.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.Params.supported_did_methods":
+ if x.SupportedDidMethods == nil {
+ x.SupportedDidMethods = []string{}
+ }
+ value := &_Params_6_list{list: &x.SupportedDidMethods}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.Params.account_did_method_name":
+ panic(fmt.Errorf("field account_did_method_name of message core.identity.Params is not mutable"))
+ case "core.identity.Params.account_did_method_context":
+ panic(fmt.Errorf("field account_did_method_context of message core.identity.Params is not mutable"))
+ case "core.identity.Params.acccount_discovery_reward":
+ panic(fmt.Errorf("field acccount_discovery_reward of message core.identity.Params is not mutable"))
+ case "core.identity.Params.did_base_context":
+ panic(fmt.Errorf("field did_base_context of message core.identity.Params is not mutable"))
+ case "core.identity.Params.maximum_identity_aliases":
+ panic(fmt.Errorf("field maximum_identity_aliases of message core.identity.Params is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Params"))
+ }
+ panic(fmt.Errorf("message core.identity.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.Params.account_did_method_name":
+ return protoreflect.ValueOfString("")
+ case "core.identity.Params.account_did_method_context":
+ return protoreflect.ValueOfString("")
+ case "core.identity.Params.acccount_discovery_reward":
+ return protoreflect.ValueOfInt64(int64(0))
+ case "core.identity.Params.did_base_context":
+ return protoreflect.ValueOfString("")
+ case "core.identity.Params.maximum_identity_aliases":
+ return protoreflect.ValueOfInt32(int32(0))
+ case "core.identity.Params.supported_did_methods":
+ list := []string{}
+ return protoreflect.ValueOfList(&_Params_6_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Params"))
+ }
+ panic(fmt.Errorf("message core.identity.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.Params", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.AccountDidMethodName)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.AccountDidMethodContext)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.AcccountDiscoveryReward != 0 {
+ n += 1 + runtime.Sov(uint64(x.AcccountDiscoveryReward))
+ }
+ l = len(x.DidBaseContext)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.MaximumIdentityAliases != 0 {
+ n += 1 + runtime.Sov(uint64(x.MaximumIdentityAliases))
+ }
+ if len(x.SupportedDidMethods) > 0 {
+ for _, s := range x.SupportedDidMethods {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.SupportedDidMethods) > 0 {
+ for iNdEx := len(x.SupportedDidMethods) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.SupportedDidMethods[iNdEx])
+ copy(dAtA[i:], x.SupportedDidMethods[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupportedDidMethods[iNdEx])))
+ i--
+ dAtA[i] = 0x32
+ }
+ }
+ if x.MaximumIdentityAliases != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.MaximumIdentityAliases))
+ i--
+ dAtA[i] = 0x28
+ }
+ if len(x.DidBaseContext) > 0 {
+ i -= len(x.DidBaseContext)
+ copy(dAtA[i:], x.DidBaseContext)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DidBaseContext)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if x.AcccountDiscoveryReward != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.AcccountDiscoveryReward))
+ i--
+ dAtA[i] = 0x18
+ }
+ if len(x.AccountDidMethodContext) > 0 {
+ i -= len(x.AccountDidMethodContext)
+ copy(dAtA[i:], x.AccountDidMethodContext)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AccountDidMethodContext)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.AccountDidMethodName) > 0 {
+ i -= len(x.AccountDidMethodName)
+ copy(dAtA[i:], x.AccountDidMethodName)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AccountDidMethodName)))
+ 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().(*Params)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AccountDidMethodName", 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.AccountDidMethodName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AccountDidMethodContext", 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.AccountDidMethodContext = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AcccountDiscoveryReward", wireType)
+ }
+ x.AcccountDiscoveryReward = 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.AcccountDiscoveryReward |= int64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DidBaseContext", 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.DidBaseContext = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaximumIdentityAliases", wireType)
+ }
+ x.MaximumIdentityAliases = 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.MaximumIdentityAliases |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 6:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupportedDidMethods", 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.SupportedDidMethods = append(x.SupportedDidMethods, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/identity/params.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Params defines the parameters for the module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AccountDidMethodName string `protobuf:"bytes,1,opt,name=account_did_method_name,json=accountDidMethodName,proto3" json:"account_did_method_name,omitempty"`
+ AccountDidMethodContext string `protobuf:"bytes,2,opt,name=account_did_method_context,json=accountDidMethodContext,proto3" json:"account_did_method_context,omitempty"`
+ AcccountDiscoveryReward int64 `protobuf:"varint,3,opt,name=acccount_discovery_reward,json=acccountDiscoveryReward,proto3" json:"acccount_discovery_reward,omitempty"`
+ DidBaseContext string `protobuf:"bytes,4,opt,name=did_base_context,json=didBaseContext,proto3" json:"did_base_context,omitempty"`
+ MaximumIdentityAliases int32 `protobuf:"varint,5,opt,name=maximum_identity_aliases,json=maximumIdentityAliases,proto3" json:"maximum_identity_aliases,omitempty"`
+ SupportedDidMethods []string `protobuf:"bytes,6,rep,name=supported_did_methods,json=supportedDidMethods,proto3" json:"supported_did_methods,omitempty"`
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_core_identity_params_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Params) GetAccountDidMethodName() string {
+ if x != nil {
+ return x.AccountDidMethodName
+ }
+ return ""
+}
+
+func (x *Params) GetAccountDidMethodContext() string {
+ if x != nil {
+ return x.AccountDidMethodContext
+ }
+ return ""
+}
+
+func (x *Params) GetAcccountDiscoveryReward() int64 {
+ if x != nil {
+ return x.AcccountDiscoveryReward
+ }
+ return 0
+}
+
+func (x *Params) GetDidBaseContext() string {
+ if x != nil {
+ return x.DidBaseContext
+ }
+ return ""
+}
+
+func (x *Params) GetMaximumIdentityAliases() int32 {
+ if x != nil {
+ return x.MaximumIdentityAliases
+ }
+ return 0
+}
+
+func (x *Params) GetSupportedDidMethods() []string {
+ if x != nil {
+ return x.SupportedDidMethods
+ }
+ return nil
+}
+
+var File_core_identity_params_proto protoreflect.FileDescriptor
+
+var file_core_identity_params_proto_rawDesc = []byte{
+ 0x0a, 0x1a, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f,
+ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f,
+ 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x14, 0x67, 0x6f, 0x67,
+ 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x22, 0xd6, 0x02, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x35, 0x0a, 0x17,
+ 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x68,
+ 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x61,
+ 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4e,
+ 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x1a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64,
+ 0x69, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,
+ 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+ 0x44, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
+ 0x12, 0x3a, 0x0a, 0x19, 0x61, 0x63, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x73,
+ 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x17, 0x61, 0x63, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x69, 0x73,
+ 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x28, 0x0a, 0x10,
+ 0x64, 0x69, 0x64, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x69, 0x64, 0x42, 0x61, 0x73, 0x65, 0x43,
+ 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x38, 0x0a, 0x18, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75,
+ 0x6d, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73,
+ 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75,
+ 0x6d, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73,
+ 0x12, 0x32, 0x0a, 0x15, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x69,
+ 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52,
+ 0x13, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x44, 0x69, 0x64, 0x4d, 0x65, 0x74,
+ 0x68, 0x6f, 0x64, 0x73, 0x3a, 0x04, 0x98, 0xa0, 0x1f, 0x00, 0x42, 0x9b, 0x01, 0x0a, 0x11, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
+ 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
+ 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72,
+ 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65,
+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0xa2, 0x02, 0x03, 0x43, 0x49, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f,
+ 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xca, 0x02, 0x0d, 0x43, 0x6f,
+ 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xe2, 0x02, 0x19, 0x43, 0x6f,
+ 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a,
+ 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_identity_params_proto_rawDescOnce sync.Once
+ file_core_identity_params_proto_rawDescData = file_core_identity_params_proto_rawDesc
+)
+
+func file_core_identity_params_proto_rawDescGZIP() []byte {
+ file_core_identity_params_proto_rawDescOnce.Do(func() {
+ file_core_identity_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_identity_params_proto_rawDescData)
+ })
+ return file_core_identity_params_proto_rawDescData
+}
+
+var file_core_identity_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_core_identity_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: core.identity.Params
+}
+var file_core_identity_params_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_core_identity_params_proto_init() }
+func file_core_identity_params_proto_init() {
+ if File_core_identity_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_core_identity_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_identity_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_identity_params_proto_goTypes,
+ DependencyIndexes: file_core_identity_params_proto_depIdxs,
+ MessageInfos: file_core_identity_params_proto_msgTypes,
+ }.Build()
+ File_core_identity_params_proto = out.File
+ file_core_identity_params_proto_rawDesc = nil
+ file_core_identity_params_proto_goTypes = nil
+ file_core_identity_params_proto_depIdxs = nil
+}
diff --git a/api/core/identity/query.pulsar.go b/api/core/identity/query.pulsar.go
new file mode 100644
index 000000000..40a76dc48
--- /dev/null
+++ b/api/core/identity/query.pulsar.go
@@ -0,0 +1,8262 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package identity
+
+import (
+ v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/gogoproto"
+ _ "github.com/sonr-io/api/google/api"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryParamsRequest = File_core_identity_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryParamsRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryParamsRequest) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryParamsResponse = File_core_identity_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_QueryParamsResponse_params, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryParamsResponse.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryParamsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryParamsResponse) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Params != nil {
+ encoded, err := options.Marshal(x.Params)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Params == nil {
+ x.Params = &Params{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetDIDDocumentRequest protoreflect.MessageDescriptor
+ fd_QueryGetDIDDocumentRequest_did protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryGetDIDDocumentRequest = File_core_identity_query_proto.Messages().ByName("QueryGetDIDDocumentRequest")
+ fd_QueryGetDIDDocumentRequest_did = md_QueryGetDIDDocumentRequest.Fields().ByName("did")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetDIDDocumentRequest)(nil)
+
+type fastReflection_QueryGetDIDDocumentRequest QueryGetDIDDocumentRequest
+
+func (x *QueryGetDIDDocumentRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetDIDDocumentRequest)(x)
+}
+
+func (x *QueryGetDIDDocumentRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetDIDDocumentRequest_messageType fastReflection_QueryGetDIDDocumentRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetDIDDocumentRequest_messageType{}
+
+type fastReflection_QueryGetDIDDocumentRequest_messageType struct{}
+
+func (x fastReflection_QueryGetDIDDocumentRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetDIDDocumentRequest)(nil)
+}
+func (x fastReflection_QueryGetDIDDocumentRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetDIDDocumentRequest)
+}
+func (x fastReflection_QueryGetDIDDocumentRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetDIDDocumentRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetDIDDocumentRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetDIDDocumentRequest
+}
+
+// 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_QueryGetDIDDocumentRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetDIDDocumentRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetDIDDocumentRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetDIDDocumentRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetDIDDocumentRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetDIDDocumentRequest)(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_QueryGetDIDDocumentRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Did != "" {
+ value := protoreflect.ValueOfString(x.Did)
+ if !f(fd_QueryGetDIDDocumentRequest_did, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetDIDDocumentRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryGetDIDDocumentRequest.did":
+ return x.Did != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetDIDDocumentRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryGetDIDDocumentRequest.did":
+ x.Did = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryGetDIDDocumentRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryGetDIDDocumentRequest.did":
+ value := x.Did
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetDIDDocumentRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryGetDIDDocumentRequest.did":
+ x.Did = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetDIDDocumentRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryGetDIDDocumentRequest.did":
+ panic(fmt.Errorf("field did of message core.identity.QueryGetDIDDocumentRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetDIDDocumentRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryGetDIDDocumentRequest.did":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetDIDDocumentRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryGetDIDDocumentRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryGetDIDDocumentRequest) 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_QueryGetDIDDocumentRequest) 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_QueryGetDIDDocumentRequest) 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_QueryGetDIDDocumentRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetDIDDocumentRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Did)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetDIDDocumentRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Did) > 0 {
+ i -= len(x.Did)
+ copy(dAtA[i:], x.Did)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetDIDDocumentRequest)
+ 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: QueryGetDIDDocumentRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDIDDocumentRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Did = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetDIDDocumentResponse protoreflect.MessageDescriptor
+ fd_QueryGetDIDDocumentResponse_dIDDocument protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryGetDIDDocumentResponse = File_core_identity_query_proto.Messages().ByName("QueryGetDIDDocumentResponse")
+ fd_QueryGetDIDDocumentResponse_dIDDocument = md_QueryGetDIDDocumentResponse.Fields().ByName("dIDDocument")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetDIDDocumentResponse)(nil)
+
+type fastReflection_QueryGetDIDDocumentResponse QueryGetDIDDocumentResponse
+
+func (x *QueryGetDIDDocumentResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetDIDDocumentResponse)(x)
+}
+
+func (x *QueryGetDIDDocumentResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetDIDDocumentResponse_messageType fastReflection_QueryGetDIDDocumentResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetDIDDocumentResponse_messageType{}
+
+type fastReflection_QueryGetDIDDocumentResponse_messageType struct{}
+
+func (x fastReflection_QueryGetDIDDocumentResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetDIDDocumentResponse)(nil)
+}
+func (x fastReflection_QueryGetDIDDocumentResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetDIDDocumentResponse)
+}
+func (x fastReflection_QueryGetDIDDocumentResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetDIDDocumentResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetDIDDocumentResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetDIDDocumentResponse
+}
+
+// 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_QueryGetDIDDocumentResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetDIDDocumentResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetDIDDocumentResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetDIDDocumentResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetDIDDocumentResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetDIDDocumentResponse)(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_QueryGetDIDDocumentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.DIDDocument != nil {
+ value := protoreflect.ValueOfMessage(x.DIDDocument.ProtoReflect())
+ if !f(fd_QueryGetDIDDocumentResponse_dIDDocument, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetDIDDocumentResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryGetDIDDocumentResponse.dIDDocument":
+ return x.DIDDocument != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetDIDDocumentResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryGetDIDDocumentResponse.dIDDocument":
+ x.DIDDocument = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryGetDIDDocumentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryGetDIDDocumentResponse.dIDDocument":
+ value := x.DIDDocument
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetDIDDocumentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryGetDIDDocumentResponse.dIDDocument":
+ x.DIDDocument = value.Message().Interface().(*DIDDocument)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetDIDDocumentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryGetDIDDocumentResponse.dIDDocument":
+ if x.DIDDocument == nil {
+ x.DIDDocument = new(DIDDocument)
+ }
+ return protoreflect.ValueOfMessage(x.DIDDocument.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetDIDDocumentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryGetDIDDocumentResponse.dIDDocument":
+ m := new(DIDDocument)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetDIDDocumentResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetDIDDocumentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryGetDIDDocumentResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryGetDIDDocumentResponse) 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_QueryGetDIDDocumentResponse) 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_QueryGetDIDDocumentResponse) 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_QueryGetDIDDocumentResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetDIDDocumentResponse)
+ 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.DIDDocument != nil {
+ l = options.Size(x.DIDDocument)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetDIDDocumentResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.DIDDocument != nil {
+ encoded, err := options.Marshal(x.DIDDocument)
+ 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().(*QueryGetDIDDocumentResponse)
+ 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: QueryGetDIDDocumentResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDIDDocumentResponse: 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 DIDDocument", 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.DIDDocument == nil {
+ x.DIDDocument = &DIDDocument{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DIDDocument); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryAllDIDDocumentRequest protoreflect.MessageDescriptor
+ fd_QueryAllDIDDocumentRequest_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryAllDIDDocumentRequest = File_core_identity_query_proto.Messages().ByName("QueryAllDIDDocumentRequest")
+ fd_QueryAllDIDDocumentRequest_pagination = md_QueryAllDIDDocumentRequest.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllDIDDocumentRequest)(nil)
+
+type fastReflection_QueryAllDIDDocumentRequest QueryAllDIDDocumentRequest
+
+func (x *QueryAllDIDDocumentRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllDIDDocumentRequest)(x)
+}
+
+func (x *QueryAllDIDDocumentRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllDIDDocumentRequest_messageType fastReflection_QueryAllDIDDocumentRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllDIDDocumentRequest_messageType{}
+
+type fastReflection_QueryAllDIDDocumentRequest_messageType struct{}
+
+func (x fastReflection_QueryAllDIDDocumentRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllDIDDocumentRequest)(nil)
+}
+func (x fastReflection_QueryAllDIDDocumentRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllDIDDocumentRequest)
+}
+func (x fastReflection_QueryAllDIDDocumentRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllDIDDocumentRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllDIDDocumentRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllDIDDocumentRequest
+}
+
+// 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_QueryAllDIDDocumentRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllDIDDocumentRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllDIDDocumentRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllDIDDocumentRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllDIDDocumentRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllDIDDocumentRequest)(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_QueryAllDIDDocumentRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllDIDDocumentRequest_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllDIDDocumentRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryAllDIDDocumentRequest.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllDIDDocumentRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryAllDIDDocumentRequest.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAllDIDDocumentRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryAllDIDDocumentRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllDIDDocumentRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryAllDIDDocumentRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllDIDDocumentRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAllDIDDocumentRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllDIDDocumentRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAllDIDDocumentRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllDIDDocumentRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryAllDIDDocumentRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAllDIDDocumentRequest) 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_QueryAllDIDDocumentRequest) 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_QueryAllDIDDocumentRequest) 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_QueryAllDIDDocumentRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllDIDDocumentRequest)
+ 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.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllDIDDocumentRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 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().(*QueryAllDIDDocumentRequest)
+ 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: QueryAllDIDDocumentRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllDIDDocumentRequest: 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 Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_QueryAllDIDDocumentResponse_1_list)(nil)
+
+type _QueryAllDIDDocumentResponse_1_list struct {
+ list *[]*DIDDocument
+}
+
+func (x *_QueryAllDIDDocumentResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllDIDDocumentResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllDIDDocumentResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*DIDDocument)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllDIDDocumentResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*DIDDocument)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllDIDDocumentResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(DIDDocument)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllDIDDocumentResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllDIDDocumentResponse_1_list) NewElement() protoreflect.Value {
+ v := new(DIDDocument)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllDIDDocumentResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllDIDDocumentResponse protoreflect.MessageDescriptor
+ fd_QueryAllDIDDocumentResponse_dIDDocument protoreflect.FieldDescriptor
+ fd_QueryAllDIDDocumentResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryAllDIDDocumentResponse = File_core_identity_query_proto.Messages().ByName("QueryAllDIDDocumentResponse")
+ fd_QueryAllDIDDocumentResponse_dIDDocument = md_QueryAllDIDDocumentResponse.Fields().ByName("dIDDocument")
+ fd_QueryAllDIDDocumentResponse_pagination = md_QueryAllDIDDocumentResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllDIDDocumentResponse)(nil)
+
+type fastReflection_QueryAllDIDDocumentResponse QueryAllDIDDocumentResponse
+
+func (x *QueryAllDIDDocumentResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllDIDDocumentResponse)(x)
+}
+
+func (x *QueryAllDIDDocumentResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllDIDDocumentResponse_messageType fastReflection_QueryAllDIDDocumentResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllDIDDocumentResponse_messageType{}
+
+type fastReflection_QueryAllDIDDocumentResponse_messageType struct{}
+
+func (x fastReflection_QueryAllDIDDocumentResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllDIDDocumentResponse)(nil)
+}
+func (x fastReflection_QueryAllDIDDocumentResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllDIDDocumentResponse)
+}
+func (x fastReflection_QueryAllDIDDocumentResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllDIDDocumentResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllDIDDocumentResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllDIDDocumentResponse
+}
+
+// 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_QueryAllDIDDocumentResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllDIDDocumentResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllDIDDocumentResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllDIDDocumentResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllDIDDocumentResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllDIDDocumentResponse)(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_QueryAllDIDDocumentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.DIDDocument) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllDIDDocumentResponse_1_list{list: &x.DIDDocument})
+ if !f(fd_QueryAllDIDDocumentResponse_dIDDocument, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllDIDDocumentResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllDIDDocumentResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryAllDIDDocumentResponse.dIDDocument":
+ return len(x.DIDDocument) != 0
+ case "core.identity.QueryAllDIDDocumentResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllDIDDocumentResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryAllDIDDocumentResponse.dIDDocument":
+ x.DIDDocument = nil
+ case "core.identity.QueryAllDIDDocumentResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAllDIDDocumentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryAllDIDDocumentResponse.dIDDocument":
+ if len(x.DIDDocument) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllDIDDocumentResponse_1_list{})
+ }
+ listValue := &_QueryAllDIDDocumentResponse_1_list{list: &x.DIDDocument}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.QueryAllDIDDocumentResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllDIDDocumentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryAllDIDDocumentResponse.dIDDocument":
+ lv := value.List()
+ clv := lv.(*_QueryAllDIDDocumentResponse_1_list)
+ x.DIDDocument = *clv.list
+ case "core.identity.QueryAllDIDDocumentResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllDIDDocumentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAllDIDDocumentResponse.dIDDocument":
+ if x.DIDDocument == nil {
+ x.DIDDocument = []*DIDDocument{}
+ }
+ value := &_QueryAllDIDDocumentResponse_1_list{list: &x.DIDDocument}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.QueryAllDIDDocumentResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllDIDDocumentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAllDIDDocumentResponse.dIDDocument":
+ list := []*DIDDocument{}
+ return protoreflect.ValueOfList(&_QueryAllDIDDocumentResponse_1_list{list: &list})
+ case "core.identity.QueryAllDIDDocumentResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllDIDDocumentResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllDIDDocumentResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllDIDDocumentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryAllDIDDocumentResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAllDIDDocumentResponse) 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_QueryAllDIDDocumentResponse) 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_QueryAllDIDDocumentResponse) 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_QueryAllDIDDocumentResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllDIDDocumentResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if len(x.DIDDocument) > 0 {
+ for _, e := range x.DIDDocument {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllDIDDocumentResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.DIDDocument) > 0 {
+ for iNdEx := len(x.DIDDocument) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.DIDDocument[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllDIDDocumentResponse)
+ 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: QueryAllDIDDocumentResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllDIDDocumentResponse: 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 DIDDocument", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.DIDDocument = append(x.DIDDocument, &DIDDocument{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DIDDocument[len(x.DIDDocument)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryDidByAlsoKnownAsRequest protoreflect.MessageDescriptor
+ fd_QueryDidByAlsoKnownAsRequest_alias protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryDidByAlsoKnownAsRequest = File_core_identity_query_proto.Messages().ByName("QueryDidByAlsoKnownAsRequest")
+ fd_QueryDidByAlsoKnownAsRequest_alias = md_QueryDidByAlsoKnownAsRequest.Fields().ByName("alias")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryDidByAlsoKnownAsRequest)(nil)
+
+type fastReflection_QueryDidByAlsoKnownAsRequest QueryDidByAlsoKnownAsRequest
+
+func (x *QueryDidByAlsoKnownAsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryDidByAlsoKnownAsRequest)(x)
+}
+
+func (x *QueryDidByAlsoKnownAsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryDidByAlsoKnownAsRequest_messageType fastReflection_QueryDidByAlsoKnownAsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryDidByAlsoKnownAsRequest_messageType{}
+
+type fastReflection_QueryDidByAlsoKnownAsRequest_messageType struct{}
+
+func (x fastReflection_QueryDidByAlsoKnownAsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryDidByAlsoKnownAsRequest)(nil)
+}
+func (x fastReflection_QueryDidByAlsoKnownAsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryDidByAlsoKnownAsRequest)
+}
+func (x fastReflection_QueryDidByAlsoKnownAsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryDidByAlsoKnownAsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryDidByAlsoKnownAsRequest
+}
+
+// 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_QueryDidByAlsoKnownAsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryDidByAlsoKnownAsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryDidByAlsoKnownAsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryDidByAlsoKnownAsRequest)(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_QueryDidByAlsoKnownAsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Alias != "" {
+ value := protoreflect.ValueOfString(x.Alias)
+ if !f(fd_QueryDidByAlsoKnownAsRequest_alias, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsRequest.alias":
+ return x.Alias != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsRequest.alias":
+ x.Alias = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsRequest.alias":
+ value := x.Alias
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsRequest.alias":
+ x.Alias = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsRequest.alias":
+ panic(fmt.Errorf("field alias of message core.identity.QueryDidByAlsoKnownAsRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsRequest.alias":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryDidByAlsoKnownAsRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryDidByAlsoKnownAsRequest) 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_QueryDidByAlsoKnownAsRequest) 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_QueryDidByAlsoKnownAsRequest) 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_QueryDidByAlsoKnownAsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryDidByAlsoKnownAsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Alias)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryDidByAlsoKnownAsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Alias) > 0 {
+ i -= len(x.Alias)
+ copy(dAtA[i:], x.Alias)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Alias)))
+ 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().(*QueryDidByAlsoKnownAsRequest)
+ 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: QueryDidByAlsoKnownAsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDidByAlsoKnownAsRequest: 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 Alias", 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.Alias = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryDidByAlsoKnownAsResponse protoreflect.MessageDescriptor
+ fd_QueryDidByAlsoKnownAsResponse_didDocument protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryDidByAlsoKnownAsResponse = File_core_identity_query_proto.Messages().ByName("QueryDidByAlsoKnownAsResponse")
+ fd_QueryDidByAlsoKnownAsResponse_didDocument = md_QueryDidByAlsoKnownAsResponse.Fields().ByName("didDocument")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryDidByAlsoKnownAsResponse)(nil)
+
+type fastReflection_QueryDidByAlsoKnownAsResponse QueryDidByAlsoKnownAsResponse
+
+func (x *QueryDidByAlsoKnownAsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryDidByAlsoKnownAsResponse)(x)
+}
+
+func (x *QueryDidByAlsoKnownAsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryDidByAlsoKnownAsResponse_messageType fastReflection_QueryDidByAlsoKnownAsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryDidByAlsoKnownAsResponse_messageType{}
+
+type fastReflection_QueryDidByAlsoKnownAsResponse_messageType struct{}
+
+func (x fastReflection_QueryDidByAlsoKnownAsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryDidByAlsoKnownAsResponse)(nil)
+}
+func (x fastReflection_QueryDidByAlsoKnownAsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryDidByAlsoKnownAsResponse)
+}
+func (x fastReflection_QueryDidByAlsoKnownAsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryDidByAlsoKnownAsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryDidByAlsoKnownAsResponse
+}
+
+// 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_QueryDidByAlsoKnownAsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryDidByAlsoKnownAsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryDidByAlsoKnownAsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryDidByAlsoKnownAsResponse)(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_QueryDidByAlsoKnownAsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.DidDocument != nil {
+ value := protoreflect.ValueOfMessage(x.DidDocument.ProtoReflect())
+ if !f(fd_QueryDidByAlsoKnownAsResponse_didDocument, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsResponse.didDocument":
+ return x.DidDocument != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsResponse.didDocument":
+ x.DidDocument = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsResponse.didDocument":
+ value := x.DidDocument
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsResponse.didDocument":
+ x.DidDocument = value.Message().Interface().(*DIDDocument)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsResponse.didDocument":
+ if x.DidDocument == nil {
+ x.DidDocument = new(DIDDocument)
+ }
+ return protoreflect.ValueOfMessage(x.DidDocument.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByAlsoKnownAsResponse.didDocument":
+ m := new(DIDDocument)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByAlsoKnownAsResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByAlsoKnownAsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryDidByAlsoKnownAsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryDidByAlsoKnownAsResponse) 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_QueryDidByAlsoKnownAsResponse) 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_QueryDidByAlsoKnownAsResponse) 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_QueryDidByAlsoKnownAsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryDidByAlsoKnownAsResponse)
+ 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.DidDocument != nil {
+ l = options.Size(x.DidDocument)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryDidByAlsoKnownAsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.DidDocument != nil {
+ encoded, err := options.Marshal(x.DidDocument)
+ 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().(*QueryDidByAlsoKnownAsResponse)
+ 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: QueryDidByAlsoKnownAsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDidByAlsoKnownAsResponse: 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 DidDocument", 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.DidDocument == nil {
+ x.DidDocument = &DIDDocument{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DidDocument); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryAliasAvailableRequest protoreflect.MessageDescriptor
+ fd_QueryAliasAvailableRequest_alias protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryAliasAvailableRequest = File_core_identity_query_proto.Messages().ByName("QueryAliasAvailableRequest")
+ fd_QueryAliasAvailableRequest_alias = md_QueryAliasAvailableRequest.Fields().ByName("alias")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAliasAvailableRequest)(nil)
+
+type fastReflection_QueryAliasAvailableRequest QueryAliasAvailableRequest
+
+func (x *QueryAliasAvailableRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAliasAvailableRequest)(x)
+}
+
+func (x *QueryAliasAvailableRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAliasAvailableRequest_messageType fastReflection_QueryAliasAvailableRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAliasAvailableRequest_messageType{}
+
+type fastReflection_QueryAliasAvailableRequest_messageType struct{}
+
+func (x fastReflection_QueryAliasAvailableRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAliasAvailableRequest)(nil)
+}
+func (x fastReflection_QueryAliasAvailableRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAliasAvailableRequest)
+}
+func (x fastReflection_QueryAliasAvailableRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAliasAvailableRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAliasAvailableRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAliasAvailableRequest
+}
+
+// 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_QueryAliasAvailableRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAliasAvailableRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAliasAvailableRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAliasAvailableRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAliasAvailableRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAliasAvailableRequest)(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_QueryAliasAvailableRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Alias != "" {
+ value := protoreflect.ValueOfString(x.Alias)
+ if !f(fd_QueryAliasAvailableRequest_alias, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAliasAvailableRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryAliasAvailableRequest.alias":
+ return x.Alias != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAliasAvailableRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryAliasAvailableRequest.alias":
+ x.Alias = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAliasAvailableRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryAliasAvailableRequest.alias":
+ value := x.Alias
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAliasAvailableRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryAliasAvailableRequest.alias":
+ x.Alias = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAliasAvailableRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAliasAvailableRequest.alias":
+ panic(fmt.Errorf("field alias of message core.identity.QueryAliasAvailableRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAliasAvailableRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAliasAvailableRequest.alias":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAliasAvailableRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryAliasAvailableRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAliasAvailableRequest) 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_QueryAliasAvailableRequest) 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_QueryAliasAvailableRequest) 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_QueryAliasAvailableRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAliasAvailableRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Alias)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAliasAvailableRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Alias) > 0 {
+ i -= len(x.Alias)
+ copy(dAtA[i:], x.Alias)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Alias)))
+ 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().(*QueryAliasAvailableRequest)
+ 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: QueryAliasAvailableRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAliasAvailableRequest: 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 Alias", 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.Alias = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryAliasAvailableResponse protoreflect.MessageDescriptor
+ fd_QueryAliasAvailableResponse_available protoreflect.FieldDescriptor
+ fd_QueryAliasAvailableResponse_existing_document protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryAliasAvailableResponse = File_core_identity_query_proto.Messages().ByName("QueryAliasAvailableResponse")
+ fd_QueryAliasAvailableResponse_available = md_QueryAliasAvailableResponse.Fields().ByName("available")
+ fd_QueryAliasAvailableResponse_existing_document = md_QueryAliasAvailableResponse.Fields().ByName("existing_document")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAliasAvailableResponse)(nil)
+
+type fastReflection_QueryAliasAvailableResponse QueryAliasAvailableResponse
+
+func (x *QueryAliasAvailableResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAliasAvailableResponse)(x)
+}
+
+func (x *QueryAliasAvailableResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAliasAvailableResponse_messageType fastReflection_QueryAliasAvailableResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAliasAvailableResponse_messageType{}
+
+type fastReflection_QueryAliasAvailableResponse_messageType struct{}
+
+func (x fastReflection_QueryAliasAvailableResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAliasAvailableResponse)(nil)
+}
+func (x fastReflection_QueryAliasAvailableResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAliasAvailableResponse)
+}
+func (x fastReflection_QueryAliasAvailableResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAliasAvailableResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAliasAvailableResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAliasAvailableResponse
+}
+
+// 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_QueryAliasAvailableResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAliasAvailableResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAliasAvailableResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAliasAvailableResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAliasAvailableResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAliasAvailableResponse)(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_QueryAliasAvailableResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Available != false {
+ value := protoreflect.ValueOfBool(x.Available)
+ if !f(fd_QueryAliasAvailableResponse_available, value) {
+ return
+ }
+ }
+ if x.ExistingDocument != nil {
+ value := protoreflect.ValueOfMessage(x.ExistingDocument.ProtoReflect())
+ if !f(fd_QueryAliasAvailableResponse_existing_document, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAliasAvailableResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryAliasAvailableResponse.available":
+ return x.Available != false
+ case "core.identity.QueryAliasAvailableResponse.existing_document":
+ return x.ExistingDocument != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAliasAvailableResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryAliasAvailableResponse.available":
+ x.Available = false
+ case "core.identity.QueryAliasAvailableResponse.existing_document":
+ x.ExistingDocument = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAliasAvailableResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryAliasAvailableResponse.available":
+ value := x.Available
+ return protoreflect.ValueOfBool(value)
+ case "core.identity.QueryAliasAvailableResponse.existing_document":
+ value := x.ExistingDocument
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAliasAvailableResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryAliasAvailableResponse.available":
+ x.Available = value.Bool()
+ case "core.identity.QueryAliasAvailableResponse.existing_document":
+ x.ExistingDocument = value.Message().Interface().(*DIDDocument)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAliasAvailableResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAliasAvailableResponse.existing_document":
+ if x.ExistingDocument == nil {
+ x.ExistingDocument = new(DIDDocument)
+ }
+ return protoreflect.ValueOfMessage(x.ExistingDocument.ProtoReflect())
+ case "core.identity.QueryAliasAvailableResponse.available":
+ panic(fmt.Errorf("field available of message core.identity.QueryAliasAvailableResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAliasAvailableResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAliasAvailableResponse.available":
+ return protoreflect.ValueOfBool(false)
+ case "core.identity.QueryAliasAvailableResponse.existing_document":
+ m := new(DIDDocument)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAliasAvailableResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAliasAvailableResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAliasAvailableResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryAliasAvailableResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAliasAvailableResponse) 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_QueryAliasAvailableResponse) 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_QueryAliasAvailableResponse) 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_QueryAliasAvailableResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAliasAvailableResponse)
+ 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.Available {
+ n += 2
+ }
+ if x.ExistingDocument != nil {
+ l = options.Size(x.ExistingDocument)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAliasAvailableResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.ExistingDocument != nil {
+ encoded, err := options.Marshal(x.ExistingDocument)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Available {
+ i--
+ if x.Available {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAliasAvailableResponse)
+ 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: QueryAliasAvailableResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAliasAvailableResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Available", 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.Available = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExistingDocument", 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.ExistingDocument == nil {
+ x.ExistingDocument = &DIDDocument{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExistingDocument); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryDidByOwnerRequest protoreflect.MessageDescriptor
+ fd_QueryDidByOwnerRequest_owner protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryDidByOwnerRequest = File_core_identity_query_proto.Messages().ByName("QueryDidByOwnerRequest")
+ fd_QueryDidByOwnerRequest_owner = md_QueryDidByOwnerRequest.Fields().ByName("owner")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryDidByOwnerRequest)(nil)
+
+type fastReflection_QueryDidByOwnerRequest QueryDidByOwnerRequest
+
+func (x *QueryDidByOwnerRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryDidByOwnerRequest)(x)
+}
+
+func (x *QueryDidByOwnerRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryDidByOwnerRequest_messageType fastReflection_QueryDidByOwnerRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryDidByOwnerRequest_messageType{}
+
+type fastReflection_QueryDidByOwnerRequest_messageType struct{}
+
+func (x fastReflection_QueryDidByOwnerRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryDidByOwnerRequest)(nil)
+}
+func (x fastReflection_QueryDidByOwnerRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryDidByOwnerRequest)
+}
+func (x fastReflection_QueryDidByOwnerRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryDidByOwnerRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryDidByOwnerRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryDidByOwnerRequest
+}
+
+// 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_QueryDidByOwnerRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryDidByOwnerRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryDidByOwnerRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryDidByOwnerRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryDidByOwnerRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryDidByOwnerRequest)(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_QueryDidByOwnerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Owner != "" {
+ value := protoreflect.ValueOfString(x.Owner)
+ if !f(fd_QueryDidByOwnerRequest_owner, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryDidByOwnerRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByOwnerRequest.owner":
+ return x.Owner != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByOwnerRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByOwnerRequest.owner":
+ x.Owner = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryDidByOwnerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryDidByOwnerRequest.owner":
+ value := x.Owner
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByOwnerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByOwnerRequest.owner":
+ x.Owner = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByOwnerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByOwnerRequest.owner":
+ panic(fmt.Errorf("field owner of message core.identity.QueryDidByOwnerRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryDidByOwnerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByOwnerRequest.owner":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryDidByOwnerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryDidByOwnerRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryDidByOwnerRequest) 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_QueryDidByOwnerRequest) 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_QueryDidByOwnerRequest) 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_QueryDidByOwnerRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryDidByOwnerRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Owner)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryDidByOwnerRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Owner) > 0 {
+ i -= len(x.Owner)
+ copy(dAtA[i:], x.Owner)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner)))
+ 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().(*QueryDidByOwnerRequest)
+ 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: QueryDidByOwnerRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDidByOwnerRequest: 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 Owner", 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.Owner = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryDidByOwnerResponse protoreflect.MessageDescriptor
+ fd_QueryDidByOwnerResponse_didDocument protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryDidByOwnerResponse = File_core_identity_query_proto.Messages().ByName("QueryDidByOwnerResponse")
+ fd_QueryDidByOwnerResponse_didDocument = md_QueryDidByOwnerResponse.Fields().ByName("didDocument")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryDidByOwnerResponse)(nil)
+
+type fastReflection_QueryDidByOwnerResponse QueryDidByOwnerResponse
+
+func (x *QueryDidByOwnerResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryDidByOwnerResponse)(x)
+}
+
+func (x *QueryDidByOwnerResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[11]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryDidByOwnerResponse_messageType fastReflection_QueryDidByOwnerResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryDidByOwnerResponse_messageType{}
+
+type fastReflection_QueryDidByOwnerResponse_messageType struct{}
+
+func (x fastReflection_QueryDidByOwnerResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryDidByOwnerResponse)(nil)
+}
+func (x fastReflection_QueryDidByOwnerResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryDidByOwnerResponse)
+}
+func (x fastReflection_QueryDidByOwnerResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryDidByOwnerResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryDidByOwnerResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryDidByOwnerResponse
+}
+
+// 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_QueryDidByOwnerResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryDidByOwnerResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryDidByOwnerResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryDidByOwnerResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryDidByOwnerResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryDidByOwnerResponse)(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_QueryDidByOwnerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.DidDocument != nil {
+ value := protoreflect.ValueOfMessage(x.DidDocument.ProtoReflect())
+ if !f(fd_QueryDidByOwnerResponse_didDocument, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryDidByOwnerResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByOwnerResponse.didDocument":
+ return x.DidDocument != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByOwnerResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByOwnerResponse.didDocument":
+ x.DidDocument = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryDidByOwnerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryDidByOwnerResponse.didDocument":
+ value := x.DidDocument
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByOwnerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByOwnerResponse.didDocument":
+ x.DidDocument = value.Message().Interface().(*DIDDocument)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryDidByOwnerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByOwnerResponse.didDocument":
+ if x.DidDocument == nil {
+ x.DidDocument = new(DIDDocument)
+ }
+ return protoreflect.ValueOfMessage(x.DidDocument.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryDidByOwnerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryDidByOwnerResponse.didDocument":
+ m := new(DIDDocument)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryDidByOwnerResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryDidByOwnerResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryDidByOwnerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryDidByOwnerResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryDidByOwnerResponse) 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_QueryDidByOwnerResponse) 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_QueryDidByOwnerResponse) 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_QueryDidByOwnerResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryDidByOwnerResponse)
+ 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.DidDocument != nil {
+ l = options.Size(x.DidDocument)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryDidByOwnerResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.DidDocument != nil {
+ encoded, err := options.Marshal(x.DidDocument)
+ 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().(*QueryDidByOwnerResponse)
+ 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: QueryDidByOwnerResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDidByOwnerResponse: 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 DidDocument", 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.DidDocument == nil {
+ x.DidDocument = &DIDDocument{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DidDocument); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetControllerAccountRequest protoreflect.MessageDescriptor
+ fd_QueryGetControllerAccountRequest_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryGetControllerAccountRequest = File_core_identity_query_proto.Messages().ByName("QueryGetControllerAccountRequest")
+ fd_QueryGetControllerAccountRequest_address = md_QueryGetControllerAccountRequest.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetControllerAccountRequest)(nil)
+
+type fastReflection_QueryGetControllerAccountRequest QueryGetControllerAccountRequest
+
+func (x *QueryGetControllerAccountRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetControllerAccountRequest)(x)
+}
+
+func (x *QueryGetControllerAccountRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[12]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetControllerAccountRequest_messageType fastReflection_QueryGetControllerAccountRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetControllerAccountRequest_messageType{}
+
+type fastReflection_QueryGetControllerAccountRequest_messageType struct{}
+
+func (x fastReflection_QueryGetControllerAccountRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetControllerAccountRequest)(nil)
+}
+func (x fastReflection_QueryGetControllerAccountRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetControllerAccountRequest)
+}
+func (x fastReflection_QueryGetControllerAccountRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetControllerAccountRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetControllerAccountRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetControllerAccountRequest
+}
+
+// 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_QueryGetControllerAccountRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetControllerAccountRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetControllerAccountRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetControllerAccountRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetControllerAccountRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetControllerAccountRequest)(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_QueryGetControllerAccountRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_QueryGetControllerAccountRequest_address, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetControllerAccountRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryGetControllerAccountRequest.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetControllerAccountRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryGetControllerAccountRequest.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryGetControllerAccountRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryGetControllerAccountRequest.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetControllerAccountRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryGetControllerAccountRequest.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetControllerAccountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryGetControllerAccountRequest.address":
+ panic(fmt.Errorf("field address of message core.identity.QueryGetControllerAccountRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetControllerAccountRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryGetControllerAccountRequest.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetControllerAccountRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryGetControllerAccountRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryGetControllerAccountRequest) 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_QueryGetControllerAccountRequest) 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_QueryGetControllerAccountRequest) 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_QueryGetControllerAccountRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetControllerAccountRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetControllerAccountRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ 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().(*QueryGetControllerAccountRequest)
+ 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: QueryGetControllerAccountRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetControllerAccountRequest: 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 Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetControllerAccountResponse protoreflect.MessageDescriptor
+ fd_QueryGetControllerAccountResponse_controllerAccount protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryGetControllerAccountResponse = File_core_identity_query_proto.Messages().ByName("QueryGetControllerAccountResponse")
+ fd_QueryGetControllerAccountResponse_controllerAccount = md_QueryGetControllerAccountResponse.Fields().ByName("controllerAccount")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetControllerAccountResponse)(nil)
+
+type fastReflection_QueryGetControllerAccountResponse QueryGetControllerAccountResponse
+
+func (x *QueryGetControllerAccountResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetControllerAccountResponse)(x)
+}
+
+func (x *QueryGetControllerAccountResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[13]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetControllerAccountResponse_messageType fastReflection_QueryGetControllerAccountResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetControllerAccountResponse_messageType{}
+
+type fastReflection_QueryGetControllerAccountResponse_messageType struct{}
+
+func (x fastReflection_QueryGetControllerAccountResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetControllerAccountResponse)(nil)
+}
+func (x fastReflection_QueryGetControllerAccountResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetControllerAccountResponse)
+}
+func (x fastReflection_QueryGetControllerAccountResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetControllerAccountResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetControllerAccountResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetControllerAccountResponse
+}
+
+// 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_QueryGetControllerAccountResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetControllerAccountResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetControllerAccountResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetControllerAccountResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetControllerAccountResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetControllerAccountResponse)(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_QueryGetControllerAccountResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.ControllerAccount != nil {
+ value := protoreflect.ValueOfMessage(x.ControllerAccount.ProtoReflect())
+ if !f(fd_QueryGetControllerAccountResponse_controllerAccount, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetControllerAccountResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryGetControllerAccountResponse.controllerAccount":
+ return x.ControllerAccount != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetControllerAccountResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryGetControllerAccountResponse.controllerAccount":
+ x.ControllerAccount = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryGetControllerAccountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryGetControllerAccountResponse.controllerAccount":
+ value := x.ControllerAccount
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetControllerAccountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryGetControllerAccountResponse.controllerAccount":
+ x.ControllerAccount = value.Message().Interface().(*ControllerAccount)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetControllerAccountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryGetControllerAccountResponse.controllerAccount":
+ if x.ControllerAccount == nil {
+ x.ControllerAccount = new(ControllerAccount)
+ }
+ return protoreflect.ValueOfMessage(x.ControllerAccount.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetControllerAccountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryGetControllerAccountResponse.controllerAccount":
+ m := new(ControllerAccount)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryGetControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryGetControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetControllerAccountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryGetControllerAccountResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryGetControllerAccountResponse) 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_QueryGetControllerAccountResponse) 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_QueryGetControllerAccountResponse) 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_QueryGetControllerAccountResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetControllerAccountResponse)
+ 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.ControllerAccount != nil {
+ l = options.Size(x.ControllerAccount)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetControllerAccountResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.ControllerAccount != nil {
+ encoded, err := options.Marshal(x.ControllerAccount)
+ 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().(*QueryGetControllerAccountResponse)
+ 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: QueryGetControllerAccountResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetControllerAccountResponse: 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 ControllerAccount", 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.ControllerAccount == nil {
+ x.ControllerAccount = &ControllerAccount{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ControllerAccount); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryAllControllerAccountRequest protoreflect.MessageDescriptor
+ fd_QueryAllControllerAccountRequest_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryAllControllerAccountRequest = File_core_identity_query_proto.Messages().ByName("QueryAllControllerAccountRequest")
+ fd_QueryAllControllerAccountRequest_pagination = md_QueryAllControllerAccountRequest.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllControllerAccountRequest)(nil)
+
+type fastReflection_QueryAllControllerAccountRequest QueryAllControllerAccountRequest
+
+func (x *QueryAllControllerAccountRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllControllerAccountRequest)(x)
+}
+
+func (x *QueryAllControllerAccountRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[14]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllControllerAccountRequest_messageType fastReflection_QueryAllControllerAccountRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllControllerAccountRequest_messageType{}
+
+type fastReflection_QueryAllControllerAccountRequest_messageType struct{}
+
+func (x fastReflection_QueryAllControllerAccountRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllControllerAccountRequest)(nil)
+}
+func (x fastReflection_QueryAllControllerAccountRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllControllerAccountRequest)
+}
+func (x fastReflection_QueryAllControllerAccountRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllControllerAccountRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllControllerAccountRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllControllerAccountRequest
+}
+
+// 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_QueryAllControllerAccountRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllControllerAccountRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllControllerAccountRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllControllerAccountRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllControllerAccountRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllControllerAccountRequest)(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_QueryAllControllerAccountRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllControllerAccountRequest_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllControllerAccountRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryAllControllerAccountRequest.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllControllerAccountRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryAllControllerAccountRequest.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAllControllerAccountRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryAllControllerAccountRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllControllerAccountRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryAllControllerAccountRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllControllerAccountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAllControllerAccountRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllControllerAccountRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAllControllerAccountRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountRequest"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllControllerAccountRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryAllControllerAccountRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAllControllerAccountRequest) 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_QueryAllControllerAccountRequest) 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_QueryAllControllerAccountRequest) 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_QueryAllControllerAccountRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllControllerAccountRequest)
+ 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.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllControllerAccountRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 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().(*QueryAllControllerAccountRequest)
+ 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: QueryAllControllerAccountRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllControllerAccountRequest: 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 Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_QueryAllControllerAccountResponse_1_list)(nil)
+
+type _QueryAllControllerAccountResponse_1_list struct {
+ list *[]*ControllerAccount
+}
+
+func (x *_QueryAllControllerAccountResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllControllerAccountResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllControllerAccountResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*ControllerAccount)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllControllerAccountResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*ControllerAccount)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllControllerAccountResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(ControllerAccount)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllControllerAccountResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllControllerAccountResponse_1_list) NewElement() protoreflect.Value {
+ v := new(ControllerAccount)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllControllerAccountResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllControllerAccountResponse protoreflect.MessageDescriptor
+ fd_QueryAllControllerAccountResponse_controllerAccount protoreflect.FieldDescriptor
+ fd_QueryAllControllerAccountResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_query_proto_init()
+ md_QueryAllControllerAccountResponse = File_core_identity_query_proto.Messages().ByName("QueryAllControllerAccountResponse")
+ fd_QueryAllControllerAccountResponse_controllerAccount = md_QueryAllControllerAccountResponse.Fields().ByName("controllerAccount")
+ fd_QueryAllControllerAccountResponse_pagination = md_QueryAllControllerAccountResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllControllerAccountResponse)(nil)
+
+type fastReflection_QueryAllControllerAccountResponse QueryAllControllerAccountResponse
+
+func (x *QueryAllControllerAccountResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllControllerAccountResponse)(x)
+}
+
+func (x *QueryAllControllerAccountResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_query_proto_msgTypes[15]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllControllerAccountResponse_messageType fastReflection_QueryAllControllerAccountResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllControllerAccountResponse_messageType{}
+
+type fastReflection_QueryAllControllerAccountResponse_messageType struct{}
+
+func (x fastReflection_QueryAllControllerAccountResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllControllerAccountResponse)(nil)
+}
+func (x fastReflection_QueryAllControllerAccountResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllControllerAccountResponse)
+}
+func (x fastReflection_QueryAllControllerAccountResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllControllerAccountResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllControllerAccountResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllControllerAccountResponse
+}
+
+// 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_QueryAllControllerAccountResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllControllerAccountResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllControllerAccountResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllControllerAccountResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllControllerAccountResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllControllerAccountResponse)(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_QueryAllControllerAccountResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.ControllerAccount) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllControllerAccountResponse_1_list{list: &x.ControllerAccount})
+ if !f(fd_QueryAllControllerAccountResponse_controllerAccount, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllControllerAccountResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllControllerAccountResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.QueryAllControllerAccountResponse.controllerAccount":
+ return len(x.ControllerAccount) != 0
+ case "core.identity.QueryAllControllerAccountResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllControllerAccountResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.QueryAllControllerAccountResponse.controllerAccount":
+ x.ControllerAccount = nil
+ case "core.identity.QueryAllControllerAccountResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAllControllerAccountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.QueryAllControllerAccountResponse.controllerAccount":
+ if len(x.ControllerAccount) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllControllerAccountResponse_1_list{})
+ }
+ listValue := &_QueryAllControllerAccountResponse_1_list{list: &x.ControllerAccount}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.QueryAllControllerAccountResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllControllerAccountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.QueryAllControllerAccountResponse.controllerAccount":
+ lv := value.List()
+ clv := lv.(*_QueryAllControllerAccountResponse_1_list)
+ x.ControllerAccount = *clv.list
+ case "core.identity.QueryAllControllerAccountResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllControllerAccountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAllControllerAccountResponse.controllerAccount":
+ if x.ControllerAccount == nil {
+ x.ControllerAccount = []*ControllerAccount{}
+ }
+ value := &_QueryAllControllerAccountResponse_1_list{list: &x.ControllerAccount}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.QueryAllControllerAccountResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllControllerAccountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.QueryAllControllerAccountResponse.controllerAccount":
+ list := []*ControllerAccount{}
+ return protoreflect.ValueOfList(&_QueryAllControllerAccountResponse_1_list{list: &list})
+ case "core.identity.QueryAllControllerAccountResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.QueryAllControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.QueryAllControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllControllerAccountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.QueryAllControllerAccountResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAllControllerAccountResponse) 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_QueryAllControllerAccountResponse) 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_QueryAllControllerAccountResponse) 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_QueryAllControllerAccountResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllControllerAccountResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if len(x.ControllerAccount) > 0 {
+ for _, e := range x.ControllerAccount {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllControllerAccountResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.ControllerAccount) > 0 {
+ for iNdEx := len(x.ControllerAccount) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.ControllerAccount[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllControllerAccountResponse)
+ 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: QueryAllControllerAccountResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllControllerAccountResponse: 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 ControllerAccount", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.ControllerAccount = append(x.ControllerAccount, &ControllerAccount{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ControllerAccount[len(x.ControllerAccount)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/identity/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// QueryGetDIDDocumentRequest is the request type for the Query/DIDDocument RPC
+// method.
+type QueryGetDIDDocumentRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
+}
+
+func (x *QueryGetDIDDocumentRequest) Reset() {
+ *x = QueryGetDIDDocumentRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetDIDDocumentRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetDIDDocumentRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetDIDDocumentRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetDIDDocumentRequest) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *QueryGetDIDDocumentRequest) GetDid() string {
+ if x != nil {
+ return x.Did
+ }
+ return ""
+}
+
+// QueryGetDIDDocumentResponse is the response type for the Query/DIDDocument
+// RPC method.
+type QueryGetDIDDocumentResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ DIDDocument *DIDDocument `protobuf:"bytes,1,opt,name=dIDDocument,proto3" json:"dIDDocument,omitempty"`
+}
+
+func (x *QueryGetDIDDocumentResponse) Reset() {
+ *x = QueryGetDIDDocumentResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetDIDDocumentResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetDIDDocumentResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetDIDDocumentResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetDIDDocumentResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *QueryGetDIDDocumentResponse) GetDIDDocument() *DIDDocument {
+ if x != nil {
+ return x.DIDDocument
+ }
+ return nil
+}
+
+// QueryAllDIDDocumentRequest is the request type for the Query/DIDDocumentAll
+// RPC method.
+type QueryAllDIDDocumentRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllDIDDocumentRequest) Reset() {
+ *x = QueryAllDIDDocumentRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllDIDDocumentRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllDIDDocumentRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllDIDDocumentRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllDIDDocumentRequest) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *QueryAllDIDDocumentRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+// QueryAllDIDDocumentResponse is the response type for the Query/DIDDocumentAll
+// RPC method.
+type QueryAllDIDDocumentResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ DIDDocument []*DIDDocument `protobuf:"bytes,1,rep,name=dIDDocument,proto3" json:"dIDDocument,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllDIDDocumentResponse) Reset() {
+ *x = QueryAllDIDDocumentResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllDIDDocumentResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllDIDDocumentResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllDIDDocumentResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllDIDDocumentResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *QueryAllDIDDocumentResponse) GetDIDDocument() []*DIDDocument {
+ if x != nil {
+ return x.DIDDocument
+ }
+ return nil
+}
+
+func (x *QueryAllDIDDocumentResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+// QueryDidByAlsoKnownAsRequest is the request type for the
+// Query/DidByAlsoKnownAs RPC method.
+type QueryDidByAlsoKnownAsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // aka_aliasid is the unique identifier of the DIDDocument - it appears like
+ // ("example.snr")
+ Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"`
+}
+
+func (x *QueryDidByAlsoKnownAsRequest) Reset() {
+ *x = QueryDidByAlsoKnownAsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryDidByAlsoKnownAsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryDidByAlsoKnownAsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryDidByAlsoKnownAsRequest.ProtoReflect.Descriptor instead.
+func (*QueryDidByAlsoKnownAsRequest) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *QueryDidByAlsoKnownAsRequest) GetAlias() string {
+ if x != nil {
+ return x.Alias
+ }
+ return ""
+}
+
+// QueryDidByAlsoKnownAsResponse is the response type for the
+// Query/DidByAlsoKnownAs RPC method.
+type QueryDidByAlsoKnownAsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // A DIDDocument is a JSON-LD object that contains a set of public keys
+ DidDocument *DIDDocument `protobuf:"bytes,1,opt,name=didDocument,proto3" json:"didDocument,omitempty"`
+}
+
+func (x *QueryDidByAlsoKnownAsResponse) Reset() {
+ *x = QueryDidByAlsoKnownAsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryDidByAlsoKnownAsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryDidByAlsoKnownAsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryDidByAlsoKnownAsResponse.ProtoReflect.Descriptor instead.
+func (*QueryDidByAlsoKnownAsResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *QueryDidByAlsoKnownAsResponse) GetDidDocument() *DIDDocument {
+ if x != nil {
+ return x.DidDocument
+ }
+ return nil
+}
+
+// QueryAliasAvailableRequest is the request type for the Query/AliasAvailable
+// RPC method.
+type QueryAliasAvailableRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // alias is the unique identifier of the DIDDocument - it appears like
+ // ("example.snr")
+ Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"`
+}
+
+func (x *QueryAliasAvailableRequest) Reset() {
+ *x = QueryAliasAvailableRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAliasAvailableRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAliasAvailableRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAliasAvailableRequest.ProtoReflect.Descriptor instead.
+func (*QueryAliasAvailableRequest) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{8}
+}
+
+func (x *QueryAliasAvailableRequest) GetAlias() string {
+ if x != nil {
+ return x.Alias
+ }
+ return ""
+}
+
+// QueryAliasAvailableResponse is the response type for the Query/AliasAvailable
+// RPC method.
+type QueryAliasAvailableResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`
+ ExistingDocument *DIDDocument `protobuf:"bytes,2,opt,name=existing_document,json=existingDocument,proto3" json:"existing_document,omitempty"`
+}
+
+func (x *QueryAliasAvailableResponse) Reset() {
+ *x = QueryAliasAvailableResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAliasAvailableResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAliasAvailableResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAliasAvailableResponse.ProtoReflect.Descriptor instead.
+func (*QueryAliasAvailableResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{9}
+}
+
+func (x *QueryAliasAvailableResponse) GetAvailable() bool {
+ if x != nil {
+ return x.Available
+ }
+ return false
+}
+
+func (x *QueryAliasAvailableResponse) GetExistingDocument() *DIDDocument {
+ if x != nil {
+ return x.ExistingDocument
+ }
+ return nil
+}
+
+// QueryDidByOwnerRequest is the request type for the Query/DidByOwner RPC
+// method.
+type QueryDidByOwnerRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
+}
+
+func (x *QueryDidByOwnerRequest) Reset() {
+ *x = QueryDidByOwnerRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryDidByOwnerRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryDidByOwnerRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryDidByOwnerRequest.ProtoReflect.Descriptor instead.
+func (*QueryDidByOwnerRequest) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{10}
+}
+
+func (x *QueryDidByOwnerRequest) GetOwner() string {
+ if x != nil {
+ return x.Owner
+ }
+ return ""
+}
+
+// QueryDidByOwnerResponse is the response type for the Query/DidByOwner RPC
+// method.
+type QueryDidByOwnerResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ DidDocument *DIDDocument `protobuf:"bytes,1,opt,name=didDocument,proto3" json:"didDocument,omitempty"`
+}
+
+func (x *QueryDidByOwnerResponse) Reset() {
+ *x = QueryDidByOwnerResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[11]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryDidByOwnerResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryDidByOwnerResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryDidByOwnerResponse.ProtoReflect.Descriptor instead.
+func (*QueryDidByOwnerResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{11}
+}
+
+func (x *QueryDidByOwnerResponse) GetDidDocument() *DIDDocument {
+ if x != nil {
+ return x.DidDocument
+ }
+ return nil
+}
+
+// QueryGetControllerAccountRequest is the request type for the
+// Query/ControllerAccount RPC method.
+type QueryGetControllerAccountRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
+}
+
+func (x *QueryGetControllerAccountRequest) Reset() {
+ *x = QueryGetControllerAccountRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[12]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetControllerAccountRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetControllerAccountRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetControllerAccountRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetControllerAccountRequest) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{12}
+}
+
+func (x *QueryGetControllerAccountRequest) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+// QueryGetControllerAccountResponse is the response type for the
+// Query/ControllerAccount RPC method.
+type QueryGetControllerAccountResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ ControllerAccount *ControllerAccount `protobuf:"bytes,1,opt,name=controllerAccount,proto3" json:"controllerAccount,omitempty"`
+}
+
+func (x *QueryGetControllerAccountResponse) Reset() {
+ *x = QueryGetControllerAccountResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[13]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetControllerAccountResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetControllerAccountResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetControllerAccountResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetControllerAccountResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{13}
+}
+
+func (x *QueryGetControllerAccountResponse) GetControllerAccount() *ControllerAccount {
+ if x != nil {
+ return x.ControllerAccount
+ }
+ return nil
+}
+
+// QueryAllControllerAccountRequest is the request type for the
+// Query/ControllerAccountAll RPC method.
+type QueryAllControllerAccountRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllControllerAccountRequest) Reset() {
+ *x = QueryAllControllerAccountRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[14]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllControllerAccountRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllControllerAccountRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllControllerAccountRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllControllerAccountRequest) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{14}
+}
+
+func (x *QueryAllControllerAccountRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+// QueryAllControllerAccountResponse is the response type for the
+// Query/ControllerAccountAll RPC method.
+type QueryAllControllerAccountResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ ControllerAccount []*ControllerAccount `protobuf:"bytes,1,rep,name=controllerAccount,proto3" json:"controllerAccount,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllControllerAccountResponse) Reset() {
+ *x = QueryAllControllerAccountResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_query_proto_msgTypes[15]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllControllerAccountResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllControllerAccountResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllControllerAccountResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllControllerAccountResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_query_proto_rawDescGZIP(), []int{15}
+}
+
+func (x *QueryAllControllerAccountResponse) GetControllerAccount() []*ControllerAccount {
+ if x != nil {
+ return x.ControllerAccount
+ }
+ return nil
+}
+
+func (x *QueryAllControllerAccountResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+var File_core_identity_query_proto protoreflect.FileDescriptor
+
+var file_core_identity_query_proto_rawDesc = []byte{
+ 0x0a, 0x19, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f,
+ 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x1b, 0x63, 0x6f, 0x72, 0x65,
+ 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
+ 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x64, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x1a, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f,
+ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f,
+ 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12,
+ 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x22, 0x4a, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x70, 0x61, 0x72,
+ 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x72, 0x65,
+ 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
+ 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x2e,
+ 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63,
+ 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03,
+ 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x22, 0x61,
+ 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63,
+ 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a,
+ 0x0b, 0x64, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
+ 0x74, 0x79, 0x2e, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x04,
+ 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x64, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
+ 0x74, 0x22, 0x64, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x49, 0x44,
+ 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+ 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
+ 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67,
+ 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaa, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x64, 0x49, 0x44, 0x44, 0x6f,
+ 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63,
+ 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x44, 0x49, 0x44,
+ 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b,
+ 0x64, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x47, 0x0a, 0x0a, 0x70,
+ 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75,
+ 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x34, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x69, 0x64,
+ 0x42, 0x79, 0x41, 0x6c, 0x73, 0x6f, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x41, 0x73, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x63, 0x0a, 0x1d, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x44, 0x69, 0x64, 0x42, 0x79, 0x41, 0x6c, 0x73, 0x6f, 0x4b, 0x6e, 0x6f, 0x77,
+ 0x6e, 0x41, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x64,
+ 0x69, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
+ 0x2e, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde,
+ 0x1f, 0x00, 0x52, 0x0b, 0x64, 0x69, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x22,
+ 0x32, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x41, 0x76, 0x61,
+ 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a,
+ 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c,
+ 0x69, 0x61, 0x73, 0x22, 0x8a, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x69,
+ 0x61, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c,
+ 0x65, 0x12, 0x4d, 0x0a, 0x11, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x6f,
+ 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63,
+ 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x44, 0x49, 0x44,
+ 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x10,
+ 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x22, 0x2e, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x69, 0x64, 0x42, 0x79, 0x4f, 0x77,
+ 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77,
+ 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72,
+ 0x22, 0x5d, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x69, 0x64, 0x42, 0x79, 0x4f, 0x77,
+ 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x64,
+ 0x69, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
+ 0x2e, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde,
+ 0x1f, 0x00, 0x52, 0x0b, 0x64, 0x69, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x22,
+ 0x3c, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x79, 0x0a,
+ 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x12, 0x54, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
+ 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x43, 0x6f,
+ 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42,
+ 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65,
+ 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x6a, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63,
+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a,
+ 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71,
+ 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67,
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc2, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c,
+ 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75,
+ 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x11, 0x63, 0x6f,
+ 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
+ 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65,
+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
+ 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x63,
+ 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+ 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
+ 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70,
+ 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xc8, 0x08, 0x0a, 0x05, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x12, 0x6e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x21, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x22, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
+ 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x63,
+ 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0x12, 0x7c, 0x0a, 0x0b, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65,
+ 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
+ 0x74, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x49, 0x44, 0x44, 0x6f,
+ 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
+ 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x10, 0x12, 0x0e, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x2f, 0x7b, 0x64, 0x69, 0x64,
+ 0x7d, 0x12, 0x79, 0x0a, 0x0e, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x41, 0x6c, 0x6c, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x49, 0x44, 0x44,
+ 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a,
+ 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65,
+ 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x10, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x12, 0x7b, 0x0a, 0x0a,
+ 0x44, 0x69, 0x64, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x44, 0x69, 0x64, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
+ 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x69, 0x64, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65,
+ 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x18, 0x12, 0x16, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x2f, 0x6f, 0x77, 0x6e, 0x65,
+ 0x72, 0x2f, 0x7b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x7d, 0x12, 0x8d, 0x01, 0x0a, 0x10, 0x44, 0x69,
+ 0x64, 0x42, 0x79, 0x41, 0x6c, 0x73, 0x6f, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x41, 0x73, 0x12, 0x2b,
+ 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x44, 0x69, 0x64, 0x42, 0x79, 0x41, 0x6c, 0x73, 0x6f, 0x4b, 0x6e, 0x6f,
+ 0x77, 0x6e, 0x41, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x6f,
+ 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x44, 0x69, 0x64, 0x42, 0x79, 0x41, 0x6c, 0x73, 0x6f, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x41,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x18, 0x12, 0x16, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x2f, 0x61, 0x6c, 0x69, 0x61,
+ 0x73, 0x2f, 0x7b, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x7d, 0x12, 0x8d, 0x01, 0x0a, 0x0e, 0x41, 0x6c,
+ 0x69, 0x61, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x29, 0x2e, 0x63,
+ 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x51, 0x75, 0x65,
+ 0x72, 0x79, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69,
+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x69,
+ 0x61, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x63, 0x6f,
+ 0x72, 0x65, 0x2f, 0x69, 0x64, 0x2f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x2f, 0x7b, 0x61, 0x6c, 0x69,
+ 0x61, 0x73, 0x7d, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x9e, 0x01, 0x0a, 0x11, 0x43, 0x6f,
+ 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12,
+ 0x2f, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e,
+ 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x30, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
+ 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x63, 0x6f, 0x72,
+ 0x65, 0x2f, 0x69, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x73,
+ 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x97, 0x01, 0x0a, 0x14, 0x43,
+ 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+ 0x41, 0x6c, 0x6c, 0x12, 0x2f, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e,
+ 0x74, 0x69, 0x74, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6e,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14,
+ 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x65, 0x72, 0x73, 0x42, 0x9a, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69,
+ 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xa2, 0x02,
+ 0x03, 0x43, 0x49, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e,
+ 0x74, 0x69, 0x74, 0x79, 0xca, 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e,
+ 0x74, 0x69, 0x74, 0x79, 0xe2, 0x02, 0x19, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x49, 0x64, 0x65, 0x6e,
+ 0x74, 0x69, 0x74, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
+ 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_identity_query_proto_rawDescOnce sync.Once
+ file_core_identity_query_proto_rawDescData = file_core_identity_query_proto_rawDesc
+)
+
+func file_core_identity_query_proto_rawDescGZIP() []byte {
+ file_core_identity_query_proto_rawDescOnce.Do(func() {
+ file_core_identity_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_identity_query_proto_rawDescData)
+ })
+ return file_core_identity_query_proto_rawDescData
+}
+
+var file_core_identity_query_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
+var file_core_identity_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: core.identity.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: core.identity.QueryParamsResponse
+ (*QueryGetDIDDocumentRequest)(nil), // 2: core.identity.QueryGetDIDDocumentRequest
+ (*QueryGetDIDDocumentResponse)(nil), // 3: core.identity.QueryGetDIDDocumentResponse
+ (*QueryAllDIDDocumentRequest)(nil), // 4: core.identity.QueryAllDIDDocumentRequest
+ (*QueryAllDIDDocumentResponse)(nil), // 5: core.identity.QueryAllDIDDocumentResponse
+ (*QueryDidByAlsoKnownAsRequest)(nil), // 6: core.identity.QueryDidByAlsoKnownAsRequest
+ (*QueryDidByAlsoKnownAsResponse)(nil), // 7: core.identity.QueryDidByAlsoKnownAsResponse
+ (*QueryAliasAvailableRequest)(nil), // 8: core.identity.QueryAliasAvailableRequest
+ (*QueryAliasAvailableResponse)(nil), // 9: core.identity.QueryAliasAvailableResponse
+ (*QueryDidByOwnerRequest)(nil), // 10: core.identity.QueryDidByOwnerRequest
+ (*QueryDidByOwnerResponse)(nil), // 11: core.identity.QueryDidByOwnerResponse
+ (*QueryGetControllerAccountRequest)(nil), // 12: core.identity.QueryGetControllerAccountRequest
+ (*QueryGetControllerAccountResponse)(nil), // 13: core.identity.QueryGetControllerAccountResponse
+ (*QueryAllControllerAccountRequest)(nil), // 14: core.identity.QueryAllControllerAccountRequest
+ (*QueryAllControllerAccountResponse)(nil), // 15: core.identity.QueryAllControllerAccountResponse
+ (*Params)(nil), // 16: core.identity.Params
+ (*DIDDocument)(nil), // 17: core.identity.DIDDocument
+ (*v1beta1.PageRequest)(nil), // 18: cosmos.base.query.v1beta1.PageRequest
+ (*v1beta1.PageResponse)(nil), // 19: cosmos.base.query.v1beta1.PageResponse
+ (*ControllerAccount)(nil), // 20: core.identity.ControllerAccount
+}
+var file_core_identity_query_proto_depIdxs = []int32{
+ 16, // 0: core.identity.QueryParamsResponse.params:type_name -> core.identity.Params
+ 17, // 1: core.identity.QueryGetDIDDocumentResponse.dIDDocument:type_name -> core.identity.DIDDocument
+ 18, // 2: core.identity.QueryAllDIDDocumentRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 17, // 3: core.identity.QueryAllDIDDocumentResponse.dIDDocument:type_name -> core.identity.DIDDocument
+ 19, // 4: core.identity.QueryAllDIDDocumentResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 17, // 5: core.identity.QueryDidByAlsoKnownAsResponse.didDocument:type_name -> core.identity.DIDDocument
+ 17, // 6: core.identity.QueryAliasAvailableResponse.existing_document:type_name -> core.identity.DIDDocument
+ 17, // 7: core.identity.QueryDidByOwnerResponse.didDocument:type_name -> core.identity.DIDDocument
+ 20, // 8: core.identity.QueryGetControllerAccountResponse.controllerAccount:type_name -> core.identity.ControllerAccount
+ 18, // 9: core.identity.QueryAllControllerAccountRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 20, // 10: core.identity.QueryAllControllerAccountResponse.controllerAccount:type_name -> core.identity.ControllerAccount
+ 19, // 11: core.identity.QueryAllControllerAccountResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 0, // 12: core.identity.Query.Params:input_type -> core.identity.QueryParamsRequest
+ 2, // 13: core.identity.Query.DIDDocument:input_type -> core.identity.QueryGetDIDDocumentRequest
+ 4, // 14: core.identity.Query.DIDDocumentAll:input_type -> core.identity.QueryAllDIDDocumentRequest
+ 10, // 15: core.identity.Query.DidByOwner:input_type -> core.identity.QueryDidByOwnerRequest
+ 6, // 16: core.identity.Query.DidByAlsoKnownAs:input_type -> core.identity.QueryDidByAlsoKnownAsRequest
+ 8, // 17: core.identity.Query.AliasAvailable:input_type -> core.identity.QueryAliasAvailableRequest
+ 12, // 18: core.identity.Query.ControllerAccount:input_type -> core.identity.QueryGetControllerAccountRequest
+ 14, // 19: core.identity.Query.ControllerAccountAll:input_type -> core.identity.QueryAllControllerAccountRequest
+ 1, // 20: core.identity.Query.Params:output_type -> core.identity.QueryParamsResponse
+ 3, // 21: core.identity.Query.DIDDocument:output_type -> core.identity.QueryGetDIDDocumentResponse
+ 5, // 22: core.identity.Query.DIDDocumentAll:output_type -> core.identity.QueryAllDIDDocumentResponse
+ 11, // 23: core.identity.Query.DidByOwner:output_type -> core.identity.QueryDidByOwnerResponse
+ 7, // 24: core.identity.Query.DidByAlsoKnownAs:output_type -> core.identity.QueryDidByAlsoKnownAsResponse
+ 9, // 25: core.identity.Query.AliasAvailable:output_type -> core.identity.QueryAliasAvailableResponse
+ 13, // 26: core.identity.Query.ControllerAccount:output_type -> core.identity.QueryGetControllerAccountResponse
+ 15, // 27: core.identity.Query.ControllerAccountAll:output_type -> core.identity.QueryAllControllerAccountResponse
+ 20, // [20:28] is the sub-list for method output_type
+ 12, // [12:20] is the sub-list for method input_type
+ 12, // [12:12] is the sub-list for extension type_name
+ 12, // [12:12] is the sub-list for extension extendee
+ 0, // [0:12] is the sub-list for field type_name
+}
+
+func init() { file_core_identity_query_proto_init() }
+func file_core_identity_query_proto_init() {
+ if File_core_identity_query_proto != nil {
+ return
+ }
+ file_core_identity_account_proto_init()
+ file_core_identity_did_proto_init()
+ file_core_identity_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_core_identity_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetDIDDocumentRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetDIDDocumentResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllDIDDocumentRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllDIDDocumentResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryDidByAlsoKnownAsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryDidByAlsoKnownAsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAliasAvailableRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAliasAvailableResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryDidByOwnerRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryDidByOwnerResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetControllerAccountRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetControllerAccountResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllControllerAccountRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllControllerAccountResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_identity_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 16,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_core_identity_query_proto_goTypes,
+ DependencyIndexes: file_core_identity_query_proto_depIdxs,
+ MessageInfos: file_core_identity_query_proto_msgTypes,
+ }.Build()
+ File_core_identity_query_proto = out.File
+ file_core_identity_query_proto_rawDesc = nil
+ file_core_identity_query_proto_goTypes = nil
+ file_core_identity_query_proto_depIdxs = nil
+}
diff --git a/api/core/identity/query_grpc.pb.go b/api/core/identity/query_grpc.pb.go
new file mode 100644
index 000000000..8bacb71cc
--- /dev/null
+++ b/api/core/identity/query_grpc.pb.go
@@ -0,0 +1,388 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: core/identity/query.proto
+
+package identity
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ Query_Params_FullMethodName = "/core.identity.Query/Params"
+ Query_DIDDocument_FullMethodName = "/core.identity.Query/DIDDocument"
+ Query_DIDDocumentAll_FullMethodName = "/core.identity.Query/DIDDocumentAll"
+ Query_DidByOwner_FullMethodName = "/core.identity.Query/DidByOwner"
+ Query_DidByAlsoKnownAs_FullMethodName = "/core.identity.Query/DidByAlsoKnownAs"
+ Query_AliasAvailable_FullMethodName = "/core.identity.Query/AliasAvailable"
+ Query_ControllerAccount_FullMethodName = "/core.identity.Query/ControllerAccount"
+ Query_ControllerAccountAll_FullMethodName = "/core.identity.Query/ControllerAccountAll"
+)
+
+// QueryClient is the client API for Query service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type QueryClient interface {
+ // Params queries the parameters of the module.
+ Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
+ // DIDDocument queries a list of DIDDocument items.
+ DIDDocument(ctx context.Context, in *QueryGetDIDDocumentRequest, opts ...grpc.CallOption) (*QueryGetDIDDocumentResponse, error)
+ // DIDDocumentAll queries all DIDDocument items.
+ DIDDocumentAll(ctx context.Context, in *QueryAllDIDDocumentRequest, opts ...grpc.CallOption) (*QueryAllDIDDocumentResponse, error)
+ // DidByOwner returns DIDDocument based on an owner.
+ DidByOwner(ctx context.Context, in *QueryDidByOwnerRequest, opts ...grpc.CallOption) (*QueryDidByOwnerResponse, error)
+ // DidByAlsoKnownAs returns DIDDocument based on an alias *only Sonr
+ // Identities.
+ DidByAlsoKnownAs(ctx context.Context, in *QueryDidByAlsoKnownAsRequest, opts ...grpc.CallOption) (*QueryDidByAlsoKnownAsResponse, error)
+ // AliasAvailable checks if a given alias is available to register *only Sonr
+ // Identities.
+ AliasAvailable(ctx context.Context, in *QueryAliasAvailableRequest, opts ...grpc.CallOption) (*QueryAliasAvailableResponse, error)
+ // ControllerAccount queries a list of ControllerAccount items.
+ ControllerAccount(ctx context.Context, in *QueryGetControllerAccountRequest, opts ...grpc.CallOption) (*QueryGetControllerAccountResponse, error)
+ // ControllerAccountAll queries all ControllerAccount items.
+ ControllerAccountAll(ctx context.Context, in *QueryAllControllerAccountRequest, opts ...grpc.CallOption) (*QueryAllControllerAccountResponse, error)
+}
+
+type queryClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
+ return &queryClient{cc}
+}
+
+func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
+ out := new(QueryParamsResponse)
+ err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) DIDDocument(ctx context.Context, in *QueryGetDIDDocumentRequest, opts ...grpc.CallOption) (*QueryGetDIDDocumentResponse, error) {
+ out := new(QueryGetDIDDocumentResponse)
+ err := c.cc.Invoke(ctx, Query_DIDDocument_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) DIDDocumentAll(ctx context.Context, in *QueryAllDIDDocumentRequest, opts ...grpc.CallOption) (*QueryAllDIDDocumentResponse, error) {
+ out := new(QueryAllDIDDocumentResponse)
+ err := c.cc.Invoke(ctx, Query_DIDDocumentAll_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) DidByOwner(ctx context.Context, in *QueryDidByOwnerRequest, opts ...grpc.CallOption) (*QueryDidByOwnerResponse, error) {
+ out := new(QueryDidByOwnerResponse)
+ err := c.cc.Invoke(ctx, Query_DidByOwner_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) DidByAlsoKnownAs(ctx context.Context, in *QueryDidByAlsoKnownAsRequest, opts ...grpc.CallOption) (*QueryDidByAlsoKnownAsResponse, error) {
+ out := new(QueryDidByAlsoKnownAsResponse)
+ err := c.cc.Invoke(ctx, Query_DidByAlsoKnownAs_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) AliasAvailable(ctx context.Context, in *QueryAliasAvailableRequest, opts ...grpc.CallOption) (*QueryAliasAvailableResponse, error) {
+ out := new(QueryAliasAvailableResponse)
+ err := c.cc.Invoke(ctx, Query_AliasAvailable_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) ControllerAccount(ctx context.Context, in *QueryGetControllerAccountRequest, opts ...grpc.CallOption) (*QueryGetControllerAccountResponse, error) {
+ out := new(QueryGetControllerAccountResponse)
+ err := c.cc.Invoke(ctx, Query_ControllerAccount_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) ControllerAccountAll(ctx context.Context, in *QueryAllControllerAccountRequest, opts ...grpc.CallOption) (*QueryAllControllerAccountResponse, error) {
+ out := new(QueryAllControllerAccountResponse)
+ err := c.cc.Invoke(ctx, Query_ControllerAccountAll_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// QueryServer is the server API for Query service.
+// All implementations must embed UnimplementedQueryServer
+// for forward compatibility
+type QueryServer interface {
+ // Params queries the parameters of the module.
+ Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
+ // DIDDocument queries a list of DIDDocument items.
+ DIDDocument(context.Context, *QueryGetDIDDocumentRequest) (*QueryGetDIDDocumentResponse, error)
+ // DIDDocumentAll queries all DIDDocument items.
+ DIDDocumentAll(context.Context, *QueryAllDIDDocumentRequest) (*QueryAllDIDDocumentResponse, error)
+ // DidByOwner returns DIDDocument based on an owner.
+ DidByOwner(context.Context, *QueryDidByOwnerRequest) (*QueryDidByOwnerResponse, error)
+ // DidByAlsoKnownAs returns DIDDocument based on an alias *only Sonr
+ // Identities.
+ DidByAlsoKnownAs(context.Context, *QueryDidByAlsoKnownAsRequest) (*QueryDidByAlsoKnownAsResponse, error)
+ // AliasAvailable checks if a given alias is available to register *only Sonr
+ // Identities.
+ AliasAvailable(context.Context, *QueryAliasAvailableRequest) (*QueryAliasAvailableResponse, error)
+ // ControllerAccount queries a list of ControllerAccount items.
+ ControllerAccount(context.Context, *QueryGetControllerAccountRequest) (*QueryGetControllerAccountResponse, error)
+ // ControllerAccountAll queries all ControllerAccount items.
+ ControllerAccountAll(context.Context, *QueryAllControllerAccountRequest) (*QueryAllControllerAccountResponse, error)
+ mustEmbedUnimplementedQueryServer()
+}
+
+// UnimplementedQueryServer must be embedded to have forward compatible implementations.
+type UnimplementedQueryServer struct {
+}
+
+func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
+}
+func (UnimplementedQueryServer) DIDDocument(context.Context, *QueryGetDIDDocumentRequest) (*QueryGetDIDDocumentResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DIDDocument not implemented")
+}
+func (UnimplementedQueryServer) DIDDocumentAll(context.Context, *QueryAllDIDDocumentRequest) (*QueryAllDIDDocumentResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DIDDocumentAll not implemented")
+}
+func (UnimplementedQueryServer) DidByOwner(context.Context, *QueryDidByOwnerRequest) (*QueryDidByOwnerResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DidByOwner not implemented")
+}
+func (UnimplementedQueryServer) DidByAlsoKnownAs(context.Context, *QueryDidByAlsoKnownAsRequest) (*QueryDidByAlsoKnownAsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DidByAlsoKnownAs not implemented")
+}
+func (UnimplementedQueryServer) AliasAvailable(context.Context, *QueryAliasAvailableRequest) (*QueryAliasAvailableResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method AliasAvailable not implemented")
+}
+func (UnimplementedQueryServer) ControllerAccount(context.Context, *QueryGetControllerAccountRequest) (*QueryGetControllerAccountResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ControllerAccount not implemented")
+}
+func (UnimplementedQueryServer) ControllerAccountAll(context.Context, *QueryAllControllerAccountRequest) (*QueryAllControllerAccountResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ControllerAccountAll not implemented")
+}
+func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
+
+// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to QueryServer will
+// result in compilation errors.
+type UnsafeQueryServer interface {
+ mustEmbedUnimplementedQueryServer()
+}
+
+func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) {
+ s.RegisterService(&Query_ServiceDesc, srv)
+}
+
+func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryParamsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).Params(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_Params_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_DIDDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryGetDIDDocumentRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).DIDDocument(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_DIDDocument_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).DIDDocument(ctx, req.(*QueryGetDIDDocumentRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_DIDDocumentAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryAllDIDDocumentRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).DIDDocumentAll(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_DIDDocumentAll_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).DIDDocumentAll(ctx, req.(*QueryAllDIDDocumentRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_DidByOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryDidByOwnerRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).DidByOwner(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_DidByOwner_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).DidByOwner(ctx, req.(*QueryDidByOwnerRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_DidByAlsoKnownAs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryDidByAlsoKnownAsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).DidByAlsoKnownAs(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_DidByAlsoKnownAs_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).DidByAlsoKnownAs(ctx, req.(*QueryDidByAlsoKnownAsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_AliasAvailable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryAliasAvailableRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).AliasAvailable(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_AliasAvailable_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).AliasAvailable(ctx, req.(*QueryAliasAvailableRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_ControllerAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryGetControllerAccountRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).ControllerAccount(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_ControllerAccount_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).ControllerAccount(ctx, req.(*QueryGetControllerAccountRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_ControllerAccountAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryAllControllerAccountRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).ControllerAccountAll(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_ControllerAccountAll_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).ControllerAccountAll(ctx, req.(*QueryAllControllerAccountRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var Query_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "core.identity.Query",
+ HandlerType: (*QueryServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "Params",
+ Handler: _Query_Params_Handler,
+ },
+ {
+ MethodName: "DIDDocument",
+ Handler: _Query_DIDDocument_Handler,
+ },
+ {
+ MethodName: "DIDDocumentAll",
+ Handler: _Query_DIDDocumentAll_Handler,
+ },
+ {
+ MethodName: "DidByOwner",
+ Handler: _Query_DidByOwner_Handler,
+ },
+ {
+ MethodName: "DidByAlsoKnownAs",
+ Handler: _Query_DidByAlsoKnownAs_Handler,
+ },
+ {
+ MethodName: "AliasAvailable",
+ Handler: _Query_AliasAvailable_Handler,
+ },
+ {
+ MethodName: "ControllerAccount",
+ Handler: _Query_ControllerAccount_Handler,
+ },
+ {
+ MethodName: "ControllerAccountAll",
+ Handler: _Query_ControllerAccountAll_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "core/identity/query.proto",
+}
diff --git a/api/core/identity/state.pulsar.go b/api/core/identity/state.pulsar.go
new file mode 100644
index 000000000..077d0578e
--- /dev/null
+++ b/api/core/identity/state.pulsar.go
@@ -0,0 +1,2228 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package identity
+
+import (
+ _ "cosmossdk.io/api/cosmos/orm/v1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Balance protoreflect.MessageDescriptor
+ fd_Balance_account protoreflect.FieldDescriptor
+ fd_Balance_denom protoreflect.FieldDescriptor
+ fd_Balance_amount protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_state_proto_init()
+ md_Balance = File_core_identity_state_proto.Messages().ByName("Balance")
+ fd_Balance_account = md_Balance.Fields().ByName("account")
+ fd_Balance_denom = md_Balance.Fields().ByName("denom")
+ fd_Balance_amount = md_Balance.Fields().ByName("amount")
+}
+
+var _ protoreflect.Message = (*fastReflection_Balance)(nil)
+
+type fastReflection_Balance Balance
+
+func (x *Balance) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Balance)(x)
+}
+
+func (x *Balance) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_state_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Balance_messageType fastReflection_Balance_messageType
+var _ protoreflect.MessageType = fastReflection_Balance_messageType{}
+
+type fastReflection_Balance_messageType struct{}
+
+func (x fastReflection_Balance_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Balance)(nil)
+}
+func (x fastReflection_Balance_messageType) New() protoreflect.Message {
+ return new(fastReflection_Balance)
+}
+func (x fastReflection_Balance_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Balance
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Balance) Descriptor() protoreflect.MessageDescriptor {
+ return md_Balance
+}
+
+// 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_Balance) Type() protoreflect.MessageType {
+ return _fastReflection_Balance_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Balance) New() protoreflect.Message {
+ return new(fastReflection_Balance)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Balance) Interface() protoreflect.ProtoMessage {
+ return (*Balance)(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_Balance) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Account) != 0 {
+ value := protoreflect.ValueOfBytes(x.Account)
+ if !f(fd_Balance_account, value) {
+ return
+ }
+ }
+ if x.Denom != "" {
+ value := protoreflect.ValueOfString(x.Denom)
+ if !f(fd_Balance_denom, value) {
+ return
+ }
+ }
+ if x.Amount != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.Amount)
+ if !f(fd_Balance_amount, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Balance) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.Balance.account":
+ return len(x.Account) != 0
+ case "core.identity.Balance.denom":
+ return x.Denom != ""
+ case "core.identity.Balance.amount":
+ return x.Amount != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Balance"))
+ }
+ panic(fmt.Errorf("message core.identity.Balance does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Balance) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.Balance.account":
+ x.Account = nil
+ case "core.identity.Balance.denom":
+ x.Denom = ""
+ case "core.identity.Balance.amount":
+ x.Amount = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Balance"))
+ }
+ panic(fmt.Errorf("message core.identity.Balance does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Balance) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.Balance.account":
+ value := x.Account
+ return protoreflect.ValueOfBytes(value)
+ case "core.identity.Balance.denom":
+ value := x.Denom
+ return protoreflect.ValueOfString(value)
+ case "core.identity.Balance.amount":
+ value := x.Amount
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Balance"))
+ }
+ panic(fmt.Errorf("message core.identity.Balance does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Balance) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.Balance.account":
+ x.Account = value.Bytes()
+ case "core.identity.Balance.denom":
+ x.Denom = value.Interface().(string)
+ case "core.identity.Balance.amount":
+ x.Amount = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Balance"))
+ }
+ panic(fmt.Errorf("message core.identity.Balance does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Balance) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.Balance.account":
+ panic(fmt.Errorf("field account of message core.identity.Balance is not mutable"))
+ case "core.identity.Balance.denom":
+ panic(fmt.Errorf("field denom of message core.identity.Balance is not mutable"))
+ case "core.identity.Balance.amount":
+ panic(fmt.Errorf("field amount of message core.identity.Balance is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Balance"))
+ }
+ panic(fmt.Errorf("message core.identity.Balance does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Balance) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.Balance.account":
+ return protoreflect.ValueOfBytes(nil)
+ case "core.identity.Balance.denom":
+ return protoreflect.ValueOfString("")
+ case "core.identity.Balance.amount":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Balance"))
+ }
+ panic(fmt.Errorf("message core.identity.Balance does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Balance) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.Balance", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Balance) 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_Balance) 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_Balance) 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_Balance) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Balance)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Account)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Denom)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Amount != 0 {
+ n += 1 + runtime.Sov(uint64(x.Amount))
+ }
+ 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().(*Balance)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Amount != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount))
+ i--
+ dAtA[i] = 0x18
+ }
+ if len(x.Denom) > 0 {
+ i -= len(x.Denom)
+ copy(dAtA[i:], x.Denom)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Account) > 0 {
+ i -= len(x.Account)
+ copy(dAtA[i:], x.Account)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Account)))
+ 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().(*Balance)
+ 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: Balance: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Balance: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Account = append(x.Account[:0], dAtA[iNdEx:postIndex]...)
+ if x.Account == nil {
+ x.Account = []byte{}
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Denom = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
+ }
+ x.Amount = 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.Amount |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_Account protoreflect.MessageDescriptor
+ fd_Account_id protoreflect.FieldDescriptor
+ fd_Account_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_state_proto_init()
+ md_Account = File_core_identity_state_proto.Messages().ByName("Account")
+ fd_Account_id = md_Account.Fields().ByName("id")
+ fd_Account_address = md_Account.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_Account)(nil)
+
+type fastReflection_Account Account
+
+func (x *Account) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Account)(x)
+}
+
+func (x *Account) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_state_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Account_messageType fastReflection_Account_messageType
+var _ protoreflect.MessageType = fastReflection_Account_messageType{}
+
+type fastReflection_Account_messageType struct{}
+
+func (x fastReflection_Account_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Account)(nil)
+}
+func (x fastReflection_Account_messageType) New() protoreflect.Message {
+ return new(fastReflection_Account)
+}
+func (x fastReflection_Account_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Account
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Account) Descriptor() protoreflect.MessageDescriptor {
+ return md_Account
+}
+
+// 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_Account) Type() protoreflect.MessageType {
+ return _fastReflection_Account_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Account) New() protoreflect.Message {
+ return new(fastReflection_Account)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Account) Interface() protoreflect.ProtoMessage {
+ return (*Account)(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_Account) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Id != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.Id)
+ if !f(fd_Account_id, value) {
+ return
+ }
+ }
+ if len(x.Address) != 0 {
+ value := protoreflect.ValueOfBytes(x.Address)
+ if !f(fd_Account_address, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Account) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.Account.id":
+ return x.Id != uint64(0)
+ case "core.identity.Account.address":
+ return len(x.Address) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Account"))
+ }
+ panic(fmt.Errorf("message core.identity.Account does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Account) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.Account.id":
+ x.Id = uint64(0)
+ case "core.identity.Account.address":
+ x.Address = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Account"))
+ }
+ panic(fmt.Errorf("message core.identity.Account does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Account) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.Account.id":
+ value := x.Id
+ return protoreflect.ValueOfUint64(value)
+ case "core.identity.Account.address":
+ value := x.Address
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Account"))
+ }
+ panic(fmt.Errorf("message core.identity.Account does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Account) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.Account.id":
+ x.Id = value.Uint()
+ case "core.identity.Account.address":
+ x.Address = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Account"))
+ }
+ panic(fmt.Errorf("message core.identity.Account does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Account) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.Account.id":
+ panic(fmt.Errorf("field id of message core.identity.Account is not mutable"))
+ case "core.identity.Account.address":
+ panic(fmt.Errorf("field address of message core.identity.Account is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Account"))
+ }
+ panic(fmt.Errorf("message core.identity.Account does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Account) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.Account.id":
+ return protoreflect.ValueOfUint64(uint64(0))
+ case "core.identity.Account.address":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Account"))
+ }
+ panic(fmt.Errorf("message core.identity.Account does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Account) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.Account", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Account) 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_Account) 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_Account) 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_Account) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Account)
+ 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.Id != 0 {
+ n += 1 + runtime.Sov(uint64(x.Id))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Account)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Id != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Account)
+ 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: Account: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ x.Id = 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.Id |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = append(x.Address[:0], dAtA[iNdEx:postIndex]...)
+ if x.Address == nil {
+ x.Address = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_Config_8_list)(nil)
+
+type _Config_8_list struct {
+ list *[]string
+}
+
+func (x *_Config_8_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_Config_8_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_Config_8_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_Config_8_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_Config_8_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message Config at list field SupportedDidMethods as it is not of Message kind"))
+}
+
+func (x *_Config_8_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_Config_8_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_Config_8_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_Config protoreflect.MessageDescriptor
+ fd_Config_voting_period protoreflect.FieldDescriptor
+ fd_Config_min_threshold protoreflect.FieldDescriptor
+ fd_Config_account_did_method_name protoreflect.FieldDescriptor
+ fd_Config_account_did_method_context protoreflect.FieldDescriptor
+ fd_Config_acccount_discovery_reward protoreflect.FieldDescriptor
+ fd_Config_did_base_context protoreflect.FieldDescriptor
+ fd_Config_maximum_identity_aliases protoreflect.FieldDescriptor
+ fd_Config_supported_did_methods protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_state_proto_init()
+ md_Config = File_core_identity_state_proto.Messages().ByName("Config")
+ fd_Config_voting_period = md_Config.Fields().ByName("voting_period")
+ fd_Config_min_threshold = md_Config.Fields().ByName("min_threshold")
+ fd_Config_account_did_method_name = md_Config.Fields().ByName("account_did_method_name")
+ fd_Config_account_did_method_context = md_Config.Fields().ByName("account_did_method_context")
+ fd_Config_acccount_discovery_reward = md_Config.Fields().ByName("acccount_discovery_reward")
+ fd_Config_did_base_context = md_Config.Fields().ByName("did_base_context")
+ fd_Config_maximum_identity_aliases = md_Config.Fields().ByName("maximum_identity_aliases")
+ fd_Config_supported_did_methods = md_Config.Fields().ByName("supported_did_methods")
+}
+
+var _ protoreflect.Message = (*fastReflection_Config)(nil)
+
+type fastReflection_Config Config
+
+func (x *Config) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Config)(x)
+}
+
+func (x *Config) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_state_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Config_messageType fastReflection_Config_messageType
+var _ protoreflect.MessageType = fastReflection_Config_messageType{}
+
+type fastReflection_Config_messageType struct{}
+
+func (x fastReflection_Config_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Config)(nil)
+}
+func (x fastReflection_Config_messageType) New() protoreflect.Message {
+ return new(fastReflection_Config)
+}
+func (x fastReflection_Config_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Config
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Config) Descriptor() protoreflect.MessageDescriptor {
+ return md_Config
+}
+
+// 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_Config) Type() protoreflect.MessageType {
+ return _fastReflection_Config_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Config) New() protoreflect.Message {
+ return new(fastReflection_Config)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Config) Interface() protoreflect.ProtoMessage {
+ return (*Config)(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_Config) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.VotingPeriod != int64(0) {
+ value := protoreflect.ValueOfInt64(x.VotingPeriod)
+ if !f(fd_Config_voting_period, value) {
+ return
+ }
+ }
+ if x.MinThreshold != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.MinThreshold)
+ if !f(fd_Config_min_threshold, value) {
+ return
+ }
+ }
+ if x.AccountDidMethodName != "" {
+ value := protoreflect.ValueOfString(x.AccountDidMethodName)
+ if !f(fd_Config_account_did_method_name, value) {
+ return
+ }
+ }
+ if x.AccountDidMethodContext != "" {
+ value := protoreflect.ValueOfString(x.AccountDidMethodContext)
+ if !f(fd_Config_account_did_method_context, value) {
+ return
+ }
+ }
+ if x.AcccountDiscoveryReward != int64(0) {
+ value := protoreflect.ValueOfInt64(x.AcccountDiscoveryReward)
+ if !f(fd_Config_acccount_discovery_reward, value) {
+ return
+ }
+ }
+ if x.DidBaseContext != "" {
+ value := protoreflect.ValueOfString(x.DidBaseContext)
+ if !f(fd_Config_did_base_context, value) {
+ return
+ }
+ }
+ if x.MaximumIdentityAliases != int32(0) {
+ value := protoreflect.ValueOfInt32(x.MaximumIdentityAliases)
+ if !f(fd_Config_maximum_identity_aliases, value) {
+ return
+ }
+ }
+ if len(x.SupportedDidMethods) != 0 {
+ value := protoreflect.ValueOfList(&_Config_8_list{list: &x.SupportedDidMethods})
+ if !f(fd_Config_supported_did_methods, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// 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_Config) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.Config.voting_period":
+ return x.VotingPeriod != int64(0)
+ case "core.identity.Config.min_threshold":
+ return x.MinThreshold != uint64(0)
+ case "core.identity.Config.account_did_method_name":
+ return x.AccountDidMethodName != ""
+ case "core.identity.Config.account_did_method_context":
+ return x.AccountDidMethodContext != ""
+ case "core.identity.Config.acccount_discovery_reward":
+ return x.AcccountDiscoveryReward != int64(0)
+ case "core.identity.Config.did_base_context":
+ return x.DidBaseContext != ""
+ case "core.identity.Config.maximum_identity_aliases":
+ return x.MaximumIdentityAliases != int32(0)
+ case "core.identity.Config.supported_did_methods":
+ return len(x.SupportedDidMethods) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Config"))
+ }
+ panic(fmt.Errorf("message core.identity.Config does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Config) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.Config.voting_period":
+ x.VotingPeriod = int64(0)
+ case "core.identity.Config.min_threshold":
+ x.MinThreshold = uint64(0)
+ case "core.identity.Config.account_did_method_name":
+ x.AccountDidMethodName = ""
+ case "core.identity.Config.account_did_method_context":
+ x.AccountDidMethodContext = ""
+ case "core.identity.Config.acccount_discovery_reward":
+ x.AcccountDiscoveryReward = int64(0)
+ case "core.identity.Config.did_base_context":
+ x.DidBaseContext = ""
+ case "core.identity.Config.maximum_identity_aliases":
+ x.MaximumIdentityAliases = int32(0)
+ case "core.identity.Config.supported_did_methods":
+ x.SupportedDidMethods = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Config"))
+ }
+ panic(fmt.Errorf("message core.identity.Config does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Config) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.Config.voting_period":
+ value := x.VotingPeriod
+ return protoreflect.ValueOfInt64(value)
+ case "core.identity.Config.min_threshold":
+ value := x.MinThreshold
+ return protoreflect.ValueOfUint64(value)
+ case "core.identity.Config.account_did_method_name":
+ value := x.AccountDidMethodName
+ return protoreflect.ValueOfString(value)
+ case "core.identity.Config.account_did_method_context":
+ value := x.AccountDidMethodContext
+ return protoreflect.ValueOfString(value)
+ case "core.identity.Config.acccount_discovery_reward":
+ value := x.AcccountDiscoveryReward
+ return protoreflect.ValueOfInt64(value)
+ case "core.identity.Config.did_base_context":
+ value := x.DidBaseContext
+ return protoreflect.ValueOfString(value)
+ case "core.identity.Config.maximum_identity_aliases":
+ value := x.MaximumIdentityAliases
+ return protoreflect.ValueOfInt32(value)
+ case "core.identity.Config.supported_did_methods":
+ if len(x.SupportedDidMethods) == 0 {
+ return protoreflect.ValueOfList(&_Config_8_list{})
+ }
+ listValue := &_Config_8_list{list: &x.SupportedDidMethods}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Config"))
+ }
+ panic(fmt.Errorf("message core.identity.Config does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Config) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.Config.voting_period":
+ x.VotingPeriod = value.Int()
+ case "core.identity.Config.min_threshold":
+ x.MinThreshold = value.Uint()
+ case "core.identity.Config.account_did_method_name":
+ x.AccountDidMethodName = value.Interface().(string)
+ case "core.identity.Config.account_did_method_context":
+ x.AccountDidMethodContext = value.Interface().(string)
+ case "core.identity.Config.acccount_discovery_reward":
+ x.AcccountDiscoveryReward = value.Int()
+ case "core.identity.Config.did_base_context":
+ x.DidBaseContext = value.Interface().(string)
+ case "core.identity.Config.maximum_identity_aliases":
+ x.MaximumIdentityAliases = int32(value.Int())
+ case "core.identity.Config.supported_did_methods":
+ lv := value.List()
+ clv := lv.(*_Config_8_list)
+ x.SupportedDidMethods = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Config"))
+ }
+ panic(fmt.Errorf("message core.identity.Config does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Config) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.Config.supported_did_methods":
+ if x.SupportedDidMethods == nil {
+ x.SupportedDidMethods = []string{}
+ }
+ value := &_Config_8_list{list: &x.SupportedDidMethods}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.Config.voting_period":
+ panic(fmt.Errorf("field voting_period of message core.identity.Config is not mutable"))
+ case "core.identity.Config.min_threshold":
+ panic(fmt.Errorf("field min_threshold of message core.identity.Config is not mutable"))
+ case "core.identity.Config.account_did_method_name":
+ panic(fmt.Errorf("field account_did_method_name of message core.identity.Config is not mutable"))
+ case "core.identity.Config.account_did_method_context":
+ panic(fmt.Errorf("field account_did_method_context of message core.identity.Config is not mutable"))
+ case "core.identity.Config.acccount_discovery_reward":
+ panic(fmt.Errorf("field acccount_discovery_reward of message core.identity.Config is not mutable"))
+ case "core.identity.Config.did_base_context":
+ panic(fmt.Errorf("field did_base_context of message core.identity.Config is not mutable"))
+ case "core.identity.Config.maximum_identity_aliases":
+ panic(fmt.Errorf("field maximum_identity_aliases of message core.identity.Config is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Config"))
+ }
+ panic(fmt.Errorf("message core.identity.Config does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Config) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.Config.voting_period":
+ return protoreflect.ValueOfInt64(int64(0))
+ case "core.identity.Config.min_threshold":
+ return protoreflect.ValueOfUint64(uint64(0))
+ case "core.identity.Config.account_did_method_name":
+ return protoreflect.ValueOfString("")
+ case "core.identity.Config.account_did_method_context":
+ return protoreflect.ValueOfString("")
+ case "core.identity.Config.acccount_discovery_reward":
+ return protoreflect.ValueOfInt64(int64(0))
+ case "core.identity.Config.did_base_context":
+ return protoreflect.ValueOfString("")
+ case "core.identity.Config.maximum_identity_aliases":
+ return protoreflect.ValueOfInt32(int32(0))
+ case "core.identity.Config.supported_did_methods":
+ list := []string{}
+ return protoreflect.ValueOfList(&_Config_8_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.Config"))
+ }
+ panic(fmt.Errorf("message core.identity.Config does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Config) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.Config", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Config) 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_Config) 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_Config) 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_Config) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Config)
+ 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.VotingPeriod != 0 {
+ n += 1 + runtime.Sov(uint64(x.VotingPeriod))
+ }
+ if x.MinThreshold != 0 {
+ n += 1 + runtime.Sov(uint64(x.MinThreshold))
+ }
+ l = len(x.AccountDidMethodName)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.AccountDidMethodContext)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.AcccountDiscoveryReward != 0 {
+ n += 1 + runtime.Sov(uint64(x.AcccountDiscoveryReward))
+ }
+ l = len(x.DidBaseContext)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.MaximumIdentityAliases != 0 {
+ n += 1 + runtime.Sov(uint64(x.MaximumIdentityAliases))
+ }
+ if len(x.SupportedDidMethods) > 0 {
+ for _, s := range x.SupportedDidMethods {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Config)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.SupportedDidMethods) > 0 {
+ for iNdEx := len(x.SupportedDidMethods) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.SupportedDidMethods[iNdEx])
+ copy(dAtA[i:], x.SupportedDidMethods[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SupportedDidMethods[iNdEx])))
+ i--
+ dAtA[i] = 0x42
+ }
+ }
+ if x.MaximumIdentityAliases != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.MaximumIdentityAliases))
+ i--
+ dAtA[i] = 0x38
+ }
+ if len(x.DidBaseContext) > 0 {
+ i -= len(x.DidBaseContext)
+ copy(dAtA[i:], x.DidBaseContext)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DidBaseContext)))
+ i--
+ dAtA[i] = 0x32
+ }
+ if x.AcccountDiscoveryReward != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.AcccountDiscoveryReward))
+ i--
+ dAtA[i] = 0x28
+ }
+ if len(x.AccountDidMethodContext) > 0 {
+ i -= len(x.AccountDidMethodContext)
+ copy(dAtA[i:], x.AccountDidMethodContext)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AccountDidMethodContext)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.AccountDidMethodName) > 0 {
+ i -= len(x.AccountDidMethodName)
+ copy(dAtA[i:], x.AccountDidMethodName)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AccountDidMethodName)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if x.MinThreshold != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.MinThreshold))
+ i--
+ dAtA[i] = 0x10
+ }
+ if x.VotingPeriod != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.VotingPeriod))
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Config)
+ 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: Config: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Config: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotingPeriod", wireType)
+ }
+ x.VotingPeriod = 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.VotingPeriod |= int64(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 MinThreshold", wireType)
+ }
+ x.MinThreshold = 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.MinThreshold |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 3:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AccountDidMethodName", 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.AccountDidMethodName = 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 AccountDidMethodContext", 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.AccountDidMethodContext = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AcccountDiscoveryReward", wireType)
+ }
+ x.AcccountDiscoveryReward = 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.AcccountDiscoveryReward |= int64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 6:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DidBaseContext", 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.DidBaseContext = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaximumIdentityAliases", wireType)
+ }
+ x.MaximumIdentityAliases = 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.MaximumIdentityAliases |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 8:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupportedDidMethods", 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.SupportedDidMethods = append(x.SupportedDidMethods, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/identity/state.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type Balance struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Account []byte `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
+ Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
+ Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
+}
+
+func (x *Balance) Reset() {
+ *x = Balance{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_state_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Balance) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Balance) ProtoMessage() {}
+
+// Deprecated: Use Balance.ProtoReflect.Descriptor instead.
+func (*Balance) Descriptor() ([]byte, []int) {
+ return file_core_identity_state_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Balance) GetAccount() []byte {
+ if x != nil {
+ return x.Account
+ }
+ return nil
+}
+
+func (x *Balance) GetDenom() string {
+ if x != nil {
+ return x.Denom
+ }
+ return ""
+}
+
+func (x *Balance) GetAmount() uint64 {
+ if x != nil {
+ return x.Amount
+ }
+ return 0
+}
+
+type Account struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
+ Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
+}
+
+func (x *Account) Reset() {
+ *x = Account{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_state_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Account) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Account) ProtoMessage() {}
+
+// Deprecated: Use Account.ProtoReflect.Descriptor instead.
+func (*Account) Descriptor() ([]byte, []int) {
+ return file_core_identity_state_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *Account) GetId() uint64 {
+ if x != nil {
+ return x.Id
+ }
+ return 0
+}
+
+func (x *Account) GetAddress() []byte {
+ if x != nil {
+ return x.Address
+ }
+ return nil
+}
+
+type Config struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ VotingPeriod int64 `protobuf:"varint,1,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"`
+ MinThreshold uint64 `protobuf:"varint,2,opt,name=min_threshold,json=minThreshold,proto3" json:"min_threshold,omitempty"`
+ AccountDidMethodName string `protobuf:"bytes,3,opt,name=account_did_method_name,json=accountDidMethodName,proto3" json:"account_did_method_name,omitempty"`
+ AccountDidMethodContext string `protobuf:"bytes,4,opt,name=account_did_method_context,json=accountDidMethodContext,proto3" json:"account_did_method_context,omitempty"`
+ AcccountDiscoveryReward int64 `protobuf:"varint,5,opt,name=acccount_discovery_reward,json=acccountDiscoveryReward,proto3" json:"acccount_discovery_reward,omitempty"`
+ DidBaseContext string `protobuf:"bytes,6,opt,name=did_base_context,json=didBaseContext,proto3" json:"did_base_context,omitempty"`
+ MaximumIdentityAliases int32 `protobuf:"varint,7,opt,name=maximum_identity_aliases,json=maximumIdentityAliases,proto3" json:"maximum_identity_aliases,omitempty"`
+ SupportedDidMethods []string `protobuf:"bytes,8,rep,name=supported_did_methods,json=supportedDidMethods,proto3" json:"supported_did_methods,omitempty"`
+}
+
+func (x *Config) Reset() {
+ *x = Config{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_state_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Config) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Config) ProtoMessage() {}
+
+// Deprecated: Use Config.ProtoReflect.Descriptor instead.
+func (*Config) Descriptor() ([]byte, []int) {
+ return file_core_identity_state_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *Config) GetVotingPeriod() int64 {
+ if x != nil {
+ return x.VotingPeriod
+ }
+ return 0
+}
+
+func (x *Config) GetMinThreshold() uint64 {
+ if x != nil {
+ return x.MinThreshold
+ }
+ return 0
+}
+
+func (x *Config) GetAccountDidMethodName() string {
+ if x != nil {
+ return x.AccountDidMethodName
+ }
+ return ""
+}
+
+func (x *Config) GetAccountDidMethodContext() string {
+ if x != nil {
+ return x.AccountDidMethodContext
+ }
+ return ""
+}
+
+func (x *Config) GetAcccountDiscoveryReward() int64 {
+ if x != nil {
+ return x.AcccountDiscoveryReward
+ }
+ return 0
+}
+
+func (x *Config) GetDidBaseContext() string {
+ if x != nil {
+ return x.DidBaseContext
+ }
+ return ""
+}
+
+func (x *Config) GetMaximumIdentityAliases() int32 {
+ if x != nil {
+ return x.MaximumIdentityAliases
+ }
+ return 0
+}
+
+func (x *Config) GetSupportedDidMethods() []string {
+ if x != nil {
+ return x.SupportedDidMethods
+ }
+ return nil
+}
+
+var File_core_identity_state_proto protoreflect.FileDescriptor
+
+var file_core_identity_state_proto_rawDesc = []byte{
+ 0x0a, 0x19, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f,
+ 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x22, 0x77, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18,
+ 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
+ 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f,
+ 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x16,
+ 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06,
+ 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x24, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x1e, 0x0a, 0x0f,
+ 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2c, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12,
+ 0x09, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x10, 0x01, 0x18, 0x01, 0x22, 0x54, 0x0a, 0x07,
+ 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x3a, 0x1f, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x19, 0x0a, 0x06, 0x0a, 0x02, 0x69, 0x64, 0x10,
+ 0x01, 0x12, 0x0d, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x10, 0x01, 0x18, 0x01,
+ 0x18, 0x02, 0x22, 0xa4, 0x03, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a,
+ 0x0d, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x65, 0x72, 0x69,
+ 0x6f, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68,
+ 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x54, 0x68,
+ 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x35, 0x0a, 0x17, 0x61, 0x63, 0x63, 0x6f, 0x75,
+ 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x6e, 0x61,
+ 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
+ 0x74, 0x44, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b,
+ 0x0a, 0x1a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x64, 0x5f, 0x6d, 0x65,
+ 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x17, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x69, 0x64, 0x4d, 0x65,
+ 0x74, 0x68, 0x6f, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x61,
+ 0x63, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72,
+ 0x79, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17,
+ 0x61, 0x63, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72,
+ 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x69, 0x64, 0x5f, 0x62,
+ 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0e, 0x64, 0x69, 0x64, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78,
+ 0x74, 0x12, 0x38, 0x0a, 0x18, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x69, 0x64, 0x65,
+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x05, 0x52, 0x16, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x49, 0x64, 0x65, 0x6e,
+ 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73,
+ 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x69, 0x64, 0x5f, 0x6d, 0x65, 0x74,
+ 0x68, 0x6f, 0x64, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x73, 0x75, 0x70, 0x70,
+ 0x6f, 0x72, 0x74, 0x65, 0x64, 0x44, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x3a,
+ 0x08, 0xfa, 0x9e, 0xd3, 0x8e, 0x03, 0x02, 0x08, 0x03, 0x42, 0x9a, 0x01, 0x0a, 0x11, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42,
+ 0x0a, 0x53, 0x74, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 0x67,
+ 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69,
+ 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0xa2, 0x02, 0x03, 0x43, 0x49, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65,
+ 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xca, 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65,
+ 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xe2, 0x02, 0x19, 0x43, 0x6f, 0x72, 0x65,
+ 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x49, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_identity_state_proto_rawDescOnce sync.Once
+ file_core_identity_state_proto_rawDescData = file_core_identity_state_proto_rawDesc
+)
+
+func file_core_identity_state_proto_rawDescGZIP() []byte {
+ file_core_identity_state_proto_rawDescOnce.Do(func() {
+ file_core_identity_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_identity_state_proto_rawDescData)
+ })
+ return file_core_identity_state_proto_rawDescData
+}
+
+var file_core_identity_state_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_core_identity_state_proto_goTypes = []interface{}{
+ (*Balance)(nil), // 0: core.identity.Balance
+ (*Account)(nil), // 1: core.identity.Account
+ (*Config)(nil), // 2: core.identity.Config
+}
+var file_core_identity_state_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_core_identity_state_proto_init() }
+func file_core_identity_state_proto_init() {
+ if File_core_identity_state_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_core_identity_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Balance); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Account); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_state_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Config); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_identity_state_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 3,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_identity_state_proto_goTypes,
+ DependencyIndexes: file_core_identity_state_proto_depIdxs,
+ MessageInfos: file_core_identity_state_proto_msgTypes,
+ }.Build()
+ File_core_identity_state_proto = out.File
+ file_core_identity_state_proto_rawDesc = nil
+ file_core_identity_state_proto_goTypes = nil
+ file_core_identity_state_proto_depIdxs = nil
+}
diff --git a/api/core/identity/tx.pulsar.go b/api/core/identity/tx.pulsar.go
new file mode 100644
index 000000000..b5c2f61cf
--- /dev/null
+++ b/api/core/identity/tx.pulsar.go
@@ -0,0 +1,4918 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package identity
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_MsgRegisterIdentity protoreflect.MessageDescriptor
+ fd_MsgRegisterIdentity_creator protoreflect.FieldDescriptor
+ fd_MsgRegisterIdentity_did_document protoreflect.FieldDescriptor
+ fd_MsgRegisterIdentity_wallet_id protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_tx_proto_init()
+ md_MsgRegisterIdentity = File_core_identity_tx_proto.Messages().ByName("MsgRegisterIdentity")
+ fd_MsgRegisterIdentity_creator = md_MsgRegisterIdentity.Fields().ByName("creator")
+ fd_MsgRegisterIdentity_did_document = md_MsgRegisterIdentity.Fields().ByName("did_document")
+ fd_MsgRegisterIdentity_wallet_id = md_MsgRegisterIdentity.Fields().ByName("wallet_id")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgRegisterIdentity)(nil)
+
+type fastReflection_MsgRegisterIdentity MsgRegisterIdentity
+
+func (x *MsgRegisterIdentity) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgRegisterIdentity)(x)
+}
+
+func (x *MsgRegisterIdentity) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgRegisterIdentity_messageType fastReflection_MsgRegisterIdentity_messageType
+var _ protoreflect.MessageType = fastReflection_MsgRegisterIdentity_messageType{}
+
+type fastReflection_MsgRegisterIdentity_messageType struct{}
+
+func (x fastReflection_MsgRegisterIdentity_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgRegisterIdentity)(nil)
+}
+func (x fastReflection_MsgRegisterIdentity_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgRegisterIdentity)
+}
+func (x fastReflection_MsgRegisterIdentity_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgRegisterIdentity
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgRegisterIdentity) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgRegisterIdentity
+}
+
+// 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_MsgRegisterIdentity) Type() protoreflect.MessageType {
+ return _fastReflection_MsgRegisterIdentity_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgRegisterIdentity) New() protoreflect.Message {
+ return new(fastReflection_MsgRegisterIdentity)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgRegisterIdentity) Interface() protoreflect.ProtoMessage {
+ return (*MsgRegisterIdentity)(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_MsgRegisterIdentity) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Creator != "" {
+ value := protoreflect.ValueOfString(x.Creator)
+ if !f(fd_MsgRegisterIdentity_creator, value) {
+ return
+ }
+ }
+ if x.DidDocument != nil {
+ value := protoreflect.ValueOfMessage(x.DidDocument.ProtoReflect())
+ if !f(fd_MsgRegisterIdentity_did_document, value) {
+ return
+ }
+ }
+ if x.WalletId != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.WalletId)
+ if !f(fd_MsgRegisterIdentity_wallet_id, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgRegisterIdentity) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.MsgRegisterIdentity.creator":
+ return x.Creator != ""
+ case "core.identity.MsgRegisterIdentity.did_document":
+ return x.DidDocument != nil
+ case "core.identity.MsgRegisterIdentity.wallet_id":
+ return x.WalletId != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentity"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentity does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgRegisterIdentity) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.MsgRegisterIdentity.creator":
+ x.Creator = ""
+ case "core.identity.MsgRegisterIdentity.did_document":
+ x.DidDocument = nil
+ case "core.identity.MsgRegisterIdentity.wallet_id":
+ x.WalletId = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentity"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentity does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgRegisterIdentity) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.MsgRegisterIdentity.creator":
+ value := x.Creator
+ return protoreflect.ValueOfString(value)
+ case "core.identity.MsgRegisterIdentity.did_document":
+ value := x.DidDocument
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "core.identity.MsgRegisterIdentity.wallet_id":
+ value := x.WalletId
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentity"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentity does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgRegisterIdentity) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.MsgRegisterIdentity.creator":
+ x.Creator = value.Interface().(string)
+ case "core.identity.MsgRegisterIdentity.did_document":
+ x.DidDocument = value.Message().Interface().(*DIDDocument)
+ case "core.identity.MsgRegisterIdentity.wallet_id":
+ x.WalletId = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentity"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentity does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgRegisterIdentity) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgRegisterIdentity.did_document":
+ if x.DidDocument == nil {
+ x.DidDocument = new(DIDDocument)
+ }
+ return protoreflect.ValueOfMessage(x.DidDocument.ProtoReflect())
+ case "core.identity.MsgRegisterIdentity.creator":
+ panic(fmt.Errorf("field creator of message core.identity.MsgRegisterIdentity is not mutable"))
+ case "core.identity.MsgRegisterIdentity.wallet_id":
+ panic(fmt.Errorf("field wallet_id of message core.identity.MsgRegisterIdentity is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentity"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentity does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgRegisterIdentity) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgRegisterIdentity.creator":
+ return protoreflect.ValueOfString("")
+ case "core.identity.MsgRegisterIdentity.did_document":
+ m := new(DIDDocument)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "core.identity.MsgRegisterIdentity.wallet_id":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentity"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentity does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgRegisterIdentity) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.MsgRegisterIdentity", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgRegisterIdentity) 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_MsgRegisterIdentity) 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_MsgRegisterIdentity) 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_MsgRegisterIdentity) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgRegisterIdentity)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Creator)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.DidDocument != nil {
+ l = options.Size(x.DidDocument)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.WalletId != 0 {
+ n += 1 + runtime.Sov(uint64(x.WalletId))
+ }
+ 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().(*MsgRegisterIdentity)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.WalletId != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.WalletId))
+ i--
+ dAtA[i] = 0x18
+ }
+ if x.DidDocument != nil {
+ encoded, err := options.Marshal(x.DidDocument)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Creator) > 0 {
+ i -= len(x.Creator)
+ copy(dAtA[i:], x.Creator)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
+ 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().(*MsgRegisterIdentity)
+ 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: MsgRegisterIdentity: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterIdentity: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DidDocument", 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.DidDocument == nil {
+ x.DidDocument = &DIDDocument{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DidDocument); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletId", wireType)
+ }
+ x.WalletId = 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.WalletId |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgRegisterIdentityResponse protoreflect.MessageDescriptor
+ fd_MsgRegisterIdentityResponse_success protoreflect.FieldDescriptor
+ fd_MsgRegisterIdentityResponse_did_document protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_tx_proto_init()
+ md_MsgRegisterIdentityResponse = File_core_identity_tx_proto.Messages().ByName("MsgRegisterIdentityResponse")
+ fd_MsgRegisterIdentityResponse_success = md_MsgRegisterIdentityResponse.Fields().ByName("success")
+ fd_MsgRegisterIdentityResponse_did_document = md_MsgRegisterIdentityResponse.Fields().ByName("did_document")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgRegisterIdentityResponse)(nil)
+
+type fastReflection_MsgRegisterIdentityResponse MsgRegisterIdentityResponse
+
+func (x *MsgRegisterIdentityResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgRegisterIdentityResponse)(x)
+}
+
+func (x *MsgRegisterIdentityResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgRegisterIdentityResponse_messageType fastReflection_MsgRegisterIdentityResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgRegisterIdentityResponse_messageType{}
+
+type fastReflection_MsgRegisterIdentityResponse_messageType struct{}
+
+func (x fastReflection_MsgRegisterIdentityResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgRegisterIdentityResponse)(nil)
+}
+func (x fastReflection_MsgRegisterIdentityResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgRegisterIdentityResponse)
+}
+func (x fastReflection_MsgRegisterIdentityResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgRegisterIdentityResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgRegisterIdentityResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgRegisterIdentityResponse
+}
+
+// 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_MsgRegisterIdentityResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgRegisterIdentityResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgRegisterIdentityResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgRegisterIdentityResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgRegisterIdentityResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgRegisterIdentityResponse)(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_MsgRegisterIdentityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_MsgRegisterIdentityResponse_success, value) {
+ return
+ }
+ }
+ if x.DidDocument != nil {
+ value := protoreflect.ValueOfMessage(x.DidDocument.ProtoReflect())
+ if !f(fd_MsgRegisterIdentityResponse_did_document, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgRegisterIdentityResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.MsgRegisterIdentityResponse.success":
+ return x.Success != false
+ case "core.identity.MsgRegisterIdentityResponse.did_document":
+ return x.DidDocument != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentityResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentityResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgRegisterIdentityResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.MsgRegisterIdentityResponse.success":
+ x.Success = false
+ case "core.identity.MsgRegisterIdentityResponse.did_document":
+ x.DidDocument = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentityResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentityResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgRegisterIdentityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.MsgRegisterIdentityResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "core.identity.MsgRegisterIdentityResponse.did_document":
+ value := x.DidDocument
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentityResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentityResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgRegisterIdentityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.MsgRegisterIdentityResponse.success":
+ x.Success = value.Bool()
+ case "core.identity.MsgRegisterIdentityResponse.did_document":
+ x.DidDocument = value.Message().Interface().(*DIDDocument)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentityResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentityResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgRegisterIdentityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgRegisterIdentityResponse.did_document":
+ if x.DidDocument == nil {
+ x.DidDocument = new(DIDDocument)
+ }
+ return protoreflect.ValueOfMessage(x.DidDocument.ProtoReflect())
+ case "core.identity.MsgRegisterIdentityResponse.success":
+ panic(fmt.Errorf("field success of message core.identity.MsgRegisterIdentityResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentityResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentityResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgRegisterIdentityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgRegisterIdentityResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "core.identity.MsgRegisterIdentityResponse.did_document":
+ m := new(DIDDocument)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgRegisterIdentityResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgRegisterIdentityResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgRegisterIdentityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.MsgRegisterIdentityResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgRegisterIdentityResponse) 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_MsgRegisterIdentityResponse) 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_MsgRegisterIdentityResponse) 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_MsgRegisterIdentityResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgRegisterIdentityResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ if x.DidDocument != nil {
+ l = options.Size(x.DidDocument)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgRegisterIdentityResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.DidDocument != nil {
+ encoded, err := options.Marshal(x.DidDocument)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgRegisterIdentityResponse)
+ 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: MsgRegisterIdentityResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterIdentityResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DidDocument", 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.DidDocument == nil {
+ x.DidDocument = &DIDDocument{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DidDocument); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_MsgCreateControllerAccount_4_list)(nil)
+
+type _MsgCreateControllerAccount_4_list struct {
+ list *[]string
+}
+
+func (x *_MsgCreateControllerAccount_4_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_MsgCreateControllerAccount_4_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_MsgCreateControllerAccount_4_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_MsgCreateControllerAccount_4_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_MsgCreateControllerAccount_4_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message MsgCreateControllerAccount at list field Authenticators as it is not of Message kind"))
+}
+
+func (x *_MsgCreateControllerAccount_4_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_MsgCreateControllerAccount_4_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_MsgCreateControllerAccount_4_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_MsgCreateControllerAccount_5_list)(nil)
+
+type _MsgCreateControllerAccount_5_list struct {
+ list *[]string
+}
+
+func (x *_MsgCreateControllerAccount_5_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_MsgCreateControllerAccount_5_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_MsgCreateControllerAccount_5_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_MsgCreateControllerAccount_5_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_MsgCreateControllerAccount_5_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message MsgCreateControllerAccount at list field Wallets as it is not of Message kind"))
+}
+
+func (x *_MsgCreateControllerAccount_5_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_MsgCreateControllerAccount_5_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_MsgCreateControllerAccount_5_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_MsgCreateControllerAccount protoreflect.MessageDescriptor
+ fd_MsgCreateControllerAccount_address protoreflect.FieldDescriptor
+ fd_MsgCreateControllerAccount_publicKey protoreflect.FieldDescriptor
+ fd_MsgCreateControllerAccount_authenticators protoreflect.FieldDescriptor
+ fd_MsgCreateControllerAccount_wallets protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_tx_proto_init()
+ md_MsgCreateControllerAccount = File_core_identity_tx_proto.Messages().ByName("MsgCreateControllerAccount")
+ fd_MsgCreateControllerAccount_address = md_MsgCreateControllerAccount.Fields().ByName("address")
+ fd_MsgCreateControllerAccount_publicKey = md_MsgCreateControllerAccount.Fields().ByName("publicKey")
+ fd_MsgCreateControllerAccount_authenticators = md_MsgCreateControllerAccount.Fields().ByName("authenticators")
+ fd_MsgCreateControllerAccount_wallets = md_MsgCreateControllerAccount.Fields().ByName("wallets")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgCreateControllerAccount)(nil)
+
+type fastReflection_MsgCreateControllerAccount MsgCreateControllerAccount
+
+func (x *MsgCreateControllerAccount) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgCreateControllerAccount)(x)
+}
+
+func (x *MsgCreateControllerAccount) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_tx_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgCreateControllerAccount_messageType fastReflection_MsgCreateControllerAccount_messageType
+var _ protoreflect.MessageType = fastReflection_MsgCreateControllerAccount_messageType{}
+
+type fastReflection_MsgCreateControllerAccount_messageType struct{}
+
+func (x fastReflection_MsgCreateControllerAccount_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgCreateControllerAccount)(nil)
+}
+func (x fastReflection_MsgCreateControllerAccount_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateControllerAccount)
+}
+func (x fastReflection_MsgCreateControllerAccount_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateControllerAccount
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgCreateControllerAccount) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateControllerAccount
+}
+
+// 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_MsgCreateControllerAccount) Type() protoreflect.MessageType {
+ return _fastReflection_MsgCreateControllerAccount_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgCreateControllerAccount) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateControllerAccount)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgCreateControllerAccount) Interface() protoreflect.ProtoMessage {
+ return (*MsgCreateControllerAccount)(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_MsgCreateControllerAccount) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgCreateControllerAccount_address, value) {
+ return
+ }
+ }
+ if x.PublicKey != "" {
+ value := protoreflect.ValueOfString(x.PublicKey)
+ if !f(fd_MsgCreateControllerAccount_publicKey, value) {
+ return
+ }
+ }
+ if len(x.Authenticators) != 0 {
+ value := protoreflect.ValueOfList(&_MsgCreateControllerAccount_4_list{list: &x.Authenticators})
+ if !f(fd_MsgCreateControllerAccount_authenticators, value) {
+ return
+ }
+ }
+ if len(x.Wallets) != 0 {
+ value := protoreflect.ValueOfList(&_MsgCreateControllerAccount_5_list{list: &x.Wallets})
+ if !f(fd_MsgCreateControllerAccount_wallets, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgCreateControllerAccount) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.MsgCreateControllerAccount.address":
+ return x.Address != ""
+ case "core.identity.MsgCreateControllerAccount.publicKey":
+ return x.PublicKey != ""
+ case "core.identity.MsgCreateControllerAccount.authenticators":
+ return len(x.Authenticators) != 0
+ case "core.identity.MsgCreateControllerAccount.wallets":
+ return len(x.Wallets) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateControllerAccount) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.MsgCreateControllerAccount.address":
+ x.Address = ""
+ case "core.identity.MsgCreateControllerAccount.publicKey":
+ x.PublicKey = ""
+ case "core.identity.MsgCreateControllerAccount.authenticators":
+ x.Authenticators = nil
+ case "core.identity.MsgCreateControllerAccount.wallets":
+ x.Wallets = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgCreateControllerAccount) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.MsgCreateControllerAccount.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "core.identity.MsgCreateControllerAccount.publicKey":
+ value := x.PublicKey
+ return protoreflect.ValueOfString(value)
+ case "core.identity.MsgCreateControllerAccount.authenticators":
+ if len(x.Authenticators) == 0 {
+ return protoreflect.ValueOfList(&_MsgCreateControllerAccount_4_list{})
+ }
+ listValue := &_MsgCreateControllerAccount_4_list{list: &x.Authenticators}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.MsgCreateControllerAccount.wallets":
+ if len(x.Wallets) == 0 {
+ return protoreflect.ValueOfList(&_MsgCreateControllerAccount_5_list{})
+ }
+ listValue := &_MsgCreateControllerAccount_5_list{list: &x.Wallets}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccount does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateControllerAccount) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.MsgCreateControllerAccount.address":
+ x.Address = value.Interface().(string)
+ case "core.identity.MsgCreateControllerAccount.publicKey":
+ x.PublicKey = value.Interface().(string)
+ case "core.identity.MsgCreateControllerAccount.authenticators":
+ lv := value.List()
+ clv := lv.(*_MsgCreateControllerAccount_4_list)
+ x.Authenticators = *clv.list
+ case "core.identity.MsgCreateControllerAccount.wallets":
+ lv := value.List()
+ clv := lv.(*_MsgCreateControllerAccount_5_list)
+ x.Wallets = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateControllerAccount) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgCreateControllerAccount.authenticators":
+ if x.Authenticators == nil {
+ x.Authenticators = []string{}
+ }
+ value := &_MsgCreateControllerAccount_4_list{list: &x.Authenticators}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.MsgCreateControllerAccount.wallets":
+ if x.Wallets == nil {
+ x.Wallets = []string{}
+ }
+ value := &_MsgCreateControllerAccount_5_list{list: &x.Wallets}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.MsgCreateControllerAccount.address":
+ panic(fmt.Errorf("field address of message core.identity.MsgCreateControllerAccount is not mutable"))
+ case "core.identity.MsgCreateControllerAccount.publicKey":
+ panic(fmt.Errorf("field publicKey of message core.identity.MsgCreateControllerAccount is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgCreateControllerAccount) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgCreateControllerAccount.address":
+ return protoreflect.ValueOfString("")
+ case "core.identity.MsgCreateControllerAccount.publicKey":
+ return protoreflect.ValueOfString("")
+ case "core.identity.MsgCreateControllerAccount.authenticators":
+ list := []string{}
+ return protoreflect.ValueOfList(&_MsgCreateControllerAccount_4_list{list: &list})
+ case "core.identity.MsgCreateControllerAccount.wallets":
+ list := []string{}
+ return protoreflect.ValueOfList(&_MsgCreateControllerAccount_5_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgCreateControllerAccount) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.MsgCreateControllerAccount", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgCreateControllerAccount) 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_MsgCreateControllerAccount) 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_MsgCreateControllerAccount) 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_MsgCreateControllerAccount) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgCreateControllerAccount)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.PublicKey)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Authenticators) > 0 {
+ for _, s := range x.Authenticators {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.Wallets) > 0 {
+ for _, s := range x.Wallets {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgCreateControllerAccount)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Wallets) > 0 {
+ for iNdEx := len(x.Wallets) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Wallets[iNdEx])
+ copy(dAtA[i:], x.Wallets[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Wallets[iNdEx])))
+ i--
+ dAtA[i] = 0x2a
+ }
+ }
+ if len(x.Authenticators) > 0 {
+ for iNdEx := len(x.Authenticators) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Authenticators[iNdEx])
+ copy(dAtA[i:], x.Authenticators[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authenticators[iNdEx])))
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ if len(x.PublicKey) > 0 {
+ i -= len(x.PublicKey)
+ copy(dAtA[i:], x.PublicKey)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKey)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 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().(*MsgCreateControllerAccount)
+ 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: MsgCreateControllerAccount: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateControllerAccount: 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 Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PublicKey", 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.PublicKey = 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 Authenticators", 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.Authenticators = append(x.Authenticators, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Wallets", 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.Wallets = append(x.Wallets, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgCreateControllerAccountResponse protoreflect.MessageDescriptor
+ fd_MsgCreateControllerAccountResponse_id protoreflect.FieldDescriptor
+ fd_MsgCreateControllerAccountResponse_account protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_tx_proto_init()
+ md_MsgCreateControllerAccountResponse = File_core_identity_tx_proto.Messages().ByName("MsgCreateControllerAccountResponse")
+ fd_MsgCreateControllerAccountResponse_id = md_MsgCreateControllerAccountResponse.Fields().ByName("id")
+ fd_MsgCreateControllerAccountResponse_account = md_MsgCreateControllerAccountResponse.Fields().ByName("account")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgCreateControllerAccountResponse)(nil)
+
+type fastReflection_MsgCreateControllerAccountResponse MsgCreateControllerAccountResponse
+
+func (x *MsgCreateControllerAccountResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgCreateControllerAccountResponse)(x)
+}
+
+func (x *MsgCreateControllerAccountResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_tx_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgCreateControllerAccountResponse_messageType fastReflection_MsgCreateControllerAccountResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgCreateControllerAccountResponse_messageType{}
+
+type fastReflection_MsgCreateControllerAccountResponse_messageType struct{}
+
+func (x fastReflection_MsgCreateControllerAccountResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgCreateControllerAccountResponse)(nil)
+}
+func (x fastReflection_MsgCreateControllerAccountResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateControllerAccountResponse)
+}
+func (x fastReflection_MsgCreateControllerAccountResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateControllerAccountResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgCreateControllerAccountResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateControllerAccountResponse
+}
+
+// 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_MsgCreateControllerAccountResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgCreateControllerAccountResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgCreateControllerAccountResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateControllerAccountResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgCreateControllerAccountResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgCreateControllerAccountResponse)(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_MsgCreateControllerAccountResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Id != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.Id)
+ if !f(fd_MsgCreateControllerAccountResponse_id, value) {
+ return
+ }
+ }
+ if x.Account != nil {
+ value := protoreflect.ValueOfMessage(x.Account.ProtoReflect())
+ if !f(fd_MsgCreateControllerAccountResponse_account, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgCreateControllerAccountResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.MsgCreateControllerAccountResponse.id":
+ return x.Id != uint64(0)
+ case "core.identity.MsgCreateControllerAccountResponse.account":
+ return x.Account != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateControllerAccountResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.MsgCreateControllerAccountResponse.id":
+ x.Id = uint64(0)
+ case "core.identity.MsgCreateControllerAccountResponse.account":
+ x.Account = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgCreateControllerAccountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.MsgCreateControllerAccountResponse.id":
+ value := x.Id
+ return protoreflect.ValueOfUint64(value)
+ case "core.identity.MsgCreateControllerAccountResponse.account":
+ value := x.Account
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccountResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateControllerAccountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.MsgCreateControllerAccountResponse.id":
+ x.Id = value.Uint()
+ case "core.identity.MsgCreateControllerAccountResponse.account":
+ x.Account = value.Message().Interface().(*ControllerAccount)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateControllerAccountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgCreateControllerAccountResponse.account":
+ if x.Account == nil {
+ x.Account = new(ControllerAccount)
+ }
+ return protoreflect.ValueOfMessage(x.Account.ProtoReflect())
+ case "core.identity.MsgCreateControllerAccountResponse.id":
+ panic(fmt.Errorf("field id of message core.identity.MsgCreateControllerAccountResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgCreateControllerAccountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgCreateControllerAccountResponse.id":
+ return protoreflect.ValueOfUint64(uint64(0))
+ case "core.identity.MsgCreateControllerAccountResponse.account":
+ m := new(ControllerAccount)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgCreateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgCreateControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgCreateControllerAccountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.MsgCreateControllerAccountResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgCreateControllerAccountResponse) 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_MsgCreateControllerAccountResponse) 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_MsgCreateControllerAccountResponse) 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_MsgCreateControllerAccountResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgCreateControllerAccountResponse)
+ 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.Id != 0 {
+ n += 1 + runtime.Sov(uint64(x.Id))
+ }
+ if x.Account != nil {
+ l = options.Size(x.Account)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgCreateControllerAccountResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Account != nil {
+ encoded, err := options.Marshal(x.Account)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Id != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgCreateControllerAccountResponse)
+ 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: MsgCreateControllerAccountResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateControllerAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ x.Id = 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.Id |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Account == nil {
+ x.Account = &ControllerAccount{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Account); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_MsgUpdateControllerAccount_4_list)(nil)
+
+type _MsgUpdateControllerAccount_4_list struct {
+ list *[]string
+}
+
+func (x *_MsgUpdateControllerAccount_4_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_MsgUpdateControllerAccount_4_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_MsgUpdateControllerAccount_4_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_MsgUpdateControllerAccount_4_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_MsgUpdateControllerAccount_4_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message MsgUpdateControllerAccount at list field Authenticators as it is not of Message kind"))
+}
+
+func (x *_MsgUpdateControllerAccount_4_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_MsgUpdateControllerAccount_4_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_MsgUpdateControllerAccount_4_list) IsValid() bool {
+ return x.list != nil
+}
+
+var _ protoreflect.List = (*_MsgUpdateControllerAccount_5_list)(nil)
+
+type _MsgUpdateControllerAccount_5_list struct {
+ list *[]string
+}
+
+func (x *_MsgUpdateControllerAccount_5_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_MsgUpdateControllerAccount_5_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_MsgUpdateControllerAccount_5_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_MsgUpdateControllerAccount_5_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_MsgUpdateControllerAccount_5_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message MsgUpdateControllerAccount at list field Wallets as it is not of Message kind"))
+}
+
+func (x *_MsgUpdateControllerAccount_5_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_MsgUpdateControllerAccount_5_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_MsgUpdateControllerAccount_5_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_MsgUpdateControllerAccount protoreflect.MessageDescriptor
+ fd_MsgUpdateControllerAccount_address protoreflect.FieldDescriptor
+ fd_MsgUpdateControllerAccount_id protoreflect.FieldDescriptor
+ fd_MsgUpdateControllerAccount_authenticators protoreflect.FieldDescriptor
+ fd_MsgUpdateControllerAccount_wallets protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_tx_proto_init()
+ md_MsgUpdateControllerAccount = File_core_identity_tx_proto.Messages().ByName("MsgUpdateControllerAccount")
+ fd_MsgUpdateControllerAccount_address = md_MsgUpdateControllerAccount.Fields().ByName("address")
+ fd_MsgUpdateControllerAccount_id = md_MsgUpdateControllerAccount.Fields().ByName("id")
+ fd_MsgUpdateControllerAccount_authenticators = md_MsgUpdateControllerAccount.Fields().ByName("authenticators")
+ fd_MsgUpdateControllerAccount_wallets = md_MsgUpdateControllerAccount.Fields().ByName("wallets")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateControllerAccount)(nil)
+
+type fastReflection_MsgUpdateControllerAccount MsgUpdateControllerAccount
+
+func (x *MsgUpdateControllerAccount) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateControllerAccount)(x)
+}
+
+func (x *MsgUpdateControllerAccount) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_tx_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateControllerAccount_messageType fastReflection_MsgUpdateControllerAccount_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateControllerAccount_messageType{}
+
+type fastReflection_MsgUpdateControllerAccount_messageType struct{}
+
+func (x fastReflection_MsgUpdateControllerAccount_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateControllerAccount)(nil)
+}
+func (x fastReflection_MsgUpdateControllerAccount_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateControllerAccount)
+}
+func (x fastReflection_MsgUpdateControllerAccount_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateControllerAccount
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateControllerAccount) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateControllerAccount
+}
+
+// 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_MsgUpdateControllerAccount) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateControllerAccount_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateControllerAccount) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateControllerAccount)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateControllerAccount) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateControllerAccount)(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_MsgUpdateControllerAccount) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgUpdateControllerAccount_address, value) {
+ return
+ }
+ }
+ if x.Id != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.Id)
+ if !f(fd_MsgUpdateControllerAccount_id, value) {
+ return
+ }
+ }
+ if len(x.Authenticators) != 0 {
+ value := protoreflect.ValueOfList(&_MsgUpdateControllerAccount_4_list{list: &x.Authenticators})
+ if !f(fd_MsgUpdateControllerAccount_authenticators, value) {
+ return
+ }
+ }
+ if len(x.Wallets) != 0 {
+ value := protoreflect.ValueOfList(&_MsgUpdateControllerAccount_5_list{list: &x.Wallets})
+ if !f(fd_MsgUpdateControllerAccount_wallets, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateControllerAccount) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.MsgUpdateControllerAccount.address":
+ return x.Address != ""
+ case "core.identity.MsgUpdateControllerAccount.id":
+ return x.Id != uint64(0)
+ case "core.identity.MsgUpdateControllerAccount.authenticators":
+ return len(x.Authenticators) != 0
+ case "core.identity.MsgUpdateControllerAccount.wallets":
+ return len(x.Wallets) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateControllerAccount) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.MsgUpdateControllerAccount.address":
+ x.Address = ""
+ case "core.identity.MsgUpdateControllerAccount.id":
+ x.Id = uint64(0)
+ case "core.identity.MsgUpdateControllerAccount.authenticators":
+ x.Authenticators = nil
+ case "core.identity.MsgUpdateControllerAccount.wallets":
+ x.Wallets = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgUpdateControllerAccount) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.MsgUpdateControllerAccount.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "core.identity.MsgUpdateControllerAccount.id":
+ value := x.Id
+ return protoreflect.ValueOfUint64(value)
+ case "core.identity.MsgUpdateControllerAccount.authenticators":
+ if len(x.Authenticators) == 0 {
+ return protoreflect.ValueOfList(&_MsgUpdateControllerAccount_4_list{})
+ }
+ listValue := &_MsgUpdateControllerAccount_4_list{list: &x.Authenticators}
+ return protoreflect.ValueOfList(listValue)
+ case "core.identity.MsgUpdateControllerAccount.wallets":
+ if len(x.Wallets) == 0 {
+ return protoreflect.ValueOfList(&_MsgUpdateControllerAccount_5_list{})
+ }
+ listValue := &_MsgUpdateControllerAccount_5_list{list: &x.Wallets}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccount does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateControllerAccount) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.MsgUpdateControllerAccount.address":
+ x.Address = value.Interface().(string)
+ case "core.identity.MsgUpdateControllerAccount.id":
+ x.Id = value.Uint()
+ case "core.identity.MsgUpdateControllerAccount.authenticators":
+ lv := value.List()
+ clv := lv.(*_MsgUpdateControllerAccount_4_list)
+ x.Authenticators = *clv.list
+ case "core.identity.MsgUpdateControllerAccount.wallets":
+ lv := value.List()
+ clv := lv.(*_MsgUpdateControllerAccount_5_list)
+ x.Wallets = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateControllerAccount) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgUpdateControllerAccount.authenticators":
+ if x.Authenticators == nil {
+ x.Authenticators = []string{}
+ }
+ value := &_MsgUpdateControllerAccount_4_list{list: &x.Authenticators}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.MsgUpdateControllerAccount.wallets":
+ if x.Wallets == nil {
+ x.Wallets = []string{}
+ }
+ value := &_MsgUpdateControllerAccount_5_list{list: &x.Wallets}
+ return protoreflect.ValueOfList(value)
+ case "core.identity.MsgUpdateControllerAccount.address":
+ panic(fmt.Errorf("field address of message core.identity.MsgUpdateControllerAccount is not mutable"))
+ case "core.identity.MsgUpdateControllerAccount.id":
+ panic(fmt.Errorf("field id of message core.identity.MsgUpdateControllerAccount is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateControllerAccount) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgUpdateControllerAccount.address":
+ return protoreflect.ValueOfString("")
+ case "core.identity.MsgUpdateControllerAccount.id":
+ return protoreflect.ValueOfUint64(uint64(0))
+ case "core.identity.MsgUpdateControllerAccount.authenticators":
+ list := []string{}
+ return protoreflect.ValueOfList(&_MsgUpdateControllerAccount_4_list{list: &list})
+ case "core.identity.MsgUpdateControllerAccount.wallets":
+ list := []string{}
+ return protoreflect.ValueOfList(&_MsgUpdateControllerAccount_5_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateControllerAccount) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.MsgUpdateControllerAccount", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgUpdateControllerAccount) 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_MsgUpdateControllerAccount) 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_MsgUpdateControllerAccount) 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_MsgUpdateControllerAccount) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateControllerAccount)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Id != 0 {
+ n += 1 + runtime.Sov(uint64(x.Id))
+ }
+ if len(x.Authenticators) > 0 {
+ for _, s := range x.Authenticators {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if len(x.Wallets) > 0 {
+ for _, s := range x.Wallets {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateControllerAccount)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Wallets) > 0 {
+ for iNdEx := len(x.Wallets) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Wallets[iNdEx])
+ copy(dAtA[i:], x.Wallets[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Wallets[iNdEx])))
+ i--
+ dAtA[i] = 0x2a
+ }
+ }
+ if len(x.Authenticators) > 0 {
+ for iNdEx := len(x.Authenticators) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Authenticators[iNdEx])
+ copy(dAtA[i:], x.Authenticators[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authenticators[iNdEx])))
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ if x.Id != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
+ i--
+ dAtA[i] = 0x10
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 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().(*MsgUpdateControllerAccount)
+ 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: MsgUpdateControllerAccount: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateControllerAccount: 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 Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ x.Id = 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.Id |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authenticators", 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.Authenticators = append(x.Authenticators, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Wallets", 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.Wallets = append(x.Wallets, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUpdateControllerAccountResponse protoreflect.MessageDescriptor
+ fd_MsgUpdateControllerAccountResponse_account protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_tx_proto_init()
+ md_MsgUpdateControllerAccountResponse = File_core_identity_tx_proto.Messages().ByName("MsgUpdateControllerAccountResponse")
+ fd_MsgUpdateControllerAccountResponse_account = md_MsgUpdateControllerAccountResponse.Fields().ByName("account")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateControllerAccountResponse)(nil)
+
+type fastReflection_MsgUpdateControllerAccountResponse MsgUpdateControllerAccountResponse
+
+func (x *MsgUpdateControllerAccountResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateControllerAccountResponse)(x)
+}
+
+func (x *MsgUpdateControllerAccountResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_tx_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateControllerAccountResponse_messageType fastReflection_MsgUpdateControllerAccountResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateControllerAccountResponse_messageType{}
+
+type fastReflection_MsgUpdateControllerAccountResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateControllerAccountResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateControllerAccountResponse)(nil)
+}
+func (x fastReflection_MsgUpdateControllerAccountResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateControllerAccountResponse)
+}
+func (x fastReflection_MsgUpdateControllerAccountResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateControllerAccountResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateControllerAccountResponse
+}
+
+// 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_MsgUpdateControllerAccountResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateControllerAccountResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateControllerAccountResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateControllerAccountResponse)(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_MsgUpdateControllerAccountResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Account != nil {
+ value := protoreflect.ValueOfMessage(x.Account.ProtoReflect())
+ if !f(fd_MsgUpdateControllerAccountResponse_account, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.MsgUpdateControllerAccountResponse.account":
+ return x.Account != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.MsgUpdateControllerAccountResponse.account":
+ x.Account = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.MsgUpdateControllerAccountResponse.account":
+ value := x.Account
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccountResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.MsgUpdateControllerAccountResponse.account":
+ x.Account = value.Message().Interface().(*ControllerAccount)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgUpdateControllerAccountResponse.account":
+ if x.Account == nil {
+ x.Account = new(ControllerAccount)
+ }
+ return protoreflect.ValueOfMessage(x.Account.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgUpdateControllerAccountResponse.account":
+ m := new(ControllerAccount)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgUpdateControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgUpdateControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.MsgUpdateControllerAccountResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgUpdateControllerAccountResponse) 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_MsgUpdateControllerAccountResponse) 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_MsgUpdateControllerAccountResponse) 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_MsgUpdateControllerAccountResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateControllerAccountResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Account != nil {
+ l = options.Size(x.Account)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateControllerAccountResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Account != nil {
+ encoded, err := options.Marshal(x.Account)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateControllerAccountResponse)
+ 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: MsgUpdateControllerAccountResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateControllerAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Account == nil {
+ x.Account = &ControllerAccount{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Account); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgDeleteControllerAccount protoreflect.MessageDescriptor
+ fd_MsgDeleteControllerAccount_creator protoreflect.FieldDescriptor
+ fd_MsgDeleteControllerAccount_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_identity_tx_proto_init()
+ md_MsgDeleteControllerAccount = File_core_identity_tx_proto.Messages().ByName("MsgDeleteControllerAccount")
+ fd_MsgDeleteControllerAccount_creator = md_MsgDeleteControllerAccount.Fields().ByName("creator")
+ fd_MsgDeleteControllerAccount_address = md_MsgDeleteControllerAccount.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgDeleteControllerAccount)(nil)
+
+type fastReflection_MsgDeleteControllerAccount MsgDeleteControllerAccount
+
+func (x *MsgDeleteControllerAccount) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgDeleteControllerAccount)(x)
+}
+
+func (x *MsgDeleteControllerAccount) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_tx_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgDeleteControllerAccount_messageType fastReflection_MsgDeleteControllerAccount_messageType
+var _ protoreflect.MessageType = fastReflection_MsgDeleteControllerAccount_messageType{}
+
+type fastReflection_MsgDeleteControllerAccount_messageType struct{}
+
+func (x fastReflection_MsgDeleteControllerAccount_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgDeleteControllerAccount)(nil)
+}
+func (x fastReflection_MsgDeleteControllerAccount_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteControllerAccount)
+}
+func (x fastReflection_MsgDeleteControllerAccount_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteControllerAccount
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgDeleteControllerAccount) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteControllerAccount
+}
+
+// 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_MsgDeleteControllerAccount) Type() protoreflect.MessageType {
+ return _fastReflection_MsgDeleteControllerAccount_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgDeleteControllerAccount) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteControllerAccount)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgDeleteControllerAccount) Interface() protoreflect.ProtoMessage {
+ return (*MsgDeleteControllerAccount)(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_MsgDeleteControllerAccount) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Creator != "" {
+ value := protoreflect.ValueOfString(x.Creator)
+ if !f(fd_MsgDeleteControllerAccount_creator, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgDeleteControllerAccount_address, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgDeleteControllerAccount) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.identity.MsgDeleteControllerAccount.creator":
+ return x.Creator != ""
+ case "core.identity.MsgDeleteControllerAccount.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteControllerAccount) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.identity.MsgDeleteControllerAccount.creator":
+ x.Creator = ""
+ case "core.identity.MsgDeleteControllerAccount.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgDeleteControllerAccount) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.identity.MsgDeleteControllerAccount.creator":
+ value := x.Creator
+ return protoreflect.ValueOfString(value)
+ case "core.identity.MsgDeleteControllerAccount.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccount does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteControllerAccount) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.identity.MsgDeleteControllerAccount.creator":
+ x.Creator = value.Interface().(string)
+ case "core.identity.MsgDeleteControllerAccount.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteControllerAccount) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgDeleteControllerAccount.creator":
+ panic(fmt.Errorf("field creator of message core.identity.MsgDeleteControllerAccount is not mutable"))
+ case "core.identity.MsgDeleteControllerAccount.address":
+ panic(fmt.Errorf("field address of message core.identity.MsgDeleteControllerAccount is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgDeleteControllerAccount) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.identity.MsgDeleteControllerAccount.creator":
+ return protoreflect.ValueOfString("")
+ case "core.identity.MsgDeleteControllerAccount.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccount"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccount does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgDeleteControllerAccount) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.MsgDeleteControllerAccount", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgDeleteControllerAccount) 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_MsgDeleteControllerAccount) 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_MsgDeleteControllerAccount) 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_MsgDeleteControllerAccount) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgDeleteControllerAccount)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Creator)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgDeleteControllerAccount)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Creator) > 0 {
+ i -= len(x.Creator)
+ copy(dAtA[i:], x.Creator)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
+ 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().(*MsgDeleteControllerAccount)
+ 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: MsgDeleteControllerAccount: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteControllerAccount: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgDeleteControllerAccountResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_identity_tx_proto_init()
+ md_MsgDeleteControllerAccountResponse = File_core_identity_tx_proto.Messages().ByName("MsgDeleteControllerAccountResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgDeleteControllerAccountResponse)(nil)
+
+type fastReflection_MsgDeleteControllerAccountResponse MsgDeleteControllerAccountResponse
+
+func (x *MsgDeleteControllerAccountResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgDeleteControllerAccountResponse)(x)
+}
+
+func (x *MsgDeleteControllerAccountResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_identity_tx_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgDeleteControllerAccountResponse_messageType fastReflection_MsgDeleteControllerAccountResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgDeleteControllerAccountResponse_messageType{}
+
+type fastReflection_MsgDeleteControllerAccountResponse_messageType struct{}
+
+func (x fastReflection_MsgDeleteControllerAccountResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgDeleteControllerAccountResponse)(nil)
+}
+func (x fastReflection_MsgDeleteControllerAccountResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteControllerAccountResponse)
+}
+func (x fastReflection_MsgDeleteControllerAccountResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteControllerAccountResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteControllerAccountResponse
+}
+
+// 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_MsgDeleteControllerAccountResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgDeleteControllerAccountResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteControllerAccountResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgDeleteControllerAccountResponse)(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_MsgDeleteControllerAccountResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccountResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.identity.MsgDeleteControllerAccountResponse"))
+ }
+ panic(fmt.Errorf("message core.identity.MsgDeleteControllerAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.identity.MsgDeleteControllerAccountResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgDeleteControllerAccountResponse) 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_MsgDeleteControllerAccountResponse) 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_MsgDeleteControllerAccountResponse) 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_MsgDeleteControllerAccountResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgDeleteControllerAccountResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgDeleteControllerAccountResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgDeleteControllerAccountResponse)
+ 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: MsgDeleteControllerAccountResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteControllerAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/identity/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgRegisterIdentity represents a request to register a new identity.
+type MsgRegisterIdentity struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // The creator of the identity.
+ DidDocument *DIDDocument `protobuf:"bytes,2,opt,name=did_document,json=didDocument,proto3" json:"did_document,omitempty"` // The DID document associated with the identity.
+ WalletId uint64 `protobuf:"varint,3,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"` // The wallet ID associated with the identity.
+}
+
+func (x *MsgRegisterIdentity) Reset() {
+ *x = MsgRegisterIdentity{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgRegisterIdentity) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgRegisterIdentity) ProtoMessage() {}
+
+// Deprecated: Use MsgRegisterIdentity.ProtoReflect.Descriptor instead.
+func (*MsgRegisterIdentity) Descriptor() ([]byte, []int) {
+ return file_core_identity_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgRegisterIdentity) GetCreator() string {
+ if x != nil {
+ return x.Creator
+ }
+ return ""
+}
+
+func (x *MsgRegisterIdentity) GetDidDocument() *DIDDocument {
+ if x != nil {
+ return x.DidDocument
+ }
+ return nil
+}
+
+func (x *MsgRegisterIdentity) GetWalletId() uint64 {
+ if x != nil {
+ return x.WalletId
+ }
+ return 0
+}
+
+// MsgRegisterIdentityResponse represents the response to a register identity
+// request.
+type MsgRegisterIdentityResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the registration was successful.
+ DidDocument *DIDDocument `protobuf:"bytes,2,opt,name=did_document,json=didDocument,proto3" json:"did_document,omitempty"` // The DID document associated with the registered identity.
+}
+
+func (x *MsgRegisterIdentityResponse) Reset() {
+ *x = MsgRegisterIdentityResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgRegisterIdentityResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgRegisterIdentityResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgRegisterIdentityResponse.ProtoReflect.Descriptor instead.
+func (*MsgRegisterIdentityResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_tx_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *MsgRegisterIdentityResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *MsgRegisterIdentityResponse) GetDidDocument() *DIDDocument {
+ if x != nil {
+ return x.DidDocument
+ }
+ return nil
+}
+
+// MsgCreateControllerAccount represents a request to create a new controller
+// account.
+type MsgCreateControllerAccount struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The address of the controller account.
+ PublicKey string `protobuf:"bytes,3,opt,name=publicKey,proto3" json:"publicKey,omitempty"` // The public key of the controller account.
+ Authenticators []string `protobuf:"bytes,4,rep,name=authenticators,proto3" json:"authenticators,omitempty"` // The authenticators of the controller account.
+ Wallets []string `protobuf:"bytes,5,rep,name=wallets,proto3" json:"wallets,omitempty"` // The wallets associated with the controller account.
+}
+
+func (x *MsgCreateControllerAccount) Reset() {
+ *x = MsgCreateControllerAccount{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_tx_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgCreateControllerAccount) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgCreateControllerAccount) ProtoMessage() {}
+
+// Deprecated: Use MsgCreateControllerAccount.ProtoReflect.Descriptor instead.
+func (*MsgCreateControllerAccount) Descriptor() ([]byte, []int) {
+ return file_core_identity_tx_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *MsgCreateControllerAccount) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *MsgCreateControllerAccount) GetPublicKey() string {
+ if x != nil {
+ return x.PublicKey
+ }
+ return ""
+}
+
+func (x *MsgCreateControllerAccount) GetAuthenticators() []string {
+ if x != nil {
+ return x.Authenticators
+ }
+ return nil
+}
+
+func (x *MsgCreateControllerAccount) GetWallets() []string {
+ if x != nil {
+ return x.Wallets
+ }
+ return nil
+}
+
+// MsgCreateControllerAccountResponse represents the response to a create
+// controller account request.
+type MsgCreateControllerAccountResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The ID of the created controller account.
+ Account *ControllerAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` // The created controller account.
+}
+
+func (x *MsgCreateControllerAccountResponse) Reset() {
+ *x = MsgCreateControllerAccountResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_tx_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgCreateControllerAccountResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgCreateControllerAccountResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgCreateControllerAccountResponse.ProtoReflect.Descriptor instead.
+func (*MsgCreateControllerAccountResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_tx_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *MsgCreateControllerAccountResponse) GetId() uint64 {
+ if x != nil {
+ return x.Id
+ }
+ return 0
+}
+
+func (x *MsgCreateControllerAccountResponse) GetAccount() *ControllerAccount {
+ if x != nil {
+ return x.Account
+ }
+ return nil
+}
+
+// MsgUpdateControllerAccount represents a request to update an existing
+// controller account.
+type MsgUpdateControllerAccount struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The address of the controller account to be updated.
+ Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // The ID of the controller account to be updated.
+ Authenticators []string `protobuf:"bytes,4,rep,name=authenticators,proto3" json:"authenticators,omitempty"` // The updated authenticators of the controller account.
+ Wallets []string `protobuf:"bytes,5,rep,name=wallets,proto3" json:"wallets,omitempty"` // The updated wallets associated with the controller account.
+}
+
+func (x *MsgUpdateControllerAccount) Reset() {
+ *x = MsgUpdateControllerAccount{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_tx_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateControllerAccount) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateControllerAccount) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateControllerAccount.ProtoReflect.Descriptor instead.
+func (*MsgUpdateControllerAccount) Descriptor() ([]byte, []int) {
+ return file_core_identity_tx_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *MsgUpdateControllerAccount) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *MsgUpdateControllerAccount) GetId() uint64 {
+ if x != nil {
+ return x.Id
+ }
+ return 0
+}
+
+func (x *MsgUpdateControllerAccount) GetAuthenticators() []string {
+ if x != nil {
+ return x.Authenticators
+ }
+ return nil
+}
+
+func (x *MsgUpdateControllerAccount) GetWallets() []string {
+ if x != nil {
+ return x.Wallets
+ }
+ return nil
+}
+
+// MsgUpdateControllerAccountResponse represents the response to an update
+// controller account request.
+type MsgUpdateControllerAccountResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Account *ControllerAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // The updated controller account.
+}
+
+func (x *MsgUpdateControllerAccountResponse) Reset() {
+ *x = MsgUpdateControllerAccountResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_tx_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateControllerAccountResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateControllerAccountResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateControllerAccountResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateControllerAccountResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_tx_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *MsgUpdateControllerAccountResponse) GetAccount() *ControllerAccount {
+ if x != nil {
+ return x.Account
+ }
+ return nil
+}
+
+// MsgDeleteControllerAccount represents a request to delete a controller
+// account.
+type MsgDeleteControllerAccount struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // The creator of the controller account.
+ Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // The address of the controller account to be deleted.
+}
+
+func (x *MsgDeleteControllerAccount) Reset() {
+ *x = MsgDeleteControllerAccount{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_tx_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgDeleteControllerAccount) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgDeleteControllerAccount) ProtoMessage() {}
+
+// Deprecated: Use MsgDeleteControllerAccount.ProtoReflect.Descriptor instead.
+func (*MsgDeleteControllerAccount) Descriptor() ([]byte, []int) {
+ return file_core_identity_tx_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *MsgDeleteControllerAccount) GetCreator() string {
+ if x != nil {
+ return x.Creator
+ }
+ return ""
+}
+
+func (x *MsgDeleteControllerAccount) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+// MsgDeleteControllerAccountResponse represents the response to a delete
+// controller account request.
+type MsgDeleteControllerAccountResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgDeleteControllerAccountResponse) Reset() {
+ *x = MsgDeleteControllerAccountResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_identity_tx_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgDeleteControllerAccountResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgDeleteControllerAccountResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgDeleteControllerAccountResponse.ProtoReflect.Descriptor instead.
+func (*MsgDeleteControllerAccountResponse) Descriptor() ([]byte, []int) {
+ return file_core_identity_tx_proto_rawDescGZIP(), []int{7}
+}
+
+var File_core_identity_tx_proto protoreflect.FileDescriptor
+
+var file_core_identity_tx_proto_rawDesc = []byte{
+ 0x0a, 0x16, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f,
+ 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69,
+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x1b, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0x2f, 0x64, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x01,
+ 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x65,
+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12,
+ 0x3d, 0x0a, 0x0c, 0x64, 0x69, 0x64, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65,
+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x44, 0x49, 0x44, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
+ 0x74, 0x52, 0x0b, 0x64, 0x69, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1b,
+ 0x0a, 0x09, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x04, 0x52, 0x08, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x49, 0x64, 0x22, 0x76, 0x0a, 0x1b, 0x4d,
+ 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
+ 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75,
+ 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63,
+ 0x63, 0x65, 0x73, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x64, 0x69, 0x64, 0x5f, 0x64, 0x6f, 0x63, 0x75,
+ 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x44, 0x49, 0x44, 0x44, 0x6f,
+ 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x64, 0x69, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d,
+ 0x65, 0x6e, 0x74, 0x22, 0x96, 0x01, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74,
+ 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75,
+ 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x09,
+ 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x75,
+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03,
+ 0x28, 0x09, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f,
+ 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x05, 0x20,
+ 0x03, 0x28, 0x09, 0x52, 0x07, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x70, 0x0a, 0x22,
+ 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02,
+ 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63,
+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x88,
+ 0x01, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a,
+ 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
+ 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65,
+ 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52,
+ 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12,
+ 0x18, 0x0a, 0x07, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09,
+ 0x52, 0x07, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x60, 0x0a, 0x22, 0x4d, 0x73, 0x67,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
+ 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
+ 0x3a, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
+ 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75,
+ 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x50, 0x0a, 0x1a, 0x4d,
+ 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65,
+ 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61,
+ 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x24, 0x0a,
+ 0x22, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x32, 0xd4, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x62, 0x0a, 0x10, 0x52,
+ 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12,
+ 0x22, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e,
+ 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0x1a, 0x2a, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x49,
+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
+ 0x77, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72,
+ 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63,
+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65,
+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43,
+ 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f,
+ 0x75, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x31,
+ 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x4d,
+ 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x12, 0x77, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x63,
+ 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x4d, 0x73, 0x67,
+ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
+ 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69,
+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74,
+ 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75,
+ 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x97, 0x01, 0x0a, 0x11, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
+ 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74,
+ 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f,
+ 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
+ 0x79, 0xa2, 0x02, 0x03, 0x43, 0x49, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x49,
+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xca, 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x49,
+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0xe2, 0x02, 0x19, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x49,
+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x49, 0x64, 0x65, 0x6e,
+ 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_identity_tx_proto_rawDescOnce sync.Once
+ file_core_identity_tx_proto_rawDescData = file_core_identity_tx_proto_rawDesc
+)
+
+func file_core_identity_tx_proto_rawDescGZIP() []byte {
+ file_core_identity_tx_proto_rawDescOnce.Do(func() {
+ file_core_identity_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_identity_tx_proto_rawDescData)
+ })
+ return file_core_identity_tx_proto_rawDescData
+}
+
+var file_core_identity_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
+var file_core_identity_tx_proto_goTypes = []interface{}{
+ (*MsgRegisterIdentity)(nil), // 0: core.identity.MsgRegisterIdentity
+ (*MsgRegisterIdentityResponse)(nil), // 1: core.identity.MsgRegisterIdentityResponse
+ (*MsgCreateControllerAccount)(nil), // 2: core.identity.MsgCreateControllerAccount
+ (*MsgCreateControllerAccountResponse)(nil), // 3: core.identity.MsgCreateControllerAccountResponse
+ (*MsgUpdateControllerAccount)(nil), // 4: core.identity.MsgUpdateControllerAccount
+ (*MsgUpdateControllerAccountResponse)(nil), // 5: core.identity.MsgUpdateControllerAccountResponse
+ (*MsgDeleteControllerAccount)(nil), // 6: core.identity.MsgDeleteControllerAccount
+ (*MsgDeleteControllerAccountResponse)(nil), // 7: core.identity.MsgDeleteControllerAccountResponse
+ (*DIDDocument)(nil), // 8: core.identity.DIDDocument
+ (*ControllerAccount)(nil), // 9: core.identity.ControllerAccount
+}
+var file_core_identity_tx_proto_depIdxs = []int32{
+ 8, // 0: core.identity.MsgRegisterIdentity.did_document:type_name -> core.identity.DIDDocument
+ 8, // 1: core.identity.MsgRegisterIdentityResponse.did_document:type_name -> core.identity.DIDDocument
+ 9, // 2: core.identity.MsgCreateControllerAccountResponse.account:type_name -> core.identity.ControllerAccount
+ 9, // 3: core.identity.MsgUpdateControllerAccountResponse.account:type_name -> core.identity.ControllerAccount
+ 0, // 4: core.identity.Msg.RegisterIdentity:input_type -> core.identity.MsgRegisterIdentity
+ 2, // 5: core.identity.Msg.CreateControllerAccount:input_type -> core.identity.MsgCreateControllerAccount
+ 4, // 6: core.identity.Msg.UpdateControllerAccount:input_type -> core.identity.MsgUpdateControllerAccount
+ 6, // 7: core.identity.Msg.DeleteControllerAccount:input_type -> core.identity.MsgDeleteControllerAccount
+ 1, // 8: core.identity.Msg.RegisterIdentity:output_type -> core.identity.MsgRegisterIdentityResponse
+ 3, // 9: core.identity.Msg.CreateControllerAccount:output_type -> core.identity.MsgCreateControllerAccountResponse
+ 5, // 10: core.identity.Msg.UpdateControllerAccount:output_type -> core.identity.MsgUpdateControllerAccountResponse
+ 7, // 11: core.identity.Msg.DeleteControllerAccount:output_type -> core.identity.MsgDeleteControllerAccountResponse
+ 8, // [8:12] is the sub-list for method output_type
+ 4, // [4:8] is the sub-list for method input_type
+ 4, // [4:4] is the sub-list for extension type_name
+ 4, // [4:4] is the sub-list for extension extendee
+ 0, // [0:4] is the sub-list for field type_name
+}
+
+func init() { file_core_identity_tx_proto_init() }
+func file_core_identity_tx_proto_init() {
+ if File_core_identity_tx_proto != nil {
+ return
+ }
+ file_core_identity_account_proto_init()
+ file_core_identity_did_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_core_identity_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgRegisterIdentity); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgRegisterIdentityResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgCreateControllerAccount); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgCreateControllerAccountResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateControllerAccount); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateControllerAccountResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgDeleteControllerAccount); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_identity_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgDeleteControllerAccountResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_identity_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 8,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_core_identity_tx_proto_goTypes,
+ DependencyIndexes: file_core_identity_tx_proto_depIdxs,
+ MessageInfos: file_core_identity_tx_proto_msgTypes,
+ }.Build()
+ File_core_identity_tx_proto = out.File
+ file_core_identity_tx_proto_rawDesc = nil
+ file_core_identity_tx_proto_goTypes = nil
+ file_core_identity_tx_proto_depIdxs = nil
+}
diff --git a/api/core/identity/tx_grpc.pb.go b/api/core/identity/tx_grpc.pb.go
new file mode 100644
index 000000000..b4eb7daf9
--- /dev/null
+++ b/api/core/identity/tx_grpc.pb.go
@@ -0,0 +1,228 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: core/identity/tx.proto
+
+package identity
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ Msg_RegisterIdentity_FullMethodName = "/core.identity.Msg/RegisterIdentity"
+ Msg_CreateControllerAccount_FullMethodName = "/core.identity.Msg/CreateControllerAccount"
+ Msg_UpdateControllerAccount_FullMethodName = "/core.identity.Msg/UpdateControllerAccount"
+ Msg_DeleteControllerAccount_FullMethodName = "/core.identity.Msg/DeleteControllerAccount"
+)
+
+// MsgClient is the client API for Msg service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type MsgClient interface {
+ // RegisterIdentity registers a new identity.
+ RegisterIdentity(ctx context.Context, in *MsgRegisterIdentity, opts ...grpc.CallOption) (*MsgRegisterIdentityResponse, error)
+ // CreateControllerAccount creates a new controller account.
+ CreateControllerAccount(ctx context.Context, in *MsgCreateControllerAccount, opts ...grpc.CallOption) (*MsgCreateControllerAccountResponse, error)
+ // UpdateControllerAccount updates an existing controller account.
+ UpdateControllerAccount(ctx context.Context, in *MsgUpdateControllerAccount, opts ...grpc.CallOption) (*MsgUpdateControllerAccountResponse, error)
+ // DeleteControllerAccount deletes a controller account.
+ DeleteControllerAccount(ctx context.Context, in *MsgDeleteControllerAccount, opts ...grpc.CallOption) (*MsgDeleteControllerAccountResponse, error)
+}
+
+type msgClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
+ return &msgClient{cc}
+}
+
+func (c *msgClient) RegisterIdentity(ctx context.Context, in *MsgRegisterIdentity, opts ...grpc.CallOption) (*MsgRegisterIdentityResponse, error) {
+ out := new(MsgRegisterIdentityResponse)
+ err := c.cc.Invoke(ctx, Msg_RegisterIdentity_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) CreateControllerAccount(ctx context.Context, in *MsgCreateControllerAccount, opts ...grpc.CallOption) (*MsgCreateControllerAccountResponse, error) {
+ out := new(MsgCreateControllerAccountResponse)
+ err := c.cc.Invoke(ctx, Msg_CreateControllerAccount_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) UpdateControllerAccount(ctx context.Context, in *MsgUpdateControllerAccount, opts ...grpc.CallOption) (*MsgUpdateControllerAccountResponse, error) {
+ out := new(MsgUpdateControllerAccountResponse)
+ err := c.cc.Invoke(ctx, Msg_UpdateControllerAccount_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) DeleteControllerAccount(ctx context.Context, in *MsgDeleteControllerAccount, opts ...grpc.CallOption) (*MsgDeleteControllerAccountResponse, error) {
+ out := new(MsgDeleteControllerAccountResponse)
+ err := c.cc.Invoke(ctx, Msg_DeleteControllerAccount_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// MsgServer is the server API for Msg service.
+// All implementations must embed UnimplementedMsgServer
+// for forward compatibility
+type MsgServer interface {
+ // RegisterIdentity registers a new identity.
+ RegisterIdentity(context.Context, *MsgRegisterIdentity) (*MsgRegisterIdentityResponse, error)
+ // CreateControllerAccount creates a new controller account.
+ CreateControllerAccount(context.Context, *MsgCreateControllerAccount) (*MsgCreateControllerAccountResponse, error)
+ // UpdateControllerAccount updates an existing controller account.
+ UpdateControllerAccount(context.Context, *MsgUpdateControllerAccount) (*MsgUpdateControllerAccountResponse, error)
+ // DeleteControllerAccount deletes a controller account.
+ DeleteControllerAccount(context.Context, *MsgDeleteControllerAccount) (*MsgDeleteControllerAccountResponse, error)
+ mustEmbedUnimplementedMsgServer()
+}
+
+// UnimplementedMsgServer must be embedded to have forward compatible implementations.
+type UnimplementedMsgServer struct {
+}
+
+func (UnimplementedMsgServer) RegisterIdentity(context.Context, *MsgRegisterIdentity) (*MsgRegisterIdentityResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method RegisterIdentity not implemented")
+}
+func (UnimplementedMsgServer) CreateControllerAccount(context.Context, *MsgCreateControllerAccount) (*MsgCreateControllerAccountResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateControllerAccount not implemented")
+}
+func (UnimplementedMsgServer) UpdateControllerAccount(context.Context, *MsgUpdateControllerAccount) (*MsgUpdateControllerAccountResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateControllerAccount not implemented")
+}
+func (UnimplementedMsgServer) DeleteControllerAccount(context.Context, *MsgDeleteControllerAccount) (*MsgDeleteControllerAccountResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteControllerAccount not implemented")
+}
+func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
+
+// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to MsgServer will
+// result in compilation errors.
+type UnsafeMsgServer interface {
+ mustEmbedUnimplementedMsgServer()
+}
+
+func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
+ s.RegisterService(&Msg_ServiceDesc, srv)
+}
+
+func _Msg_RegisterIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgRegisterIdentity)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).RegisterIdentity(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Msg_RegisterIdentity_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).RegisterIdentity(ctx, req.(*MsgRegisterIdentity))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_CreateControllerAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgCreateControllerAccount)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).CreateControllerAccount(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Msg_CreateControllerAccount_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).CreateControllerAccount(ctx, req.(*MsgCreateControllerAccount))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_UpdateControllerAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgUpdateControllerAccount)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).UpdateControllerAccount(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Msg_UpdateControllerAccount_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).UpdateControllerAccount(ctx, req.(*MsgUpdateControllerAccount))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_DeleteControllerAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgDeleteControllerAccount)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).DeleteControllerAccount(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Msg_DeleteControllerAccount_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).DeleteControllerAccount(ctx, req.(*MsgDeleteControllerAccount))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var Msg_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "core.identity.Msg",
+ HandlerType: (*MsgServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "RegisterIdentity",
+ Handler: _Msg_RegisterIdentity_Handler,
+ },
+ {
+ MethodName: "CreateControllerAccount",
+ Handler: _Msg_CreateControllerAccount_Handler,
+ },
+ {
+ MethodName: "UpdateControllerAccount",
+ Handler: _Msg_UpdateControllerAccount_Handler,
+ },
+ {
+ MethodName: "DeleteControllerAccount",
+ Handler: _Msg_DeleteControllerAccount_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "core/identity/tx.proto",
+}
diff --git a/api/core/service/genesis.pulsar.go b/api/core/service/genesis.pulsar.go
new file mode 100644
index 000000000..d2f628dc5
--- /dev/null
+++ b/api/core/service/genesis.pulsar.go
@@ -0,0 +1,804 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_GenesisState_2_list)(nil)
+
+type _GenesisState_2_list struct {
+ list *[]*ServiceRecord
+}
+
+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().(*ServiceRecord)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*ServiceRecord)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
+ v := new(ServiceRecord)
+ *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(ServiceRecord)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+ fd_GenesisState_serviceRecordList protoreflect.FieldDescriptor
+ fd_GenesisState_serviceRecordCount protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_genesis_proto_init()
+ md_GenesisState = File_core_service_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+ fd_GenesisState_serviceRecordList = md_GenesisState.Fields().ByName("serviceRecordList")
+ fd_GenesisState_serviceRecordCount = md_GenesisState.Fields().ByName("serviceRecordCount")
+}
+
+var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
+
+type fastReflection_GenesisState GenesisState
+
+func (x *GenesisState) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_GenesisState)(x)
+}
+
+func (x *GenesisState) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_genesis_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
+var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
+
+type fastReflection_GenesisState_messageType struct{}
+
+func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_GenesisState)(nil)
+}
+func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
+ return new(fastReflection_GenesisState)
+}
+func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_GenesisState
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
+ return md_GenesisState
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
+ return _fastReflection_GenesisState_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_GenesisState) New() protoreflect.Message {
+ return new(fastReflection_GenesisState)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
+ return (*GenesisState)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_GenesisState_params, value) {
+ return
+ }
+ }
+ if len(x.ServiceRecordList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.ServiceRecordList})
+ if !f(fd_GenesisState_serviceRecordList, value) {
+ return
+ }
+ }
+ if x.ServiceRecordCount != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.ServiceRecordCount)
+ if !f(fd_GenesisState_serviceRecordCount, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.GenesisState.params":
+ return x.Params != nil
+ case "core.service.GenesisState.serviceRecordList":
+ return len(x.ServiceRecordList) != 0
+ case "core.service.GenesisState.serviceRecordCount":
+ return x.ServiceRecordCount != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.service.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.GenesisState.params":
+ x.Params = nil
+ case "core.service.GenesisState.serviceRecordList":
+ x.ServiceRecordList = nil
+ case "core.service.GenesisState.serviceRecordCount":
+ x.ServiceRecordCount = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.service.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "core.service.GenesisState.serviceRecordList":
+ if len(x.ServiceRecordList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_2_list{})
+ }
+ listValue := &_GenesisState_2_list{list: &x.ServiceRecordList}
+ return protoreflect.ValueOfList(listValue)
+ case "core.service.GenesisState.serviceRecordCount":
+ value := x.ServiceRecordCount
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.service.GenesisState does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ case "core.service.GenesisState.serviceRecordList":
+ lv := value.List()
+ clv := lv.(*_GenesisState_2_list)
+ x.ServiceRecordList = *clv.list
+ case "core.service.GenesisState.serviceRecordCount":
+ x.ServiceRecordCount = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.service.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.GenesisState.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "core.service.GenesisState.serviceRecordList":
+ if x.ServiceRecordList == nil {
+ x.ServiceRecordList = []*ServiceRecord{}
+ }
+ value := &_GenesisState_2_list{list: &x.ServiceRecordList}
+ return protoreflect.ValueOfList(value)
+ case "core.service.GenesisState.serviceRecordCount":
+ panic(fmt.Errorf("field serviceRecordCount of message core.service.GenesisState is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.service.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "core.service.GenesisState.serviceRecordList":
+ list := []*ServiceRecord{}
+ return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
+ case "core.service.GenesisState.serviceRecordCount":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message core.service.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.GenesisState", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_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))
+ }
+ if len(x.ServiceRecordList) > 0 {
+ for _, e := range x.ServiceRecordList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.ServiceRecordCount != 0 {
+ n += 1 + runtime.Sov(uint64(x.ServiceRecordCount))
+ }
+ 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)
+ }
+ if x.ServiceRecordCount != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.ServiceRecordCount))
+ i--
+ dAtA[i] = 0x18
+ }
+ if len(x.ServiceRecordList) > 0 {
+ for iNdEx := len(x.ServiceRecordList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.ServiceRecordList[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if 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
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ServiceRecordList", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.ServiceRecordList = append(x.ServiceRecordList, &ServiceRecord{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ServiceRecordList[len(x.ServiceRecordList)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ServiceRecordCount", wireType)
+ }
+ x.ServiceRecordCount = 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.ServiceRecordCount |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/service/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the service module's genesis state.
+type GenesisState struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+ ServiceRecordList []*ServiceRecord `protobuf:"bytes,2,rep,name=serviceRecordList,proto3" json:"serviceRecordList,omitempty"`
+ ServiceRecordCount uint64 `protobuf:"varint,3,opt,name=serviceRecordCount,proto3" json:"serviceRecordCount,omitempty"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_genesis_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GenesisState) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GenesisState) ProtoMessage() {}
+
+// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
+func (*GenesisState) Descriptor() ([]byte, []int) {
+ return file_core_service_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+func (x *GenesisState) GetServiceRecordList() []*ServiceRecord {
+ if x != nil {
+ return x.ServiceRecordList
+ }
+ return nil
+}
+
+func (x *GenesisState) GetServiceRecordCount() uint64 {
+ if x != nil {
+ return x.ServiceRecordCount
+ }
+ return 0
+}
+
+var File_core_service_genesis_proto protoreflect.FileDescriptor
+
+var file_core_service_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x1a, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x67,
+ 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x6f,
+ 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x19, 0x63, 0x6f, 0x72, 0x65,
+ 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 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, 0xc3, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73,
+ 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8,
+ 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4f, 0x0a, 0x11, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74,
+ 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63,
+ 0x6f, 0x72, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x12,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x75,
+ 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x96, 0x01, 0x0a,
+ 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
+ 0x01, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f,
+ 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x0c, 0x43,
+ 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x0c, 0x43, 0x6f,
+ 0x72, 0x65, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x18, 0x43, 0x6f, 0x72,
+ 0x65, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_service_genesis_proto_rawDescOnce sync.Once
+ file_core_service_genesis_proto_rawDescData = file_core_service_genesis_proto_rawDesc
+)
+
+func file_core_service_genesis_proto_rawDescGZIP() []byte {
+ file_core_service_genesis_proto_rawDescOnce.Do(func() {
+ file_core_service_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_service_genesis_proto_rawDescData)
+ })
+ return file_core_service_genesis_proto_rawDescData
+}
+
+var file_core_service_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_core_service_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: core.service.GenesisState
+ (*Params)(nil), // 1: core.service.Params
+ (*ServiceRecord)(nil), // 2: core.service.ServiceRecord
+}
+var file_core_service_genesis_proto_depIdxs = []int32{
+ 1, // 0: core.service.GenesisState.params:type_name -> core.service.Params
+ 2, // 1: core.service.GenesisState.serviceRecordList:type_name -> core.service.ServiceRecord
+ 2, // [2:2] is the sub-list for method output_type
+ 2, // [2:2] is the sub-list for method input_type
+ 2, // [2:2] is the sub-list for extension type_name
+ 2, // [2:2] is the sub-list for extension extendee
+ 0, // [0:2] is the sub-list for field type_name
+}
+
+func init() { file_core_service_genesis_proto_init() }
+func file_core_service_genesis_proto_init() {
+ if File_core_service_genesis_proto != nil {
+ return
+ }
+ file_core_service_params_proto_init()
+ file_core_service_record_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_core_service_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_service_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_service_genesis_proto_goTypes,
+ DependencyIndexes: file_core_service_genesis_proto_depIdxs,
+ MessageInfos: file_core_service_genesis_proto_msgTypes,
+ }.Build()
+ File_core_service_genesis_proto = out.File
+ file_core_service_genesis_proto_rawDesc = nil
+ file_core_service_genesis_proto_goTypes = nil
+ file_core_service_genesis_proto_depIdxs = nil
+}
diff --git a/api/core/service/params.pulsar.go b/api/core/service/params.pulsar.go
new file mode 100644
index 000000000..52d26ec2f
--- /dev/null
+++ b/api/core/service/params.pulsar.go
@@ -0,0 +1,493 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Params protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_service_params_proto_init()
+ md_Params = File_core_service_params_proto.Messages().ByName("Params")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_params_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.Params"))
+ }
+ panic(fmt.Errorf("message core.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.Params"))
+ }
+ panic(fmt.Errorf("message core.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.Params"))
+ }
+ panic(fmt.Errorf("message core.service.Params does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.Params"))
+ }
+ panic(fmt.Errorf("message core.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.Params"))
+ }
+ panic(fmt.Errorf("message core.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.Params"))
+ }
+ panic(fmt.Errorf("message core.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.Params", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ 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().(*Params)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/service/params.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Params defines the parameters for the module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_core_service_params_proto_rawDescGZIP(), []int{0}
+}
+
+var File_core_service_params_proto protoreflect.FileDescriptor
+
+var file_core_service_params_proto_rawDesc = []byte{
+ 0x0a, 0x19, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70,
+ 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
+ 0x0e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x04, 0x98, 0xa0, 0x1f, 0x00, 0x42,
+ 0x95, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74,
+ 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
+ 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65,
+ 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02,
+ 0x0c, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x0c,
+ 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x18, 0x43,
+ 0x6f, 0x72, 0x65, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_service_params_proto_rawDescOnce sync.Once
+ file_core_service_params_proto_rawDescData = file_core_service_params_proto_rawDesc
+)
+
+func file_core_service_params_proto_rawDescGZIP() []byte {
+ file_core_service_params_proto_rawDescOnce.Do(func() {
+ file_core_service_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_service_params_proto_rawDescData)
+ })
+ return file_core_service_params_proto_rawDescData
+}
+
+var file_core_service_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_core_service_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: core.service.Params
+}
+var file_core_service_params_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_core_service_params_proto_init() }
+func file_core_service_params_proto_init() {
+ if File_core_service_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_core_service_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_service_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_service_params_proto_goTypes,
+ DependencyIndexes: file_core_service_params_proto_depIdxs,
+ MessageInfos: file_core_service_params_proto_msgTypes,
+ }.Build()
+ File_core_service_params_proto = out.File
+ file_core_service_params_proto_rawDesc = nil
+ file_core_service_params_proto_goTypes = nil
+ file_core_service_params_proto_depIdxs = nil
+}
diff --git a/api/core/service/query.pulsar.go b/api/core/service/query.pulsar.go
new file mode 100644
index 000000000..fb6b1a2e7
--- /dev/null
+++ b/api/core/service/query.pulsar.go
@@ -0,0 +1,3136 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/core/identity"
+ _ "github.com/sonr-io/api/gogoproto"
+ _ "github.com/sonr-io/api/google/api"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_service_query_proto_init()
+ md_QueryParamsRequest = File_core_service_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.QueryParamsRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryParamsRequest) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_query_proto_init()
+ md_QueryParamsResponse = File_core_service_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_QueryParamsResponse_params, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.QueryParamsResponse.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.QueryParamsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryParamsResponse) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Params != nil {
+ encoded, err := options.Marshal(x.Params)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Params == nil {
+ x.Params = &Params{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetServiceRecordRequest protoreflect.MessageDescriptor
+ fd_QueryGetServiceRecordRequest_origin protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_query_proto_init()
+ md_QueryGetServiceRecordRequest = File_core_service_query_proto.Messages().ByName("QueryGetServiceRecordRequest")
+ fd_QueryGetServiceRecordRequest_origin = md_QueryGetServiceRecordRequest.Fields().ByName("origin")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetServiceRecordRequest)(nil)
+
+type fastReflection_QueryGetServiceRecordRequest QueryGetServiceRecordRequest
+
+func (x *QueryGetServiceRecordRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceRecordRequest)(x)
+}
+
+func (x *QueryGetServiceRecordRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_query_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetServiceRecordRequest_messageType fastReflection_QueryGetServiceRecordRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetServiceRecordRequest_messageType{}
+
+type fastReflection_QueryGetServiceRecordRequest_messageType struct{}
+
+func (x fastReflection_QueryGetServiceRecordRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceRecordRequest)(nil)
+}
+func (x fastReflection_QueryGetServiceRecordRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceRecordRequest)
+}
+func (x fastReflection_QueryGetServiceRecordRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceRecordRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetServiceRecordRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceRecordRequest
+}
+
+// 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_QueryGetServiceRecordRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetServiceRecordRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetServiceRecordRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceRecordRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetServiceRecordRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetServiceRecordRequest)(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_QueryGetServiceRecordRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Origin != "" {
+ value := protoreflect.ValueOfString(x.Origin)
+ if !f(fd_QueryGetServiceRecordRequest_origin, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetServiceRecordRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.QueryGetServiceRecordRequest.origin":
+ return x.Origin != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceRecordRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.QueryGetServiceRecordRequest.origin":
+ x.Origin = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryGetServiceRecordRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.QueryGetServiceRecordRequest.origin":
+ value := x.Origin
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceRecordRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.QueryGetServiceRecordRequest.origin":
+ x.Origin = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceRecordRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.QueryGetServiceRecordRequest.origin":
+ panic(fmt.Errorf("field origin of message core.service.QueryGetServiceRecordRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetServiceRecordRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.QueryGetServiceRecordRequest.origin":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetServiceRecordRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.QueryGetServiceRecordRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryGetServiceRecordRequest) 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_QueryGetServiceRecordRequest) 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_QueryGetServiceRecordRequest) 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_QueryGetServiceRecordRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetServiceRecordRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Origin)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetServiceRecordRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Origin) > 0 {
+ i -= len(x.Origin)
+ copy(dAtA[i:], x.Origin)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Origin)))
+ 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().(*QueryGetServiceRecordRequest)
+ 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: QueryGetServiceRecordRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetServiceRecordRequest: 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 Origin", 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.Origin = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetServiceRecordResponse protoreflect.MessageDescriptor
+ fd_QueryGetServiceRecordResponse_ServiceRecord protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_query_proto_init()
+ md_QueryGetServiceRecordResponse = File_core_service_query_proto.Messages().ByName("QueryGetServiceRecordResponse")
+ fd_QueryGetServiceRecordResponse_ServiceRecord = md_QueryGetServiceRecordResponse.Fields().ByName("ServiceRecord")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetServiceRecordResponse)(nil)
+
+type fastReflection_QueryGetServiceRecordResponse QueryGetServiceRecordResponse
+
+func (x *QueryGetServiceRecordResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceRecordResponse)(x)
+}
+
+func (x *QueryGetServiceRecordResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_query_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetServiceRecordResponse_messageType fastReflection_QueryGetServiceRecordResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetServiceRecordResponse_messageType{}
+
+type fastReflection_QueryGetServiceRecordResponse_messageType struct{}
+
+func (x fastReflection_QueryGetServiceRecordResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceRecordResponse)(nil)
+}
+func (x fastReflection_QueryGetServiceRecordResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceRecordResponse)
+}
+func (x fastReflection_QueryGetServiceRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceRecordResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetServiceRecordResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceRecordResponse
+}
+
+// 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_QueryGetServiceRecordResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetServiceRecordResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetServiceRecordResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceRecordResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetServiceRecordResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetServiceRecordResponse)(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_QueryGetServiceRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.ServiceRecord != nil {
+ value := protoreflect.ValueOfMessage(x.ServiceRecord.ProtoReflect())
+ if !f(fd_QueryGetServiceRecordResponse_ServiceRecord, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetServiceRecordResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.QueryGetServiceRecordResponse.ServiceRecord":
+ return x.ServiceRecord != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceRecordResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.QueryGetServiceRecordResponse.ServiceRecord":
+ x.ServiceRecord = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryGetServiceRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.QueryGetServiceRecordResponse.ServiceRecord":
+ value := x.ServiceRecord
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.QueryGetServiceRecordResponse.ServiceRecord":
+ x.ServiceRecord = value.Message().Interface().(*ServiceRecord)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.QueryGetServiceRecordResponse.ServiceRecord":
+ if x.ServiceRecord == nil {
+ x.ServiceRecord = new(ServiceRecord)
+ }
+ return protoreflect.ValueOfMessage(x.ServiceRecord.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetServiceRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.QueryGetServiceRecordResponse.ServiceRecord":
+ m := new(ServiceRecord)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryGetServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryGetServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetServiceRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.QueryGetServiceRecordResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryGetServiceRecordResponse) 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_QueryGetServiceRecordResponse) 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_QueryGetServiceRecordResponse) 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_QueryGetServiceRecordResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetServiceRecordResponse)
+ 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.ServiceRecord != nil {
+ l = options.Size(x.ServiceRecord)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetServiceRecordResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.ServiceRecord != nil {
+ encoded, err := options.Marshal(x.ServiceRecord)
+ 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().(*QueryGetServiceRecordResponse)
+ 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: QueryGetServiceRecordResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetServiceRecordResponse: 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 ServiceRecord", 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.ServiceRecord == nil {
+ x.ServiceRecord = &ServiceRecord{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ServiceRecord); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryAllServiceRecordRequest protoreflect.MessageDescriptor
+ fd_QueryAllServiceRecordRequest_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_query_proto_init()
+ md_QueryAllServiceRecordRequest = File_core_service_query_proto.Messages().ByName("QueryAllServiceRecordRequest")
+ fd_QueryAllServiceRecordRequest_pagination = md_QueryAllServiceRecordRequest.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllServiceRecordRequest)(nil)
+
+type fastReflection_QueryAllServiceRecordRequest QueryAllServiceRecordRequest
+
+func (x *QueryAllServiceRecordRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllServiceRecordRequest)(x)
+}
+
+func (x *QueryAllServiceRecordRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_query_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllServiceRecordRequest_messageType fastReflection_QueryAllServiceRecordRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllServiceRecordRequest_messageType{}
+
+type fastReflection_QueryAllServiceRecordRequest_messageType struct{}
+
+func (x fastReflection_QueryAllServiceRecordRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllServiceRecordRequest)(nil)
+}
+func (x fastReflection_QueryAllServiceRecordRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServiceRecordRequest)
+}
+func (x fastReflection_QueryAllServiceRecordRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServiceRecordRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllServiceRecordRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServiceRecordRequest
+}
+
+// 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_QueryAllServiceRecordRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllServiceRecordRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllServiceRecordRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServiceRecordRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllServiceRecordRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllServiceRecordRequest)(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_QueryAllServiceRecordRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllServiceRecordRequest_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllServiceRecordRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.QueryAllServiceRecordRequest.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServiceRecordRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.QueryAllServiceRecordRequest.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAllServiceRecordRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.QueryAllServiceRecordRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServiceRecordRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.QueryAllServiceRecordRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServiceRecordRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.QueryAllServiceRecordRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllServiceRecordRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.QueryAllServiceRecordRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordRequest"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllServiceRecordRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.QueryAllServiceRecordRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAllServiceRecordRequest) 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_QueryAllServiceRecordRequest) 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_QueryAllServiceRecordRequest) 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_QueryAllServiceRecordRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllServiceRecordRequest)
+ 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.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllServiceRecordRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 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().(*QueryAllServiceRecordRequest)
+ 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: QueryAllServiceRecordRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllServiceRecordRequest: 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 Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_QueryAllServiceRecordResponse_1_list)(nil)
+
+type _QueryAllServiceRecordResponse_1_list struct {
+ list *[]*ServiceRecord
+}
+
+func (x *_QueryAllServiceRecordResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllServiceRecordResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllServiceRecordResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*ServiceRecord)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllServiceRecordResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*ServiceRecord)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllServiceRecordResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(ServiceRecord)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllServiceRecordResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllServiceRecordResponse_1_list) NewElement() protoreflect.Value {
+ v := new(ServiceRecord)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllServiceRecordResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllServiceRecordResponse protoreflect.MessageDescriptor
+ fd_QueryAllServiceRecordResponse_ServiceRecord protoreflect.FieldDescriptor
+ fd_QueryAllServiceRecordResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_query_proto_init()
+ md_QueryAllServiceRecordResponse = File_core_service_query_proto.Messages().ByName("QueryAllServiceRecordResponse")
+ fd_QueryAllServiceRecordResponse_ServiceRecord = md_QueryAllServiceRecordResponse.Fields().ByName("ServiceRecord")
+ fd_QueryAllServiceRecordResponse_pagination = md_QueryAllServiceRecordResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllServiceRecordResponse)(nil)
+
+type fastReflection_QueryAllServiceRecordResponse QueryAllServiceRecordResponse
+
+func (x *QueryAllServiceRecordResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllServiceRecordResponse)(x)
+}
+
+func (x *QueryAllServiceRecordResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_query_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllServiceRecordResponse_messageType fastReflection_QueryAllServiceRecordResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllServiceRecordResponse_messageType{}
+
+type fastReflection_QueryAllServiceRecordResponse_messageType struct{}
+
+func (x fastReflection_QueryAllServiceRecordResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllServiceRecordResponse)(nil)
+}
+func (x fastReflection_QueryAllServiceRecordResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServiceRecordResponse)
+}
+func (x fastReflection_QueryAllServiceRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServiceRecordResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllServiceRecordResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServiceRecordResponse
+}
+
+// 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_QueryAllServiceRecordResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllServiceRecordResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllServiceRecordResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServiceRecordResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllServiceRecordResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllServiceRecordResponse)(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_QueryAllServiceRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.ServiceRecord) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllServiceRecordResponse_1_list{list: &x.ServiceRecord})
+ if !f(fd_QueryAllServiceRecordResponse_ServiceRecord, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllServiceRecordResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllServiceRecordResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.QueryAllServiceRecordResponse.ServiceRecord":
+ return len(x.ServiceRecord) != 0
+ case "core.service.QueryAllServiceRecordResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServiceRecordResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.QueryAllServiceRecordResponse.ServiceRecord":
+ x.ServiceRecord = nil
+ case "core.service.QueryAllServiceRecordResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAllServiceRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.QueryAllServiceRecordResponse.ServiceRecord":
+ if len(x.ServiceRecord) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllServiceRecordResponse_1_list{})
+ }
+ listValue := &_QueryAllServiceRecordResponse_1_list{list: &x.ServiceRecord}
+ return protoreflect.ValueOfList(listValue)
+ case "core.service.QueryAllServiceRecordResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServiceRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.QueryAllServiceRecordResponse.ServiceRecord":
+ lv := value.List()
+ clv := lv.(*_QueryAllServiceRecordResponse_1_list)
+ x.ServiceRecord = *clv.list
+ case "core.service.QueryAllServiceRecordResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServiceRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.QueryAllServiceRecordResponse.ServiceRecord":
+ if x.ServiceRecord == nil {
+ x.ServiceRecord = []*ServiceRecord{}
+ }
+ value := &_QueryAllServiceRecordResponse_1_list{list: &x.ServiceRecord}
+ return protoreflect.ValueOfList(value)
+ case "core.service.QueryAllServiceRecordResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllServiceRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.QueryAllServiceRecordResponse.ServiceRecord":
+ list := []*ServiceRecord{}
+ return protoreflect.ValueOfList(&_QueryAllServiceRecordResponse_1_list{list: &list})
+ case "core.service.QueryAllServiceRecordResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.QueryAllServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.QueryAllServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllServiceRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.QueryAllServiceRecordResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAllServiceRecordResponse) 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_QueryAllServiceRecordResponse) 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_QueryAllServiceRecordResponse) 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_QueryAllServiceRecordResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllServiceRecordResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if len(x.ServiceRecord) > 0 {
+ for _, e := range x.ServiceRecord {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllServiceRecordResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.ServiceRecord) > 0 {
+ for iNdEx := len(x.ServiceRecord) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.ServiceRecord[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllServiceRecordResponse)
+ 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: QueryAllServiceRecordResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllServiceRecordResponse: 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 ServiceRecord", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.ServiceRecord = append(x.ServiceRecord, &ServiceRecord{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ServiceRecord[len(x.ServiceRecord)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/service/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_core_service_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_core_service_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// QueryGetServiceRecordRequest is the request type for the Query/ServiceRecord
+// RPC method.
+type QueryGetServiceRecordRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
+}
+
+func (x *QueryGetServiceRecordRequest) Reset() {
+ *x = QueryGetServiceRecordRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_query_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetServiceRecordRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetServiceRecordRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetServiceRecordRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetServiceRecordRequest) Descriptor() ([]byte, []int) {
+ return file_core_service_query_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *QueryGetServiceRecordRequest) GetOrigin() string {
+ if x != nil {
+ return x.Origin
+ }
+ return ""
+}
+
+// QueryGetServiceRecordResponse is the response type for the
+// Query/ServiceRecord RPC method.
+type QueryGetServiceRecordResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ ServiceRecord *ServiceRecord `protobuf:"bytes,1,opt,name=ServiceRecord,proto3" json:"ServiceRecord,omitempty"`
+}
+
+func (x *QueryGetServiceRecordResponse) Reset() {
+ *x = QueryGetServiceRecordResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_query_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetServiceRecordResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetServiceRecordResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetServiceRecordResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetServiceRecordResponse) Descriptor() ([]byte, []int) {
+ return file_core_service_query_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *QueryGetServiceRecordResponse) GetServiceRecord() *ServiceRecord {
+ if x != nil {
+ return x.ServiceRecord
+ }
+ return nil
+}
+
+// QueryAllServiceRecordRequest is the request type for the
+// Query/ServiceRecordAll RPC method.
+type QueryAllServiceRecordRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllServiceRecordRequest) Reset() {
+ *x = QueryAllServiceRecordRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_query_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllServiceRecordRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllServiceRecordRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllServiceRecordRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllServiceRecordRequest) Descriptor() ([]byte, []int) {
+ return file_core_service_query_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *QueryAllServiceRecordRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+// QueryAllServiceRecordResponse is the response type for the
+// Query/ServiceRecordAll RPC method.
+type QueryAllServiceRecordResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ ServiceRecord []*ServiceRecord `protobuf:"bytes,1,rep,name=ServiceRecord,proto3" json:"ServiceRecord,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllServiceRecordResponse) Reset() {
+ *x = QueryAllServiceRecordResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_query_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllServiceRecordResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllServiceRecordResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllServiceRecordResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllServiceRecordResponse) Descriptor() ([]byte, []int) {
+ return file_core_service_query_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *QueryAllServiceRecordResponse) GetServiceRecord() []*ServiceRecord {
+ if x != nil {
+ return x.ServiceRecord
+ }
+ return nil
+}
+
+func (x *QueryAllServiceRecordResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+var File_core_service_query_proto protoreflect.FileDescriptor
+
+var file_core_service_query_proto_rawDesc = []byte{
+ 0x0a, 0x18, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x71,
+ 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x6f, 0x72, 0x65,
+ 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x17, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69,
+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x64, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
+ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f,
+ 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72,
+ 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f,
+ 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
+ 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
+ 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
+ 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x49, 0x0a,
+ 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00,
+ 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x36, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72,
+ 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67,
+ 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e,
+ 0x22, 0x68, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x12, 0x47, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f,
+ 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52,
+ 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x66, 0x0a, 0x1c, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63,
+ 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61,
+ 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26,
+ 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65,
+ 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x22, 0xb1, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52,
+ 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f,
+ 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x47, 0x0a,
+ 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61,
+ 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69,
+ 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0x84, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x12, 0x6b, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x20, 0x2e, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50,
+ 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x63,
+ 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70,
+ 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x88, 0x01,
+ 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12,
+ 0x2a, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65,
+ 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x6f,
+ 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18,
+ 0x12, 0x16, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
+ 0x7b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x7d, 0x12, 0x82, 0x01, 0x0a, 0x10, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x6c, 0x6c, 0x12, 0x2a, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65,
+ 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f,
+ 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x6f, 0x72, 0x65,
+ 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c,
+ 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d,
+ 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x94, 0x01,
+ 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e,
+ 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x0c, 0x43, 0x6f,
+ 0x72, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x0c, 0x43, 0x6f, 0x72,
+ 0x65, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x18, 0x43, 0x6f, 0x72, 0x65,
+ 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_service_query_proto_rawDescOnce sync.Once
+ file_core_service_query_proto_rawDescData = file_core_service_query_proto_rawDesc
+)
+
+func file_core_service_query_proto_rawDescGZIP() []byte {
+ file_core_service_query_proto_rawDescOnce.Do(func() {
+ file_core_service_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_service_query_proto_rawDescData)
+ })
+ return file_core_service_query_proto_rawDescData
+}
+
+var file_core_service_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_core_service_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: core.service.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: core.service.QueryParamsResponse
+ (*QueryGetServiceRecordRequest)(nil), // 2: core.service.QueryGetServiceRecordRequest
+ (*QueryGetServiceRecordResponse)(nil), // 3: core.service.QueryGetServiceRecordResponse
+ (*QueryAllServiceRecordRequest)(nil), // 4: core.service.QueryAllServiceRecordRequest
+ (*QueryAllServiceRecordResponse)(nil), // 5: core.service.QueryAllServiceRecordResponse
+ (*Params)(nil), // 6: core.service.Params
+ (*ServiceRecord)(nil), // 7: core.service.ServiceRecord
+ (*v1beta1.PageRequest)(nil), // 8: cosmos.base.query.v1beta1.PageRequest
+ (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse
+}
+var file_core_service_query_proto_depIdxs = []int32{
+ 6, // 0: core.service.QueryParamsResponse.params:type_name -> core.service.Params
+ 7, // 1: core.service.QueryGetServiceRecordResponse.ServiceRecord:type_name -> core.service.ServiceRecord
+ 8, // 2: core.service.QueryAllServiceRecordRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 7, // 3: core.service.QueryAllServiceRecordResponse.ServiceRecord:type_name -> core.service.ServiceRecord
+ 9, // 4: core.service.QueryAllServiceRecordResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 0, // 5: core.service.Query.Params:input_type -> core.service.QueryParamsRequest
+ 2, // 6: core.service.Query.ServiceRecord:input_type -> core.service.QueryGetServiceRecordRequest
+ 4, // 7: core.service.Query.ServiceRecordAll:input_type -> core.service.QueryAllServiceRecordRequest
+ 1, // 8: core.service.Query.Params:output_type -> core.service.QueryParamsResponse
+ 3, // 9: core.service.Query.ServiceRecord:output_type -> core.service.QueryGetServiceRecordResponse
+ 5, // 10: core.service.Query.ServiceRecordAll:output_type -> core.service.QueryAllServiceRecordResponse
+ 8, // [8:11] is the sub-list for method output_type
+ 5, // [5:8] 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
+}
+
+func init() { file_core_service_query_proto_init() }
+func file_core_service_query_proto_init() {
+ if File_core_service_query_proto != nil {
+ return
+ }
+ file_core_service_params_proto_init()
+ file_core_service_record_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_core_service_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetServiceRecordRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetServiceRecordResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllServiceRecordRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllServiceRecordResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_service_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_core_service_query_proto_goTypes,
+ DependencyIndexes: file_core_service_query_proto_depIdxs,
+ MessageInfos: file_core_service_query_proto_msgTypes,
+ }.Build()
+ File_core_service_query_proto = out.File
+ file_core_service_query_proto_rawDesc = nil
+ file_core_service_query_proto_goTypes = nil
+ file_core_service_query_proto_depIdxs = nil
+}
diff --git a/api/core/service/query_grpc.pb.go b/api/core/service/query_grpc.pb.go
new file mode 100644
index 000000000..33c23a707
--- /dev/null
+++ b/api/core/service/query_grpc.pb.go
@@ -0,0 +1,189 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: core/service/query.proto
+
+package service
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ Query_Params_FullMethodName = "/core.service.Query/Params"
+ Query_ServiceRecord_FullMethodName = "/core.service.Query/ServiceRecord"
+ Query_ServiceRecordAll_FullMethodName = "/core.service.Query/ServiceRecordAll"
+)
+
+// QueryClient is the client API for Query service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type QueryClient interface {
+ // Params queries the parameters of the module.
+ Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
+ // ServiceRecord queries a list of ServiceRecord items.
+ ServiceRecord(ctx context.Context, in *QueryGetServiceRecordRequest, opts ...grpc.CallOption) (*QueryGetServiceRecordResponse, error)
+ // ServiceRecordAll queries all ServiceRecord items.
+ ServiceRecordAll(ctx context.Context, in *QueryAllServiceRecordRequest, opts ...grpc.CallOption) (*QueryAllServiceRecordResponse, error)
+}
+
+type queryClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
+ return &queryClient{cc}
+}
+
+func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
+ out := new(QueryParamsResponse)
+ err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) ServiceRecord(ctx context.Context, in *QueryGetServiceRecordRequest, opts ...grpc.CallOption) (*QueryGetServiceRecordResponse, error) {
+ out := new(QueryGetServiceRecordResponse)
+ err := c.cc.Invoke(ctx, Query_ServiceRecord_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *queryClient) ServiceRecordAll(ctx context.Context, in *QueryAllServiceRecordRequest, opts ...grpc.CallOption) (*QueryAllServiceRecordResponse, error) {
+ out := new(QueryAllServiceRecordResponse)
+ err := c.cc.Invoke(ctx, Query_ServiceRecordAll_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// QueryServer is the server API for Query service.
+// All implementations must embed UnimplementedQueryServer
+// for forward compatibility
+type QueryServer interface {
+ // Params queries the parameters of the module.
+ Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
+ // ServiceRecord queries a list of ServiceRecord items.
+ ServiceRecord(context.Context, *QueryGetServiceRecordRequest) (*QueryGetServiceRecordResponse, error)
+ // ServiceRecordAll queries all ServiceRecord items.
+ ServiceRecordAll(context.Context, *QueryAllServiceRecordRequest) (*QueryAllServiceRecordResponse, error)
+ mustEmbedUnimplementedQueryServer()
+}
+
+// UnimplementedQueryServer must be embedded to have forward compatible implementations.
+type UnimplementedQueryServer struct {
+}
+
+func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
+}
+func (UnimplementedQueryServer) ServiceRecord(context.Context, *QueryGetServiceRecordRequest) (*QueryGetServiceRecordResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ServiceRecord not implemented")
+}
+func (UnimplementedQueryServer) ServiceRecordAll(context.Context, *QueryAllServiceRecordRequest) (*QueryAllServiceRecordResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ServiceRecordAll not implemented")
+}
+func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
+
+// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to QueryServer will
+// result in compilation errors.
+type UnsafeQueryServer interface {
+ mustEmbedUnimplementedQueryServer()
+}
+
+func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) {
+ s.RegisterService(&Query_ServiceDesc, srv)
+}
+
+func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryParamsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).Params(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_Params_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_ServiceRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryGetServiceRecordRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).ServiceRecord(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_ServiceRecord_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).ServiceRecord(ctx, req.(*QueryGetServiceRecordRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Query_ServiceRecordAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryAllServiceRecordRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).ServiceRecordAll(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Query_ServiceRecordAll_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).ServiceRecordAll(ctx, req.(*QueryAllServiceRecordRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var Query_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "core.service.Query",
+ HandlerType: (*QueryServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "Params",
+ Handler: _Query_Params_Handler,
+ },
+ {
+ MethodName: "ServiceRecord",
+ Handler: _Query_ServiceRecord_Handler,
+ },
+ {
+ MethodName: "ServiceRecordAll",
+ Handler: _Query_ServiceRecordAll_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "core/service/query.proto",
+}
diff --git a/api/core/service/record.pulsar.go b/api/core/service/record.pulsar.go
new file mode 100644
index 000000000..42d6fdccc
--- /dev/null
+++ b/api/core/service/record.pulsar.go
@@ -0,0 +1,1675 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_ServiceRecord_3_list)(nil)
+
+type _ServiceRecord_3_list struct {
+ list *[]string
+}
+
+func (x *_ServiceRecord_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_ServiceRecord_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_ServiceRecord_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_ServiceRecord_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_ServiceRecord_3_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message ServiceRecord at list field Origins as it is not of Message kind"))
+}
+
+func (x *_ServiceRecord_3_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_ServiceRecord_3_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_ServiceRecord_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_ServiceRecord protoreflect.MessageDescriptor
+ fd_ServiceRecord_id protoreflect.FieldDescriptor
+ fd_ServiceRecord_controller protoreflect.FieldDescriptor
+ fd_ServiceRecord_origins protoreflect.FieldDescriptor
+ fd_ServiceRecord_name protoreflect.FieldDescriptor
+ fd_ServiceRecord_description protoreflect.FieldDescriptor
+ fd_ServiceRecord_category protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_record_proto_init()
+ md_ServiceRecord = File_core_service_record_proto.Messages().ByName("ServiceRecord")
+ fd_ServiceRecord_id = md_ServiceRecord.Fields().ByName("id")
+ fd_ServiceRecord_controller = md_ServiceRecord.Fields().ByName("controller")
+ fd_ServiceRecord_origins = md_ServiceRecord.Fields().ByName("origins")
+ fd_ServiceRecord_name = md_ServiceRecord.Fields().ByName("name")
+ fd_ServiceRecord_description = md_ServiceRecord.Fields().ByName("description")
+ fd_ServiceRecord_category = md_ServiceRecord.Fields().ByName("category")
+}
+
+var _ protoreflect.Message = (*fastReflection_ServiceRecord)(nil)
+
+type fastReflection_ServiceRecord ServiceRecord
+
+func (x *ServiceRecord) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ServiceRecord)(x)
+}
+
+func (x *ServiceRecord) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_record_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_ServiceRecord_messageType fastReflection_ServiceRecord_messageType
+var _ protoreflect.MessageType = fastReflection_ServiceRecord_messageType{}
+
+type fastReflection_ServiceRecord_messageType struct{}
+
+func (x fastReflection_ServiceRecord_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ServiceRecord)(nil)
+}
+func (x fastReflection_ServiceRecord_messageType) New() protoreflect.Message {
+ return new(fastReflection_ServiceRecord)
+}
+func (x fastReflection_ServiceRecord_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ServiceRecord
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ServiceRecord) Descriptor() protoreflect.MessageDescriptor {
+ return md_ServiceRecord
+}
+
+// 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_ServiceRecord) Type() protoreflect.MessageType {
+ return _fastReflection_ServiceRecord_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ServiceRecord) New() protoreflect.Message {
+ return new(fastReflection_ServiceRecord)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ServiceRecord) Interface() protoreflect.ProtoMessage {
+ return (*ServiceRecord)(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_ServiceRecord) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Id != "" {
+ value := protoreflect.ValueOfString(x.Id)
+ if !f(fd_ServiceRecord_id, value) {
+ return
+ }
+ }
+ if x.Controller != "" {
+ value := protoreflect.ValueOfString(x.Controller)
+ if !f(fd_ServiceRecord_controller, value) {
+ return
+ }
+ }
+ if len(x.Origins) != 0 {
+ value := protoreflect.ValueOfList(&_ServiceRecord_3_list{list: &x.Origins})
+ if !f(fd_ServiceRecord_origins, value) {
+ return
+ }
+ }
+ if x.Name != "" {
+ value := protoreflect.ValueOfString(x.Name)
+ if !f(fd_ServiceRecord_name, value) {
+ return
+ }
+ }
+ if x.Description != "" {
+ value := protoreflect.ValueOfString(x.Description)
+ if !f(fd_ServiceRecord_description, value) {
+ return
+ }
+ }
+ if x.Category != "" {
+ value := protoreflect.ValueOfString(x.Category)
+ if !f(fd_ServiceRecord_category, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_ServiceRecord) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.ServiceRecord.id":
+ return x.Id != ""
+ case "core.service.ServiceRecord.controller":
+ return x.Controller != ""
+ case "core.service.ServiceRecord.origins":
+ return len(x.Origins) != 0
+ case "core.service.ServiceRecord.name":
+ return x.Name != ""
+ case "core.service.ServiceRecord.description":
+ return x.Description != ""
+ case "core.service.ServiceRecord.category":
+ return x.Category != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ServiceRecord) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.ServiceRecord.id":
+ x.Id = ""
+ case "core.service.ServiceRecord.controller":
+ x.Controller = ""
+ case "core.service.ServiceRecord.origins":
+ x.Origins = nil
+ case "core.service.ServiceRecord.name":
+ x.Name = ""
+ case "core.service.ServiceRecord.description":
+ x.Description = ""
+ case "core.service.ServiceRecord.category":
+ x.Category = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_ServiceRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.ServiceRecord.id":
+ value := x.Id
+ return protoreflect.ValueOfString(value)
+ case "core.service.ServiceRecord.controller":
+ value := x.Controller
+ return protoreflect.ValueOfString(value)
+ case "core.service.ServiceRecord.origins":
+ if len(x.Origins) == 0 {
+ return protoreflect.ValueOfList(&_ServiceRecord_3_list{})
+ }
+ listValue := &_ServiceRecord_3_list{list: &x.Origins}
+ return protoreflect.ValueOfList(listValue)
+ case "core.service.ServiceRecord.name":
+ value := x.Name
+ return protoreflect.ValueOfString(value)
+ case "core.service.ServiceRecord.description":
+ value := x.Description
+ return protoreflect.ValueOfString(value)
+ case "core.service.ServiceRecord.category":
+ value := x.Category
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRecord does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ServiceRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.ServiceRecord.id":
+ x.Id = value.Interface().(string)
+ case "core.service.ServiceRecord.controller":
+ x.Controller = value.Interface().(string)
+ case "core.service.ServiceRecord.origins":
+ lv := value.List()
+ clv := lv.(*_ServiceRecord_3_list)
+ x.Origins = *clv.list
+ case "core.service.ServiceRecord.name":
+ x.Name = value.Interface().(string)
+ case "core.service.ServiceRecord.description":
+ x.Description = value.Interface().(string)
+ case "core.service.ServiceRecord.category":
+ x.Category = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ServiceRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.ServiceRecord.origins":
+ if x.Origins == nil {
+ x.Origins = []string{}
+ }
+ value := &_ServiceRecord_3_list{list: &x.Origins}
+ return protoreflect.ValueOfList(value)
+ case "core.service.ServiceRecord.id":
+ panic(fmt.Errorf("field id of message core.service.ServiceRecord is not mutable"))
+ case "core.service.ServiceRecord.controller":
+ panic(fmt.Errorf("field controller of message core.service.ServiceRecord is not mutable"))
+ case "core.service.ServiceRecord.name":
+ panic(fmt.Errorf("field name of message core.service.ServiceRecord is not mutable"))
+ case "core.service.ServiceRecord.description":
+ panic(fmt.Errorf("field description of message core.service.ServiceRecord is not mutable"))
+ case "core.service.ServiceRecord.category":
+ panic(fmt.Errorf("field category of message core.service.ServiceRecord is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ServiceRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.ServiceRecord.id":
+ return protoreflect.ValueOfString("")
+ case "core.service.ServiceRecord.controller":
+ return protoreflect.ValueOfString("")
+ case "core.service.ServiceRecord.origins":
+ list := []string{}
+ return protoreflect.ValueOfList(&_ServiceRecord_3_list{list: &list})
+ case "core.service.ServiceRecord.name":
+ return protoreflect.ValueOfString("")
+ case "core.service.ServiceRecord.description":
+ return protoreflect.ValueOfString("")
+ case "core.service.ServiceRecord.category":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ServiceRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.ServiceRecord", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_ServiceRecord) 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_ServiceRecord) 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_ServiceRecord) 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_ServiceRecord) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ServiceRecord)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Id)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Controller)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Origins) > 0 {
+ for _, s := range x.Origins {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ l = len(x.Name)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Description)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Category)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*ServiceRecord)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Category) > 0 {
+ i -= len(x.Category)
+ copy(dAtA[i:], x.Category)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Category)))
+ i--
+ dAtA[i] = 0x32
+ }
+ if len(x.Description) > 0 {
+ i -= len(x.Description)
+ copy(dAtA[i:], x.Description)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Description)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(x.Name) > 0 {
+ i -= len(x.Name)
+ copy(dAtA[i:], x.Name)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.Origins) > 0 {
+ for iNdEx := len(x.Origins) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Origins[iNdEx])
+ copy(dAtA[i:], x.Origins[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Origins[iNdEx])))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if len(x.Controller) > 0 {
+ i -= len(x.Controller)
+ copy(dAtA[i:], x.Controller)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Controller)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Id) > 0 {
+ i -= len(x.Id)
+ copy(dAtA[i:], x.Id)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
+ 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().(*ServiceRecord)
+ 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: ServiceRecord: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ServiceRecord: 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 Id", 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.Id = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Controller = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Origins", 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.Origins = append(x.Origins, 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 Name", 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.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", 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.Description = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Category", 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.Category = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_ServiceRelationship protoreflect.MessageDescriptor
+ fd_ServiceRelationship_reference protoreflect.FieldDescriptor
+ fd_ServiceRelationship_did protoreflect.FieldDescriptor
+ fd_ServiceRelationship_count protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_record_proto_init()
+ md_ServiceRelationship = File_core_service_record_proto.Messages().ByName("ServiceRelationship")
+ fd_ServiceRelationship_reference = md_ServiceRelationship.Fields().ByName("reference")
+ fd_ServiceRelationship_did = md_ServiceRelationship.Fields().ByName("did")
+ fd_ServiceRelationship_count = md_ServiceRelationship.Fields().ByName("count")
+}
+
+var _ protoreflect.Message = (*fastReflection_ServiceRelationship)(nil)
+
+type fastReflection_ServiceRelationship ServiceRelationship
+
+func (x *ServiceRelationship) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ServiceRelationship)(x)
+}
+
+func (x *ServiceRelationship) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_record_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_ServiceRelationship_messageType fastReflection_ServiceRelationship_messageType
+var _ protoreflect.MessageType = fastReflection_ServiceRelationship_messageType{}
+
+type fastReflection_ServiceRelationship_messageType struct{}
+
+func (x fastReflection_ServiceRelationship_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ServiceRelationship)(nil)
+}
+func (x fastReflection_ServiceRelationship_messageType) New() protoreflect.Message {
+ return new(fastReflection_ServiceRelationship)
+}
+func (x fastReflection_ServiceRelationship_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ServiceRelationship
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ServiceRelationship) Descriptor() protoreflect.MessageDescriptor {
+ return md_ServiceRelationship
+}
+
+// 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_ServiceRelationship) Type() protoreflect.MessageType {
+ return _fastReflection_ServiceRelationship_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ServiceRelationship) New() protoreflect.Message {
+ return new(fastReflection_ServiceRelationship)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ServiceRelationship) Interface() protoreflect.ProtoMessage {
+ return (*ServiceRelationship)(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_ServiceRelationship) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Reference != "" {
+ value := protoreflect.ValueOfString(x.Reference)
+ if !f(fd_ServiceRelationship_reference, value) {
+ return
+ }
+ }
+ if x.Did != "" {
+ value := protoreflect.ValueOfString(x.Did)
+ if !f(fd_ServiceRelationship_did, value) {
+ return
+ }
+ }
+ if x.Count != uint32(0) {
+ value := protoreflect.ValueOfUint32(x.Count)
+ if !f(fd_ServiceRelationship_count, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_ServiceRelationship) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.ServiceRelationship.reference":
+ return x.Reference != ""
+ case "core.service.ServiceRelationship.did":
+ return x.Did != ""
+ case "core.service.ServiceRelationship.count":
+ return x.Count != uint32(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRelationship"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRelationship does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ServiceRelationship) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.ServiceRelationship.reference":
+ x.Reference = ""
+ case "core.service.ServiceRelationship.did":
+ x.Did = ""
+ case "core.service.ServiceRelationship.count":
+ x.Count = uint32(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRelationship"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRelationship does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_ServiceRelationship) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.ServiceRelationship.reference":
+ value := x.Reference
+ return protoreflect.ValueOfString(value)
+ case "core.service.ServiceRelationship.did":
+ value := x.Did
+ return protoreflect.ValueOfString(value)
+ case "core.service.ServiceRelationship.count":
+ value := x.Count
+ return protoreflect.ValueOfUint32(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRelationship"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRelationship does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ServiceRelationship) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.ServiceRelationship.reference":
+ x.Reference = value.Interface().(string)
+ case "core.service.ServiceRelationship.did":
+ x.Did = value.Interface().(string)
+ case "core.service.ServiceRelationship.count":
+ x.Count = uint32(value.Uint())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRelationship"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRelationship does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ServiceRelationship) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.ServiceRelationship.reference":
+ panic(fmt.Errorf("field reference of message core.service.ServiceRelationship is not mutable"))
+ case "core.service.ServiceRelationship.did":
+ panic(fmt.Errorf("field did of message core.service.ServiceRelationship is not mutable"))
+ case "core.service.ServiceRelationship.count":
+ panic(fmt.Errorf("field count of message core.service.ServiceRelationship is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRelationship"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRelationship does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ServiceRelationship) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.ServiceRelationship.reference":
+ return protoreflect.ValueOfString("")
+ case "core.service.ServiceRelationship.did":
+ return protoreflect.ValueOfString("")
+ case "core.service.ServiceRelationship.count":
+ return protoreflect.ValueOfUint32(uint32(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.ServiceRelationship"))
+ }
+ panic(fmt.Errorf("message core.service.ServiceRelationship does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ServiceRelationship) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.ServiceRelationship", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_ServiceRelationship) 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_ServiceRelationship) 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_ServiceRelationship) 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_ServiceRelationship) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ServiceRelationship)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Reference)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Did)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Count != 0 {
+ n += 1 + runtime.Sov(uint64(x.Count))
+ }
+ 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().(*ServiceRelationship)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Count != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Count))
+ i--
+ dAtA[i] = 0x18
+ }
+ if len(x.Did) > 0 {
+ i -= len(x.Did)
+ copy(dAtA[i:], x.Did)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Reference) > 0 {
+ i -= len(x.Reference)
+ copy(dAtA[i:], x.Reference)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reference)))
+ 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().(*ServiceRelationship)
+ 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: ServiceRelationship: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ServiceRelationship: 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 Reference", 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.Reference = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Did = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
+ }
+ x.Count = 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.Count |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/service/record.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Permissions are a bitfield of permissions that a user has for a given service
+// in order to perform certain actions.
+type Permissions int32
+
+const (
+ // Authenticated user with basic public info and read access to public
+ // resources
+ Permissions_SR_BASE Permissions = 0
+ // Authenticated user with service-side access to signing privelages
+ Permissions_SR_SIGN Permissions = 1
+ // Authenticated user with service-side access to writing to ipfs
+ Permissions_SR_WRITE Permissions = 2
+ // Authenticated user with service-side access to updating user DID documents
+ // and creating new ones
+ Permissions_SR_CREATE Permissions = 3
+ // Authenticated user with service-side access to receiving notifications
+ Permissions_SR_NOTIFY Permissions = 4
+)
+
+// Enum value maps for Permissions.
+var (
+ Permissions_name = map[int32]string{
+ 0: "SR_BASE",
+ 1: "SR_SIGN",
+ 2: "SR_WRITE",
+ 3: "SR_CREATE",
+ 4: "SR_NOTIFY",
+ }
+ Permissions_value = map[string]int32{
+ "SR_BASE": 0,
+ "SR_SIGN": 1,
+ "SR_WRITE": 2,
+ "SR_CREATE": 3,
+ "SR_NOTIFY": 4,
+ }
+)
+
+func (x Permissions) Enum() *Permissions {
+ p := new(Permissions)
+ *p = x
+ return p
+}
+
+func (x Permissions) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (Permissions) Descriptor() protoreflect.EnumDescriptor {
+ return file_core_service_record_proto_enumTypes[0].Descriptor()
+}
+
+func (Permissions) Type() protoreflect.EnumType {
+ return &file_core_service_record_proto_enumTypes[0]
+}
+
+func (x Permissions) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use Permissions.Descriptor instead.
+func (Permissions) EnumDescriptor() ([]byte, []int) {
+ return file_core_service_record_proto_rawDescGZIP(), []int{0}
+}
+
+type ServiceRecord struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ Controller string `protobuf:"bytes,2,opt,name=controller,proto3" json:"controller,omitempty"` // The entity controlling the service
+ Origins []string `protobuf:"bytes,3,rep,name=origins,proto3" json:"origins,omitempty"`
+ Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // The name of the service
+ Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // The description of the service
+ Category string `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"` // The category of the service
+}
+
+func (x *ServiceRecord) Reset() {
+ *x = ServiceRecord{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_record_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ServiceRecord) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ServiceRecord) ProtoMessage() {}
+
+// Deprecated: Use ServiceRecord.ProtoReflect.Descriptor instead.
+func (*ServiceRecord) Descriptor() ([]byte, []int) {
+ return file_core_service_record_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *ServiceRecord) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *ServiceRecord) GetController() string {
+ if x != nil {
+ return x.Controller
+ }
+ return ""
+}
+
+func (x *ServiceRecord) GetOrigins() []string {
+ if x != nil {
+ return x.Origins
+ }
+ return nil
+}
+
+func (x *ServiceRecord) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *ServiceRecord) GetDescription() string {
+ if x != nil {
+ return x.Description
+ }
+ return ""
+}
+
+func (x *ServiceRecord) GetCategory() string {
+ if x != nil {
+ return x.Category
+ }
+ return ""
+}
+
+// ServiceRelationship is a relationship between a service and a User entity.
+// This relation is used to track the number of times a user has interacted with
+// a service, utilizing a verifiable random function (VRF) to generate a random
+// number that is used to determine whether or not a user has access to a
+// service.
+type ServiceRelationship struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // Reference is the reference to the service record
+ Reference string `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"`
+ // Did is the user's DID
+ Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
+ // Count is the number of times the user has interacted with the service
+ Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
+}
+
+func (x *ServiceRelationship) Reset() {
+ *x = ServiceRelationship{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_record_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ServiceRelationship) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ServiceRelationship) ProtoMessage() {}
+
+// Deprecated: Use ServiceRelationship.ProtoReflect.Descriptor instead.
+func (*ServiceRelationship) Descriptor() ([]byte, []int) {
+ return file_core_service_record_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *ServiceRelationship) GetReference() string {
+ if x != nil {
+ return x.Reference
+ }
+ return ""
+}
+
+func (x *ServiceRelationship) GetDid() string {
+ if x != nil {
+ return x.Did
+ }
+ return ""
+}
+
+func (x *ServiceRelationship) GetCount() uint32 {
+ if x != nil {
+ return x.Count
+ }
+ return 0
+}
+
+var File_core_service_record_proto protoreflect.FileDescriptor
+
+var file_core_service_record_proto_rawDesc = []byte{
+ 0x0a, 0x19, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x72,
+ 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x6f, 0x72,
+ 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0xab, 0x01, 0x0a, 0x0d, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69,
+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63,
+ 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6f,
+ 0x72, 0x69, 0x67, 0x69, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72,
+ 0x69, 0x67, 0x69, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,
+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
+ 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x63,
+ 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63,
+ 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0x5b, 0x0a, 0x13, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x1c,
+ 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03,
+ 0x64, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x14,
+ 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63,
+ 0x6f, 0x75, 0x6e, 0x74, 0x2a, 0x53, 0x0a, 0x0b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x52, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x10, 0x00,
+ 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x52, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x10, 0x01, 0x12, 0x0c, 0x0a,
+ 0x08, 0x53, 0x52, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53,
+ 0x52, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x52,
+ 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x10, 0x04, 0x42, 0x95, 0x01, 0x0a, 0x10, 0x63, 0x6f,
+ 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x0b,
+ 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x67,
+ 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69,
+ 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x0c, 0x43, 0x6f, 0x72, 0x65, 0x2e,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x0c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x18, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0xea, 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_service_record_proto_rawDescOnce sync.Once
+ file_core_service_record_proto_rawDescData = file_core_service_record_proto_rawDesc
+)
+
+func file_core_service_record_proto_rawDescGZIP() []byte {
+ file_core_service_record_proto_rawDescOnce.Do(func() {
+ file_core_service_record_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_service_record_proto_rawDescData)
+ })
+ return file_core_service_record_proto_rawDescData
+}
+
+var file_core_service_record_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_core_service_record_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_core_service_record_proto_goTypes = []interface{}{
+ (Permissions)(0), // 0: core.service.Permissions
+ (*ServiceRecord)(nil), // 1: core.service.ServiceRecord
+ (*ServiceRelationship)(nil), // 2: core.service.ServiceRelationship
+}
+var file_core_service_record_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_core_service_record_proto_init() }
+func file_core_service_record_proto_init() {
+ if File_core_service_record_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_core_service_record_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ServiceRecord); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_record_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ServiceRelationship); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_service_record_proto_rawDesc,
+ NumEnums: 1,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_core_service_record_proto_goTypes,
+ DependencyIndexes: file_core_service_record_proto_depIdxs,
+ EnumInfos: file_core_service_record_proto_enumTypes,
+ MessageInfos: file_core_service_record_proto_msgTypes,
+ }.Build()
+ File_core_service_record_proto = out.File
+ file_core_service_record_proto_rawDesc = nil
+ file_core_service_record_proto_goTypes = nil
+ file_core_service_record_proto_depIdxs = nil
+}
diff --git a/api/core/service/tx.pulsar.go b/api/core/service/tx.pulsar.go
new file mode 100644
index 000000000..2ddb669b2
--- /dev/null
+++ b/api/core/service/tx.pulsar.go
@@ -0,0 +1,2912 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_MsgCreateServiceRecord protoreflect.MessageDescriptor
+ fd_MsgCreateServiceRecord_creator protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_tx_proto_init()
+ md_MsgCreateServiceRecord = File_core_service_tx_proto.Messages().ByName("MsgCreateServiceRecord")
+ fd_MsgCreateServiceRecord_creator = md_MsgCreateServiceRecord.Fields().ByName("creator")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgCreateServiceRecord)(nil)
+
+type fastReflection_MsgCreateServiceRecord MsgCreateServiceRecord
+
+func (x *MsgCreateServiceRecord) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgCreateServiceRecord)(x)
+}
+
+func (x *MsgCreateServiceRecord) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgCreateServiceRecord_messageType fastReflection_MsgCreateServiceRecord_messageType
+var _ protoreflect.MessageType = fastReflection_MsgCreateServiceRecord_messageType{}
+
+type fastReflection_MsgCreateServiceRecord_messageType struct{}
+
+func (x fastReflection_MsgCreateServiceRecord_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgCreateServiceRecord)(nil)
+}
+func (x fastReflection_MsgCreateServiceRecord_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateServiceRecord)
+}
+func (x fastReflection_MsgCreateServiceRecord_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateServiceRecord
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgCreateServiceRecord) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateServiceRecord
+}
+
+// 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_MsgCreateServiceRecord) Type() protoreflect.MessageType {
+ return _fastReflection_MsgCreateServiceRecord_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgCreateServiceRecord) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateServiceRecord)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgCreateServiceRecord) Interface() protoreflect.ProtoMessage {
+ return (*MsgCreateServiceRecord)(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_MsgCreateServiceRecord) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Creator != "" {
+ value := protoreflect.ValueOfString(x.Creator)
+ if !f(fd_MsgCreateServiceRecord_creator, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgCreateServiceRecord) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.MsgCreateServiceRecord.creator":
+ return x.Creator != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateServiceRecord) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.MsgCreateServiceRecord.creator":
+ x.Creator = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgCreateServiceRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.MsgCreateServiceRecord.creator":
+ value := x.Creator
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecord does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateServiceRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.MsgCreateServiceRecord.creator":
+ x.Creator = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateServiceRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.MsgCreateServiceRecord.creator":
+ panic(fmt.Errorf("field creator of message core.service.MsgCreateServiceRecord is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgCreateServiceRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.MsgCreateServiceRecord.creator":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgCreateServiceRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.MsgCreateServiceRecord", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgCreateServiceRecord) 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_MsgCreateServiceRecord) 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_MsgCreateServiceRecord) 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_MsgCreateServiceRecord) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgCreateServiceRecord)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Creator)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgCreateServiceRecord)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Creator) > 0 {
+ i -= len(x.Creator)
+ copy(dAtA[i:], x.Creator)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
+ 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().(*MsgCreateServiceRecord)
+ 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: MsgCreateServiceRecord: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateServiceRecord: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgCreateServiceRecordResponse protoreflect.MessageDescriptor
+ fd_MsgCreateServiceRecordResponse_id protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_tx_proto_init()
+ md_MsgCreateServiceRecordResponse = File_core_service_tx_proto.Messages().ByName("MsgCreateServiceRecordResponse")
+ fd_MsgCreateServiceRecordResponse_id = md_MsgCreateServiceRecordResponse.Fields().ByName("id")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgCreateServiceRecordResponse)(nil)
+
+type fastReflection_MsgCreateServiceRecordResponse MsgCreateServiceRecordResponse
+
+func (x *MsgCreateServiceRecordResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgCreateServiceRecordResponse)(x)
+}
+
+func (x *MsgCreateServiceRecordResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgCreateServiceRecordResponse_messageType fastReflection_MsgCreateServiceRecordResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgCreateServiceRecordResponse_messageType{}
+
+type fastReflection_MsgCreateServiceRecordResponse_messageType struct{}
+
+func (x fastReflection_MsgCreateServiceRecordResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgCreateServiceRecordResponse)(nil)
+}
+func (x fastReflection_MsgCreateServiceRecordResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateServiceRecordResponse)
+}
+func (x fastReflection_MsgCreateServiceRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateServiceRecordResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgCreateServiceRecordResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgCreateServiceRecordResponse
+}
+
+// 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_MsgCreateServiceRecordResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgCreateServiceRecordResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgCreateServiceRecordResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgCreateServiceRecordResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgCreateServiceRecordResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgCreateServiceRecordResponse)(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_MsgCreateServiceRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Id != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.Id)
+ if !f(fd_MsgCreateServiceRecordResponse_id, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgCreateServiceRecordResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.MsgCreateServiceRecordResponse.id":
+ return x.Id != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateServiceRecordResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.MsgCreateServiceRecordResponse.id":
+ x.Id = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgCreateServiceRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.MsgCreateServiceRecordResponse.id":
+ value := x.Id
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecordResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateServiceRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.MsgCreateServiceRecordResponse.id":
+ x.Id = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgCreateServiceRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.MsgCreateServiceRecordResponse.id":
+ panic(fmt.Errorf("field id of message core.service.MsgCreateServiceRecordResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgCreateServiceRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.MsgCreateServiceRecordResponse.id":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgCreateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgCreateServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgCreateServiceRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.MsgCreateServiceRecordResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgCreateServiceRecordResponse) 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_MsgCreateServiceRecordResponse) 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_MsgCreateServiceRecordResponse) 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_MsgCreateServiceRecordResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgCreateServiceRecordResponse)
+ 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.Id != 0 {
+ n += 1 + runtime.Sov(uint64(x.Id))
+ }
+ 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().(*MsgCreateServiceRecordResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Id != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgCreateServiceRecordResponse)
+ 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: MsgCreateServiceRecordResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateServiceRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ x.Id = 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.Id |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUpdateServiceRecord protoreflect.MessageDescriptor
+ fd_MsgUpdateServiceRecord_creator protoreflect.FieldDescriptor
+ fd_MsgUpdateServiceRecord_id protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_tx_proto_init()
+ md_MsgUpdateServiceRecord = File_core_service_tx_proto.Messages().ByName("MsgUpdateServiceRecord")
+ fd_MsgUpdateServiceRecord_creator = md_MsgUpdateServiceRecord.Fields().ByName("creator")
+ fd_MsgUpdateServiceRecord_id = md_MsgUpdateServiceRecord.Fields().ByName("id")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateServiceRecord)(nil)
+
+type fastReflection_MsgUpdateServiceRecord MsgUpdateServiceRecord
+
+func (x *MsgUpdateServiceRecord) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateServiceRecord)(x)
+}
+
+func (x *MsgUpdateServiceRecord) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_tx_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateServiceRecord_messageType fastReflection_MsgUpdateServiceRecord_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateServiceRecord_messageType{}
+
+type fastReflection_MsgUpdateServiceRecord_messageType struct{}
+
+func (x fastReflection_MsgUpdateServiceRecord_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateServiceRecord)(nil)
+}
+func (x fastReflection_MsgUpdateServiceRecord_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateServiceRecord)
+}
+func (x fastReflection_MsgUpdateServiceRecord_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateServiceRecord
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateServiceRecord) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateServiceRecord
+}
+
+// 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_MsgUpdateServiceRecord) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateServiceRecord_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateServiceRecord) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateServiceRecord)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateServiceRecord) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateServiceRecord)(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_MsgUpdateServiceRecord) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Creator != "" {
+ value := protoreflect.ValueOfString(x.Creator)
+ if !f(fd_MsgUpdateServiceRecord_creator, value) {
+ return
+ }
+ }
+ if x.Id != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.Id)
+ if !f(fd_MsgUpdateServiceRecord_id, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateServiceRecord) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.MsgUpdateServiceRecord.creator":
+ return x.Creator != ""
+ case "core.service.MsgUpdateServiceRecord.id":
+ return x.Id != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateServiceRecord) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.MsgUpdateServiceRecord.creator":
+ x.Creator = ""
+ case "core.service.MsgUpdateServiceRecord.id":
+ x.Id = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgUpdateServiceRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.MsgUpdateServiceRecord.creator":
+ value := x.Creator
+ return protoreflect.ValueOfString(value)
+ case "core.service.MsgUpdateServiceRecord.id":
+ value := x.Id
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecord does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateServiceRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.MsgUpdateServiceRecord.creator":
+ x.Creator = value.Interface().(string)
+ case "core.service.MsgUpdateServiceRecord.id":
+ x.Id = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateServiceRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.MsgUpdateServiceRecord.creator":
+ panic(fmt.Errorf("field creator of message core.service.MsgUpdateServiceRecord is not mutable"))
+ case "core.service.MsgUpdateServiceRecord.id":
+ panic(fmt.Errorf("field id of message core.service.MsgUpdateServiceRecord is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateServiceRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.MsgUpdateServiceRecord.creator":
+ return protoreflect.ValueOfString("")
+ case "core.service.MsgUpdateServiceRecord.id":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateServiceRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.MsgUpdateServiceRecord", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgUpdateServiceRecord) 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_MsgUpdateServiceRecord) 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_MsgUpdateServiceRecord) 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_MsgUpdateServiceRecord) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateServiceRecord)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Creator)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Id != 0 {
+ n += 1 + runtime.Sov(uint64(x.Id))
+ }
+ 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().(*MsgUpdateServiceRecord)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Id != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
+ i--
+ dAtA[i] = 0x10
+ }
+ if len(x.Creator) > 0 {
+ i -= len(x.Creator)
+ copy(dAtA[i:], x.Creator)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
+ 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().(*MsgUpdateServiceRecord)
+ 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: MsgUpdateServiceRecord: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateServiceRecord: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ x.Id = 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.Id |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUpdateServiceRecordResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_service_tx_proto_init()
+ md_MsgUpdateServiceRecordResponse = File_core_service_tx_proto.Messages().ByName("MsgUpdateServiceRecordResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateServiceRecordResponse)(nil)
+
+type fastReflection_MsgUpdateServiceRecordResponse MsgUpdateServiceRecordResponse
+
+func (x *MsgUpdateServiceRecordResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateServiceRecordResponse)(x)
+}
+
+func (x *MsgUpdateServiceRecordResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_tx_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateServiceRecordResponse_messageType fastReflection_MsgUpdateServiceRecordResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateServiceRecordResponse_messageType{}
+
+type fastReflection_MsgUpdateServiceRecordResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateServiceRecordResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateServiceRecordResponse)(nil)
+}
+func (x fastReflection_MsgUpdateServiceRecordResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateServiceRecordResponse)
+}
+func (x fastReflection_MsgUpdateServiceRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateServiceRecordResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateServiceRecordResponse
+}
+
+// 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_MsgUpdateServiceRecordResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateServiceRecordResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateServiceRecordResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateServiceRecordResponse)(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_MsgUpdateServiceRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecordResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgUpdateServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgUpdateServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.MsgUpdateServiceRecordResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgUpdateServiceRecordResponse) 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_MsgUpdateServiceRecordResponse) 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_MsgUpdateServiceRecordResponse) 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_MsgUpdateServiceRecordResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateServiceRecordResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateServiceRecordResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateServiceRecordResponse)
+ 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: MsgUpdateServiceRecordResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateServiceRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgDeleteServiceRecord protoreflect.MessageDescriptor
+ fd_MsgDeleteServiceRecord_creator protoreflect.FieldDescriptor
+ fd_MsgDeleteServiceRecord_id protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_core_service_tx_proto_init()
+ md_MsgDeleteServiceRecord = File_core_service_tx_proto.Messages().ByName("MsgDeleteServiceRecord")
+ fd_MsgDeleteServiceRecord_creator = md_MsgDeleteServiceRecord.Fields().ByName("creator")
+ fd_MsgDeleteServiceRecord_id = md_MsgDeleteServiceRecord.Fields().ByName("id")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgDeleteServiceRecord)(nil)
+
+type fastReflection_MsgDeleteServiceRecord MsgDeleteServiceRecord
+
+func (x *MsgDeleteServiceRecord) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgDeleteServiceRecord)(x)
+}
+
+func (x *MsgDeleteServiceRecord) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_tx_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgDeleteServiceRecord_messageType fastReflection_MsgDeleteServiceRecord_messageType
+var _ protoreflect.MessageType = fastReflection_MsgDeleteServiceRecord_messageType{}
+
+type fastReflection_MsgDeleteServiceRecord_messageType struct{}
+
+func (x fastReflection_MsgDeleteServiceRecord_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgDeleteServiceRecord)(nil)
+}
+func (x fastReflection_MsgDeleteServiceRecord_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteServiceRecord)
+}
+func (x fastReflection_MsgDeleteServiceRecord_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteServiceRecord
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgDeleteServiceRecord) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteServiceRecord
+}
+
+// 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_MsgDeleteServiceRecord) Type() protoreflect.MessageType {
+ return _fastReflection_MsgDeleteServiceRecord_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgDeleteServiceRecord) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteServiceRecord)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgDeleteServiceRecord) Interface() protoreflect.ProtoMessage {
+ return (*MsgDeleteServiceRecord)(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_MsgDeleteServiceRecord) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Creator != "" {
+ value := protoreflect.ValueOfString(x.Creator)
+ if !f(fd_MsgDeleteServiceRecord_creator, value) {
+ return
+ }
+ }
+ if x.Id != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.Id)
+ if !f(fd_MsgDeleteServiceRecord_id, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgDeleteServiceRecord) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "core.service.MsgDeleteServiceRecord.creator":
+ return x.Creator != ""
+ case "core.service.MsgDeleteServiceRecord.id":
+ return x.Id != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteServiceRecord) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "core.service.MsgDeleteServiceRecord.creator":
+ x.Creator = ""
+ case "core.service.MsgDeleteServiceRecord.id":
+ x.Id = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgDeleteServiceRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "core.service.MsgDeleteServiceRecord.creator":
+ value := x.Creator
+ return protoreflect.ValueOfString(value)
+ case "core.service.MsgDeleteServiceRecord.id":
+ value := x.Id
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecord does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteServiceRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "core.service.MsgDeleteServiceRecord.creator":
+ x.Creator = value.Interface().(string)
+ case "core.service.MsgDeleteServiceRecord.id":
+ x.Id = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteServiceRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.MsgDeleteServiceRecord.creator":
+ panic(fmt.Errorf("field creator of message core.service.MsgDeleteServiceRecord is not mutable"))
+ case "core.service.MsgDeleteServiceRecord.id":
+ panic(fmt.Errorf("field id of message core.service.MsgDeleteServiceRecord is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgDeleteServiceRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "core.service.MsgDeleteServiceRecord.creator":
+ return protoreflect.ValueOfString("")
+ case "core.service.MsgDeleteServiceRecord.id":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecord"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecord does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgDeleteServiceRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.MsgDeleteServiceRecord", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgDeleteServiceRecord) 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_MsgDeleteServiceRecord) 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_MsgDeleteServiceRecord) 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_MsgDeleteServiceRecord) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgDeleteServiceRecord)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Creator)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Id != 0 {
+ n += 1 + runtime.Sov(uint64(x.Id))
+ }
+ 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().(*MsgDeleteServiceRecord)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Id != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
+ i--
+ dAtA[i] = 0x10
+ }
+ if len(x.Creator) > 0 {
+ i -= len(x.Creator)
+ copy(dAtA[i:], x.Creator)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
+ 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().(*MsgDeleteServiceRecord)
+ 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: MsgDeleteServiceRecord: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteServiceRecord: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ x.Id = 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.Id |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgDeleteServiceRecordResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_core_service_tx_proto_init()
+ md_MsgDeleteServiceRecordResponse = File_core_service_tx_proto.Messages().ByName("MsgDeleteServiceRecordResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgDeleteServiceRecordResponse)(nil)
+
+type fastReflection_MsgDeleteServiceRecordResponse MsgDeleteServiceRecordResponse
+
+func (x *MsgDeleteServiceRecordResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgDeleteServiceRecordResponse)(x)
+}
+
+func (x *MsgDeleteServiceRecordResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_core_service_tx_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgDeleteServiceRecordResponse_messageType fastReflection_MsgDeleteServiceRecordResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgDeleteServiceRecordResponse_messageType{}
+
+type fastReflection_MsgDeleteServiceRecordResponse_messageType struct{}
+
+func (x fastReflection_MsgDeleteServiceRecordResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgDeleteServiceRecordResponse)(nil)
+}
+func (x fastReflection_MsgDeleteServiceRecordResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteServiceRecordResponse)
+}
+func (x fastReflection_MsgDeleteServiceRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteServiceRecordResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgDeleteServiceRecordResponse
+}
+
+// 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_MsgDeleteServiceRecordResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgDeleteServiceRecordResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgDeleteServiceRecordResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgDeleteServiceRecordResponse)(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_MsgDeleteServiceRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecordResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: core.service.MsgDeleteServiceRecordResponse"))
+ }
+ panic(fmt.Errorf("message core.service.MsgDeleteServiceRecordResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in core.service.MsgDeleteServiceRecordResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgDeleteServiceRecordResponse) 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_MsgDeleteServiceRecordResponse) 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_MsgDeleteServiceRecordResponse) 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_MsgDeleteServiceRecordResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgDeleteServiceRecordResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgDeleteServiceRecordResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgDeleteServiceRecordResponse)
+ 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: MsgDeleteServiceRecordResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteServiceRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: core/service/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgCreateServiceRecord is the request type for the CreateServiceRecord
+// method. It takes a creator as a parameter.
+type MsgCreateServiceRecord struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
+}
+
+func (x *MsgCreateServiceRecord) Reset() {
+ *x = MsgCreateServiceRecord{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgCreateServiceRecord) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgCreateServiceRecord) ProtoMessage() {}
+
+// Deprecated: Use MsgCreateServiceRecord.ProtoReflect.Descriptor instead.
+func (*MsgCreateServiceRecord) Descriptor() ([]byte, []int) {
+ return file_core_service_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgCreateServiceRecord) GetCreator() string {
+ if x != nil {
+ return x.Creator
+ }
+ return ""
+}
+
+// MsgCreateServiceRecordResponse is the response type for the
+// CreateServiceRecord method. It returns the id of the created ServiceRecord.
+type MsgCreateServiceRecordResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
+}
+
+func (x *MsgCreateServiceRecordResponse) Reset() {
+ *x = MsgCreateServiceRecordResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgCreateServiceRecordResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgCreateServiceRecordResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgCreateServiceRecordResponse.ProtoReflect.Descriptor instead.
+func (*MsgCreateServiceRecordResponse) Descriptor() ([]byte, []int) {
+ return file_core_service_tx_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *MsgCreateServiceRecordResponse) GetId() uint64 {
+ if x != nil {
+ return x.Id
+ }
+ return 0
+}
+
+// MsgUpdateServiceRecord is the request type for the UpdateServiceRecord
+// method. It takes a creator and an id as parameters.
+type MsgUpdateServiceRecord struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
+ Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
+}
+
+func (x *MsgUpdateServiceRecord) Reset() {
+ *x = MsgUpdateServiceRecord{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_tx_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateServiceRecord) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateServiceRecord) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateServiceRecord.ProtoReflect.Descriptor instead.
+func (*MsgUpdateServiceRecord) Descriptor() ([]byte, []int) {
+ return file_core_service_tx_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *MsgUpdateServiceRecord) GetCreator() string {
+ if x != nil {
+ return x.Creator
+ }
+ return ""
+}
+
+func (x *MsgUpdateServiceRecord) GetId() uint64 {
+ if x != nil {
+ return x.Id
+ }
+ return 0
+}
+
+// MsgUpdateServiceRecordResponse is the response type for the
+// UpdateServiceRecord method. It doesn't return any specific value.
+type MsgUpdateServiceRecordResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUpdateServiceRecordResponse) Reset() {
+ *x = MsgUpdateServiceRecordResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_tx_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateServiceRecordResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateServiceRecordResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateServiceRecordResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateServiceRecordResponse) Descriptor() ([]byte, []int) {
+ return file_core_service_tx_proto_rawDescGZIP(), []int{3}
+}
+
+// MsgDeleteServiceRecord is the request type for the DeleteServiceRecord
+// method. It takes a creator and an id as parameters.
+type MsgDeleteServiceRecord struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
+ Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
+}
+
+func (x *MsgDeleteServiceRecord) Reset() {
+ *x = MsgDeleteServiceRecord{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_tx_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgDeleteServiceRecord) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgDeleteServiceRecord) ProtoMessage() {}
+
+// Deprecated: Use MsgDeleteServiceRecord.ProtoReflect.Descriptor instead.
+func (*MsgDeleteServiceRecord) Descriptor() ([]byte, []int) {
+ return file_core_service_tx_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *MsgDeleteServiceRecord) GetCreator() string {
+ if x != nil {
+ return x.Creator
+ }
+ return ""
+}
+
+func (x *MsgDeleteServiceRecord) GetId() uint64 {
+ if x != nil {
+ return x.Id
+ }
+ return 0
+}
+
+// MsgDeleteServiceRecordResponse is the response type for the
+// DeleteServiceRecord method. It doesn't return any specific value.
+type MsgDeleteServiceRecordResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgDeleteServiceRecordResponse) Reset() {
+ *x = MsgDeleteServiceRecordResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_core_service_tx_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgDeleteServiceRecordResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgDeleteServiceRecordResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgDeleteServiceRecordResponse.ProtoReflect.Descriptor instead.
+func (*MsgDeleteServiceRecordResponse) Descriptor() ([]byte, []int) {
+ return file_core_service_tx_proto_rawDescGZIP(), []int{5}
+}
+
+var File_core_service_tx_proto protoreflect.FileDescriptor
+
+var file_core_service_tx_proto_rawDesc = []byte{
+ 0x0a, 0x15, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x74,
+ 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x19, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x22, 0x32, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72,
+ 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65,
+ 0x61, 0x74, 0x6f, 0x72, 0x22, 0x30, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74,
+ 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
+ 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73,
+ 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65,
+ 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x0a, 0x16,
+ 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,
+ 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
+ 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64,
+ 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x32, 0xc6, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x69, 0x0a, 0x13, 0x43, 0x72,
+ 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72,
+ 0x64, 0x12, 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x24, 0x2e, 0x63,
+ 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f,
+ 0x72, 0x64, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x12, 0x69, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x2c, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x73, 0x67,
+ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x63,
+ 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x91, 0x01, 0x0a, 0x10,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x67, 0x69, 0x74,
+ 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f,
+ 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0xa2, 0x02, 0x03, 0x43, 0x53, 0x58, 0xaa, 0x02, 0x0c, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x0c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x18, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x53, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
+ 0x02, 0x0d, 0x43, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_core_service_tx_proto_rawDescOnce sync.Once
+ file_core_service_tx_proto_rawDescData = file_core_service_tx_proto_rawDesc
+)
+
+func file_core_service_tx_proto_rawDescGZIP() []byte {
+ file_core_service_tx_proto_rawDescOnce.Do(func() {
+ file_core_service_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_service_tx_proto_rawDescData)
+ })
+ return file_core_service_tx_proto_rawDescData
+}
+
+var file_core_service_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_core_service_tx_proto_goTypes = []interface{}{
+ (*MsgCreateServiceRecord)(nil), // 0: core.service.MsgCreateServiceRecord
+ (*MsgCreateServiceRecordResponse)(nil), // 1: core.service.MsgCreateServiceRecordResponse
+ (*MsgUpdateServiceRecord)(nil), // 2: core.service.MsgUpdateServiceRecord
+ (*MsgUpdateServiceRecordResponse)(nil), // 3: core.service.MsgUpdateServiceRecordResponse
+ (*MsgDeleteServiceRecord)(nil), // 4: core.service.MsgDeleteServiceRecord
+ (*MsgDeleteServiceRecordResponse)(nil), // 5: core.service.MsgDeleteServiceRecordResponse
+}
+var file_core_service_tx_proto_depIdxs = []int32{
+ 0, // 0: core.service.Msg.CreateServiceRecord:input_type -> core.service.MsgCreateServiceRecord
+ 2, // 1: core.service.Msg.UpdateServiceRecord:input_type -> core.service.MsgUpdateServiceRecord
+ 4, // 2: core.service.Msg.DeleteServiceRecord:input_type -> core.service.MsgDeleteServiceRecord
+ 1, // 3: core.service.Msg.CreateServiceRecord:output_type -> core.service.MsgCreateServiceRecordResponse
+ 3, // 4: core.service.Msg.UpdateServiceRecord:output_type -> core.service.MsgUpdateServiceRecordResponse
+ 5, // 5: core.service.Msg.DeleteServiceRecord:output_type -> core.service.MsgDeleteServiceRecordResponse
+ 3, // [3:6] is the sub-list for method output_type
+ 0, // [0:3] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_core_service_tx_proto_init() }
+func file_core_service_tx_proto_init() {
+ if File_core_service_tx_proto != nil {
+ return
+ }
+ file_core_service_record_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_core_service_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgCreateServiceRecord); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgCreateServiceRecordResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateServiceRecord); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateServiceRecordResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgDeleteServiceRecord); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_core_service_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgDeleteServiceRecordResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_core_service_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_core_service_tx_proto_goTypes,
+ DependencyIndexes: file_core_service_tx_proto_depIdxs,
+ MessageInfos: file_core_service_tx_proto_msgTypes,
+ }.Build()
+ File_core_service_tx_proto = out.File
+ file_core_service_tx_proto_rawDesc = nil
+ file_core_service_tx_proto_goTypes = nil
+ file_core_service_tx_proto_depIdxs = nil
+}
diff --git a/api/core/service/tx_grpc.pb.go b/api/core/service/tx_grpc.pb.go
new file mode 100644
index 000000000..4fa16c86b
--- /dev/null
+++ b/api/core/service/tx_grpc.pb.go
@@ -0,0 +1,189 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: core/service/tx.proto
+
+package service
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ Msg_CreateServiceRecord_FullMethodName = "/core.service.Msg/CreateServiceRecord"
+ Msg_UpdateServiceRecord_FullMethodName = "/core.service.Msg/UpdateServiceRecord"
+ Msg_DeleteServiceRecord_FullMethodName = "/core.service.Msg/DeleteServiceRecord"
+)
+
+// MsgClient is the client API for Msg service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type MsgClient interface {
+ // CreateServiceRecord creates a new ServiceRecord.
+ CreateServiceRecord(ctx context.Context, in *MsgCreateServiceRecord, opts ...grpc.CallOption) (*MsgCreateServiceRecordResponse, error)
+ // UpdateServiceRecord updates an existing ServiceRecord.
+ UpdateServiceRecord(ctx context.Context, in *MsgUpdateServiceRecord, opts ...grpc.CallOption) (*MsgUpdateServiceRecordResponse, error)
+ // DeleteServiceRecord deletes an existing ServiceRecord.
+ DeleteServiceRecord(ctx context.Context, in *MsgDeleteServiceRecord, opts ...grpc.CallOption) (*MsgDeleteServiceRecordResponse, error)
+}
+
+type msgClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
+ return &msgClient{cc}
+}
+
+func (c *msgClient) CreateServiceRecord(ctx context.Context, in *MsgCreateServiceRecord, opts ...grpc.CallOption) (*MsgCreateServiceRecordResponse, error) {
+ out := new(MsgCreateServiceRecordResponse)
+ err := c.cc.Invoke(ctx, Msg_CreateServiceRecord_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) UpdateServiceRecord(ctx context.Context, in *MsgUpdateServiceRecord, opts ...grpc.CallOption) (*MsgUpdateServiceRecordResponse, error) {
+ out := new(MsgUpdateServiceRecordResponse)
+ err := c.cc.Invoke(ctx, Msg_UpdateServiceRecord_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) DeleteServiceRecord(ctx context.Context, in *MsgDeleteServiceRecord, opts ...grpc.CallOption) (*MsgDeleteServiceRecordResponse, error) {
+ out := new(MsgDeleteServiceRecordResponse)
+ err := c.cc.Invoke(ctx, Msg_DeleteServiceRecord_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// MsgServer is the server API for Msg service.
+// All implementations must embed UnimplementedMsgServer
+// for forward compatibility
+type MsgServer interface {
+ // CreateServiceRecord creates a new ServiceRecord.
+ CreateServiceRecord(context.Context, *MsgCreateServiceRecord) (*MsgCreateServiceRecordResponse, error)
+ // UpdateServiceRecord updates an existing ServiceRecord.
+ UpdateServiceRecord(context.Context, *MsgUpdateServiceRecord) (*MsgUpdateServiceRecordResponse, error)
+ // DeleteServiceRecord deletes an existing ServiceRecord.
+ DeleteServiceRecord(context.Context, *MsgDeleteServiceRecord) (*MsgDeleteServiceRecordResponse, error)
+ mustEmbedUnimplementedMsgServer()
+}
+
+// UnimplementedMsgServer must be embedded to have forward compatible implementations.
+type UnimplementedMsgServer struct {
+}
+
+func (UnimplementedMsgServer) CreateServiceRecord(context.Context, *MsgCreateServiceRecord) (*MsgCreateServiceRecordResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateServiceRecord not implemented")
+}
+func (UnimplementedMsgServer) UpdateServiceRecord(context.Context, *MsgUpdateServiceRecord) (*MsgUpdateServiceRecordResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceRecord not implemented")
+}
+func (UnimplementedMsgServer) DeleteServiceRecord(context.Context, *MsgDeleteServiceRecord) (*MsgDeleteServiceRecordResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteServiceRecord not implemented")
+}
+func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
+
+// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to MsgServer will
+// result in compilation errors.
+type UnsafeMsgServer interface {
+ mustEmbedUnimplementedMsgServer()
+}
+
+func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
+ s.RegisterService(&Msg_ServiceDesc, srv)
+}
+
+func _Msg_CreateServiceRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgCreateServiceRecord)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).CreateServiceRecord(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Msg_CreateServiceRecord_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).CreateServiceRecord(ctx, req.(*MsgCreateServiceRecord))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_UpdateServiceRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgUpdateServiceRecord)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).UpdateServiceRecord(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Msg_UpdateServiceRecord_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).UpdateServiceRecord(ctx, req.(*MsgUpdateServiceRecord))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_DeleteServiceRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgDeleteServiceRecord)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).DeleteServiceRecord(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: Msg_DeleteServiceRecord_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).DeleteServiceRecord(ctx, req.(*MsgDeleteServiceRecord))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var Msg_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "core.service.Msg",
+ HandlerType: (*MsgServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "CreateServiceRecord",
+ Handler: _Msg_CreateServiceRecord_Handler,
+ },
+ {
+ MethodName: "UpdateServiceRecord",
+ Handler: _Msg_UpdateServiceRecord_Handler,
+ },
+ {
+ MethodName: "DeleteServiceRecord",
+ Handler: _Msg_DeleteServiceRecord_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "core/service/tx.proto",
+}
diff --git a/api/highway/authentication/v1/service.pulsar.go b/api/highway/authentication/v1/service.pulsar.go
new file mode 100644
index 000000000..7f37c742f
--- /dev/null
+++ b/api/highway/authentication/v1/service.pulsar.go
@@ -0,0 +1,7634 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package authenticationv1
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/google/api"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_LoginRequest protoreflect.MessageDescriptor
+ fd_LoginRequest_origin protoreflect.FieldDescriptor
+ fd_LoginRequest_alias protoreflect.FieldDescriptor
+ fd_LoginRequest_assertion protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_LoginRequest = File_highway_authentication_v1_service_proto.Messages().ByName("LoginRequest")
+ fd_LoginRequest_origin = md_LoginRequest.Fields().ByName("origin")
+ fd_LoginRequest_alias = md_LoginRequest.Fields().ByName("alias")
+ fd_LoginRequest_assertion = md_LoginRequest.Fields().ByName("assertion")
+}
+
+var _ protoreflect.Message = (*fastReflection_LoginRequest)(nil)
+
+type fastReflection_LoginRequest LoginRequest
+
+func (x *LoginRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_LoginRequest)(x)
+}
+
+func (x *LoginRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_LoginRequest_messageType fastReflection_LoginRequest_messageType
+var _ protoreflect.MessageType = fastReflection_LoginRequest_messageType{}
+
+type fastReflection_LoginRequest_messageType struct{}
+
+func (x fastReflection_LoginRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_LoginRequest)(nil)
+}
+func (x fastReflection_LoginRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_LoginRequest)
+}
+func (x fastReflection_LoginRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_LoginRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_LoginRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_LoginRequest
+}
+
+// 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_LoginRequest) Type() protoreflect.MessageType {
+ return _fastReflection_LoginRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_LoginRequest) New() protoreflect.Message {
+ return new(fastReflection_LoginRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_LoginRequest) Interface() protoreflect.ProtoMessage {
+ return (*LoginRequest)(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_LoginRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Origin != "" {
+ value := protoreflect.ValueOfString(x.Origin)
+ if !f(fd_LoginRequest_origin, value) {
+ return
+ }
+ }
+ if x.Alias != "" {
+ value := protoreflect.ValueOfString(x.Alias)
+ if !f(fd_LoginRequest_alias, value) {
+ return
+ }
+ }
+ if x.Assertion != "" {
+ value := protoreflect.ValueOfString(x.Assertion)
+ if !f(fd_LoginRequest_assertion, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_LoginRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.LoginRequest.origin":
+ return x.Origin != ""
+ case "highway.authentication.v1.LoginRequest.alias":
+ return x.Alias != ""
+ case "highway.authentication.v1.LoginRequest.assertion":
+ return x.Assertion != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_LoginRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.LoginRequest.origin":
+ x.Origin = ""
+ case "highway.authentication.v1.LoginRequest.alias":
+ x.Alias = ""
+ case "highway.authentication.v1.LoginRequest.assertion":
+ x.Assertion = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_LoginRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.LoginRequest.origin":
+ value := x.Origin
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.LoginRequest.alias":
+ value := x.Alias
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.LoginRequest.assertion":
+ value := x.Assertion
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_LoginRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.LoginRequest.origin":
+ x.Origin = value.Interface().(string)
+ case "highway.authentication.v1.LoginRequest.alias":
+ x.Alias = value.Interface().(string)
+ case "highway.authentication.v1.LoginRequest.assertion":
+ x.Assertion = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_LoginRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.LoginRequest.origin":
+ panic(fmt.Errorf("field origin of message highway.authentication.v1.LoginRequest is not mutable"))
+ case "highway.authentication.v1.LoginRequest.alias":
+ panic(fmt.Errorf("field alias of message highway.authentication.v1.LoginRequest is not mutable"))
+ case "highway.authentication.v1.LoginRequest.assertion":
+ panic(fmt.Errorf("field assertion of message highway.authentication.v1.LoginRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_LoginRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.LoginRequest.origin":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.LoginRequest.alias":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.LoginRequest.assertion":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_LoginRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.LoginRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_LoginRequest) 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_LoginRequest) 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_LoginRequest) 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_LoginRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*LoginRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Origin)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Alias)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Assertion)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*LoginRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Assertion) > 0 {
+ i -= len(x.Assertion)
+ copy(dAtA[i:], x.Assertion)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Assertion)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Alias) > 0 {
+ i -= len(x.Alias)
+ copy(dAtA[i:], x.Alias)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Alias)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Origin) > 0 {
+ i -= len(x.Origin)
+ copy(dAtA[i:], x.Origin)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Origin)))
+ 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().(*LoginRequest)
+ 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: LoginRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LoginRequest: 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 Origin", 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.Origin = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Alias", 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.Alias = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Assertion", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Assertion = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_LoginResponse protoreflect.MessageDescriptor
+ fd_LoginResponse_success protoreflect.FieldDescriptor
+ fd_LoginResponse_message protoreflect.FieldDescriptor
+ fd_LoginResponse_jwt protoreflect.FieldDescriptor
+ fd_LoginResponse_address protoreflect.FieldDescriptor
+ fd_LoginResponse_origin protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_LoginResponse = File_highway_authentication_v1_service_proto.Messages().ByName("LoginResponse")
+ fd_LoginResponse_success = md_LoginResponse.Fields().ByName("success")
+ fd_LoginResponse_message = md_LoginResponse.Fields().ByName("message")
+ fd_LoginResponse_jwt = md_LoginResponse.Fields().ByName("jwt")
+ fd_LoginResponse_address = md_LoginResponse.Fields().ByName("address")
+ fd_LoginResponse_origin = md_LoginResponse.Fields().ByName("origin")
+}
+
+var _ protoreflect.Message = (*fastReflection_LoginResponse)(nil)
+
+type fastReflection_LoginResponse LoginResponse
+
+func (x *LoginResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_LoginResponse)(x)
+}
+
+func (x *LoginResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_LoginResponse_messageType fastReflection_LoginResponse_messageType
+var _ protoreflect.MessageType = fastReflection_LoginResponse_messageType{}
+
+type fastReflection_LoginResponse_messageType struct{}
+
+func (x fastReflection_LoginResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_LoginResponse)(nil)
+}
+func (x fastReflection_LoginResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_LoginResponse)
+}
+func (x fastReflection_LoginResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_LoginResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_LoginResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_LoginResponse
+}
+
+// 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_LoginResponse) Type() protoreflect.MessageType {
+ return _fastReflection_LoginResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_LoginResponse) New() protoreflect.Message {
+ return new(fastReflection_LoginResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_LoginResponse) Interface() protoreflect.ProtoMessage {
+ return (*LoginResponse)(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_LoginResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_LoginResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_LoginResponse_message, value) {
+ return
+ }
+ }
+ if x.Jwt != "" {
+ value := protoreflect.ValueOfString(x.Jwt)
+ if !f(fd_LoginResponse_jwt, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_LoginResponse_address, value) {
+ return
+ }
+ }
+ if x.Origin != "" {
+ value := protoreflect.ValueOfString(x.Origin)
+ if !f(fd_LoginResponse_origin, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_LoginResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.LoginResponse.success":
+ return x.Success != false
+ case "highway.authentication.v1.LoginResponse.message":
+ return x.Message != ""
+ case "highway.authentication.v1.LoginResponse.jwt":
+ return x.Jwt != ""
+ case "highway.authentication.v1.LoginResponse.address":
+ return x.Address != ""
+ case "highway.authentication.v1.LoginResponse.origin":
+ return x.Origin != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_LoginResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.LoginResponse.success":
+ x.Success = false
+ case "highway.authentication.v1.LoginResponse.message":
+ x.Message = ""
+ case "highway.authentication.v1.LoginResponse.jwt":
+ x.Jwt = ""
+ case "highway.authentication.v1.LoginResponse.address":
+ x.Address = ""
+ case "highway.authentication.v1.LoginResponse.origin":
+ x.Origin = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_LoginResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.LoginResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.authentication.v1.LoginResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.LoginResponse.jwt":
+ value := x.Jwt
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.LoginResponse.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.LoginResponse.origin":
+ value := x.Origin
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_LoginResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.LoginResponse.success":
+ x.Success = value.Bool()
+ case "highway.authentication.v1.LoginResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.authentication.v1.LoginResponse.jwt":
+ x.Jwt = value.Interface().(string)
+ case "highway.authentication.v1.LoginResponse.address":
+ x.Address = value.Interface().(string)
+ case "highway.authentication.v1.LoginResponse.origin":
+ x.Origin = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_LoginResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.LoginResponse.success":
+ panic(fmt.Errorf("field success of message highway.authentication.v1.LoginResponse is not mutable"))
+ case "highway.authentication.v1.LoginResponse.message":
+ panic(fmt.Errorf("field message of message highway.authentication.v1.LoginResponse is not mutable"))
+ case "highway.authentication.v1.LoginResponse.jwt":
+ panic(fmt.Errorf("field jwt of message highway.authentication.v1.LoginResponse is not mutable"))
+ case "highway.authentication.v1.LoginResponse.address":
+ panic(fmt.Errorf("field address of message highway.authentication.v1.LoginResponse is not mutable"))
+ case "highway.authentication.v1.LoginResponse.origin":
+ panic(fmt.Errorf("field origin of message highway.authentication.v1.LoginResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_LoginResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.LoginResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.authentication.v1.LoginResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.LoginResponse.jwt":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.LoginResponse.address":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.LoginResponse.origin":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.LoginResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.LoginResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_LoginResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.LoginResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_LoginResponse) 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_LoginResponse) 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_LoginResponse) 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_LoginResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*LoginResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Jwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Origin)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*LoginResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Origin) > 0 {
+ i -= len(x.Origin)
+ copy(dAtA[i:], x.Origin)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Origin)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.Jwt) > 0 {
+ i -= len(x.Jwt)
+ copy(dAtA[i:], x.Jwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jwt)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*LoginResponse)
+ 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: LoginResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LoginResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 Jwt", 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.Jwt = 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 Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Origin", 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.Origin = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_CurrentUserResponse protoreflect.MessageDescriptor
+ fd_CurrentUserResponse_success protoreflect.FieldDescriptor
+ fd_CurrentUserResponse_message protoreflect.FieldDescriptor
+ fd_CurrentUserResponse_address protoreflect.FieldDescriptor
+ fd_CurrentUserResponse_alias protoreflect.FieldDescriptor
+ fd_CurrentUserResponse_origin protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_CurrentUserResponse = File_highway_authentication_v1_service_proto.Messages().ByName("CurrentUserResponse")
+ fd_CurrentUserResponse_success = md_CurrentUserResponse.Fields().ByName("success")
+ fd_CurrentUserResponse_message = md_CurrentUserResponse.Fields().ByName("message")
+ fd_CurrentUserResponse_address = md_CurrentUserResponse.Fields().ByName("address")
+ fd_CurrentUserResponse_alias = md_CurrentUserResponse.Fields().ByName("alias")
+ fd_CurrentUserResponse_origin = md_CurrentUserResponse.Fields().ByName("origin")
+}
+
+var _ protoreflect.Message = (*fastReflection_CurrentUserResponse)(nil)
+
+type fastReflection_CurrentUserResponse CurrentUserResponse
+
+func (x *CurrentUserResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_CurrentUserResponse)(x)
+}
+
+func (x *CurrentUserResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_CurrentUserResponse_messageType fastReflection_CurrentUserResponse_messageType
+var _ protoreflect.MessageType = fastReflection_CurrentUserResponse_messageType{}
+
+type fastReflection_CurrentUserResponse_messageType struct{}
+
+func (x fastReflection_CurrentUserResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_CurrentUserResponse)(nil)
+}
+func (x fastReflection_CurrentUserResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_CurrentUserResponse)
+}
+func (x fastReflection_CurrentUserResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_CurrentUserResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_CurrentUserResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_CurrentUserResponse
+}
+
+// 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_CurrentUserResponse) Type() protoreflect.MessageType {
+ return _fastReflection_CurrentUserResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_CurrentUserResponse) New() protoreflect.Message {
+ return new(fastReflection_CurrentUserResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_CurrentUserResponse) Interface() protoreflect.ProtoMessage {
+ return (*CurrentUserResponse)(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_CurrentUserResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_CurrentUserResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_CurrentUserResponse_message, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_CurrentUserResponse_address, value) {
+ return
+ }
+ }
+ if x.Alias != "" {
+ value := protoreflect.ValueOfString(x.Alias)
+ if !f(fd_CurrentUserResponse_alias, value) {
+ return
+ }
+ }
+ if x.Origin != "" {
+ value := protoreflect.ValueOfString(x.Origin)
+ if !f(fd_CurrentUserResponse_origin, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_CurrentUserResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.CurrentUserResponse.success":
+ return x.Success != false
+ case "highway.authentication.v1.CurrentUserResponse.message":
+ return x.Message != ""
+ case "highway.authentication.v1.CurrentUserResponse.address":
+ return x.Address != ""
+ case "highway.authentication.v1.CurrentUserResponse.alias":
+ return x.Alias != ""
+ case "highway.authentication.v1.CurrentUserResponse.origin":
+ return x.Origin != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.CurrentUserResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.CurrentUserResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_CurrentUserResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.CurrentUserResponse.success":
+ x.Success = false
+ case "highway.authentication.v1.CurrentUserResponse.message":
+ x.Message = ""
+ case "highway.authentication.v1.CurrentUserResponse.address":
+ x.Address = ""
+ case "highway.authentication.v1.CurrentUserResponse.alias":
+ x.Alias = ""
+ case "highway.authentication.v1.CurrentUserResponse.origin":
+ x.Origin = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.CurrentUserResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.CurrentUserResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_CurrentUserResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.CurrentUserResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.authentication.v1.CurrentUserResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.CurrentUserResponse.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.CurrentUserResponse.alias":
+ value := x.Alias
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.CurrentUserResponse.origin":
+ value := x.Origin
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.CurrentUserResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.CurrentUserResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_CurrentUserResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.CurrentUserResponse.success":
+ x.Success = value.Bool()
+ case "highway.authentication.v1.CurrentUserResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.authentication.v1.CurrentUserResponse.address":
+ x.Address = value.Interface().(string)
+ case "highway.authentication.v1.CurrentUserResponse.alias":
+ x.Alias = value.Interface().(string)
+ case "highway.authentication.v1.CurrentUserResponse.origin":
+ x.Origin = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.CurrentUserResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.CurrentUserResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_CurrentUserResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.CurrentUserResponse.success":
+ panic(fmt.Errorf("field success of message highway.authentication.v1.CurrentUserResponse is not mutable"))
+ case "highway.authentication.v1.CurrentUserResponse.message":
+ panic(fmt.Errorf("field message of message highway.authentication.v1.CurrentUserResponse is not mutable"))
+ case "highway.authentication.v1.CurrentUserResponse.address":
+ panic(fmt.Errorf("field address of message highway.authentication.v1.CurrentUserResponse is not mutable"))
+ case "highway.authentication.v1.CurrentUserResponse.alias":
+ panic(fmt.Errorf("field alias of message highway.authentication.v1.CurrentUserResponse is not mutable"))
+ case "highway.authentication.v1.CurrentUserResponse.origin":
+ panic(fmt.Errorf("field origin of message highway.authentication.v1.CurrentUserResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.CurrentUserResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.CurrentUserResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_CurrentUserResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.CurrentUserResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.authentication.v1.CurrentUserResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.CurrentUserResponse.address":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.CurrentUserResponse.alias":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.CurrentUserResponse.origin":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.CurrentUserResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.CurrentUserResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_CurrentUserResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.CurrentUserResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_CurrentUserResponse) 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_CurrentUserResponse) 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_CurrentUserResponse) 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_CurrentUserResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*CurrentUserResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Alias)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Origin)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*CurrentUserResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Origin) > 0 {
+ i -= len(x.Origin)
+ copy(dAtA[i:], x.Origin)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Origin)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(x.Alias) > 0 {
+ i -= len(x.Alias)
+ copy(dAtA[i:], x.Alias)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Alias)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*CurrentUserResponse)
+ 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: CurrentUserResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CurrentUserResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Alias", 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.Alias = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Origin", 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.Origin = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_ParamsRequest protoreflect.MessageDescriptor
+ fd_ParamsRequest_existing protoreflect.FieldDescriptor
+ fd_ParamsRequest_origin protoreflect.FieldDescriptor
+ fd_ParamsRequest_alias protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_ParamsRequest = File_highway_authentication_v1_service_proto.Messages().ByName("ParamsRequest")
+ fd_ParamsRequest_existing = md_ParamsRequest.Fields().ByName("existing")
+ fd_ParamsRequest_origin = md_ParamsRequest.Fields().ByName("origin")
+ fd_ParamsRequest_alias = md_ParamsRequest.Fields().ByName("alias")
+}
+
+var _ protoreflect.Message = (*fastReflection_ParamsRequest)(nil)
+
+type fastReflection_ParamsRequest ParamsRequest
+
+func (x *ParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ParamsRequest)(x)
+}
+
+func (x *ParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_ParamsRequest_messageType fastReflection_ParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_ParamsRequest_messageType{}
+
+type fastReflection_ParamsRequest_messageType struct{}
+
+func (x fastReflection_ParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ParamsRequest)(nil)
+}
+func (x fastReflection_ParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_ParamsRequest)
+}
+func (x fastReflection_ParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ParamsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ParamsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_ParamsRequest
+}
+
+// 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_ParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_ParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ParamsRequest) New() protoreflect.Message {
+ return new(fastReflection_ParamsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*ParamsRequest)(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_ParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Existing != false {
+ value := protoreflect.ValueOfBool(x.Existing)
+ if !f(fd_ParamsRequest_existing, value) {
+ return
+ }
+ }
+ if x.Origin != "" {
+ value := protoreflect.ValueOfString(x.Origin)
+ if !f(fd_ParamsRequest_origin, value) {
+ return
+ }
+ }
+ if x.Alias != "" {
+ value := protoreflect.ValueOfString(x.Alias)
+ if !f(fd_ParamsRequest_alias, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_ParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.ParamsRequest.existing":
+ return x.Existing != false
+ case "highway.authentication.v1.ParamsRequest.origin":
+ return x.Origin != ""
+ case "highway.authentication.v1.ParamsRequest.alias":
+ return x.Alias != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.ParamsRequest.existing":
+ x.Existing = false
+ case "highway.authentication.v1.ParamsRequest.origin":
+ x.Origin = ""
+ case "highway.authentication.v1.ParamsRequest.alias":
+ x.Alias = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_ParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.ParamsRequest.existing":
+ value := x.Existing
+ return protoreflect.ValueOfBool(value)
+ case "highway.authentication.v1.ParamsRequest.origin":
+ value := x.Origin
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.ParamsRequest.alias":
+ value := x.Alias
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.ParamsRequest.existing":
+ x.Existing = value.Bool()
+ case "highway.authentication.v1.ParamsRequest.origin":
+ x.Origin = value.Interface().(string)
+ case "highway.authentication.v1.ParamsRequest.alias":
+ x.Alias = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.ParamsRequest.existing":
+ panic(fmt.Errorf("field existing of message highway.authentication.v1.ParamsRequest is not mutable"))
+ case "highway.authentication.v1.ParamsRequest.origin":
+ panic(fmt.Errorf("field origin of message highway.authentication.v1.ParamsRequest is not mutable"))
+ case "highway.authentication.v1.ParamsRequest.alias":
+ panic(fmt.Errorf("field alias of message highway.authentication.v1.ParamsRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.ParamsRequest.existing":
+ return protoreflect.ValueOfBool(false)
+ case "highway.authentication.v1.ParamsRequest.origin":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.ParamsRequest.alias":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.ParamsRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_ParamsRequest) 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_ParamsRequest) 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_ParamsRequest) 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_ParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ParamsRequest)
+ 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.Existing {
+ n += 2
+ }
+ l = len(x.Origin)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Alias)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*ParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Alias) > 0 {
+ i -= len(x.Alias)
+ copy(dAtA[i:], x.Alias)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Alias)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Origin) > 0 {
+ i -= len(x.Origin)
+ copy(dAtA[i:], x.Origin)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Origin)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Existing {
+ i--
+ if x.Existing {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*ParamsRequest)
+ 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: ParamsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Existing", 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.Existing = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Origin", 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.Origin = 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 Alias", 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.Alias = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_ParamsResponse protoreflect.MessageDescriptor
+ fd_ParamsResponse_success protoreflect.FieldDescriptor
+ fd_ParamsResponse_message protoreflect.FieldDescriptor
+ fd_ParamsResponse_existing protoreflect.FieldDescriptor
+ fd_ParamsResponse_origin protoreflect.FieldDescriptor
+ fd_ParamsResponse_alias protoreflect.FieldDescriptor
+ fd_ParamsResponse_address protoreflect.FieldDescriptor
+ fd_ParamsResponse_challenge protoreflect.FieldDescriptor
+ fd_ParamsResponse_attestation_options protoreflect.FieldDescriptor
+ fd_ParamsResponse_assertion_options protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_ParamsResponse = File_highway_authentication_v1_service_proto.Messages().ByName("ParamsResponse")
+ fd_ParamsResponse_success = md_ParamsResponse.Fields().ByName("success")
+ fd_ParamsResponse_message = md_ParamsResponse.Fields().ByName("message")
+ fd_ParamsResponse_existing = md_ParamsResponse.Fields().ByName("existing")
+ fd_ParamsResponse_origin = md_ParamsResponse.Fields().ByName("origin")
+ fd_ParamsResponse_alias = md_ParamsResponse.Fields().ByName("alias")
+ fd_ParamsResponse_address = md_ParamsResponse.Fields().ByName("address")
+ fd_ParamsResponse_challenge = md_ParamsResponse.Fields().ByName("challenge")
+ fd_ParamsResponse_attestation_options = md_ParamsResponse.Fields().ByName("attestation_options")
+ fd_ParamsResponse_assertion_options = md_ParamsResponse.Fields().ByName("assertion_options")
+}
+
+var _ protoreflect.Message = (*fastReflection_ParamsResponse)(nil)
+
+type fastReflection_ParamsResponse ParamsResponse
+
+func (x *ParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ParamsResponse)(x)
+}
+
+func (x *ParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_ParamsResponse_messageType fastReflection_ParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_ParamsResponse_messageType{}
+
+type fastReflection_ParamsResponse_messageType struct{}
+
+func (x fastReflection_ParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ParamsResponse)(nil)
+}
+func (x fastReflection_ParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_ParamsResponse)
+}
+func (x fastReflection_ParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_ParamsResponse
+}
+
+// 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_ParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_ParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_ParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*ParamsResponse)(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_ParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_ParamsResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_ParamsResponse_message, value) {
+ return
+ }
+ }
+ if x.Existing != false {
+ value := protoreflect.ValueOfBool(x.Existing)
+ if !f(fd_ParamsResponse_existing, value) {
+ return
+ }
+ }
+ if x.Origin != "" {
+ value := protoreflect.ValueOfString(x.Origin)
+ if !f(fd_ParamsResponse_origin, value) {
+ return
+ }
+ }
+ if x.Alias != "" {
+ value := protoreflect.ValueOfString(x.Alias)
+ if !f(fd_ParamsResponse_alias, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_ParamsResponse_address, value) {
+ return
+ }
+ }
+ if x.Challenge != "" {
+ value := protoreflect.ValueOfString(x.Challenge)
+ if !f(fd_ParamsResponse_challenge, value) {
+ return
+ }
+ }
+ if x.AttestationOptions != "" {
+ value := protoreflect.ValueOfString(x.AttestationOptions)
+ if !f(fd_ParamsResponse_attestation_options, value) {
+ return
+ }
+ }
+ if x.AssertionOptions != "" {
+ value := protoreflect.ValueOfString(x.AssertionOptions)
+ if !f(fd_ParamsResponse_assertion_options, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_ParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.ParamsResponse.success":
+ return x.Success != false
+ case "highway.authentication.v1.ParamsResponse.message":
+ return x.Message != ""
+ case "highway.authentication.v1.ParamsResponse.existing":
+ return x.Existing != false
+ case "highway.authentication.v1.ParamsResponse.origin":
+ return x.Origin != ""
+ case "highway.authentication.v1.ParamsResponse.alias":
+ return x.Alias != ""
+ case "highway.authentication.v1.ParamsResponse.address":
+ return x.Address != ""
+ case "highway.authentication.v1.ParamsResponse.challenge":
+ return x.Challenge != ""
+ case "highway.authentication.v1.ParamsResponse.attestation_options":
+ return x.AttestationOptions != ""
+ case "highway.authentication.v1.ParamsResponse.assertion_options":
+ return x.AssertionOptions != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.ParamsResponse.success":
+ x.Success = false
+ case "highway.authentication.v1.ParamsResponse.message":
+ x.Message = ""
+ case "highway.authentication.v1.ParamsResponse.existing":
+ x.Existing = false
+ case "highway.authentication.v1.ParamsResponse.origin":
+ x.Origin = ""
+ case "highway.authentication.v1.ParamsResponse.alias":
+ x.Alias = ""
+ case "highway.authentication.v1.ParamsResponse.address":
+ x.Address = ""
+ case "highway.authentication.v1.ParamsResponse.challenge":
+ x.Challenge = ""
+ case "highway.authentication.v1.ParamsResponse.attestation_options":
+ x.AttestationOptions = ""
+ case "highway.authentication.v1.ParamsResponse.assertion_options":
+ x.AssertionOptions = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_ParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.ParamsResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.authentication.v1.ParamsResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.ParamsResponse.existing":
+ value := x.Existing
+ return protoreflect.ValueOfBool(value)
+ case "highway.authentication.v1.ParamsResponse.origin":
+ value := x.Origin
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.ParamsResponse.alias":
+ value := x.Alias
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.ParamsResponse.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.ParamsResponse.challenge":
+ value := x.Challenge
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.ParamsResponse.attestation_options":
+ value := x.AttestationOptions
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.ParamsResponse.assertion_options":
+ value := x.AssertionOptions
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.ParamsResponse.success":
+ x.Success = value.Bool()
+ case "highway.authentication.v1.ParamsResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.authentication.v1.ParamsResponse.existing":
+ x.Existing = value.Bool()
+ case "highway.authentication.v1.ParamsResponse.origin":
+ x.Origin = value.Interface().(string)
+ case "highway.authentication.v1.ParamsResponse.alias":
+ x.Alias = value.Interface().(string)
+ case "highway.authentication.v1.ParamsResponse.address":
+ x.Address = value.Interface().(string)
+ case "highway.authentication.v1.ParamsResponse.challenge":
+ x.Challenge = value.Interface().(string)
+ case "highway.authentication.v1.ParamsResponse.attestation_options":
+ x.AttestationOptions = value.Interface().(string)
+ case "highway.authentication.v1.ParamsResponse.assertion_options":
+ x.AssertionOptions = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.ParamsResponse.success":
+ panic(fmt.Errorf("field success of message highway.authentication.v1.ParamsResponse is not mutable"))
+ case "highway.authentication.v1.ParamsResponse.message":
+ panic(fmt.Errorf("field message of message highway.authentication.v1.ParamsResponse is not mutable"))
+ case "highway.authentication.v1.ParamsResponse.existing":
+ panic(fmt.Errorf("field existing of message highway.authentication.v1.ParamsResponse is not mutable"))
+ case "highway.authentication.v1.ParamsResponse.origin":
+ panic(fmt.Errorf("field origin of message highway.authentication.v1.ParamsResponse is not mutable"))
+ case "highway.authentication.v1.ParamsResponse.alias":
+ panic(fmt.Errorf("field alias of message highway.authentication.v1.ParamsResponse is not mutable"))
+ case "highway.authentication.v1.ParamsResponse.address":
+ panic(fmt.Errorf("field address of message highway.authentication.v1.ParamsResponse is not mutable"))
+ case "highway.authentication.v1.ParamsResponse.challenge":
+ panic(fmt.Errorf("field challenge of message highway.authentication.v1.ParamsResponse is not mutable"))
+ case "highway.authentication.v1.ParamsResponse.attestation_options":
+ panic(fmt.Errorf("field attestation_options of message highway.authentication.v1.ParamsResponse is not mutable"))
+ case "highway.authentication.v1.ParamsResponse.assertion_options":
+ panic(fmt.Errorf("field assertion_options of message highway.authentication.v1.ParamsResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.ParamsResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.authentication.v1.ParamsResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.ParamsResponse.existing":
+ return protoreflect.ValueOfBool(false)
+ case "highway.authentication.v1.ParamsResponse.origin":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.ParamsResponse.alias":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.ParamsResponse.address":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.ParamsResponse.challenge":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.ParamsResponse.attestation_options":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.ParamsResponse.assertion_options":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.ParamsResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.ParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.ParamsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_ParamsResponse) 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_ParamsResponse) 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_ParamsResponse) 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_ParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Existing {
+ n += 2
+ }
+ l = len(x.Origin)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Alias)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Challenge)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.AttestationOptions)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.AssertionOptions)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*ParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.AssertionOptions) > 0 {
+ i -= len(x.AssertionOptions)
+ copy(dAtA[i:], x.AssertionOptions)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AssertionOptions)))
+ i--
+ dAtA[i] = 0x4a
+ }
+ if len(x.AttestationOptions) > 0 {
+ i -= len(x.AttestationOptions)
+ copy(dAtA[i:], x.AttestationOptions)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AttestationOptions)))
+ i--
+ dAtA[i] = 0x42
+ }
+ if len(x.Challenge) > 0 {
+ i -= len(x.Challenge)
+ copy(dAtA[i:], x.Challenge)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Challenge)))
+ i--
+ dAtA[i] = 0x3a
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x32
+ }
+ if len(x.Alias) > 0 {
+ i -= len(x.Alias)
+ copy(dAtA[i:], x.Alias)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Alias)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(x.Origin) > 0 {
+ i -= len(x.Origin)
+ copy(dAtA[i:], x.Origin)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Origin)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if x.Existing {
+ i--
+ if x.Existing {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x18
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*ParamsResponse)
+ 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: ParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Existing", 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.Existing = bool(v != 0)
+ case 4:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Origin", 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.Origin = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Alias", 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.Alias = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Challenge", 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.Challenge = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AttestationOptions", 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.AttestationOptions = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AssertionOptions", 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.AssertionOptions = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_RegisterRequest protoreflect.MessageDescriptor
+ fd_RegisterRequest_origin protoreflect.FieldDescriptor
+ fd_RegisterRequest_username protoreflect.FieldDescriptor
+ fd_RegisterRequest_attestation protoreflect.FieldDescriptor
+ fd_RegisterRequest_challenge protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_RegisterRequest = File_highway_authentication_v1_service_proto.Messages().ByName("RegisterRequest")
+ fd_RegisterRequest_origin = md_RegisterRequest.Fields().ByName("origin")
+ fd_RegisterRequest_username = md_RegisterRequest.Fields().ByName("username")
+ fd_RegisterRequest_attestation = md_RegisterRequest.Fields().ByName("attestation")
+ fd_RegisterRequest_challenge = md_RegisterRequest.Fields().ByName("challenge")
+}
+
+var _ protoreflect.Message = (*fastReflection_RegisterRequest)(nil)
+
+type fastReflection_RegisterRequest RegisterRequest
+
+func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_RegisterRequest)(x)
+}
+
+func (x *RegisterRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_RegisterRequest_messageType fastReflection_RegisterRequest_messageType
+var _ protoreflect.MessageType = fastReflection_RegisterRequest_messageType{}
+
+type fastReflection_RegisterRequest_messageType struct{}
+
+func (x fastReflection_RegisterRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_RegisterRequest)(nil)
+}
+func (x fastReflection_RegisterRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_RegisterRequest)
+}
+func (x fastReflection_RegisterRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_RegisterRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_RegisterRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_RegisterRequest
+}
+
+// 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_RegisterRequest) Type() protoreflect.MessageType {
+ return _fastReflection_RegisterRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_RegisterRequest) New() protoreflect.Message {
+ return new(fastReflection_RegisterRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_RegisterRequest) Interface() protoreflect.ProtoMessage {
+ return (*RegisterRequest)(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_RegisterRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Origin != "" {
+ value := protoreflect.ValueOfString(x.Origin)
+ if !f(fd_RegisterRequest_origin, value) {
+ return
+ }
+ }
+ if x.Username != "" {
+ value := protoreflect.ValueOfString(x.Username)
+ if !f(fd_RegisterRequest_username, value) {
+ return
+ }
+ }
+ if x.Attestation != "" {
+ value := protoreflect.ValueOfString(x.Attestation)
+ if !f(fd_RegisterRequest_attestation, value) {
+ return
+ }
+ }
+ if x.Challenge != "" {
+ value := protoreflect.ValueOfString(x.Challenge)
+ if !f(fd_RegisterRequest_challenge, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_RegisterRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RegisterRequest.origin":
+ return x.Origin != ""
+ case "highway.authentication.v1.RegisterRequest.username":
+ return x.Username != ""
+ case "highway.authentication.v1.RegisterRequest.attestation":
+ return x.Attestation != ""
+ case "highway.authentication.v1.RegisterRequest.challenge":
+ return x.Challenge != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RegisterRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RegisterRequest.origin":
+ x.Origin = ""
+ case "highway.authentication.v1.RegisterRequest.username":
+ x.Username = ""
+ case "highway.authentication.v1.RegisterRequest.attestation":
+ x.Attestation = ""
+ case "highway.authentication.v1.RegisterRequest.challenge":
+ x.Challenge = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_RegisterRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.RegisterRequest.origin":
+ value := x.Origin
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.RegisterRequest.username":
+ value := x.Username
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.RegisterRequest.attestation":
+ value := x.Attestation
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.RegisterRequest.challenge":
+ value := x.Challenge
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RegisterRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RegisterRequest.origin":
+ x.Origin = value.Interface().(string)
+ case "highway.authentication.v1.RegisterRequest.username":
+ x.Username = value.Interface().(string)
+ case "highway.authentication.v1.RegisterRequest.attestation":
+ x.Attestation = value.Interface().(string)
+ case "highway.authentication.v1.RegisterRequest.challenge":
+ x.Challenge = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RegisterRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RegisterRequest.origin":
+ panic(fmt.Errorf("field origin of message highway.authentication.v1.RegisterRequest is not mutable"))
+ case "highway.authentication.v1.RegisterRequest.username":
+ panic(fmt.Errorf("field username of message highway.authentication.v1.RegisterRequest is not mutable"))
+ case "highway.authentication.v1.RegisterRequest.attestation":
+ panic(fmt.Errorf("field attestation of message highway.authentication.v1.RegisterRequest is not mutable"))
+ case "highway.authentication.v1.RegisterRequest.challenge":
+ panic(fmt.Errorf("field challenge of message highway.authentication.v1.RegisterRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_RegisterRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RegisterRequest.origin":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.RegisterRequest.username":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.RegisterRequest.attestation":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.RegisterRequest.challenge":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_RegisterRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.RegisterRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_RegisterRequest) 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_RegisterRequest) 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_RegisterRequest) 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_RegisterRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*RegisterRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Origin)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Username)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Attestation)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Challenge)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*RegisterRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Challenge) > 0 {
+ i -= len(x.Challenge)
+ copy(dAtA[i:], x.Challenge)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Challenge)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.Attestation) > 0 {
+ i -= len(x.Attestation)
+ copy(dAtA[i:], x.Attestation)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Attestation)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Username) > 0 {
+ i -= len(x.Username)
+ copy(dAtA[i:], x.Username)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Username)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Origin) > 0 {
+ i -= len(x.Origin)
+ copy(dAtA[i:], x.Origin)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Origin)))
+ 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().(*RegisterRequest)
+ 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: RegisterRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RegisterRequest: 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 Origin", 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.Origin = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Username", 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.Username = 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 Attestation", 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.Attestation = 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 Challenge", 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.Challenge = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_RegisterResponse protoreflect.MessageDescriptor
+ fd_RegisterResponse_success protoreflect.FieldDescriptor
+ fd_RegisterResponse_message protoreflect.FieldDescriptor
+ fd_RegisterResponse_tx_hash protoreflect.FieldDescriptor
+ fd_RegisterResponse_address protoreflect.FieldDescriptor
+ fd_RegisterResponse_jwt protoreflect.FieldDescriptor
+ fd_RegisterResponse_origin protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_RegisterResponse = File_highway_authentication_v1_service_proto.Messages().ByName("RegisterResponse")
+ fd_RegisterResponse_success = md_RegisterResponse.Fields().ByName("success")
+ fd_RegisterResponse_message = md_RegisterResponse.Fields().ByName("message")
+ fd_RegisterResponse_tx_hash = md_RegisterResponse.Fields().ByName("tx_hash")
+ fd_RegisterResponse_address = md_RegisterResponse.Fields().ByName("address")
+ fd_RegisterResponse_jwt = md_RegisterResponse.Fields().ByName("jwt")
+ fd_RegisterResponse_origin = md_RegisterResponse.Fields().ByName("origin")
+}
+
+var _ protoreflect.Message = (*fastReflection_RegisterResponse)(nil)
+
+type fastReflection_RegisterResponse RegisterResponse
+
+func (x *RegisterResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_RegisterResponse)(x)
+}
+
+func (x *RegisterResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_RegisterResponse_messageType fastReflection_RegisterResponse_messageType
+var _ protoreflect.MessageType = fastReflection_RegisterResponse_messageType{}
+
+type fastReflection_RegisterResponse_messageType struct{}
+
+func (x fastReflection_RegisterResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_RegisterResponse)(nil)
+}
+func (x fastReflection_RegisterResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_RegisterResponse)
+}
+func (x fastReflection_RegisterResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_RegisterResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_RegisterResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_RegisterResponse
+}
+
+// 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_RegisterResponse) Type() protoreflect.MessageType {
+ return _fastReflection_RegisterResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_RegisterResponse) New() protoreflect.Message {
+ return new(fastReflection_RegisterResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_RegisterResponse) Interface() protoreflect.ProtoMessage {
+ return (*RegisterResponse)(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_RegisterResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_RegisterResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_RegisterResponse_message, value) {
+ return
+ }
+ }
+ if x.TxHash != "" {
+ value := protoreflect.ValueOfString(x.TxHash)
+ if !f(fd_RegisterResponse_tx_hash, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_RegisterResponse_address, value) {
+ return
+ }
+ }
+ if x.Jwt != "" {
+ value := protoreflect.ValueOfString(x.Jwt)
+ if !f(fd_RegisterResponse_jwt, value) {
+ return
+ }
+ }
+ if x.Origin != "" {
+ value := protoreflect.ValueOfString(x.Origin)
+ if !f(fd_RegisterResponse_origin, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_RegisterResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RegisterResponse.success":
+ return x.Success != false
+ case "highway.authentication.v1.RegisterResponse.message":
+ return x.Message != ""
+ case "highway.authentication.v1.RegisterResponse.tx_hash":
+ return x.TxHash != ""
+ case "highway.authentication.v1.RegisterResponse.address":
+ return x.Address != ""
+ case "highway.authentication.v1.RegisterResponse.jwt":
+ return x.Jwt != ""
+ case "highway.authentication.v1.RegisterResponse.origin":
+ return x.Origin != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RegisterResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RegisterResponse.success":
+ x.Success = false
+ case "highway.authentication.v1.RegisterResponse.message":
+ x.Message = ""
+ case "highway.authentication.v1.RegisterResponse.tx_hash":
+ x.TxHash = ""
+ case "highway.authentication.v1.RegisterResponse.address":
+ x.Address = ""
+ case "highway.authentication.v1.RegisterResponse.jwt":
+ x.Jwt = ""
+ case "highway.authentication.v1.RegisterResponse.origin":
+ x.Origin = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_RegisterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.RegisterResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.authentication.v1.RegisterResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.RegisterResponse.tx_hash":
+ value := x.TxHash
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.RegisterResponse.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.RegisterResponse.jwt":
+ value := x.Jwt
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.RegisterResponse.origin":
+ value := x.Origin
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RegisterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RegisterResponse.success":
+ x.Success = value.Bool()
+ case "highway.authentication.v1.RegisterResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.authentication.v1.RegisterResponse.tx_hash":
+ x.TxHash = value.Interface().(string)
+ case "highway.authentication.v1.RegisterResponse.address":
+ x.Address = value.Interface().(string)
+ case "highway.authentication.v1.RegisterResponse.jwt":
+ x.Jwt = value.Interface().(string)
+ case "highway.authentication.v1.RegisterResponse.origin":
+ x.Origin = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RegisterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RegisterResponse.success":
+ panic(fmt.Errorf("field success of message highway.authentication.v1.RegisterResponse is not mutable"))
+ case "highway.authentication.v1.RegisterResponse.message":
+ panic(fmt.Errorf("field message of message highway.authentication.v1.RegisterResponse is not mutable"))
+ case "highway.authentication.v1.RegisterResponse.tx_hash":
+ panic(fmt.Errorf("field tx_hash of message highway.authentication.v1.RegisterResponse is not mutable"))
+ case "highway.authentication.v1.RegisterResponse.address":
+ panic(fmt.Errorf("field address of message highway.authentication.v1.RegisterResponse is not mutable"))
+ case "highway.authentication.v1.RegisterResponse.jwt":
+ panic(fmt.Errorf("field jwt of message highway.authentication.v1.RegisterResponse is not mutable"))
+ case "highway.authentication.v1.RegisterResponse.origin":
+ panic(fmt.Errorf("field origin of message highway.authentication.v1.RegisterResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_RegisterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RegisterResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.authentication.v1.RegisterResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.RegisterResponse.tx_hash":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.RegisterResponse.address":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.RegisterResponse.jwt":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.RegisterResponse.origin":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RegisterResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RegisterResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_RegisterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.RegisterResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_RegisterResponse) 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_RegisterResponse) 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_RegisterResponse) 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_RegisterResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*RegisterResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.TxHash)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Jwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Origin)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*RegisterResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Origin) > 0 {
+ i -= len(x.Origin)
+ copy(dAtA[i:], x.Origin)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Origin)))
+ i--
+ dAtA[i] = 0x32
+ }
+ if len(x.Jwt) > 0 {
+ i -= len(x.Jwt)
+ copy(dAtA[i:], x.Jwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jwt)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.TxHash) > 0 {
+ i -= len(x.TxHash)
+ copy(dAtA[i:], x.TxHash)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TxHash)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*RegisterResponse)
+ 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: RegisterResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RegisterResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 TxHash", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.TxHash = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Jwt", 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.Jwt = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Origin", 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.Origin = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_RefreshTokenRequest protoreflect.MessageDescriptor
+ fd_RefreshTokenRequest_jwt protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_RefreshTokenRequest = File_highway_authentication_v1_service_proto.Messages().ByName("RefreshTokenRequest")
+ fd_RefreshTokenRequest_jwt = md_RefreshTokenRequest.Fields().ByName("jwt")
+}
+
+var _ protoreflect.Message = (*fastReflection_RefreshTokenRequest)(nil)
+
+type fastReflection_RefreshTokenRequest RefreshTokenRequest
+
+func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_RefreshTokenRequest)(x)
+}
+
+func (x *RefreshTokenRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_RefreshTokenRequest_messageType fastReflection_RefreshTokenRequest_messageType
+var _ protoreflect.MessageType = fastReflection_RefreshTokenRequest_messageType{}
+
+type fastReflection_RefreshTokenRequest_messageType struct{}
+
+func (x fastReflection_RefreshTokenRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_RefreshTokenRequest)(nil)
+}
+func (x fastReflection_RefreshTokenRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_RefreshTokenRequest)
+}
+func (x fastReflection_RefreshTokenRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_RefreshTokenRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_RefreshTokenRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_RefreshTokenRequest
+}
+
+// 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_RefreshTokenRequest) Type() protoreflect.MessageType {
+ return _fastReflection_RefreshTokenRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_RefreshTokenRequest) New() protoreflect.Message {
+ return new(fastReflection_RefreshTokenRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_RefreshTokenRequest) Interface() protoreflect.ProtoMessage {
+ return (*RefreshTokenRequest)(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_RefreshTokenRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Jwt != "" {
+ value := protoreflect.ValueOfString(x.Jwt)
+ if !f(fd_RefreshTokenRequest_jwt, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_RefreshTokenRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RefreshTokenRequest.jwt":
+ return x.Jwt != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RefreshTokenRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RefreshTokenRequest.jwt":
+ x.Jwt = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_RefreshTokenRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.RefreshTokenRequest.jwt":
+ value := x.Jwt
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RefreshTokenRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RefreshTokenRequest.jwt":
+ x.Jwt = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RefreshTokenRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RefreshTokenRequest.jwt":
+ panic(fmt.Errorf("field jwt of message highway.authentication.v1.RefreshTokenRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_RefreshTokenRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RefreshTokenRequest.jwt":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_RefreshTokenRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.RefreshTokenRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_RefreshTokenRequest) 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_RefreshTokenRequest) 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_RefreshTokenRequest) 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_RefreshTokenRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*RefreshTokenRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Jwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*RefreshTokenRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Jwt) > 0 {
+ i -= len(x.Jwt)
+ copy(dAtA[i:], x.Jwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jwt)))
+ 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().(*RefreshTokenRequest)
+ 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: RefreshTokenRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RefreshTokenRequest: 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 Jwt", 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.Jwt = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_RefreshTokenResponse protoreflect.MessageDescriptor
+ fd_RefreshTokenResponse_success protoreflect.FieldDescriptor
+ fd_RefreshTokenResponse_message protoreflect.FieldDescriptor
+ fd_RefreshTokenResponse_new_jwt protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_RefreshTokenResponse = File_highway_authentication_v1_service_proto.Messages().ByName("RefreshTokenResponse")
+ fd_RefreshTokenResponse_success = md_RefreshTokenResponse.Fields().ByName("success")
+ fd_RefreshTokenResponse_message = md_RefreshTokenResponse.Fields().ByName("message")
+ fd_RefreshTokenResponse_new_jwt = md_RefreshTokenResponse.Fields().ByName("new_jwt")
+}
+
+var _ protoreflect.Message = (*fastReflection_RefreshTokenResponse)(nil)
+
+type fastReflection_RefreshTokenResponse RefreshTokenResponse
+
+func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_RefreshTokenResponse)(x)
+}
+
+func (x *RefreshTokenResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_RefreshTokenResponse_messageType fastReflection_RefreshTokenResponse_messageType
+var _ protoreflect.MessageType = fastReflection_RefreshTokenResponse_messageType{}
+
+type fastReflection_RefreshTokenResponse_messageType struct{}
+
+func (x fastReflection_RefreshTokenResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_RefreshTokenResponse)(nil)
+}
+func (x fastReflection_RefreshTokenResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_RefreshTokenResponse)
+}
+func (x fastReflection_RefreshTokenResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_RefreshTokenResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_RefreshTokenResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_RefreshTokenResponse
+}
+
+// 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_RefreshTokenResponse) Type() protoreflect.MessageType {
+ return _fastReflection_RefreshTokenResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_RefreshTokenResponse) New() protoreflect.Message {
+ return new(fastReflection_RefreshTokenResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_RefreshTokenResponse) Interface() protoreflect.ProtoMessage {
+ return (*RefreshTokenResponse)(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_RefreshTokenResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_RefreshTokenResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_RefreshTokenResponse_message, value) {
+ return
+ }
+ }
+ if x.NewJwt != "" {
+ value := protoreflect.ValueOfString(x.NewJwt)
+ if !f(fd_RefreshTokenResponse_new_jwt, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_RefreshTokenResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RefreshTokenResponse.success":
+ return x.Success != false
+ case "highway.authentication.v1.RefreshTokenResponse.message":
+ return x.Message != ""
+ case "highway.authentication.v1.RefreshTokenResponse.new_jwt":
+ return x.NewJwt != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RefreshTokenResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RefreshTokenResponse.success":
+ x.Success = false
+ case "highway.authentication.v1.RefreshTokenResponse.message":
+ x.Message = ""
+ case "highway.authentication.v1.RefreshTokenResponse.new_jwt":
+ x.NewJwt = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_RefreshTokenResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.RefreshTokenResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.authentication.v1.RefreshTokenResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.RefreshTokenResponse.new_jwt":
+ value := x.NewJwt
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RefreshTokenResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RefreshTokenResponse.success":
+ x.Success = value.Bool()
+ case "highway.authentication.v1.RefreshTokenResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.authentication.v1.RefreshTokenResponse.new_jwt":
+ x.NewJwt = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_RefreshTokenResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RefreshTokenResponse.success":
+ panic(fmt.Errorf("field success of message highway.authentication.v1.RefreshTokenResponse is not mutable"))
+ case "highway.authentication.v1.RefreshTokenResponse.message":
+ panic(fmt.Errorf("field message of message highway.authentication.v1.RefreshTokenResponse is not mutable"))
+ case "highway.authentication.v1.RefreshTokenResponse.new_jwt":
+ panic(fmt.Errorf("field new_jwt of message highway.authentication.v1.RefreshTokenResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_RefreshTokenResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.RefreshTokenResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.authentication.v1.RefreshTokenResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.RefreshTokenResponse.new_jwt":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.RefreshTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.RefreshTokenResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_RefreshTokenResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.RefreshTokenResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_RefreshTokenResponse) 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_RefreshTokenResponse) 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_RefreshTokenResponse) 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_RefreshTokenResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*RefreshTokenResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.NewJwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*RefreshTokenResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.NewJwt) > 0 {
+ i -= len(x.NewJwt)
+ copy(dAtA[i:], x.NewJwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewJwt)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*RefreshTokenResponse)
+ 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: RefreshTokenResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RefreshTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 NewJwt", 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.NewJwt = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_VerifyTokenRequest protoreflect.MessageDescriptor
+ fd_VerifyTokenRequest_jwt protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_VerifyTokenRequest = File_highway_authentication_v1_service_proto.Messages().ByName("VerifyTokenRequest")
+ fd_VerifyTokenRequest_jwt = md_VerifyTokenRequest.Fields().ByName("jwt")
+}
+
+var _ protoreflect.Message = (*fastReflection_VerifyTokenRequest)(nil)
+
+type fastReflection_VerifyTokenRequest VerifyTokenRequest
+
+func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_VerifyTokenRequest)(x)
+}
+
+func (x *VerifyTokenRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_VerifyTokenRequest_messageType fastReflection_VerifyTokenRequest_messageType
+var _ protoreflect.MessageType = fastReflection_VerifyTokenRequest_messageType{}
+
+type fastReflection_VerifyTokenRequest_messageType struct{}
+
+func (x fastReflection_VerifyTokenRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_VerifyTokenRequest)(nil)
+}
+func (x fastReflection_VerifyTokenRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_VerifyTokenRequest)
+}
+func (x fastReflection_VerifyTokenRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerifyTokenRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_VerifyTokenRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerifyTokenRequest
+}
+
+// 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_VerifyTokenRequest) Type() protoreflect.MessageType {
+ return _fastReflection_VerifyTokenRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_VerifyTokenRequest) New() protoreflect.Message {
+ return new(fastReflection_VerifyTokenRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_VerifyTokenRequest) Interface() protoreflect.ProtoMessage {
+ return (*VerifyTokenRequest)(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_VerifyTokenRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Jwt != "" {
+ value := protoreflect.ValueOfString(x.Jwt)
+ if !f(fd_VerifyTokenRequest_jwt, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_VerifyTokenRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.VerifyTokenRequest.jwt":
+ return x.Jwt != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifyTokenRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.VerifyTokenRequest.jwt":
+ x.Jwt = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_VerifyTokenRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.VerifyTokenRequest.jwt":
+ value := x.Jwt
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifyTokenRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.VerifyTokenRequest.jwt":
+ x.Jwt = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifyTokenRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.VerifyTokenRequest.jwt":
+ panic(fmt.Errorf("field jwt of message highway.authentication.v1.VerifyTokenRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_VerifyTokenRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.VerifyTokenRequest.jwt":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenRequest"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_VerifyTokenRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.VerifyTokenRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_VerifyTokenRequest) 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_VerifyTokenRequest) 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_VerifyTokenRequest) 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_VerifyTokenRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*VerifyTokenRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Jwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*VerifyTokenRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Jwt) > 0 {
+ i -= len(x.Jwt)
+ copy(dAtA[i:], x.Jwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jwt)))
+ 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().(*VerifyTokenRequest)
+ 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: VerifyTokenRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerifyTokenRequest: 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 Jwt", 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.Jwt = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_VerifyTokenResponse protoreflect.MessageDescriptor
+ fd_VerifyTokenResponse_success protoreflect.FieldDescriptor
+ fd_VerifyTokenResponse_message protoreflect.FieldDescriptor
+ fd_VerifyTokenResponse_is_valid protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_authentication_v1_service_proto_init()
+ md_VerifyTokenResponse = File_highway_authentication_v1_service_proto.Messages().ByName("VerifyTokenResponse")
+ fd_VerifyTokenResponse_success = md_VerifyTokenResponse.Fields().ByName("success")
+ fd_VerifyTokenResponse_message = md_VerifyTokenResponse.Fields().ByName("message")
+ fd_VerifyTokenResponse_is_valid = md_VerifyTokenResponse.Fields().ByName("is_valid")
+}
+
+var _ protoreflect.Message = (*fastReflection_VerifyTokenResponse)(nil)
+
+type fastReflection_VerifyTokenResponse VerifyTokenResponse
+
+func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_VerifyTokenResponse)(x)
+}
+
+func (x *VerifyTokenResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_VerifyTokenResponse_messageType fastReflection_VerifyTokenResponse_messageType
+var _ protoreflect.MessageType = fastReflection_VerifyTokenResponse_messageType{}
+
+type fastReflection_VerifyTokenResponse_messageType struct{}
+
+func (x fastReflection_VerifyTokenResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_VerifyTokenResponse)(nil)
+}
+func (x fastReflection_VerifyTokenResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_VerifyTokenResponse)
+}
+func (x fastReflection_VerifyTokenResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerifyTokenResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_VerifyTokenResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerifyTokenResponse
+}
+
+// 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_VerifyTokenResponse) Type() protoreflect.MessageType {
+ return _fastReflection_VerifyTokenResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_VerifyTokenResponse) New() protoreflect.Message {
+ return new(fastReflection_VerifyTokenResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_VerifyTokenResponse) Interface() protoreflect.ProtoMessage {
+ return (*VerifyTokenResponse)(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_VerifyTokenResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_VerifyTokenResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_VerifyTokenResponse_message, value) {
+ return
+ }
+ }
+ if x.IsValid_ != false {
+ value := protoreflect.ValueOfBool(x.IsValid_)
+ if !f(fd_VerifyTokenResponse_is_valid, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_VerifyTokenResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.authentication.v1.VerifyTokenResponse.success":
+ return x.Success != false
+ case "highway.authentication.v1.VerifyTokenResponse.message":
+ return x.Message != ""
+ case "highway.authentication.v1.VerifyTokenResponse.is_valid":
+ return x.IsValid_ != false
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifyTokenResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.VerifyTokenResponse.success":
+ x.Success = false
+ case "highway.authentication.v1.VerifyTokenResponse.message":
+ x.Message = ""
+ case "highway.authentication.v1.VerifyTokenResponse.is_valid":
+ x.IsValid_ = false
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_VerifyTokenResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.authentication.v1.VerifyTokenResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.authentication.v1.VerifyTokenResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.authentication.v1.VerifyTokenResponse.is_valid":
+ value := x.IsValid_
+ return protoreflect.ValueOfBool(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifyTokenResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.authentication.v1.VerifyTokenResponse.success":
+ x.Success = value.Bool()
+ case "highway.authentication.v1.VerifyTokenResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.authentication.v1.VerifyTokenResponse.is_valid":
+ x.IsValid_ = value.Bool()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifyTokenResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.VerifyTokenResponse.success":
+ panic(fmt.Errorf("field success of message highway.authentication.v1.VerifyTokenResponse is not mutable"))
+ case "highway.authentication.v1.VerifyTokenResponse.message":
+ panic(fmt.Errorf("field message of message highway.authentication.v1.VerifyTokenResponse is not mutable"))
+ case "highway.authentication.v1.VerifyTokenResponse.is_valid":
+ panic(fmt.Errorf("field is_valid of message highway.authentication.v1.VerifyTokenResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_VerifyTokenResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.authentication.v1.VerifyTokenResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.authentication.v1.VerifyTokenResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.authentication.v1.VerifyTokenResponse.is_valid":
+ return protoreflect.ValueOfBool(false)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.authentication.v1.VerifyTokenResponse"))
+ }
+ panic(fmt.Errorf("message highway.authentication.v1.VerifyTokenResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_VerifyTokenResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.authentication.v1.VerifyTokenResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_VerifyTokenResponse) 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_VerifyTokenResponse) 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_VerifyTokenResponse) 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_VerifyTokenResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*VerifyTokenResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.IsValid_ {
+ n += 2
+ }
+ 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().(*VerifyTokenResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.IsValid_ {
+ i--
+ if x.IsValid_ {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x18
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*VerifyTokenResponse)
+ 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: VerifyTokenResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerifyTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsValid_", 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.IsValid_ = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: highway/authentication/v1/service.proto
+
+// Package highway.authentication.v1 provides authentication services.
+
+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)
+)
+
+// LoginRequest is the request for the Login method.
+type LoginRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` // The origin of the request.
+ Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` // The user's alias.
+ Assertion string `protobuf:"bytes,3,opt,name=assertion,proto3" json:"assertion,omitempty"` // The user's assertion.
+}
+
+func (x *LoginRequest) Reset() {
+ *x = LoginRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *LoginRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*LoginRequest) ProtoMessage() {}
+
+// Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
+func (*LoginRequest) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *LoginRequest) GetOrigin() string {
+ if x != nil {
+ return x.Origin
+ }
+ return ""
+}
+
+func (x *LoginRequest) GetAlias() string {
+ if x != nil {
+ return x.Alias
+ }
+ return ""
+}
+
+func (x *LoginRequest) GetAssertion() string {
+ if x != nil {
+ return x.Assertion
+ }
+ return ""
+}
+
+// LoginResponse is the response from the Login method.
+type LoginResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the login was successful.
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A message about the login attempt.
+ Jwt string `protobuf:"bytes,3,opt,name=jwt,proto3" json:"jwt,omitempty"` // The user's JSON Web Token.
+ Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // The user's address.
+ Origin string `protobuf:"bytes,5,opt,name=origin,proto3" json:"origin,omitempty"` // The origin of the request.
+}
+
+func (x *LoginResponse) Reset() {
+ *x = LoginResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *LoginResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*LoginResponse) ProtoMessage() {}
+
+// Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
+func (*LoginResponse) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *LoginResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *LoginResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *LoginResponse) GetJwt() string {
+ if x != nil {
+ return x.Jwt
+ }
+ return ""
+}
+
+func (x *LoginResponse) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *LoginResponse) GetOrigin() string {
+ if x != nil {
+ return x.Origin
+ }
+ return ""
+}
+
+// CurrentUserResponse is the response from the CurrentUser method.
+type CurrentUserResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the request was successful.
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A message about the request.
+ Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // The user's address.
+ Alias string `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"` // The user's alias.
+ Origin string `protobuf:"bytes,5,opt,name=origin,proto3" json:"origin,omitempty"` // The origin of the request.
+}
+
+func (x *CurrentUserResponse) Reset() {
+ *x = CurrentUserResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CurrentUserResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CurrentUserResponse) ProtoMessage() {}
+
+// Deprecated: Use CurrentUserResponse.ProtoReflect.Descriptor instead.
+func (*CurrentUserResponse) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *CurrentUserResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *CurrentUserResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *CurrentUserResponse) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *CurrentUserResponse) GetAlias() string {
+ if x != nil {
+ return x.Alias
+ }
+ return ""
+}
+
+func (x *CurrentUserResponse) GetOrigin() string {
+ if x != nil {
+ return x.Origin
+ }
+ return ""
+}
+
+// ParamsRequest is the request for the Params method.
+type ParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Existing bool `protobuf:"varint,1,opt,name=existing,proto3" json:"existing,omitempty"` // Indicates if the user exists.
+ Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` // The origin of the request.
+ Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` // The user's alias.
+}
+
+func (x *ParamsRequest) Reset() {
+ *x = ParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use ParamsRequest.ProtoReflect.Descriptor instead.
+func (*ParamsRequest) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *ParamsRequest) GetExisting() bool {
+ if x != nil {
+ return x.Existing
+ }
+ return false
+}
+
+func (x *ParamsRequest) GetOrigin() string {
+ if x != nil {
+ return x.Origin
+ }
+ return ""
+}
+
+func (x *ParamsRequest) GetAlias() string {
+ if x != nil {
+ return x.Alias
+ }
+ return ""
+}
+
+// ParamsResponse is the response from the Params method.
+type ParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the request was successful.
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A message about the request.
+ Existing bool `protobuf:"varint,3,opt,name=existing,proto3" json:"existing,omitempty"` // Indicates if the user exists.
+ Origin string `protobuf:"bytes,4,opt,name=origin,proto3" json:"origin,omitempty"` // The origin of the request.
+ Alias string `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"` // The user's alias.
+ Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` // The user's address.
+ Challenge string `protobuf:"bytes,7,opt,name=challenge,proto3" json:"challenge,omitempty"` // The challenge for the user.
+ AttestationOptions string `protobuf:"bytes,8,opt,name=attestation_options,json=attestationOptions,proto3" json:"attestation_options,omitempty"` // The attestation options for the user.
+ AssertionOptions string `protobuf:"bytes,9,opt,name=assertion_options,json=assertionOptions,proto3" json:"assertion_options,omitempty"` // The assertion options for the user.
+}
+
+func (x *ParamsResponse) Reset() {
+ *x = ParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use ParamsResponse.ProtoReflect.Descriptor instead.
+func (*ParamsResponse) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *ParamsResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *ParamsResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *ParamsResponse) GetExisting() bool {
+ if x != nil {
+ return x.Existing
+ }
+ return false
+}
+
+func (x *ParamsResponse) GetOrigin() string {
+ if x != nil {
+ return x.Origin
+ }
+ return ""
+}
+
+func (x *ParamsResponse) GetAlias() string {
+ if x != nil {
+ return x.Alias
+ }
+ return ""
+}
+
+func (x *ParamsResponse) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *ParamsResponse) GetChallenge() string {
+ if x != nil {
+ return x.Challenge
+ }
+ return ""
+}
+
+func (x *ParamsResponse) GetAttestationOptions() string {
+ if x != nil {
+ return x.AttestationOptions
+ }
+ return ""
+}
+
+func (x *ParamsResponse) GetAssertionOptions() string {
+ if x != nil {
+ return x.AssertionOptions
+ }
+ return ""
+}
+
+// RegisterRequest is the request for the Register method.
+type RegisterRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` // The origin of the request.
+ Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // The user's username.
+ Attestation string `protobuf:"bytes,3,opt,name=attestation,proto3" json:"attestation,omitempty"` // The user's attestation.
+ Challenge string `protobuf:"bytes,4,opt,name=challenge,proto3" json:"challenge,omitempty"` // The challenge for the user.
+}
+
+func (x *RegisterRequest) Reset() {
+ *x = RegisterRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RegisterRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RegisterRequest) ProtoMessage() {}
+
+// Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
+func (*RegisterRequest) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *RegisterRequest) GetOrigin() string {
+ if x != nil {
+ return x.Origin
+ }
+ return ""
+}
+
+func (x *RegisterRequest) GetUsername() string {
+ if x != nil {
+ return x.Username
+ }
+ return ""
+}
+
+func (x *RegisterRequest) GetAttestation() string {
+ if x != nil {
+ return x.Attestation
+ }
+ return ""
+}
+
+func (x *RegisterRequest) GetChallenge() string {
+ if x != nil {
+ return x.Challenge
+ }
+ return ""
+}
+
+// RegisterResponse is the response from the Register method.
+type RegisterResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the registration was successful.
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A message about the registration attempt.
+ TxHash string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // The transaction hash of the registration.
+ Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // The user's address.
+ Jwt string `protobuf:"bytes,5,opt,name=jwt,proto3" json:"jwt,omitempty"` // The user's JSON Web Token.
+ Origin string `protobuf:"bytes,6,opt,name=origin,proto3" json:"origin,omitempty"` // The origin of the request.
+}
+
+func (x *RegisterResponse) Reset() {
+ *x = RegisterResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RegisterResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RegisterResponse) ProtoMessage() {}
+
+// Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
+func (*RegisterResponse) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *RegisterResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *RegisterResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *RegisterResponse) GetTxHash() string {
+ if x != nil {
+ return x.TxHash
+ }
+ return ""
+}
+
+func (x *RegisterResponse) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *RegisterResponse) GetJwt() string {
+ if x != nil {
+ return x.Jwt
+ }
+ return ""
+}
+
+func (x *RegisterResponse) GetOrigin() string {
+ if x != nil {
+ return x.Origin
+ }
+ return ""
+}
+
+// RefreshTokenRequest is the request for the RefreshToken method.
+type RefreshTokenRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
+}
+
+func (x *RefreshTokenRequest) Reset() {
+ *x = RefreshTokenRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RefreshTokenRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RefreshTokenRequest) ProtoMessage() {}
+
+// Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
+func (*RefreshTokenRequest) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *RefreshTokenRequest) GetJwt() string {
+ if x != nil {
+ return x.Jwt
+ }
+ return ""
+}
+
+// RefreshTokenResponse is the response from the RefreshToken method.
+type RefreshTokenResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the token refresh was successful.
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A message about the token refresh attempt.
+ NewJwt string `protobuf:"bytes,3,opt,name=new_jwt,json=newJwt,proto3" json:"new_jwt,omitempty"` // The new JSON Web Token.
+}
+
+func (x *RefreshTokenResponse) Reset() {
+ *x = RefreshTokenResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RefreshTokenResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RefreshTokenResponse) ProtoMessage() {}
+
+// Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.
+func (*RefreshTokenResponse) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{8}
+}
+
+func (x *RefreshTokenResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *RefreshTokenResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *RefreshTokenResponse) GetNewJwt() string {
+ if x != nil {
+ return x.NewJwt
+ }
+ return ""
+}
+
+// VerifyTokenRequest is the request for the VerifyToken method.
+type VerifyTokenRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
+}
+
+func (x *VerifyTokenRequest) Reset() {
+ *x = VerifyTokenRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *VerifyTokenRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*VerifyTokenRequest) ProtoMessage() {}
+
+// Deprecated: Use VerifyTokenRequest.ProtoReflect.Descriptor instead.
+func (*VerifyTokenRequest) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{9}
+}
+
+func (x *VerifyTokenRequest) GetJwt() string {
+ if x != nil {
+ return x.Jwt
+ }
+ return ""
+}
+
+// VerifyTokenResponse is the response from the VerifyToken method.
+type VerifyTokenResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the token verification was successful.
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A message about the token verification attempt.
+ IsValid_ bool `protobuf:"varint,3,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` // Indicates if the token is valid.
+}
+
+func (x *VerifyTokenResponse) Reset() {
+ *x = VerifyTokenResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_authentication_v1_service_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *VerifyTokenResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*VerifyTokenResponse) ProtoMessage() {}
+
+// Deprecated: Use VerifyTokenResponse.ProtoReflect.Descriptor instead.
+func (*VerifyTokenResponse) Descriptor() ([]byte, []int) {
+ return file_highway_authentication_v1_service_proto_rawDescGZIP(), []int{10}
+}
+
+func (x *VerifyTokenResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *VerifyTokenResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *VerifyTokenResponse) GetIsValid_() bool {
+ if x != nil {
+ return x.IsValid_
+ }
+ return false
+}
+
+var File_highway_authentication_v1_service_proto protoreflect.FileDescriptor
+
+var file_highway_authentication_v1_service_proto_rawDesc = []byte{
+ 0x0a, 0x27, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,
+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x68, 0x69, 0x67, 0x68, 0x77,
+ 0x61, 0x79, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
+ 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
+ 0x5a, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+ 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1c, 0x0a,
+ 0x09, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x09, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x87, 0x01, 0x0a, 0x0d,
+ 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a,
+ 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
+ 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
+ 0x6a, 0x77, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a,
+ 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f,
+ 0x72, 0x69, 0x67, 0x69, 0x6e, 0x22, 0x91, 0x01, 0x0a, 0x13, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e,
+ 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a,
+ 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
+ 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61,
+ 0x6c, 0x69, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61,
+ 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x22, 0x59, 0x0a, 0x0d, 0x50, 0x61, 0x72,
+ 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78,
+ 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x65, 0x78,
+ 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x14,
+ 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61,
+ 0x6c, 0x69, 0x61, 0x73, 0x22, 0xa4, 0x02, 0x0a, 0x0e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65,
+ 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73,
+ 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65,
+ 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x65,
+ 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69,
+ 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12,
+ 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+ 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
+ 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x2f, 0x0a,
+ 0x13, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x70, 0x74,
+ 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x61, 0x74, 0x74, 0x65,
+ 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b,
+ 0x0a, 0x11, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x70, 0x74, 0x69,
+ 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x73, 0x73, 0x65, 0x72,
+ 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x0f,
+ 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+ 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
+ 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e,
+ 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65,
+ 0x6e, 0x67, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63,
+ 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65,
+ 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x17, 0x0a, 0x07,
+ 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74,
+ 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
+ 0x10, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6a, 0x77,
+ 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x22, 0x27, 0x0a, 0x13, 0x52, 0x65, 0x66,
+ 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6a,
+ 0x77, 0x74, 0x22, 0x63, 0x0a, 0x14, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75,
+ 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63,
+ 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x17,
+ 0x0a, 0x07, 0x6e, 0x65, 0x77, 0x5f, 0x6a, 0x77, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x06, 0x6e, 0x65, 0x77, 0x4a, 0x77, 0x74, 0x22, 0x26, 0x0a, 0x12, 0x56, 0x65, 0x72, 0x69, 0x66,
+ 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a,
+ 0x03, 0x6a, 0x77, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6a, 0x77, 0x74, 0x22,
+ 0x64, 0x0a, 0x13, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73,
+ 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
+ 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73,
+ 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73,
+ 0x56, 0x61, 0x6c, 0x69, 0x64, 0x32, 0xd8, 0x06, 0x0a, 0x15, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e,
+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
+ 0x84, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x28, 0x2e, 0x68, 0x69, 0x67,
+ 0x68, 0x77, 0x61, 0x79, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x61,
+ 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31,
+ 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61,
+ 0x79, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2f, 0x7b, 0x6f,
+ 0x72, 0x69, 0x67, 0x69, 0x6e, 0x7d, 0x12, 0x80, 0x01, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e,
+ 0x12, 0x27, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65,
+ 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67,
+ 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x68, 0x69, 0x67, 0x68,
+ 0x77, 0x61, 0x79, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x1c, 0x2f, 0x68, 0x69,
+ 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e,
+ 0x2f, 0x7b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x08, 0x52, 0x65,
+ 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79,
+ 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
+ 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x61, 0x75, 0x74,
+ 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52,
+ 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1f, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61,
+ 0x79, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f,
+ 0x7b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x7d, 0x12, 0x74, 0x0a, 0x0b, 0x43, 0x75, 0x72, 0x72,
+ 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a,
+ 0x2e, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,
+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x72,
+ 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61,
+ 0x79, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x98,
+ 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
+ 0x2e, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,
+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x72,
+ 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x2f, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,
+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x72,
+ 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1f, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77,
+ 0x61, 0x79, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6a, 0x77, 0x74, 0x2f, 0x72, 0x65, 0x66, 0x72,
+ 0x65, 0x73, 0x68, 0x2f, 0x7b, 0x6a, 0x77, 0x74, 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x0b, 0x56, 0x65,
+ 0x72, 0x69, 0x66, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2d, 0x2e, 0x68, 0x69, 0x67, 0x68,
+ 0x77, 0x61, 0x79, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x6f, 0x6b, 0x65,
+ 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77,
+ 0x61, 0x79, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20,
+ 0x22, 0x1e, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f,
+ 0x6a, 0x77, 0x74, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x2f, 0x7b, 0x6a, 0x77, 0x74, 0x7d,
+ 0x42, 0xf6, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79,
+ 0x2e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
+ 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f,
+ 0x50, 0x01, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73,
+ 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77,
+ 0x61, 0x79, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x48, 0x41, 0x58, 0xaa, 0x02, 0x19, 0x48, 0x69,
+ 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61,
+ 0x79, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x25, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x5c, 0x41, 0x75,
+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c,
+ 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x48, 0x69,
+ 0x67, 0x68, 0x77, 0x61, 0x79, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x33,
+}
+
+var (
+ file_highway_authentication_v1_service_proto_rawDescOnce sync.Once
+ file_highway_authentication_v1_service_proto_rawDescData = file_highway_authentication_v1_service_proto_rawDesc
+)
+
+func file_highway_authentication_v1_service_proto_rawDescGZIP() []byte {
+ file_highway_authentication_v1_service_proto_rawDescOnce.Do(func() {
+ file_highway_authentication_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_highway_authentication_v1_service_proto_rawDescData)
+ })
+ return file_highway_authentication_v1_service_proto_rawDescData
+}
+
+var file_highway_authentication_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
+var file_highway_authentication_v1_service_proto_goTypes = []interface{}{
+ (*LoginRequest)(nil), // 0: highway.authentication.v1.LoginRequest
+ (*LoginResponse)(nil), // 1: highway.authentication.v1.LoginResponse
+ (*CurrentUserResponse)(nil), // 2: highway.authentication.v1.CurrentUserResponse
+ (*ParamsRequest)(nil), // 3: highway.authentication.v1.ParamsRequest
+ (*ParamsResponse)(nil), // 4: highway.authentication.v1.ParamsResponse
+ (*RegisterRequest)(nil), // 5: highway.authentication.v1.RegisterRequest
+ (*RegisterResponse)(nil), // 6: highway.authentication.v1.RegisterResponse
+ (*RefreshTokenRequest)(nil), // 7: highway.authentication.v1.RefreshTokenRequest
+ (*RefreshTokenResponse)(nil), // 8: highway.authentication.v1.RefreshTokenResponse
+ (*VerifyTokenRequest)(nil), // 9: highway.authentication.v1.VerifyTokenRequest
+ (*VerifyTokenResponse)(nil), // 10: highway.authentication.v1.VerifyTokenResponse
+ (*emptypb.Empty)(nil), // 11: google.protobuf.Empty
+}
+var file_highway_authentication_v1_service_proto_depIdxs = []int32{
+ 3, // 0: highway.authentication.v1.AuthenticationService.Params:input_type -> highway.authentication.v1.ParamsRequest
+ 0, // 1: highway.authentication.v1.AuthenticationService.Login:input_type -> highway.authentication.v1.LoginRequest
+ 5, // 2: highway.authentication.v1.AuthenticationService.Register:input_type -> highway.authentication.v1.RegisterRequest
+ 11, // 3: highway.authentication.v1.AuthenticationService.CurrentUser:input_type -> google.protobuf.Empty
+ 7, // 4: highway.authentication.v1.AuthenticationService.RefreshToken:input_type -> highway.authentication.v1.RefreshTokenRequest
+ 9, // 5: highway.authentication.v1.AuthenticationService.VerifyToken:input_type -> highway.authentication.v1.VerifyTokenRequest
+ 4, // 6: highway.authentication.v1.AuthenticationService.Params:output_type -> highway.authentication.v1.ParamsResponse
+ 1, // 7: highway.authentication.v1.AuthenticationService.Login:output_type -> highway.authentication.v1.LoginResponse
+ 6, // 8: highway.authentication.v1.AuthenticationService.Register:output_type -> highway.authentication.v1.RegisterResponse
+ 2, // 9: highway.authentication.v1.AuthenticationService.CurrentUser:output_type -> highway.authentication.v1.CurrentUserResponse
+ 8, // 10: highway.authentication.v1.AuthenticationService.RefreshToken:output_type -> highway.authentication.v1.RefreshTokenResponse
+ 10, // 11: highway.authentication.v1.AuthenticationService.VerifyToken:output_type -> highway.authentication.v1.VerifyTokenResponse
+ 6, // [6:12] is the sub-list for method output_type
+ 0, // [0:6] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_highway_authentication_v1_service_proto_init() }
+func file_highway_authentication_v1_service_proto_init() {
+ if File_highway_authentication_v1_service_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_highway_authentication_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*LoginRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_authentication_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*LoginResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_authentication_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CurrentUserResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_authentication_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_authentication_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_authentication_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*RegisterRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_authentication_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*RegisterResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_authentication_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*RefreshTokenRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_authentication_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*RefreshTokenResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_authentication_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*VerifyTokenRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_authentication_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*VerifyTokenResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_highway_authentication_v1_service_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 11,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_highway_authentication_v1_service_proto_goTypes,
+ DependencyIndexes: file_highway_authentication_v1_service_proto_depIdxs,
+ MessageInfos: file_highway_authentication_v1_service_proto_msgTypes,
+ }.Build()
+ File_highway_authentication_v1_service_proto = out.File
+ file_highway_authentication_v1_service_proto_rawDesc = nil
+ file_highway_authentication_v1_service_proto_goTypes = nil
+ file_highway_authentication_v1_service_proto_depIdxs = nil
+}
diff --git a/api/highway/authentication/v1/service_grpc.pb.go b/api/highway/authentication/v1/service_grpc.pb.go
new file mode 100644
index 000000000..6febe6e26
--- /dev/null
+++ b/api/highway/authentication/v1/service_grpc.pb.go
@@ -0,0 +1,309 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: highway/authentication/v1/service.proto
+
+// Package highway.authentication.v1 provides authentication services.
+
+package authenticationv1
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ AuthenticationService_Params_FullMethodName = "/highway.authentication.v1.AuthenticationService/Params"
+ AuthenticationService_Login_FullMethodName = "/highway.authentication.v1.AuthenticationService/Login"
+ AuthenticationService_Register_FullMethodName = "/highway.authentication.v1.AuthenticationService/Register"
+ AuthenticationService_CurrentUser_FullMethodName = "/highway.authentication.v1.AuthenticationService/CurrentUser"
+ AuthenticationService_RefreshToken_FullMethodName = "/highway.authentication.v1.AuthenticationService/RefreshToken"
+ AuthenticationService_VerifyToken_FullMethodName = "/highway.authentication.v1.AuthenticationService/VerifyToken"
+)
+
+// AuthenticationServiceClient is the client API for AuthenticationService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type AuthenticationServiceClient interface {
+ // Params retrieves authentication parameters.
+ Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error)
+ // Login authenticates a user.
+ Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
+ // Register registers a new user.
+ Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
+ // CurrentUser retrieves the currently authenticated user.
+ CurrentUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CurrentUserResponse, error)
+ // RefreshToken refreshes a user's authentication token.
+ RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error)
+ // VerifyToken verifies a user's authentication token.
+ VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error)
+}
+
+type authenticationServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient {
+ return &authenticationServiceClient{cc}
+}
+
+func (c *authenticationServiceClient) Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) {
+ out := new(ParamsResponse)
+ err := c.cc.Invoke(ctx, AuthenticationService_Params_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *authenticationServiceClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) {
+ out := new(LoginResponse)
+ err := c.cc.Invoke(ctx, AuthenticationService_Login_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *authenticationServiceClient) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) {
+ out := new(RegisterResponse)
+ err := c.cc.Invoke(ctx, AuthenticationService_Register_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *authenticationServiceClient) CurrentUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CurrentUserResponse, error) {
+ out := new(CurrentUserResponse)
+ err := c.cc.Invoke(ctx, AuthenticationService_CurrentUser_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *authenticationServiceClient) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error) {
+ out := new(RefreshTokenResponse)
+ err := c.cc.Invoke(ctx, AuthenticationService_RefreshToken_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *authenticationServiceClient) VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error) {
+ out := new(VerifyTokenResponse)
+ err := c.cc.Invoke(ctx, AuthenticationService_VerifyToken_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// AuthenticationServiceServer is the server API for AuthenticationService service.
+// All implementations must embed UnimplementedAuthenticationServiceServer
+// for forward compatibility
+type AuthenticationServiceServer interface {
+ // Params retrieves authentication parameters.
+ Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
+ // Login authenticates a user.
+ Login(context.Context, *LoginRequest) (*LoginResponse, error)
+ // Register registers a new user.
+ Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
+ // CurrentUser retrieves the currently authenticated user.
+ CurrentUser(context.Context, *emptypb.Empty) (*CurrentUserResponse, error)
+ // RefreshToken refreshes a user's authentication token.
+ RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
+ // VerifyToken verifies a user's authentication token.
+ VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error)
+ mustEmbedUnimplementedAuthenticationServiceServer()
+}
+
+// UnimplementedAuthenticationServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedAuthenticationServiceServer struct {
+}
+
+func (UnimplementedAuthenticationServiceServer) Params(context.Context, *ParamsRequest) (*ParamsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
+}
+func (UnimplementedAuthenticationServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
+}
+func (UnimplementedAuthenticationServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
+}
+func (UnimplementedAuthenticationServiceServer) CurrentUser(context.Context, *emptypb.Empty) (*CurrentUserResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CurrentUser not implemented")
+}
+func (UnimplementedAuthenticationServiceServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method RefreshToken not implemented")
+}
+func (UnimplementedAuthenticationServiceServer) VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method VerifyToken not implemented")
+}
+func (UnimplementedAuthenticationServiceServer) mustEmbedUnimplementedAuthenticationServiceServer() {}
+
+// UnsafeAuthenticationServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to AuthenticationServiceServer will
+// result in compilation errors.
+type UnsafeAuthenticationServiceServer interface {
+ mustEmbedUnimplementedAuthenticationServiceServer()
+}
+
+func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer) {
+ s.RegisterService(&AuthenticationService_ServiceDesc, srv)
+}
+
+func _AuthenticationService_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ParamsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AuthenticationServiceServer).Params(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: AuthenticationService_Params_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AuthenticationServiceServer).Params(ctx, req.(*ParamsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AuthenticationService_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(LoginRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AuthenticationServiceServer).Login(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: AuthenticationService_Login_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AuthenticationServiceServer).Login(ctx, req.(*LoginRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AuthenticationService_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(RegisterRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AuthenticationServiceServer).Register(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: AuthenticationService_Register_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AuthenticationServiceServer).Register(ctx, req.(*RegisterRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AuthenticationService_CurrentUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(emptypb.Empty)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AuthenticationServiceServer).CurrentUser(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: AuthenticationService_CurrentUser_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AuthenticationServiceServer).CurrentUser(ctx, req.(*emptypb.Empty))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AuthenticationService_RefreshToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(RefreshTokenRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AuthenticationServiceServer).RefreshToken(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: AuthenticationService_RefreshToken_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AuthenticationServiceServer).RefreshToken(ctx, req.(*RefreshTokenRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _AuthenticationService_VerifyToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(VerifyTokenRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(AuthenticationServiceServer).VerifyToken(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: AuthenticationService_VerifyToken_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(AuthenticationServiceServer).VerifyToken(ctx, req.(*VerifyTokenRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// AuthenticationService_ServiceDesc is the grpc.ServiceDesc for AuthenticationService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var AuthenticationService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "highway.authentication.v1.AuthenticationService",
+ HandlerType: (*AuthenticationServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "Params",
+ Handler: _AuthenticationService_Params_Handler,
+ },
+ {
+ MethodName: "Login",
+ Handler: _AuthenticationService_Login_Handler,
+ },
+ {
+ MethodName: "Register",
+ Handler: _AuthenticationService_Register_Handler,
+ },
+ {
+ MethodName: "CurrentUser",
+ Handler: _AuthenticationService_CurrentUser_Handler,
+ },
+ {
+ MethodName: "RefreshToken",
+ Handler: _AuthenticationService_RefreshToken_Handler,
+ },
+ {
+ MethodName: "VerifyToken",
+ Handler: _AuthenticationService_VerifyToken_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "highway/authentication/v1/service.proto",
+}
diff --git a/api/highway/database/v1/service.pulsar.go b/api/highway/database/v1/service.pulsar.go
new file mode 100644
index 000000000..4a100c5a4
--- /dev/null
+++ b/api/highway/database/v1/service.pulsar.go
@@ -0,0 +1,1367 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package databasev1
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/google/api"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ _ "google.golang.org/protobuf/types/known/emptypb"
+ io "io"
+ reflect "reflect"
+ sort "sort"
+ sync "sync"
+)
+
+var (
+ md_HealthRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_highway_database_v1_service_proto_init()
+ md_HealthRequest = File_highway_database_v1_service_proto.Messages().ByName("HealthRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_HealthRequest)(nil)
+
+type fastReflection_HealthRequest HealthRequest
+
+func (x *HealthRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_HealthRequest)(x)
+}
+
+func (x *HealthRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_database_v1_service_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_HealthRequest_messageType fastReflection_HealthRequest_messageType
+var _ protoreflect.MessageType = fastReflection_HealthRequest_messageType{}
+
+type fastReflection_HealthRequest_messageType struct{}
+
+func (x fastReflection_HealthRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_HealthRequest)(nil)
+}
+func (x fastReflection_HealthRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_HealthRequest)
+}
+func (x fastReflection_HealthRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_HealthRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_HealthRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_HealthRequest
+}
+
+// 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_HealthRequest) Type() protoreflect.MessageType {
+ return _fastReflection_HealthRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_HealthRequest) New() protoreflect.Message {
+ return new(fastReflection_HealthRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_HealthRequest) Interface() protoreflect.ProtoMessage {
+ return (*HealthRequest)(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_HealthRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_HealthRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthRequest"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_HealthRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthRequest"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_HealthRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthRequest"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_HealthRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthRequest"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_HealthRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthRequest"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_HealthRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthRequest"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_HealthRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.database.v1.HealthRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_HealthRequest) 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_HealthRequest) 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_HealthRequest) 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_HealthRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*HealthRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*HealthRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*HealthRequest)
+ 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: HealthRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: HealthRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.Map = (*_HealthResponse_3_map)(nil)
+
+type _HealthResponse_3_map struct {
+ m *map[string]string
+}
+
+func (x *_HealthResponse_3_map) Len() int {
+ if x.m == nil {
+ return 0
+ }
+ return len(*x.m)
+}
+
+func (x *_HealthResponse_3_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) {
+ if x.m == nil {
+ return
+ }
+ for k, v := range *x.m {
+ mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k))
+ mapValue := protoreflect.ValueOfString(v)
+ if !f(mapKey, mapValue) {
+ break
+ }
+ }
+}
+
+func (x *_HealthResponse_3_map) Has(key protoreflect.MapKey) bool {
+ if x.m == nil {
+ return false
+ }
+ keyUnwrapped := key.String()
+ concreteValue := keyUnwrapped
+ _, ok := (*x.m)[concreteValue]
+ return ok
+}
+
+func (x *_HealthResponse_3_map) Clear(key protoreflect.MapKey) {
+ if x.m == nil {
+ return
+ }
+ keyUnwrapped := key.String()
+ concreteKey := keyUnwrapped
+ delete(*x.m, concreteKey)
+}
+
+func (x *_HealthResponse_3_map) Get(key protoreflect.MapKey) protoreflect.Value {
+ if x.m == nil {
+ return protoreflect.Value{}
+ }
+ keyUnwrapped := key.String()
+ concreteKey := keyUnwrapped
+ v, ok := (*x.m)[concreteKey]
+ if !ok {
+ return protoreflect.Value{}
+ }
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_HealthResponse_3_map) Set(key protoreflect.MapKey, value protoreflect.Value) {
+ if !key.IsValid() || !value.IsValid() {
+ panic("invalid key or value provided")
+ }
+ keyUnwrapped := key.String()
+ concreteKey := keyUnwrapped
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.m)[concreteKey] = concreteValue
+}
+
+func (x *_HealthResponse_3_map) Mutable(key protoreflect.MapKey) protoreflect.Value {
+ panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message")
+}
+
+func (x *_HealthResponse_3_map) NewValue() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_HealthResponse_3_map) IsValid() bool {
+ return x.m != nil
+}
+
+var (
+ md_HealthResponse protoreflect.MessageDescriptor
+ fd_HealthResponse_ok protoreflect.FieldDescriptor
+ fd_HealthResponse_message protoreflect.FieldDescriptor
+ fd_HealthResponse_details protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_database_v1_service_proto_init()
+ md_HealthResponse = File_highway_database_v1_service_proto.Messages().ByName("HealthResponse")
+ fd_HealthResponse_ok = md_HealthResponse.Fields().ByName("ok")
+ fd_HealthResponse_message = md_HealthResponse.Fields().ByName("message")
+ fd_HealthResponse_details = md_HealthResponse.Fields().ByName("details")
+}
+
+var _ protoreflect.Message = (*fastReflection_HealthResponse)(nil)
+
+type fastReflection_HealthResponse HealthResponse
+
+func (x *HealthResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_HealthResponse)(x)
+}
+
+func (x *HealthResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_database_v1_service_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_HealthResponse_messageType fastReflection_HealthResponse_messageType
+var _ protoreflect.MessageType = fastReflection_HealthResponse_messageType{}
+
+type fastReflection_HealthResponse_messageType struct{}
+
+func (x fastReflection_HealthResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_HealthResponse)(nil)
+}
+func (x fastReflection_HealthResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_HealthResponse)
+}
+func (x fastReflection_HealthResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_HealthResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_HealthResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_HealthResponse
+}
+
+// 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_HealthResponse) Type() protoreflect.MessageType {
+ return _fastReflection_HealthResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_HealthResponse) New() protoreflect.Message {
+ return new(fastReflection_HealthResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_HealthResponse) Interface() protoreflect.ProtoMessage {
+ return (*HealthResponse)(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_HealthResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Ok != false {
+ value := protoreflect.ValueOfBool(x.Ok)
+ if !f(fd_HealthResponse_ok, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_HealthResponse_message, value) {
+ return
+ }
+ }
+ if len(x.Details) != 0 {
+ value := protoreflect.ValueOfMap(&_HealthResponse_3_map{m: &x.Details})
+ if !f(fd_HealthResponse_details, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_HealthResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.database.v1.HealthResponse.ok":
+ return x.Ok != false
+ case "highway.database.v1.HealthResponse.message":
+ return x.Message != ""
+ case "highway.database.v1.HealthResponse.details":
+ return len(x.Details) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthResponse"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_HealthResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.database.v1.HealthResponse.ok":
+ x.Ok = false
+ case "highway.database.v1.HealthResponse.message":
+ x.Message = ""
+ case "highway.database.v1.HealthResponse.details":
+ x.Details = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthResponse"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_HealthResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.database.v1.HealthResponse.ok":
+ value := x.Ok
+ return protoreflect.ValueOfBool(value)
+ case "highway.database.v1.HealthResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.database.v1.HealthResponse.details":
+ if len(x.Details) == 0 {
+ return protoreflect.ValueOfMap(&_HealthResponse_3_map{})
+ }
+ mapValue := &_HealthResponse_3_map{m: &x.Details}
+ return protoreflect.ValueOfMap(mapValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthResponse"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_HealthResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.database.v1.HealthResponse.ok":
+ x.Ok = value.Bool()
+ case "highway.database.v1.HealthResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.database.v1.HealthResponse.details":
+ mv := value.Map()
+ cmv := mv.(*_HealthResponse_3_map)
+ x.Details = *cmv.m
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthResponse"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_HealthResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.database.v1.HealthResponse.details":
+ if x.Details == nil {
+ x.Details = make(map[string]string)
+ }
+ value := &_HealthResponse_3_map{m: &x.Details}
+ return protoreflect.ValueOfMap(value)
+ case "highway.database.v1.HealthResponse.ok":
+ panic(fmt.Errorf("field ok of message highway.database.v1.HealthResponse is not mutable"))
+ case "highway.database.v1.HealthResponse.message":
+ panic(fmt.Errorf("field message of message highway.database.v1.HealthResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthResponse"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_HealthResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.database.v1.HealthResponse.ok":
+ return protoreflect.ValueOfBool(false)
+ case "highway.database.v1.HealthResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.database.v1.HealthResponse.details":
+ m := make(map[string]string)
+ return protoreflect.ValueOfMap(&_HealthResponse_3_map{m: &m})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.database.v1.HealthResponse"))
+ }
+ panic(fmt.Errorf("message highway.database.v1.HealthResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_HealthResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.database.v1.HealthResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_HealthResponse) 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_HealthResponse) 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_HealthResponse) 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_HealthResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*HealthResponse)
+ 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.Ok {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Details) > 0 {
+ SiZeMaP := func(k string, v string) {
+ mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + len(v) + runtime.Sov(uint64(len(v)))
+ n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize))
+ }
+ if options.Deterministic {
+ sortme := make([]string, 0, len(x.Details))
+ for k := range x.Details {
+ sortme = append(sortme, k)
+ }
+ sort.Strings(sortme)
+ for _, k := range sortme {
+ v := x.Details[k]
+ SiZeMaP(k, v)
+ }
+ } else {
+ for k, v := range x.Details {
+ SiZeMaP(k, v)
+ }
+ }
+ }
+ 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().(*HealthResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Details) > 0 {
+ MaRsHaLmAp := func(k string, v string) (protoiface.MarshalOutput, error) {
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(k)
+ copy(dAtA[i:], k)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(k)))
+ i--
+ dAtA[i] = 0xa
+ i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x1a
+ return protoiface.MarshalOutput{}, nil
+ }
+ if options.Deterministic {
+ keysForDetails := make([]string, 0, len(x.Details))
+ for k := range x.Details {
+ keysForDetails = append(keysForDetails, string(k))
+ }
+ sort.Slice(keysForDetails, func(i, j int) bool {
+ return keysForDetails[i] < keysForDetails[j]
+ })
+ for iNdEx := len(keysForDetails) - 1; iNdEx >= 0; iNdEx-- {
+ v := x.Details[string(keysForDetails[iNdEx])]
+ out, err := MaRsHaLmAp(keysForDetails[iNdEx], v)
+ if err != nil {
+ return out, err
+ }
+ }
+ } else {
+ for k := range x.Details {
+ v := x.Details[k]
+ out, err := MaRsHaLmAp(k, v)
+ if err != nil {
+ return out, err
+ }
+ }
+ }
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Ok {
+ i--
+ if x.Ok {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*HealthResponse)
+ 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: HealthResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: HealthResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Ok", 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.Ok = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 Details", 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.Details == nil {
+ x.Details = make(map[string]string)
+ }
+ var mapkey string
+ var mapvalue string
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postStringIndexmapkey > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var stringLenmapvalue 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++
+ stringLenmapvalue |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapvalue := int(stringLenmapvalue)
+ if intStringLenmapvalue < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postStringIndexmapvalue > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > postIndex {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ x.Details[mapkey] = mapvalue
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: highway/database/v1/service.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type HealthRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *HealthRequest) Reset() {
+ *x = HealthRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_database_v1_service_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *HealthRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*HealthRequest) ProtoMessage() {}
+
+// Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.
+func (*HealthRequest) Descriptor() ([]byte, []int) {
+ return file_highway_database_v1_service_proto_rawDescGZIP(), []int{0}
+}
+
+type HealthResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
+ Details map[string]string `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
+}
+
+func (x *HealthResponse) Reset() {
+ *x = HealthResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_database_v1_service_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *HealthResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*HealthResponse) ProtoMessage() {}
+
+// Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.
+func (*HealthResponse) Descriptor() ([]byte, []int) {
+ return file_highway_database_v1_service_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *HealthResponse) GetOk() bool {
+ if x != nil {
+ return x.Ok
+ }
+ return false
+}
+
+func (x *HealthResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *HealthResponse) GetDetails() map[string]string {
+ if x != nil {
+ return x.Details
+ }
+ return nil
+}
+
+var File_highway_database_v1_service_proto protoreflect.FileDescriptor
+
+var file_highway_database_v1_service_proto_rawDesc = []byte{
+ 0x0a, 0x21, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
+ 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, 0x0d, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x22, 0xc2, 0x01, 0x0a, 0x0e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x12, 0x4a, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x45,
+ 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x3a, 0x0a,
+ 0x0c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
+ 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
+ 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x75, 0x0a, 0x0f, 0x44, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x62, 0x0a, 0x06,
+ 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x22, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79,
+ 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61,
+ 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x68, 0x69, 0x67,
+ 0x68, 0x77, 0x61, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x0f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x09, 0x12, 0x07, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68,
+ 0x42, 0xcc, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79,
+ 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69,
+ 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f,
+ 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x48, 0x44, 0x58, 0xaa, 0x02, 0x13, 0x48, 0x69, 0x67, 0x68,
+ 0x77, 0x61, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x56, 0x31, 0xca,
+ 0x02, 0x13, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x5c,
+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61,
+ 0x79, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_highway_database_v1_service_proto_rawDescOnce sync.Once
+ file_highway_database_v1_service_proto_rawDescData = file_highway_database_v1_service_proto_rawDesc
+)
+
+func file_highway_database_v1_service_proto_rawDescGZIP() []byte {
+ file_highway_database_v1_service_proto_rawDescOnce.Do(func() {
+ file_highway_database_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_highway_database_v1_service_proto_rawDescData)
+ })
+ return file_highway_database_v1_service_proto_rawDescData
+}
+
+var file_highway_database_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_highway_database_v1_service_proto_goTypes = []interface{}{
+ (*HealthRequest)(nil), // 0: highway.database.v1.HealthRequest
+ (*HealthResponse)(nil), // 1: highway.database.v1.HealthResponse
+ nil, // 2: highway.database.v1.HealthResponse.DetailsEntry
+}
+var file_highway_database_v1_service_proto_depIdxs = []int32{
+ 2, // 0: highway.database.v1.HealthResponse.details:type_name -> highway.database.v1.HealthResponse.DetailsEntry
+ 0, // 1: highway.database.v1.DatabaseService.Health:input_type -> highway.database.v1.HealthRequest
+ 1, // 2: highway.database.v1.DatabaseService.Health:output_type -> highway.database.v1.HealthResponse
+ 2, // [2:3] is the sub-list for method output_type
+ 1, // [1:2] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_highway_database_v1_service_proto_init() }
+func file_highway_database_v1_service_proto_init() {
+ if File_highway_database_v1_service_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_highway_database_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*HealthRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_database_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*HealthResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_highway_database_v1_service_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 3,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_highway_database_v1_service_proto_goTypes,
+ DependencyIndexes: file_highway_database_v1_service_proto_depIdxs,
+ MessageInfos: file_highway_database_v1_service_proto_msgTypes,
+ }.Build()
+ File_highway_database_v1_service_proto = out.File
+ file_highway_database_v1_service_proto_rawDesc = nil
+ file_highway_database_v1_service_proto_goTypes = nil
+ file_highway_database_v1_service_proto_depIdxs = nil
+}
diff --git a/api/highway/database/v1/service_grpc.pb.go b/api/highway/database/v1/service_grpc.pb.go
new file mode 100644
index 000000000..2cddfd56f
--- /dev/null
+++ b/api/highway/database/v1/service_grpc.pb.go
@@ -0,0 +1,109 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: highway/database/v1/service.proto
+
+package databasev1
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ DatabaseService_Health_FullMethodName = "/highway.database.v1.DatabaseService/Health"
+)
+
+// DatabaseServiceClient is the client API for DatabaseService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type DatabaseServiceClient interface {
+ Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error)
+}
+
+type databaseServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewDatabaseServiceClient(cc grpc.ClientConnInterface) DatabaseServiceClient {
+ return &databaseServiceClient{cc}
+}
+
+func (c *databaseServiceClient) Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) {
+ out := new(HealthResponse)
+ err := c.cc.Invoke(ctx, DatabaseService_Health_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// DatabaseServiceServer is the server API for DatabaseService service.
+// All implementations must embed UnimplementedDatabaseServiceServer
+// for forward compatibility
+type DatabaseServiceServer interface {
+ Health(context.Context, *HealthRequest) (*HealthResponse, error)
+ mustEmbedUnimplementedDatabaseServiceServer()
+}
+
+// UnimplementedDatabaseServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedDatabaseServiceServer struct {
+}
+
+func (UnimplementedDatabaseServiceServer) Health(context.Context, *HealthRequest) (*HealthResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Health not implemented")
+}
+func (UnimplementedDatabaseServiceServer) mustEmbedUnimplementedDatabaseServiceServer() {}
+
+// UnsafeDatabaseServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to DatabaseServiceServer will
+// result in compilation errors.
+type UnsafeDatabaseServiceServer interface {
+ mustEmbedUnimplementedDatabaseServiceServer()
+}
+
+func RegisterDatabaseServiceServer(s grpc.ServiceRegistrar, srv DatabaseServiceServer) {
+ s.RegisterService(&DatabaseService_ServiceDesc, srv)
+}
+
+func _DatabaseService_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(HealthRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DatabaseServiceServer).Health(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DatabaseService_Health_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DatabaseServiceServer).Health(ctx, req.(*HealthRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// DatabaseService_ServiceDesc is the grpc.ServiceDesc for DatabaseService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var DatabaseService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "highway.database.v1.DatabaseService",
+ HandlerType: (*DatabaseServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "Health",
+ Handler: _DatabaseService_Health_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "highway/database/v1/service.proto",
+}
diff --git a/api/highway/storage/v1/service.pulsar.go b/api/highway/storage/v1/service.pulsar.go
new file mode 100644
index 000000000..f6e85d0bd
--- /dev/null
+++ b/api/highway/storage/v1/service.pulsar.go
@@ -0,0 +1,2157 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package storagev1
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/sonr-io/api/google/api"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_GetCIDRequest protoreflect.MessageDescriptor
+ fd_GetCIDRequest_cid protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_storage_v1_service_proto_init()
+ md_GetCIDRequest = File_highway_storage_v1_service_proto.Messages().ByName("GetCIDRequest")
+ fd_GetCIDRequest_cid = md_GetCIDRequest.Fields().ByName("cid")
+}
+
+var _ protoreflect.Message = (*fastReflection_GetCIDRequest)(nil)
+
+type fastReflection_GetCIDRequest GetCIDRequest
+
+func (x *GetCIDRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_GetCIDRequest)(x)
+}
+
+func (x *GetCIDRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_storage_v1_service_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_GetCIDRequest_messageType fastReflection_GetCIDRequest_messageType
+var _ protoreflect.MessageType = fastReflection_GetCIDRequest_messageType{}
+
+type fastReflection_GetCIDRequest_messageType struct{}
+
+func (x fastReflection_GetCIDRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_GetCIDRequest)(nil)
+}
+func (x fastReflection_GetCIDRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_GetCIDRequest)
+}
+func (x fastReflection_GetCIDRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_GetCIDRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_GetCIDRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_GetCIDRequest
+}
+
+// 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_GetCIDRequest) Type() protoreflect.MessageType {
+ return _fastReflection_GetCIDRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_GetCIDRequest) New() protoreflect.Message {
+ return new(fastReflection_GetCIDRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_GetCIDRequest) Interface() protoreflect.ProtoMessage {
+ return (*GetCIDRequest)(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_GetCIDRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Cid != "" {
+ value := protoreflect.ValueOfString(x.Cid)
+ if !f(fd_GetCIDRequest_cid, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GetCIDRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.storage.v1.GetCIDRequest.cid":
+ return x.Cid != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetCIDRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.storage.v1.GetCIDRequest.cid":
+ x.Cid = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_GetCIDRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.storage.v1.GetCIDRequest.cid":
+ value := x.Cid
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetCIDRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.storage.v1.GetCIDRequest.cid":
+ x.Cid = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetCIDRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.storage.v1.GetCIDRequest.cid":
+ panic(fmt.Errorf("field cid of message highway.storage.v1.GetCIDRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_GetCIDRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.storage.v1.GetCIDRequest.cid":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_GetCIDRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.storage.v1.GetCIDRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_GetCIDRequest) 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_GetCIDRequest) 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_GetCIDRequest) 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_GetCIDRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*GetCIDRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Cid)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*GetCIDRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Cid) > 0 {
+ i -= len(x.Cid)
+ copy(dAtA[i:], x.Cid)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Cid)))
+ 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().(*GetCIDRequest)
+ 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: GetCIDRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetCIDRequest: 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 Cid", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Cid = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_GetCIDResponse protoreflect.MessageDescriptor
+ fd_GetCIDResponse_cid protoreflect.FieldDescriptor
+ fd_GetCIDResponse_data protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_storage_v1_service_proto_init()
+ md_GetCIDResponse = File_highway_storage_v1_service_proto.Messages().ByName("GetCIDResponse")
+ fd_GetCIDResponse_cid = md_GetCIDResponse.Fields().ByName("cid")
+ fd_GetCIDResponse_data = md_GetCIDResponse.Fields().ByName("data")
+}
+
+var _ protoreflect.Message = (*fastReflection_GetCIDResponse)(nil)
+
+type fastReflection_GetCIDResponse GetCIDResponse
+
+func (x *GetCIDResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_GetCIDResponse)(x)
+}
+
+func (x *GetCIDResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_storage_v1_service_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_GetCIDResponse_messageType fastReflection_GetCIDResponse_messageType
+var _ protoreflect.MessageType = fastReflection_GetCIDResponse_messageType{}
+
+type fastReflection_GetCIDResponse_messageType struct{}
+
+func (x fastReflection_GetCIDResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_GetCIDResponse)(nil)
+}
+func (x fastReflection_GetCIDResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_GetCIDResponse)
+}
+func (x fastReflection_GetCIDResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_GetCIDResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_GetCIDResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_GetCIDResponse
+}
+
+// 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_GetCIDResponse) Type() protoreflect.MessageType {
+ return _fastReflection_GetCIDResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_GetCIDResponse) New() protoreflect.Message {
+ return new(fastReflection_GetCIDResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_GetCIDResponse) Interface() protoreflect.ProtoMessage {
+ return (*GetCIDResponse)(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_GetCIDResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Cid != "" {
+ value := protoreflect.ValueOfString(x.Cid)
+ if !f(fd_GetCIDResponse_cid, value) {
+ return
+ }
+ }
+ if x.Data != "" {
+ value := protoreflect.ValueOfString(x.Data)
+ if !f(fd_GetCIDResponse_data, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GetCIDResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.storage.v1.GetCIDResponse.cid":
+ return x.Cid != ""
+ case "highway.storage.v1.GetCIDResponse.data":
+ return x.Data != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetCIDResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.storage.v1.GetCIDResponse.cid":
+ x.Cid = ""
+ case "highway.storage.v1.GetCIDResponse.data":
+ x.Data = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_GetCIDResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.storage.v1.GetCIDResponse.cid":
+ value := x.Cid
+ return protoreflect.ValueOfString(value)
+ case "highway.storage.v1.GetCIDResponse.data":
+ value := x.Data
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetCIDResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.storage.v1.GetCIDResponse.cid":
+ x.Cid = value.Interface().(string)
+ case "highway.storage.v1.GetCIDResponse.data":
+ x.Data = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetCIDResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.storage.v1.GetCIDResponse.cid":
+ panic(fmt.Errorf("field cid of message highway.storage.v1.GetCIDResponse is not mutable"))
+ case "highway.storage.v1.GetCIDResponse.data":
+ panic(fmt.Errorf("field data of message highway.storage.v1.GetCIDResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_GetCIDResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.storage.v1.GetCIDResponse.cid":
+ return protoreflect.ValueOfString("")
+ case "highway.storage.v1.GetCIDResponse.data":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.GetCIDResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.GetCIDResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_GetCIDResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.storage.v1.GetCIDResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_GetCIDResponse) 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_GetCIDResponse) 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_GetCIDResponse) 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_GetCIDResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*GetCIDResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Cid)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Data)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*GetCIDResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Data) > 0 {
+ i -= len(x.Data)
+ copy(dAtA[i:], x.Data)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Cid) > 0 {
+ i -= len(x.Cid)
+ copy(dAtA[i:], x.Cid)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Cid)))
+ i--
+ dAtA[i] = 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().(*GetCIDResponse)
+ 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: GetCIDResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetCIDResponse: 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 Cid", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Cid = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", 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.Data = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_PutDataRequest protoreflect.MessageDescriptor
+ fd_PutDataRequest_cid protoreflect.FieldDescriptor
+ fd_PutDataRequest_data protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_storage_v1_service_proto_init()
+ md_PutDataRequest = File_highway_storage_v1_service_proto.Messages().ByName("PutDataRequest")
+ fd_PutDataRequest_cid = md_PutDataRequest.Fields().ByName("cid")
+ fd_PutDataRequest_data = md_PutDataRequest.Fields().ByName("data")
+}
+
+var _ protoreflect.Message = (*fastReflection_PutDataRequest)(nil)
+
+type fastReflection_PutDataRequest PutDataRequest
+
+func (x *PutDataRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_PutDataRequest)(x)
+}
+
+func (x *PutDataRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_storage_v1_service_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_PutDataRequest_messageType fastReflection_PutDataRequest_messageType
+var _ protoreflect.MessageType = fastReflection_PutDataRequest_messageType{}
+
+type fastReflection_PutDataRequest_messageType struct{}
+
+func (x fastReflection_PutDataRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_PutDataRequest)(nil)
+}
+func (x fastReflection_PutDataRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_PutDataRequest)
+}
+func (x fastReflection_PutDataRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_PutDataRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_PutDataRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_PutDataRequest
+}
+
+// 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_PutDataRequest) Type() protoreflect.MessageType {
+ return _fastReflection_PutDataRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_PutDataRequest) New() protoreflect.Message {
+ return new(fastReflection_PutDataRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_PutDataRequest) Interface() protoreflect.ProtoMessage {
+ return (*PutDataRequest)(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_PutDataRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Cid != "" {
+ value := protoreflect.ValueOfString(x.Cid)
+ if !f(fd_PutDataRequest_cid, value) {
+ return
+ }
+ }
+ if x.Data != "" {
+ value := protoreflect.ValueOfString(x.Data)
+ if !f(fd_PutDataRequest_data, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_PutDataRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.storage.v1.PutDataRequest.cid":
+ return x.Cid != ""
+ case "highway.storage.v1.PutDataRequest.data":
+ return x.Data != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_PutDataRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.storage.v1.PutDataRequest.cid":
+ x.Cid = ""
+ case "highway.storage.v1.PutDataRequest.data":
+ x.Data = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_PutDataRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.storage.v1.PutDataRequest.cid":
+ value := x.Cid
+ return protoreflect.ValueOfString(value)
+ case "highway.storage.v1.PutDataRequest.data":
+ value := x.Data
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_PutDataRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.storage.v1.PutDataRequest.cid":
+ x.Cid = value.Interface().(string)
+ case "highway.storage.v1.PutDataRequest.data":
+ x.Data = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_PutDataRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.storage.v1.PutDataRequest.cid":
+ panic(fmt.Errorf("field cid of message highway.storage.v1.PutDataRequest is not mutable"))
+ case "highway.storage.v1.PutDataRequest.data":
+ panic(fmt.Errorf("field data of message highway.storage.v1.PutDataRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_PutDataRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.storage.v1.PutDataRequest.cid":
+ return protoreflect.ValueOfString("")
+ case "highway.storage.v1.PutDataRequest.data":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataRequest"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_PutDataRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.storage.v1.PutDataRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_PutDataRequest) 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_PutDataRequest) 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_PutDataRequest) 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_PutDataRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*PutDataRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Cid)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Data)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*PutDataRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Data) > 0 {
+ i -= len(x.Data)
+ copy(dAtA[i:], x.Data)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Cid) > 0 {
+ i -= len(x.Cid)
+ copy(dAtA[i:], x.Cid)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Cid)))
+ i--
+ dAtA[i] = 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().(*PutDataRequest)
+ 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: PutDataRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PutDataRequest: 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 Cid", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Cid = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", 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.Data = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_PutDataResponse protoreflect.MessageDescriptor
+ fd_PutDataResponse_cid protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_storage_v1_service_proto_init()
+ md_PutDataResponse = File_highway_storage_v1_service_proto.Messages().ByName("PutDataResponse")
+ fd_PutDataResponse_cid = md_PutDataResponse.Fields().ByName("cid")
+}
+
+var _ protoreflect.Message = (*fastReflection_PutDataResponse)(nil)
+
+type fastReflection_PutDataResponse PutDataResponse
+
+func (x *PutDataResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_PutDataResponse)(x)
+}
+
+func (x *PutDataResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_storage_v1_service_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_PutDataResponse_messageType fastReflection_PutDataResponse_messageType
+var _ protoreflect.MessageType = fastReflection_PutDataResponse_messageType{}
+
+type fastReflection_PutDataResponse_messageType struct{}
+
+func (x fastReflection_PutDataResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_PutDataResponse)(nil)
+}
+func (x fastReflection_PutDataResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_PutDataResponse)
+}
+func (x fastReflection_PutDataResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_PutDataResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_PutDataResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_PutDataResponse
+}
+
+// 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_PutDataResponse) Type() protoreflect.MessageType {
+ return _fastReflection_PutDataResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_PutDataResponse) New() protoreflect.Message {
+ return new(fastReflection_PutDataResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_PutDataResponse) Interface() protoreflect.ProtoMessage {
+ return (*PutDataResponse)(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_PutDataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Cid != "" {
+ value := protoreflect.ValueOfString(x.Cid)
+ if !f(fd_PutDataResponse_cid, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_PutDataResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.storage.v1.PutDataResponse.cid":
+ return x.Cid != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_PutDataResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.storage.v1.PutDataResponse.cid":
+ x.Cid = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_PutDataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.storage.v1.PutDataResponse.cid":
+ value := x.Cid
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_PutDataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.storage.v1.PutDataResponse.cid":
+ x.Cid = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_PutDataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.storage.v1.PutDataResponse.cid":
+ panic(fmt.Errorf("field cid of message highway.storage.v1.PutDataResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_PutDataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.storage.v1.PutDataResponse.cid":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.storage.v1.PutDataResponse"))
+ }
+ panic(fmt.Errorf("message highway.storage.v1.PutDataResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_PutDataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.storage.v1.PutDataResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_PutDataResponse) 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_PutDataResponse) 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_PutDataResponse) 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_PutDataResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*PutDataResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Cid)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*PutDataResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Cid) > 0 {
+ i -= len(x.Cid)
+ copy(dAtA[i:], x.Cid)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Cid)))
+ 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().(*PutDataResponse)
+ 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: PutDataResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PutDataResponse: 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 Cid", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Cid = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: highway/storage/v1/service.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GetCIDRequest is the request type for the GetCID method.
+type GetCIDRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // cid is the content identifier of the data to retrieve.
+ Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
+}
+
+func (x *GetCIDRequest) Reset() {
+ *x = GetCIDRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_storage_v1_service_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetCIDRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetCIDRequest) ProtoMessage() {}
+
+// Deprecated: Use GetCIDRequest.ProtoReflect.Descriptor instead.
+func (*GetCIDRequest) Descriptor() ([]byte, []int) {
+ return file_highway_storage_v1_service_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GetCIDRequest) GetCid() string {
+ if x != nil {
+ return x.Cid
+ }
+ return ""
+}
+
+// GetCIDResponse is the response type for the GetCID method.
+type GetCIDResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // cid is the content identifier of the retrieved data.
+ Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
+ // data is the retrieved data.
+ Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
+}
+
+func (x *GetCIDResponse) Reset() {
+ *x = GetCIDResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_storage_v1_service_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetCIDResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetCIDResponse) ProtoMessage() {}
+
+// Deprecated: Use GetCIDResponse.ProtoReflect.Descriptor instead.
+func (*GetCIDResponse) Descriptor() ([]byte, []int) {
+ return file_highway_storage_v1_service_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *GetCIDResponse) GetCid() string {
+ if x != nil {
+ return x.Cid
+ }
+ return ""
+}
+
+func (x *GetCIDResponse) GetData() string {
+ if x != nil {
+ return x.Data
+ }
+ return ""
+}
+
+// PutDataRequest is the request type for the PutData method.
+type PutDataRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // cid is the content identifier to associate with the data.
+ Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
+ // data is the data to store.
+ Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
+}
+
+func (x *PutDataRequest) Reset() {
+ *x = PutDataRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_storage_v1_service_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *PutDataRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PutDataRequest) ProtoMessage() {}
+
+// Deprecated: Use PutDataRequest.ProtoReflect.Descriptor instead.
+func (*PutDataRequest) Descriptor() ([]byte, []int) {
+ return file_highway_storage_v1_service_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *PutDataRequest) GetCid() string {
+ if x != nil {
+ return x.Cid
+ }
+ return ""
+}
+
+func (x *PutDataRequest) GetData() string {
+ if x != nil {
+ return x.Data
+ }
+ return ""
+}
+
+// PutDataResponse is the response type for the PutData method.
+type PutDataResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // cid is the content identifier associated with the stored data.
+ Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
+}
+
+func (x *PutDataResponse) Reset() {
+ *x = PutDataResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_storage_v1_service_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *PutDataResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PutDataResponse) ProtoMessage() {}
+
+// Deprecated: Use PutDataResponse.ProtoReflect.Descriptor instead.
+func (*PutDataResponse) Descriptor() ([]byte, []int) {
+ return file_highway_storage_v1_service_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *PutDataResponse) GetCid() string {
+ if x != nil {
+ return x.Cid
+ }
+ return ""
+}
+
+var File_highway_storage_v1_service_proto protoreflect.FileDescriptor
+
+var file_highway_storage_v1_service_proto_rawDesc = []byte{
+ 0x0a, 0x20, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67,
+ 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x12, 0x12, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x74, 0x6f, 0x72,
+ 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x21, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x43, 0x49, 0x44, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x36, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x43, 0x49,
+ 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64,
+ 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22,
+ 0x36, 0x0a, 0x0e, 0x50, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
+ 0x63, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x23, 0x0a, 0x0f, 0x50, 0x75, 0x74, 0x44, 0x61,
+ 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69,
+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x32, 0xe3, 0x01, 0x0a,
+ 0x0e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
+ 0x66, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x43, 0x49, 0x44, 0x12, 0x21, 0x2e, 0x68, 0x69, 0x67, 0x68,
+ 0x77, 0x61, 0x79, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
+ 0x65, 0x74, 0x43, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x68,
+ 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x69,
+ 0x64, 0x2f, 0x7b, 0x63, 0x69, 0x64, 0x7d, 0x12, 0x69, 0x0a, 0x07, 0x50, 0x75, 0x74, 0x44, 0x61,
+ 0x74, 0x61, 0x12, 0x22, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x74, 0x6f,
+ 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79,
+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x74, 0x44,
+ 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x0f, 0x22, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x69, 0x64, 0x2f, 0x7b, 0x63, 0x69,
+ 0x64, 0x7d, 0x42, 0xc5, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77,
+ 0x61, 0x79, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x67,
+ 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69,
+ 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x73, 0x74,
+ 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
+ 0x76, 0x31, 0xa2, 0x02, 0x03, 0x48, 0x53, 0x58, 0xaa, 0x02, 0x12, 0x48, 0x69, 0x67, 0x68, 0x77,
+ 0x61, 0x79, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12,
+ 0x48, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5c,
+ 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x5c, 0x53, 0x74, 0x6f,
+ 0x72, 0x61, 0x67, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x3a, 0x3a, 0x53,
+ 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x33,
+}
+
+var (
+ file_highway_storage_v1_service_proto_rawDescOnce sync.Once
+ file_highway_storage_v1_service_proto_rawDescData = file_highway_storage_v1_service_proto_rawDesc
+)
+
+func file_highway_storage_v1_service_proto_rawDescGZIP() []byte {
+ file_highway_storage_v1_service_proto_rawDescOnce.Do(func() {
+ file_highway_storage_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_highway_storage_v1_service_proto_rawDescData)
+ })
+ return file_highway_storage_v1_service_proto_rawDescData
+}
+
+var file_highway_storage_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
+var file_highway_storage_v1_service_proto_goTypes = []interface{}{
+ (*GetCIDRequest)(nil), // 0: highway.storage.v1.GetCIDRequest
+ (*GetCIDResponse)(nil), // 1: highway.storage.v1.GetCIDResponse
+ (*PutDataRequest)(nil), // 2: highway.storage.v1.PutDataRequest
+ (*PutDataResponse)(nil), // 3: highway.storage.v1.PutDataResponse
+}
+var file_highway_storage_v1_service_proto_depIdxs = []int32{
+ 0, // 0: highway.storage.v1.StorageService.GetCID:input_type -> highway.storage.v1.GetCIDRequest
+ 2, // 1: highway.storage.v1.StorageService.PutData:input_type -> highway.storage.v1.PutDataRequest
+ 1, // 2: highway.storage.v1.StorageService.GetCID:output_type -> highway.storage.v1.GetCIDResponse
+ 3, // 3: highway.storage.v1.StorageService.PutData:output_type -> highway.storage.v1.PutDataResponse
+ 2, // [2:4] is the sub-list for method output_type
+ 0, // [0:2] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_highway_storage_v1_service_proto_init() }
+func file_highway_storage_v1_service_proto_init() {
+ if File_highway_storage_v1_service_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_highway_storage_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetCIDRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_storage_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetCIDResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_storage_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*PutDataRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_storage_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*PutDataResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_highway_storage_v1_service_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 4,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_highway_storage_v1_service_proto_goTypes,
+ DependencyIndexes: file_highway_storage_v1_service_proto_depIdxs,
+ MessageInfos: file_highway_storage_v1_service_proto_msgTypes,
+ }.Build()
+ File_highway_storage_v1_service_proto = out.File
+ file_highway_storage_v1_service_proto_rawDesc = nil
+ file_highway_storage_v1_service_proto_goTypes = nil
+ file_highway_storage_v1_service_proto_depIdxs = nil
+}
diff --git a/api/highway/storage/v1/service_grpc.pb.go b/api/highway/storage/v1/service_grpc.pb.go
new file mode 100644
index 000000000..a43e37ede
--- /dev/null
+++ b/api/highway/storage/v1/service_grpc.pb.go
@@ -0,0 +1,150 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: highway/storage/v1/service.proto
+
+package storagev1
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ StorageService_GetCID_FullMethodName = "/highway.storage.v1.StorageService/GetCID"
+ StorageService_PutData_FullMethodName = "/highway.storage.v1.StorageService/PutData"
+)
+
+// StorageServiceClient is the client API for StorageService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type StorageServiceClient interface {
+ // GetCID retrieves data associated with a given CID.
+ GetCID(ctx context.Context, in *GetCIDRequest, opts ...grpc.CallOption) (*GetCIDResponse, error)
+ // PutData stores data and associates it with a given CID.
+ PutData(ctx context.Context, in *PutDataRequest, opts ...grpc.CallOption) (*PutDataResponse, error)
+}
+
+type storageServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewStorageServiceClient(cc grpc.ClientConnInterface) StorageServiceClient {
+ return &storageServiceClient{cc}
+}
+
+func (c *storageServiceClient) GetCID(ctx context.Context, in *GetCIDRequest, opts ...grpc.CallOption) (*GetCIDResponse, error) {
+ out := new(GetCIDResponse)
+ err := c.cc.Invoke(ctx, StorageService_GetCID_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *storageServiceClient) PutData(ctx context.Context, in *PutDataRequest, opts ...grpc.CallOption) (*PutDataResponse, error) {
+ out := new(PutDataResponse)
+ err := c.cc.Invoke(ctx, StorageService_PutData_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// StorageServiceServer is the server API for StorageService service.
+// All implementations must embed UnimplementedStorageServiceServer
+// for forward compatibility
+type StorageServiceServer interface {
+ // GetCID retrieves data associated with a given CID.
+ GetCID(context.Context, *GetCIDRequest) (*GetCIDResponse, error)
+ // PutData stores data and associates it with a given CID.
+ PutData(context.Context, *PutDataRequest) (*PutDataResponse, error)
+ mustEmbedUnimplementedStorageServiceServer()
+}
+
+// UnimplementedStorageServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedStorageServiceServer struct {
+}
+
+func (UnimplementedStorageServiceServer) GetCID(context.Context, *GetCIDRequest) (*GetCIDResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetCID not implemented")
+}
+func (UnimplementedStorageServiceServer) PutData(context.Context, *PutDataRequest) (*PutDataResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method PutData not implemented")
+}
+func (UnimplementedStorageServiceServer) mustEmbedUnimplementedStorageServiceServer() {}
+
+// UnsafeStorageServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to StorageServiceServer will
+// result in compilation errors.
+type UnsafeStorageServiceServer interface {
+ mustEmbedUnimplementedStorageServiceServer()
+}
+
+func RegisterStorageServiceServer(s grpc.ServiceRegistrar, srv StorageServiceServer) {
+ s.RegisterService(&StorageService_ServiceDesc, srv)
+}
+
+func _StorageService_GetCID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetCIDRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(StorageServiceServer).GetCID(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: StorageService_GetCID_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(StorageServiceServer).GetCID(ctx, req.(*GetCIDRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _StorageService_PutData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(PutDataRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(StorageServiceServer).PutData(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: StorageService_PutData_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(StorageServiceServer).PutData(ctx, req.(*PutDataRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// StorageService_ServiceDesc is the grpc.ServiceDesc for StorageService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var StorageService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "highway.storage.v1.StorageService",
+ HandlerType: (*StorageServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "GetCID",
+ Handler: _StorageService_GetCID_Handler,
+ },
+ {
+ MethodName: "PutData",
+ Handler: _StorageService_PutData_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "highway/storage/v1/service.proto",
+}
diff --git a/api/highway/wallet/v1/service.pulsar.go b/api/highway/wallet/v1/service.pulsar.go
new file mode 100644
index 000000000..02910a6bb
--- /dev/null
+++ b/api/highway/wallet/v1/service.pulsar.go
@@ -0,0 +1,7706 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package walletv1
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ crypto "github.com/sonr-io/api/common/crypto"
+ _ "github.com/sonr-io/api/google/api"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_CreateAccountRequest protoreflect.MessageDescriptor
+ fd_CreateAccountRequest_jwt protoreflect.FieldDescriptor
+ fd_CreateAccountRequest_name protoreflect.FieldDescriptor
+ fd_CreateAccountRequest_coin_type protoreflect.FieldDescriptor
+ fd_CreateAccountRequest_network protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_CreateAccountRequest = File_highway_wallet_v1_service_proto.Messages().ByName("CreateAccountRequest")
+ fd_CreateAccountRequest_jwt = md_CreateAccountRequest.Fields().ByName("jwt")
+ fd_CreateAccountRequest_name = md_CreateAccountRequest.Fields().ByName("name")
+ fd_CreateAccountRequest_coin_type = md_CreateAccountRequest.Fields().ByName("coin_type")
+ fd_CreateAccountRequest_network = md_CreateAccountRequest.Fields().ByName("network")
+}
+
+var _ protoreflect.Message = (*fastReflection_CreateAccountRequest)(nil)
+
+type fastReflection_CreateAccountRequest CreateAccountRequest
+
+func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_CreateAccountRequest)(x)
+}
+
+func (x *CreateAccountRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_CreateAccountRequest_messageType fastReflection_CreateAccountRequest_messageType
+var _ protoreflect.MessageType = fastReflection_CreateAccountRequest_messageType{}
+
+type fastReflection_CreateAccountRequest_messageType struct{}
+
+func (x fastReflection_CreateAccountRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_CreateAccountRequest)(nil)
+}
+func (x fastReflection_CreateAccountRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_CreateAccountRequest)
+}
+func (x fastReflection_CreateAccountRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_CreateAccountRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_CreateAccountRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_CreateAccountRequest
+}
+
+// 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_CreateAccountRequest) Type() protoreflect.MessageType {
+ return _fastReflection_CreateAccountRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_CreateAccountRequest) New() protoreflect.Message {
+ return new(fastReflection_CreateAccountRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_CreateAccountRequest) Interface() protoreflect.ProtoMessage {
+ return (*CreateAccountRequest)(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_CreateAccountRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Jwt != "" {
+ value := protoreflect.ValueOfString(x.Jwt)
+ if !f(fd_CreateAccountRequest_jwt, value) {
+ return
+ }
+ }
+ if x.Name != "" {
+ value := protoreflect.ValueOfString(x.Name)
+ if !f(fd_CreateAccountRequest_name, value) {
+ return
+ }
+ }
+ if x.CoinType != 0 {
+ value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.CoinType))
+ if !f(fd_CreateAccountRequest_coin_type, value) {
+ return
+ }
+ }
+ if x.Network != "" {
+ value := protoreflect.ValueOfString(x.Network)
+ if !f(fd_CreateAccountRequest_network, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_CreateAccountRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.CreateAccountRequest.jwt":
+ return x.Jwt != ""
+ case "highway.wallet.v1.CreateAccountRequest.name":
+ return x.Name != ""
+ case "highway.wallet.v1.CreateAccountRequest.coin_type":
+ return x.CoinType != 0
+ case "highway.wallet.v1.CreateAccountRequest.network":
+ return x.Network != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_CreateAccountRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.CreateAccountRequest.jwt":
+ x.Jwt = ""
+ case "highway.wallet.v1.CreateAccountRequest.name":
+ x.Name = ""
+ case "highway.wallet.v1.CreateAccountRequest.coin_type":
+ x.CoinType = 0
+ case "highway.wallet.v1.CreateAccountRequest.network":
+ x.Network = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_CreateAccountRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.CreateAccountRequest.jwt":
+ value := x.Jwt
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.CreateAccountRequest.name":
+ value := x.Name
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.CreateAccountRequest.coin_type":
+ value := x.CoinType
+ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
+ case "highway.wallet.v1.CreateAccountRequest.network":
+ value := x.Network
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_CreateAccountRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.CreateAccountRequest.jwt":
+ x.Jwt = value.Interface().(string)
+ case "highway.wallet.v1.CreateAccountRequest.name":
+ x.Name = value.Interface().(string)
+ case "highway.wallet.v1.CreateAccountRequest.coin_type":
+ x.CoinType = (crypto.CoinType)(value.Enum())
+ case "highway.wallet.v1.CreateAccountRequest.network":
+ x.Network = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_CreateAccountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.CreateAccountRequest.jwt":
+ panic(fmt.Errorf("field jwt of message highway.wallet.v1.CreateAccountRequest is not mutable"))
+ case "highway.wallet.v1.CreateAccountRequest.name":
+ panic(fmt.Errorf("field name of message highway.wallet.v1.CreateAccountRequest is not mutable"))
+ case "highway.wallet.v1.CreateAccountRequest.coin_type":
+ panic(fmt.Errorf("field coin_type of message highway.wallet.v1.CreateAccountRequest is not mutable"))
+ case "highway.wallet.v1.CreateAccountRequest.network":
+ panic(fmt.Errorf("field network of message highway.wallet.v1.CreateAccountRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_CreateAccountRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.CreateAccountRequest.jwt":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.CreateAccountRequest.name":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.CreateAccountRequest.coin_type":
+ return protoreflect.ValueOfEnum(0)
+ case "highway.wallet.v1.CreateAccountRequest.network":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_CreateAccountRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.CreateAccountRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_CreateAccountRequest) 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_CreateAccountRequest) 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_CreateAccountRequest) 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_CreateAccountRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*CreateAccountRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Jwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Name)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.CoinType != 0 {
+ n += 1 + runtime.Sov(uint64(x.CoinType))
+ }
+ l = len(x.Network)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*CreateAccountRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Network) > 0 {
+ i -= len(x.Network)
+ copy(dAtA[i:], x.Network)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Network)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if x.CoinType != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.CoinType))
+ i--
+ dAtA[i] = 0x18
+ }
+ if len(x.Name) > 0 {
+ i -= len(x.Name)
+ copy(dAtA[i:], x.Name)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Jwt) > 0 {
+ i -= len(x.Jwt)
+ copy(dAtA[i:], x.Jwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jwt)))
+ 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().(*CreateAccountRequest)
+ 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: CreateAccountRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CreateAccountRequest: 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 Jwt", 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.Jwt = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CoinType", wireType)
+ }
+ x.CoinType = 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.CoinType |= crypto.CoinType(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Network", 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.Network = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_CreateAccountResponse protoreflect.MessageDescriptor
+ fd_CreateAccountResponse_success protoreflect.FieldDescriptor
+ fd_CreateAccountResponse_message protoreflect.FieldDescriptor
+ fd_CreateAccountResponse_address protoreflect.FieldDescriptor
+ fd_CreateAccountResponse_coin_type protoreflect.FieldDescriptor
+ fd_CreateAccountResponse_owner protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_CreateAccountResponse = File_highway_wallet_v1_service_proto.Messages().ByName("CreateAccountResponse")
+ fd_CreateAccountResponse_success = md_CreateAccountResponse.Fields().ByName("success")
+ fd_CreateAccountResponse_message = md_CreateAccountResponse.Fields().ByName("message")
+ fd_CreateAccountResponse_address = md_CreateAccountResponse.Fields().ByName("address")
+ fd_CreateAccountResponse_coin_type = md_CreateAccountResponse.Fields().ByName("coin_type")
+ fd_CreateAccountResponse_owner = md_CreateAccountResponse.Fields().ByName("owner")
+}
+
+var _ protoreflect.Message = (*fastReflection_CreateAccountResponse)(nil)
+
+type fastReflection_CreateAccountResponse CreateAccountResponse
+
+func (x *CreateAccountResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_CreateAccountResponse)(x)
+}
+
+func (x *CreateAccountResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_CreateAccountResponse_messageType fastReflection_CreateAccountResponse_messageType
+var _ protoreflect.MessageType = fastReflection_CreateAccountResponse_messageType{}
+
+type fastReflection_CreateAccountResponse_messageType struct{}
+
+func (x fastReflection_CreateAccountResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_CreateAccountResponse)(nil)
+}
+func (x fastReflection_CreateAccountResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_CreateAccountResponse)
+}
+func (x fastReflection_CreateAccountResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_CreateAccountResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_CreateAccountResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_CreateAccountResponse
+}
+
+// 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_CreateAccountResponse) Type() protoreflect.MessageType {
+ return _fastReflection_CreateAccountResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_CreateAccountResponse) New() protoreflect.Message {
+ return new(fastReflection_CreateAccountResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_CreateAccountResponse) Interface() protoreflect.ProtoMessage {
+ return (*CreateAccountResponse)(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_CreateAccountResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_CreateAccountResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_CreateAccountResponse_message, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_CreateAccountResponse_address, value) {
+ return
+ }
+ }
+ if x.CoinType != 0 {
+ value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.CoinType))
+ if !f(fd_CreateAccountResponse_coin_type, value) {
+ return
+ }
+ }
+ if x.Owner != "" {
+ value := protoreflect.ValueOfString(x.Owner)
+ if !f(fd_CreateAccountResponse_owner, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_CreateAccountResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.CreateAccountResponse.success":
+ return x.Success != false
+ case "highway.wallet.v1.CreateAccountResponse.message":
+ return x.Message != ""
+ case "highway.wallet.v1.CreateAccountResponse.address":
+ return x.Address != ""
+ case "highway.wallet.v1.CreateAccountResponse.coin_type":
+ return x.CoinType != 0
+ case "highway.wallet.v1.CreateAccountResponse.owner":
+ return x.Owner != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_CreateAccountResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.CreateAccountResponse.success":
+ x.Success = false
+ case "highway.wallet.v1.CreateAccountResponse.message":
+ x.Message = ""
+ case "highway.wallet.v1.CreateAccountResponse.address":
+ x.Address = ""
+ case "highway.wallet.v1.CreateAccountResponse.coin_type":
+ x.CoinType = 0
+ case "highway.wallet.v1.CreateAccountResponse.owner":
+ x.Owner = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_CreateAccountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.CreateAccountResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.wallet.v1.CreateAccountResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.CreateAccountResponse.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.CreateAccountResponse.coin_type":
+ value := x.CoinType
+ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
+ case "highway.wallet.v1.CreateAccountResponse.owner":
+ value := x.Owner
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_CreateAccountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.CreateAccountResponse.success":
+ x.Success = value.Bool()
+ case "highway.wallet.v1.CreateAccountResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.wallet.v1.CreateAccountResponse.address":
+ x.Address = value.Interface().(string)
+ case "highway.wallet.v1.CreateAccountResponse.coin_type":
+ x.CoinType = (crypto.CoinType)(value.Enum())
+ case "highway.wallet.v1.CreateAccountResponse.owner":
+ x.Owner = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_CreateAccountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.CreateAccountResponse.success":
+ panic(fmt.Errorf("field success of message highway.wallet.v1.CreateAccountResponse is not mutable"))
+ case "highway.wallet.v1.CreateAccountResponse.message":
+ panic(fmt.Errorf("field message of message highway.wallet.v1.CreateAccountResponse is not mutable"))
+ case "highway.wallet.v1.CreateAccountResponse.address":
+ panic(fmt.Errorf("field address of message highway.wallet.v1.CreateAccountResponse is not mutable"))
+ case "highway.wallet.v1.CreateAccountResponse.coin_type":
+ panic(fmt.Errorf("field coin_type of message highway.wallet.v1.CreateAccountResponse is not mutable"))
+ case "highway.wallet.v1.CreateAccountResponse.owner":
+ panic(fmt.Errorf("field owner of message highway.wallet.v1.CreateAccountResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_CreateAccountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.CreateAccountResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.wallet.v1.CreateAccountResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.CreateAccountResponse.address":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.CreateAccountResponse.coin_type":
+ return protoreflect.ValueOfEnum(0)
+ case "highway.wallet.v1.CreateAccountResponse.owner":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.CreateAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.CreateAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_CreateAccountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.CreateAccountResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_CreateAccountResponse) 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_CreateAccountResponse) 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_CreateAccountResponse) 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_CreateAccountResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*CreateAccountResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.CoinType != 0 {
+ n += 1 + runtime.Sov(uint64(x.CoinType))
+ }
+ l = len(x.Owner)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*CreateAccountResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Owner) > 0 {
+ i -= len(x.Owner)
+ copy(dAtA[i:], x.Owner)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if x.CoinType != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.CoinType))
+ i--
+ dAtA[i] = 0x20
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*CreateAccountResponse)
+ 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: CreateAccountResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CreateAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CoinType", wireType)
+ }
+ x.CoinType = 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.CoinType |= crypto.CoinType(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_GetAccountRequest protoreflect.MessageDescriptor
+ fd_GetAccountRequest_jwt protoreflect.FieldDescriptor
+ fd_GetAccountRequest_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_GetAccountRequest = File_highway_wallet_v1_service_proto.Messages().ByName("GetAccountRequest")
+ fd_GetAccountRequest_jwt = md_GetAccountRequest.Fields().ByName("jwt")
+ fd_GetAccountRequest_address = md_GetAccountRequest.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_GetAccountRequest)(nil)
+
+type fastReflection_GetAccountRequest GetAccountRequest
+
+func (x *GetAccountRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_GetAccountRequest)(x)
+}
+
+func (x *GetAccountRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_GetAccountRequest_messageType fastReflection_GetAccountRequest_messageType
+var _ protoreflect.MessageType = fastReflection_GetAccountRequest_messageType{}
+
+type fastReflection_GetAccountRequest_messageType struct{}
+
+func (x fastReflection_GetAccountRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_GetAccountRequest)(nil)
+}
+func (x fastReflection_GetAccountRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_GetAccountRequest)
+}
+func (x fastReflection_GetAccountRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_GetAccountRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_GetAccountRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_GetAccountRequest
+}
+
+// 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_GetAccountRequest) Type() protoreflect.MessageType {
+ return _fastReflection_GetAccountRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_GetAccountRequest) New() protoreflect.Message {
+ return new(fastReflection_GetAccountRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_GetAccountRequest) Interface() protoreflect.ProtoMessage {
+ return (*GetAccountRequest)(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_GetAccountRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Jwt != "" {
+ value := protoreflect.ValueOfString(x.Jwt)
+ if !f(fd_GetAccountRequest_jwt, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_GetAccountRequest_address, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GetAccountRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.GetAccountRequest.jwt":
+ return x.Jwt != ""
+ case "highway.wallet.v1.GetAccountRequest.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetAccountRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.GetAccountRequest.jwt":
+ x.Jwt = ""
+ case "highway.wallet.v1.GetAccountRequest.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_GetAccountRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.GetAccountRequest.jwt":
+ value := x.Jwt
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.GetAccountRequest.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetAccountRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.GetAccountRequest.jwt":
+ x.Jwt = value.Interface().(string)
+ case "highway.wallet.v1.GetAccountRequest.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetAccountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.GetAccountRequest.jwt":
+ panic(fmt.Errorf("field jwt of message highway.wallet.v1.GetAccountRequest is not mutable"))
+ case "highway.wallet.v1.GetAccountRequest.address":
+ panic(fmt.Errorf("field address of message highway.wallet.v1.GetAccountRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_GetAccountRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.GetAccountRequest.jwt":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.GetAccountRequest.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_GetAccountRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.GetAccountRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_GetAccountRequest) 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_GetAccountRequest) 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_GetAccountRequest) 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_GetAccountRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*GetAccountRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Jwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*GetAccountRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Jwt) > 0 {
+ i -= len(x.Jwt)
+ copy(dAtA[i:], x.Jwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jwt)))
+ 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().(*GetAccountRequest)
+ 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: GetAccountRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAccountRequest: 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 Jwt", 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.Jwt = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_GetAccountResponse protoreflect.MessageDescriptor
+ fd_GetAccountResponse_success protoreflect.FieldDescriptor
+ fd_GetAccountResponse_message protoreflect.FieldDescriptor
+ fd_GetAccountResponse_address protoreflect.FieldDescriptor
+ fd_GetAccountResponse_coin_type protoreflect.FieldDescriptor
+ fd_GetAccountResponse_owner protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_GetAccountResponse = File_highway_wallet_v1_service_proto.Messages().ByName("GetAccountResponse")
+ fd_GetAccountResponse_success = md_GetAccountResponse.Fields().ByName("success")
+ fd_GetAccountResponse_message = md_GetAccountResponse.Fields().ByName("message")
+ fd_GetAccountResponse_address = md_GetAccountResponse.Fields().ByName("address")
+ fd_GetAccountResponse_coin_type = md_GetAccountResponse.Fields().ByName("coin_type")
+ fd_GetAccountResponse_owner = md_GetAccountResponse.Fields().ByName("owner")
+}
+
+var _ protoreflect.Message = (*fastReflection_GetAccountResponse)(nil)
+
+type fastReflection_GetAccountResponse GetAccountResponse
+
+func (x *GetAccountResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_GetAccountResponse)(x)
+}
+
+func (x *GetAccountResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_GetAccountResponse_messageType fastReflection_GetAccountResponse_messageType
+var _ protoreflect.MessageType = fastReflection_GetAccountResponse_messageType{}
+
+type fastReflection_GetAccountResponse_messageType struct{}
+
+func (x fastReflection_GetAccountResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_GetAccountResponse)(nil)
+}
+func (x fastReflection_GetAccountResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_GetAccountResponse)
+}
+func (x fastReflection_GetAccountResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_GetAccountResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_GetAccountResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_GetAccountResponse
+}
+
+// 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_GetAccountResponse) Type() protoreflect.MessageType {
+ return _fastReflection_GetAccountResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_GetAccountResponse) New() protoreflect.Message {
+ return new(fastReflection_GetAccountResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_GetAccountResponse) Interface() protoreflect.ProtoMessage {
+ return (*GetAccountResponse)(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_GetAccountResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_GetAccountResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_GetAccountResponse_message, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_GetAccountResponse_address, value) {
+ return
+ }
+ }
+ if x.CoinType != 0 {
+ value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.CoinType))
+ if !f(fd_GetAccountResponse_coin_type, value) {
+ return
+ }
+ }
+ if x.Owner != "" {
+ value := protoreflect.ValueOfString(x.Owner)
+ if !f(fd_GetAccountResponse_owner, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GetAccountResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.GetAccountResponse.success":
+ return x.Success != false
+ case "highway.wallet.v1.GetAccountResponse.message":
+ return x.Message != ""
+ case "highway.wallet.v1.GetAccountResponse.address":
+ return x.Address != ""
+ case "highway.wallet.v1.GetAccountResponse.coin_type":
+ return x.CoinType != 0
+ case "highway.wallet.v1.GetAccountResponse.owner":
+ return x.Owner != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetAccountResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.GetAccountResponse.success":
+ x.Success = false
+ case "highway.wallet.v1.GetAccountResponse.message":
+ x.Message = ""
+ case "highway.wallet.v1.GetAccountResponse.address":
+ x.Address = ""
+ case "highway.wallet.v1.GetAccountResponse.coin_type":
+ x.CoinType = 0
+ case "highway.wallet.v1.GetAccountResponse.owner":
+ x.Owner = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_GetAccountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.GetAccountResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.wallet.v1.GetAccountResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.GetAccountResponse.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.GetAccountResponse.coin_type":
+ value := x.CoinType
+ return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
+ case "highway.wallet.v1.GetAccountResponse.owner":
+ value := x.Owner
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetAccountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.GetAccountResponse.success":
+ x.Success = value.Bool()
+ case "highway.wallet.v1.GetAccountResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.wallet.v1.GetAccountResponse.address":
+ x.Address = value.Interface().(string)
+ case "highway.wallet.v1.GetAccountResponse.coin_type":
+ x.CoinType = (crypto.CoinType)(value.Enum())
+ case "highway.wallet.v1.GetAccountResponse.owner":
+ x.Owner = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GetAccountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.GetAccountResponse.success":
+ panic(fmt.Errorf("field success of message highway.wallet.v1.GetAccountResponse is not mutable"))
+ case "highway.wallet.v1.GetAccountResponse.message":
+ panic(fmt.Errorf("field message of message highway.wallet.v1.GetAccountResponse is not mutable"))
+ case "highway.wallet.v1.GetAccountResponse.address":
+ panic(fmt.Errorf("field address of message highway.wallet.v1.GetAccountResponse is not mutable"))
+ case "highway.wallet.v1.GetAccountResponse.coin_type":
+ panic(fmt.Errorf("field coin_type of message highway.wallet.v1.GetAccountResponse is not mutable"))
+ case "highway.wallet.v1.GetAccountResponse.owner":
+ panic(fmt.Errorf("field owner of message highway.wallet.v1.GetAccountResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_GetAccountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.GetAccountResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.wallet.v1.GetAccountResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.GetAccountResponse.address":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.GetAccountResponse.coin_type":
+ return protoreflect.ValueOfEnum(0)
+ case "highway.wallet.v1.GetAccountResponse.owner":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.GetAccountResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.GetAccountResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_GetAccountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.GetAccountResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_GetAccountResponse) 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_GetAccountResponse) 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_GetAccountResponse) 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_GetAccountResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*GetAccountResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.CoinType != 0 {
+ n += 1 + runtime.Sov(uint64(x.CoinType))
+ }
+ l = len(x.Owner)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*GetAccountResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Owner) > 0 {
+ i -= len(x.Owner)
+ copy(dAtA[i:], x.Owner)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if x.CoinType != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.CoinType))
+ i--
+ dAtA[i] = 0x20
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*GetAccountResponse)
+ 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: GetAccountResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CoinType", wireType)
+ }
+ x.CoinType = 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.CoinType |= crypto.CoinType(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 5:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_ListAccountsRequest protoreflect.MessageDescriptor
+ fd_ListAccountsRequest_jwt protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_ListAccountsRequest = File_highway_wallet_v1_service_proto.Messages().ByName("ListAccountsRequest")
+ fd_ListAccountsRequest_jwt = md_ListAccountsRequest.Fields().ByName("jwt")
+}
+
+var _ protoreflect.Message = (*fastReflection_ListAccountsRequest)(nil)
+
+type fastReflection_ListAccountsRequest ListAccountsRequest
+
+func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ListAccountsRequest)(x)
+}
+
+func (x *ListAccountsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_ListAccountsRequest_messageType fastReflection_ListAccountsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_ListAccountsRequest_messageType{}
+
+type fastReflection_ListAccountsRequest_messageType struct{}
+
+func (x fastReflection_ListAccountsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ListAccountsRequest)(nil)
+}
+func (x fastReflection_ListAccountsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_ListAccountsRequest)
+}
+func (x fastReflection_ListAccountsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ListAccountsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ListAccountsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_ListAccountsRequest
+}
+
+// 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_ListAccountsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_ListAccountsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ListAccountsRequest) New() protoreflect.Message {
+ return new(fastReflection_ListAccountsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ListAccountsRequest) Interface() protoreflect.ProtoMessage {
+ return (*ListAccountsRequest)(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_ListAccountsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Jwt != "" {
+ value := protoreflect.ValueOfString(x.Jwt)
+ if !f(fd_ListAccountsRequest_jwt, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_ListAccountsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ListAccountsRequest.jwt":
+ return x.Jwt != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ListAccountsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ListAccountsRequest.jwt":
+ x.Jwt = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_ListAccountsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.ListAccountsRequest.jwt":
+ value := x.Jwt
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ListAccountsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ListAccountsRequest.jwt":
+ x.Jwt = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ListAccountsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ListAccountsRequest.jwt":
+ panic(fmt.Errorf("field jwt of message highway.wallet.v1.ListAccountsRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ListAccountsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ListAccountsRequest.jwt":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ListAccountsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.ListAccountsRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_ListAccountsRequest) 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_ListAccountsRequest) 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_ListAccountsRequest) 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_ListAccountsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ListAccountsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Jwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*ListAccountsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Jwt) > 0 {
+ i -= len(x.Jwt)
+ copy(dAtA[i:], x.Jwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jwt)))
+ 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().(*ListAccountsRequest)
+ 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: ListAccountsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ListAccountsRequest: 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 Jwt", 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.Jwt = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_ListAccountsResponse_3_list)(nil)
+
+type _ListAccountsResponse_3_list struct {
+ list *[]string
+}
+
+func (x *_ListAccountsResponse_3_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_ListAccountsResponse_3_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfString((*x.list)[i])
+}
+
+func (x *_ListAccountsResponse_3_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_ListAccountsResponse_3_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.String()
+ concreteValue := valueUnwrapped
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_ListAccountsResponse_3_list) AppendMutable() protoreflect.Value {
+ panic(fmt.Errorf("AppendMutable can not be called on message ListAccountsResponse at list field Accounts as it is not of Message kind"))
+}
+
+func (x *_ListAccountsResponse_3_list) Truncate(n int) {
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_ListAccountsResponse_3_list) NewElement() protoreflect.Value {
+ v := ""
+ return protoreflect.ValueOfString(v)
+}
+
+func (x *_ListAccountsResponse_3_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_ListAccountsResponse protoreflect.MessageDescriptor
+ fd_ListAccountsResponse_success protoreflect.FieldDescriptor
+ fd_ListAccountsResponse_message protoreflect.FieldDescriptor
+ fd_ListAccountsResponse_accounts protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_ListAccountsResponse = File_highway_wallet_v1_service_proto.Messages().ByName("ListAccountsResponse")
+ fd_ListAccountsResponse_success = md_ListAccountsResponse.Fields().ByName("success")
+ fd_ListAccountsResponse_message = md_ListAccountsResponse.Fields().ByName("message")
+ fd_ListAccountsResponse_accounts = md_ListAccountsResponse.Fields().ByName("accounts")
+}
+
+var _ protoreflect.Message = (*fastReflection_ListAccountsResponse)(nil)
+
+type fastReflection_ListAccountsResponse ListAccountsResponse
+
+func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ListAccountsResponse)(x)
+}
+
+func (x *ListAccountsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_ListAccountsResponse_messageType fastReflection_ListAccountsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_ListAccountsResponse_messageType{}
+
+type fastReflection_ListAccountsResponse_messageType struct{}
+
+func (x fastReflection_ListAccountsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ListAccountsResponse)(nil)
+}
+func (x fastReflection_ListAccountsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_ListAccountsResponse)
+}
+func (x fastReflection_ListAccountsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ListAccountsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ListAccountsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_ListAccountsResponse
+}
+
+// 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_ListAccountsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_ListAccountsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ListAccountsResponse) New() protoreflect.Message {
+ return new(fastReflection_ListAccountsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ListAccountsResponse) Interface() protoreflect.ProtoMessage {
+ return (*ListAccountsResponse)(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_ListAccountsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_ListAccountsResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_ListAccountsResponse_message, value) {
+ return
+ }
+ }
+ if len(x.Accounts) != 0 {
+ value := protoreflect.ValueOfList(&_ListAccountsResponse_3_list{list: &x.Accounts})
+ if !f(fd_ListAccountsResponse_accounts, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_ListAccountsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ListAccountsResponse.success":
+ return x.Success != false
+ case "highway.wallet.v1.ListAccountsResponse.message":
+ return x.Message != ""
+ case "highway.wallet.v1.ListAccountsResponse.accounts":
+ return len(x.Accounts) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ListAccountsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ListAccountsResponse.success":
+ x.Success = false
+ case "highway.wallet.v1.ListAccountsResponse.message":
+ x.Message = ""
+ case "highway.wallet.v1.ListAccountsResponse.accounts":
+ x.Accounts = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_ListAccountsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.ListAccountsResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.wallet.v1.ListAccountsResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.ListAccountsResponse.accounts":
+ if len(x.Accounts) == 0 {
+ return protoreflect.ValueOfList(&_ListAccountsResponse_3_list{})
+ }
+ listValue := &_ListAccountsResponse_3_list{list: &x.Accounts}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ListAccountsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ListAccountsResponse.success":
+ x.Success = value.Bool()
+ case "highway.wallet.v1.ListAccountsResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.wallet.v1.ListAccountsResponse.accounts":
+ lv := value.List()
+ clv := lv.(*_ListAccountsResponse_3_list)
+ x.Accounts = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ListAccountsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ListAccountsResponse.accounts":
+ if x.Accounts == nil {
+ x.Accounts = []string{}
+ }
+ value := &_ListAccountsResponse_3_list{list: &x.Accounts}
+ return protoreflect.ValueOfList(value)
+ case "highway.wallet.v1.ListAccountsResponse.success":
+ panic(fmt.Errorf("field success of message highway.wallet.v1.ListAccountsResponse is not mutable"))
+ case "highway.wallet.v1.ListAccountsResponse.message":
+ panic(fmt.Errorf("field message of message highway.wallet.v1.ListAccountsResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ListAccountsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ListAccountsResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.wallet.v1.ListAccountsResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.ListAccountsResponse.accounts":
+ list := []string{}
+ return protoreflect.ValueOfList(&_ListAccountsResponse_3_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ListAccountsResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ListAccountsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ListAccountsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.ListAccountsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_ListAccountsResponse) 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_ListAccountsResponse) 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_ListAccountsResponse) 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_ListAccountsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ListAccountsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.Accounts) > 0 {
+ for _, s := range x.Accounts {
+ l = len(s)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*ListAccountsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Accounts) > 0 {
+ for iNdEx := len(x.Accounts) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(x.Accounts[iNdEx])
+ copy(dAtA[i:], x.Accounts[iNdEx])
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Accounts[iNdEx])))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*ListAccountsResponse)
+ 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: ListAccountsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ListAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 Accounts", 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.Accounts = append(x.Accounts, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_SignMessageRequest protoreflect.MessageDescriptor
+ fd_SignMessageRequest_jwt protoreflect.FieldDescriptor
+ fd_SignMessageRequest_address protoreflect.FieldDescriptor
+ fd_SignMessageRequest_message protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_SignMessageRequest = File_highway_wallet_v1_service_proto.Messages().ByName("SignMessageRequest")
+ fd_SignMessageRequest_jwt = md_SignMessageRequest.Fields().ByName("jwt")
+ fd_SignMessageRequest_address = md_SignMessageRequest.Fields().ByName("address")
+ fd_SignMessageRequest_message = md_SignMessageRequest.Fields().ByName("message")
+}
+
+var _ protoreflect.Message = (*fastReflection_SignMessageRequest)(nil)
+
+type fastReflection_SignMessageRequest SignMessageRequest
+
+func (x *SignMessageRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_SignMessageRequest)(x)
+}
+
+func (x *SignMessageRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_SignMessageRequest_messageType fastReflection_SignMessageRequest_messageType
+var _ protoreflect.MessageType = fastReflection_SignMessageRequest_messageType{}
+
+type fastReflection_SignMessageRequest_messageType struct{}
+
+func (x fastReflection_SignMessageRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_SignMessageRequest)(nil)
+}
+func (x fastReflection_SignMessageRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_SignMessageRequest)
+}
+func (x fastReflection_SignMessageRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_SignMessageRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_SignMessageRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_SignMessageRequest
+}
+
+// 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_SignMessageRequest) Type() protoreflect.MessageType {
+ return _fastReflection_SignMessageRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_SignMessageRequest) New() protoreflect.Message {
+ return new(fastReflection_SignMessageRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_SignMessageRequest) Interface() protoreflect.ProtoMessage {
+ return (*SignMessageRequest)(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_SignMessageRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Jwt != "" {
+ value := protoreflect.ValueOfString(x.Jwt)
+ if !f(fd_SignMessageRequest_jwt, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_SignMessageRequest_address, value) {
+ return
+ }
+ }
+ if len(x.Message) != 0 {
+ value := protoreflect.ValueOfBytes(x.Message)
+ if !f(fd_SignMessageRequest_message, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_SignMessageRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.SignMessageRequest.jwt":
+ return x.Jwt != ""
+ case "highway.wallet.v1.SignMessageRequest.address":
+ return x.Address != ""
+ case "highway.wallet.v1.SignMessageRequest.message":
+ return len(x.Message) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_SignMessageRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.SignMessageRequest.jwt":
+ x.Jwt = ""
+ case "highway.wallet.v1.SignMessageRequest.address":
+ x.Address = ""
+ case "highway.wallet.v1.SignMessageRequest.message":
+ x.Message = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_SignMessageRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.SignMessageRequest.jwt":
+ value := x.Jwt
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.SignMessageRequest.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.SignMessageRequest.message":
+ value := x.Message
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_SignMessageRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.SignMessageRequest.jwt":
+ x.Jwt = value.Interface().(string)
+ case "highway.wallet.v1.SignMessageRequest.address":
+ x.Address = value.Interface().(string)
+ case "highway.wallet.v1.SignMessageRequest.message":
+ x.Message = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_SignMessageRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.SignMessageRequest.jwt":
+ panic(fmt.Errorf("field jwt of message highway.wallet.v1.SignMessageRequest is not mutable"))
+ case "highway.wallet.v1.SignMessageRequest.address":
+ panic(fmt.Errorf("field address of message highway.wallet.v1.SignMessageRequest is not mutable"))
+ case "highway.wallet.v1.SignMessageRequest.message":
+ panic(fmt.Errorf("field message of message highway.wallet.v1.SignMessageRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_SignMessageRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.SignMessageRequest.jwt":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.SignMessageRequest.address":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.SignMessageRequest.message":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_SignMessageRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.SignMessageRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_SignMessageRequest) 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_SignMessageRequest) 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_SignMessageRequest) 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_SignMessageRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*SignMessageRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Jwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*SignMessageRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Jwt) > 0 {
+ i -= len(x.Jwt)
+ copy(dAtA[i:], x.Jwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jwt)))
+ 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().(*SignMessageRequest)
+ 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: SignMessageRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SignMessageRequest: 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 Jwt", 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.Jwt = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Message = append(x.Message[:0], dAtA[iNdEx:postIndex]...)
+ if x.Message == nil {
+ x.Message = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_SignMessageResponse protoreflect.MessageDescriptor
+ fd_SignMessageResponse_success protoreflect.FieldDescriptor
+ fd_SignMessageResponse_message protoreflect.FieldDescriptor
+ fd_SignMessageResponse_signature protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_SignMessageResponse = File_highway_wallet_v1_service_proto.Messages().ByName("SignMessageResponse")
+ fd_SignMessageResponse_success = md_SignMessageResponse.Fields().ByName("success")
+ fd_SignMessageResponse_message = md_SignMessageResponse.Fields().ByName("message")
+ fd_SignMessageResponse_signature = md_SignMessageResponse.Fields().ByName("signature")
+}
+
+var _ protoreflect.Message = (*fastReflection_SignMessageResponse)(nil)
+
+type fastReflection_SignMessageResponse SignMessageResponse
+
+func (x *SignMessageResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_SignMessageResponse)(x)
+}
+
+func (x *SignMessageResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_SignMessageResponse_messageType fastReflection_SignMessageResponse_messageType
+var _ protoreflect.MessageType = fastReflection_SignMessageResponse_messageType{}
+
+type fastReflection_SignMessageResponse_messageType struct{}
+
+func (x fastReflection_SignMessageResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_SignMessageResponse)(nil)
+}
+func (x fastReflection_SignMessageResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_SignMessageResponse)
+}
+func (x fastReflection_SignMessageResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_SignMessageResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_SignMessageResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_SignMessageResponse
+}
+
+// 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_SignMessageResponse) Type() protoreflect.MessageType {
+ return _fastReflection_SignMessageResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_SignMessageResponse) New() protoreflect.Message {
+ return new(fastReflection_SignMessageResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_SignMessageResponse) Interface() protoreflect.ProtoMessage {
+ return (*SignMessageResponse)(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_SignMessageResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_SignMessageResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_SignMessageResponse_message, value) {
+ return
+ }
+ }
+ if len(x.Signature) != 0 {
+ value := protoreflect.ValueOfBytes(x.Signature)
+ if !f(fd_SignMessageResponse_signature, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_SignMessageResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.SignMessageResponse.success":
+ return x.Success != false
+ case "highway.wallet.v1.SignMessageResponse.message":
+ return x.Message != ""
+ case "highway.wallet.v1.SignMessageResponse.signature":
+ return len(x.Signature) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_SignMessageResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.SignMessageResponse.success":
+ x.Success = false
+ case "highway.wallet.v1.SignMessageResponse.message":
+ x.Message = ""
+ case "highway.wallet.v1.SignMessageResponse.signature":
+ x.Signature = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_SignMessageResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.SignMessageResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.wallet.v1.SignMessageResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.SignMessageResponse.signature":
+ value := x.Signature
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_SignMessageResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.SignMessageResponse.success":
+ x.Success = value.Bool()
+ case "highway.wallet.v1.SignMessageResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.wallet.v1.SignMessageResponse.signature":
+ x.Signature = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_SignMessageResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.SignMessageResponse.success":
+ panic(fmt.Errorf("field success of message highway.wallet.v1.SignMessageResponse is not mutable"))
+ case "highway.wallet.v1.SignMessageResponse.message":
+ panic(fmt.Errorf("field message of message highway.wallet.v1.SignMessageResponse is not mutable"))
+ case "highway.wallet.v1.SignMessageResponse.signature":
+ panic(fmt.Errorf("field signature of message highway.wallet.v1.SignMessageResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_SignMessageResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.SignMessageResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.wallet.v1.SignMessageResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.SignMessageResponse.signature":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.SignMessageResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.SignMessageResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_SignMessageResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.SignMessageResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_SignMessageResponse) 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_SignMessageResponse) 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_SignMessageResponse) 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_SignMessageResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*SignMessageResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Signature)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*SignMessageResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Signature) > 0 {
+ i -= len(x.Signature)
+ copy(dAtA[i:], x.Signature)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signature)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*SignMessageResponse)
+ 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: SignMessageResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SignMessageResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 Signature", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Signature = append(x.Signature[:0], dAtA[iNdEx:postIndex]...)
+ if x.Signature == nil {
+ x.Signature = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_VerifySignatureRequest protoreflect.MessageDescriptor
+ fd_VerifySignatureRequest_jwt protoreflect.FieldDescriptor
+ fd_VerifySignatureRequest_address protoreflect.FieldDescriptor
+ fd_VerifySignatureRequest_message protoreflect.FieldDescriptor
+ fd_VerifySignatureRequest_signature protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_VerifySignatureRequest = File_highway_wallet_v1_service_proto.Messages().ByName("VerifySignatureRequest")
+ fd_VerifySignatureRequest_jwt = md_VerifySignatureRequest.Fields().ByName("jwt")
+ fd_VerifySignatureRequest_address = md_VerifySignatureRequest.Fields().ByName("address")
+ fd_VerifySignatureRequest_message = md_VerifySignatureRequest.Fields().ByName("message")
+ fd_VerifySignatureRequest_signature = md_VerifySignatureRequest.Fields().ByName("signature")
+}
+
+var _ protoreflect.Message = (*fastReflection_VerifySignatureRequest)(nil)
+
+type fastReflection_VerifySignatureRequest VerifySignatureRequest
+
+func (x *VerifySignatureRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_VerifySignatureRequest)(x)
+}
+
+func (x *VerifySignatureRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_VerifySignatureRequest_messageType fastReflection_VerifySignatureRequest_messageType
+var _ protoreflect.MessageType = fastReflection_VerifySignatureRequest_messageType{}
+
+type fastReflection_VerifySignatureRequest_messageType struct{}
+
+func (x fastReflection_VerifySignatureRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_VerifySignatureRequest)(nil)
+}
+func (x fastReflection_VerifySignatureRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_VerifySignatureRequest)
+}
+func (x fastReflection_VerifySignatureRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerifySignatureRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_VerifySignatureRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerifySignatureRequest
+}
+
+// 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_VerifySignatureRequest) Type() protoreflect.MessageType {
+ return _fastReflection_VerifySignatureRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_VerifySignatureRequest) New() protoreflect.Message {
+ return new(fastReflection_VerifySignatureRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_VerifySignatureRequest) Interface() protoreflect.ProtoMessage {
+ return (*VerifySignatureRequest)(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_VerifySignatureRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Jwt != "" {
+ value := protoreflect.ValueOfString(x.Jwt)
+ if !f(fd_VerifySignatureRequest_jwt, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_VerifySignatureRequest_address, value) {
+ return
+ }
+ }
+ if len(x.Message) != 0 {
+ value := protoreflect.ValueOfBytes(x.Message)
+ if !f(fd_VerifySignatureRequest_message, value) {
+ return
+ }
+ }
+ if len(x.Signature) != 0 {
+ value := protoreflect.ValueOfBytes(x.Signature)
+ if !f(fd_VerifySignatureRequest_signature, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_VerifySignatureRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.VerifySignatureRequest.jwt":
+ return x.Jwt != ""
+ case "highway.wallet.v1.VerifySignatureRequest.address":
+ return x.Address != ""
+ case "highway.wallet.v1.VerifySignatureRequest.message":
+ return len(x.Message) != 0
+ case "highway.wallet.v1.VerifySignatureRequest.signature":
+ return len(x.Signature) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifySignatureRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.VerifySignatureRequest.jwt":
+ x.Jwt = ""
+ case "highway.wallet.v1.VerifySignatureRequest.address":
+ x.Address = ""
+ case "highway.wallet.v1.VerifySignatureRequest.message":
+ x.Message = nil
+ case "highway.wallet.v1.VerifySignatureRequest.signature":
+ x.Signature = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_VerifySignatureRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.VerifySignatureRequest.jwt":
+ value := x.Jwt
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.VerifySignatureRequest.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.VerifySignatureRequest.message":
+ value := x.Message
+ return protoreflect.ValueOfBytes(value)
+ case "highway.wallet.v1.VerifySignatureRequest.signature":
+ value := x.Signature
+ return protoreflect.ValueOfBytes(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifySignatureRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.VerifySignatureRequest.jwt":
+ x.Jwt = value.Interface().(string)
+ case "highway.wallet.v1.VerifySignatureRequest.address":
+ x.Address = value.Interface().(string)
+ case "highway.wallet.v1.VerifySignatureRequest.message":
+ x.Message = value.Bytes()
+ case "highway.wallet.v1.VerifySignatureRequest.signature":
+ x.Signature = value.Bytes()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifySignatureRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.VerifySignatureRequest.jwt":
+ panic(fmt.Errorf("field jwt of message highway.wallet.v1.VerifySignatureRequest is not mutable"))
+ case "highway.wallet.v1.VerifySignatureRequest.address":
+ panic(fmt.Errorf("field address of message highway.wallet.v1.VerifySignatureRequest is not mutable"))
+ case "highway.wallet.v1.VerifySignatureRequest.message":
+ panic(fmt.Errorf("field message of message highway.wallet.v1.VerifySignatureRequest is not mutable"))
+ case "highway.wallet.v1.VerifySignatureRequest.signature":
+ panic(fmt.Errorf("field signature of message highway.wallet.v1.VerifySignatureRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_VerifySignatureRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.VerifySignatureRequest.jwt":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.VerifySignatureRequest.address":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.VerifySignatureRequest.message":
+ return protoreflect.ValueOfBytes(nil)
+ case "highway.wallet.v1.VerifySignatureRequest.signature":
+ return protoreflect.ValueOfBytes(nil)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_VerifySignatureRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.VerifySignatureRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_VerifySignatureRequest) 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_VerifySignatureRequest) 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_VerifySignatureRequest) 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_VerifySignatureRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*VerifySignatureRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Jwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Signature)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*VerifySignatureRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Signature) > 0 {
+ i -= len(x.Signature)
+ copy(dAtA[i:], x.Signature)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signature)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Jwt) > 0 {
+ i -= len(x.Jwt)
+ copy(dAtA[i:], x.Jwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jwt)))
+ 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().(*VerifySignatureRequest)
+ 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: VerifySignatureRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerifySignatureRequest: 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 Jwt", 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.Jwt = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Message = append(x.Message[:0], dAtA[iNdEx:postIndex]...)
+ if x.Message == nil {
+ x.Message = []byte{}
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Signature = append(x.Signature[:0], dAtA[iNdEx:postIndex]...)
+ if x.Signature == nil {
+ x.Signature = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_VerifySignatureResponse protoreflect.MessageDescriptor
+ fd_VerifySignatureResponse_success protoreflect.FieldDescriptor
+ fd_VerifySignatureResponse_message protoreflect.FieldDescriptor
+ fd_VerifySignatureResponse_message_verified protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_VerifySignatureResponse = File_highway_wallet_v1_service_proto.Messages().ByName("VerifySignatureResponse")
+ fd_VerifySignatureResponse_success = md_VerifySignatureResponse.Fields().ByName("success")
+ fd_VerifySignatureResponse_message = md_VerifySignatureResponse.Fields().ByName("message")
+ fd_VerifySignatureResponse_message_verified = md_VerifySignatureResponse.Fields().ByName("message_verified")
+}
+
+var _ protoreflect.Message = (*fastReflection_VerifySignatureResponse)(nil)
+
+type fastReflection_VerifySignatureResponse VerifySignatureResponse
+
+func (x *VerifySignatureResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_VerifySignatureResponse)(x)
+}
+
+func (x *VerifySignatureResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_VerifySignatureResponse_messageType fastReflection_VerifySignatureResponse_messageType
+var _ protoreflect.MessageType = fastReflection_VerifySignatureResponse_messageType{}
+
+type fastReflection_VerifySignatureResponse_messageType struct{}
+
+func (x fastReflection_VerifySignatureResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_VerifySignatureResponse)(nil)
+}
+func (x fastReflection_VerifySignatureResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_VerifySignatureResponse)
+}
+func (x fastReflection_VerifySignatureResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerifySignatureResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_VerifySignatureResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_VerifySignatureResponse
+}
+
+// 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_VerifySignatureResponse) Type() protoreflect.MessageType {
+ return _fastReflection_VerifySignatureResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_VerifySignatureResponse) New() protoreflect.Message {
+ return new(fastReflection_VerifySignatureResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_VerifySignatureResponse) Interface() protoreflect.ProtoMessage {
+ return (*VerifySignatureResponse)(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_VerifySignatureResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_VerifySignatureResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_VerifySignatureResponse_message, value) {
+ return
+ }
+ }
+ if x.MessageVerified != false {
+ value := protoreflect.ValueOfBool(x.MessageVerified)
+ if !f(fd_VerifySignatureResponse_message_verified, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_VerifySignatureResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.VerifySignatureResponse.success":
+ return x.Success != false
+ case "highway.wallet.v1.VerifySignatureResponse.message":
+ return x.Message != ""
+ case "highway.wallet.v1.VerifySignatureResponse.message_verified":
+ return x.MessageVerified != false
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifySignatureResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.VerifySignatureResponse.success":
+ x.Success = false
+ case "highway.wallet.v1.VerifySignatureResponse.message":
+ x.Message = ""
+ case "highway.wallet.v1.VerifySignatureResponse.message_verified":
+ x.MessageVerified = false
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_VerifySignatureResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.VerifySignatureResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.wallet.v1.VerifySignatureResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.VerifySignatureResponse.message_verified":
+ value := x.MessageVerified
+ return protoreflect.ValueOfBool(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifySignatureResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.VerifySignatureResponse.success":
+ x.Success = value.Bool()
+ case "highway.wallet.v1.VerifySignatureResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.wallet.v1.VerifySignatureResponse.message_verified":
+ x.MessageVerified = value.Bool()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_VerifySignatureResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.VerifySignatureResponse.success":
+ panic(fmt.Errorf("field success of message highway.wallet.v1.VerifySignatureResponse is not mutable"))
+ case "highway.wallet.v1.VerifySignatureResponse.message":
+ panic(fmt.Errorf("field message of message highway.wallet.v1.VerifySignatureResponse is not mutable"))
+ case "highway.wallet.v1.VerifySignatureResponse.message_verified":
+ panic(fmt.Errorf("field message_verified of message highway.wallet.v1.VerifySignatureResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_VerifySignatureResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.VerifySignatureResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.wallet.v1.VerifySignatureResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.VerifySignatureResponse.message_verified":
+ return protoreflect.ValueOfBool(false)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.VerifySignatureResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.VerifySignatureResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_VerifySignatureResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.VerifySignatureResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_VerifySignatureResponse) 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_VerifySignatureResponse) 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_VerifySignatureResponse) 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_VerifySignatureResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*VerifySignatureResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.MessageVerified {
+ n += 2
+ }
+ 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().(*VerifySignatureResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.MessageVerified {
+ i--
+ if x.MessageVerified {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x18
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*VerifySignatureResponse)
+ 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: VerifySignatureResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VerifySignatureResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MessageVerified", 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.MessageVerified = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_ExportWalletRequest protoreflect.MessageDescriptor
+ fd_ExportWalletRequest_jwt protoreflect.FieldDescriptor
+ fd_ExportWalletRequest_address protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_ExportWalletRequest = File_highway_wallet_v1_service_proto.Messages().ByName("ExportWalletRequest")
+ fd_ExportWalletRequest_jwt = md_ExportWalletRequest.Fields().ByName("jwt")
+ fd_ExportWalletRequest_address = md_ExportWalletRequest.Fields().ByName("address")
+}
+
+var _ protoreflect.Message = (*fastReflection_ExportWalletRequest)(nil)
+
+type fastReflection_ExportWalletRequest ExportWalletRequest
+
+func (x *ExportWalletRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ExportWalletRequest)(x)
+}
+
+func (x *ExportWalletRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_ExportWalletRequest_messageType fastReflection_ExportWalletRequest_messageType
+var _ protoreflect.MessageType = fastReflection_ExportWalletRequest_messageType{}
+
+type fastReflection_ExportWalletRequest_messageType struct{}
+
+func (x fastReflection_ExportWalletRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ExportWalletRequest)(nil)
+}
+func (x fastReflection_ExportWalletRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_ExportWalletRequest)
+}
+func (x fastReflection_ExportWalletRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ExportWalletRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ExportWalletRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_ExportWalletRequest
+}
+
+// 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_ExportWalletRequest) Type() protoreflect.MessageType {
+ return _fastReflection_ExportWalletRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ExportWalletRequest) New() protoreflect.Message {
+ return new(fastReflection_ExportWalletRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ExportWalletRequest) Interface() protoreflect.ProtoMessage {
+ return (*ExportWalletRequest)(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_ExportWalletRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Jwt != "" {
+ value := protoreflect.ValueOfString(x.Jwt)
+ if !f(fd_ExportWalletRequest_jwt, value) {
+ return
+ }
+ }
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_ExportWalletRequest_address, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_ExportWalletRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ExportWalletRequest.jwt":
+ return x.Jwt != ""
+ case "highway.wallet.v1.ExportWalletRequest.address":
+ return x.Address != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ExportWalletRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ExportWalletRequest.jwt":
+ x.Jwt = ""
+ case "highway.wallet.v1.ExportWalletRequest.address":
+ x.Address = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_ExportWalletRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.ExportWalletRequest.jwt":
+ value := x.Jwt
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.ExportWalletRequest.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ExportWalletRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ExportWalletRequest.jwt":
+ x.Jwt = value.Interface().(string)
+ case "highway.wallet.v1.ExportWalletRequest.address":
+ x.Address = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ExportWalletRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ExportWalletRequest.jwt":
+ panic(fmt.Errorf("field jwt of message highway.wallet.v1.ExportWalletRequest is not mutable"))
+ case "highway.wallet.v1.ExportWalletRequest.address":
+ panic(fmt.Errorf("field address of message highway.wallet.v1.ExportWalletRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ExportWalletRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ExportWalletRequest.jwt":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.ExportWalletRequest.address":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletRequest"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ExportWalletRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.ExportWalletRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_ExportWalletRequest) 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_ExportWalletRequest) 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_ExportWalletRequest) 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_ExportWalletRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ExportWalletRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Jwt)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*ExportWalletRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Jwt) > 0 {
+ i -= len(x.Jwt)
+ copy(dAtA[i:], x.Jwt)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Jwt)))
+ 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().(*ExportWalletRequest)
+ 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: ExportWalletRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExportWalletRequest: 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 Jwt", 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.Jwt = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_ExportWalletResponse protoreflect.MessageDescriptor
+ fd_ExportWalletResponse_success protoreflect.FieldDescriptor
+ fd_ExportWalletResponse_message protoreflect.FieldDescriptor
+ fd_ExportWalletResponse_encrypted_wallet_buffer protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_highway_wallet_v1_service_proto_init()
+ md_ExportWalletResponse = File_highway_wallet_v1_service_proto.Messages().ByName("ExportWalletResponse")
+ fd_ExportWalletResponse_success = md_ExportWalletResponse.Fields().ByName("success")
+ fd_ExportWalletResponse_message = md_ExportWalletResponse.Fields().ByName("message")
+ fd_ExportWalletResponse_encrypted_wallet_buffer = md_ExportWalletResponse.Fields().ByName("encrypted_wallet_buffer")
+}
+
+var _ protoreflect.Message = (*fastReflection_ExportWalletResponse)(nil)
+
+type fastReflection_ExportWalletResponse ExportWalletResponse
+
+func (x *ExportWalletResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_ExportWalletResponse)(x)
+}
+
+func (x *ExportWalletResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[11]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_ExportWalletResponse_messageType fastReflection_ExportWalletResponse_messageType
+var _ protoreflect.MessageType = fastReflection_ExportWalletResponse_messageType{}
+
+type fastReflection_ExportWalletResponse_messageType struct{}
+
+func (x fastReflection_ExportWalletResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_ExportWalletResponse)(nil)
+}
+func (x fastReflection_ExportWalletResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_ExportWalletResponse)
+}
+func (x fastReflection_ExportWalletResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_ExportWalletResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_ExportWalletResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_ExportWalletResponse
+}
+
+// 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_ExportWalletResponse) Type() protoreflect.MessageType {
+ return _fastReflection_ExportWalletResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_ExportWalletResponse) New() protoreflect.Message {
+ return new(fastReflection_ExportWalletResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_ExportWalletResponse) Interface() protoreflect.ProtoMessage {
+ return (*ExportWalletResponse)(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_ExportWalletResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Success != false {
+ value := protoreflect.ValueOfBool(x.Success)
+ if !f(fd_ExportWalletResponse_success, value) {
+ return
+ }
+ }
+ if x.Message != "" {
+ value := protoreflect.ValueOfString(x.Message)
+ if !f(fd_ExportWalletResponse_message, value) {
+ return
+ }
+ }
+ if x.EncryptedWalletBuffer != "" {
+ value := protoreflect.ValueOfString(x.EncryptedWalletBuffer)
+ if !f(fd_ExportWalletResponse_encrypted_wallet_buffer, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_ExportWalletResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ExportWalletResponse.success":
+ return x.Success != false
+ case "highway.wallet.v1.ExportWalletResponse.message":
+ return x.Message != ""
+ case "highway.wallet.v1.ExportWalletResponse.encrypted_wallet_buffer":
+ return x.EncryptedWalletBuffer != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ExportWalletResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ExportWalletResponse.success":
+ x.Success = false
+ case "highway.wallet.v1.ExportWalletResponse.message":
+ x.Message = ""
+ case "highway.wallet.v1.ExportWalletResponse.encrypted_wallet_buffer":
+ x.EncryptedWalletBuffer = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_ExportWalletResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "highway.wallet.v1.ExportWalletResponse.success":
+ value := x.Success
+ return protoreflect.ValueOfBool(value)
+ case "highway.wallet.v1.ExportWalletResponse.message":
+ value := x.Message
+ return protoreflect.ValueOfString(value)
+ case "highway.wallet.v1.ExportWalletResponse.encrypted_wallet_buffer":
+ value := x.EncryptedWalletBuffer
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ExportWalletResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ExportWalletResponse.success":
+ x.Success = value.Bool()
+ case "highway.wallet.v1.ExportWalletResponse.message":
+ x.Message = value.Interface().(string)
+ case "highway.wallet.v1.ExportWalletResponse.encrypted_wallet_buffer":
+ x.EncryptedWalletBuffer = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_ExportWalletResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ExportWalletResponse.success":
+ panic(fmt.Errorf("field success of message highway.wallet.v1.ExportWalletResponse is not mutable"))
+ case "highway.wallet.v1.ExportWalletResponse.message":
+ panic(fmt.Errorf("field message of message highway.wallet.v1.ExportWalletResponse is not mutable"))
+ case "highway.wallet.v1.ExportWalletResponse.encrypted_wallet_buffer":
+ panic(fmt.Errorf("field encrypted_wallet_buffer of message highway.wallet.v1.ExportWalletResponse is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_ExportWalletResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "highway.wallet.v1.ExportWalletResponse.success":
+ return protoreflect.ValueOfBool(false)
+ case "highway.wallet.v1.ExportWalletResponse.message":
+ return protoreflect.ValueOfString("")
+ case "highway.wallet.v1.ExportWalletResponse.encrypted_wallet_buffer":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: highway.wallet.v1.ExportWalletResponse"))
+ }
+ panic(fmt.Errorf("message highway.wallet.v1.ExportWalletResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_ExportWalletResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in highway.wallet.v1.ExportWalletResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_ExportWalletResponse) 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_ExportWalletResponse) 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_ExportWalletResponse) 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_ExportWalletResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*ExportWalletResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Success {
+ n += 2
+ }
+ l = len(x.Message)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.EncryptedWalletBuffer)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*ExportWalletResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.EncryptedWalletBuffer) > 0 {
+ i -= len(x.EncryptedWalletBuffer)
+ copy(dAtA[i:], x.EncryptedWalletBuffer)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.EncryptedWalletBuffer)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(x.Message) > 0 {
+ i -= len(x.Message)
+ copy(dAtA[i:], x.Message)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if x.Success {
+ i--
+ if x.Success {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*ExportWalletResponse)
+ 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: ExportWalletResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExportWalletResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ x.Success = bool(v != 0)
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 EncryptedWalletBuffer", 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.EncryptedWalletBuffer = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: highway/wallet/v1/service.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// CreateAccountRequest is the request message for creating an account.
+type CreateAccountRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+ CoinType crypto.CoinType `protobuf:"varint,3,opt,name=coin_type,json=coinType,proto3,enum=common.crypto.CoinType" json:"coin_type,omitempty"`
+ Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
+}
+
+func (x *CreateAccountRequest) Reset() {
+ *x = CreateAccountRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateAccountRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateAccountRequest) ProtoMessage() {}
+
+// Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.
+func (*CreateAccountRequest) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *CreateAccountRequest) GetJwt() string {
+ if x != nil {
+ return x.Jwt
+ }
+ return ""
+}
+
+func (x *CreateAccountRequest) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *CreateAccountRequest) GetCoinType() crypto.CoinType {
+ if x != nil {
+ return x.CoinType
+ }
+ return crypto.CoinType(0)
+}
+
+func (x *CreateAccountRequest) GetNetwork() string {
+ if x != nil {
+ return x.Network
+ }
+ return ""
+}
+
+// CreateAccountResponse is the response message for creating an account.
+type CreateAccountResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
+ Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
+ CoinType crypto.CoinType `protobuf:"varint,4,opt,name=coin_type,json=coinType,proto3,enum=common.crypto.CoinType" json:"coin_type,omitempty"`
+ Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
+}
+
+func (x *CreateAccountResponse) Reset() {
+ *x = CreateAccountResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateAccountResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateAccountResponse) ProtoMessage() {}
+
+// Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.
+func (*CreateAccountResponse) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *CreateAccountResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *CreateAccountResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *CreateAccountResponse) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *CreateAccountResponse) GetCoinType() crypto.CoinType {
+ if x != nil {
+ return x.CoinType
+ }
+ return crypto.CoinType(0)
+}
+
+func (x *CreateAccountResponse) GetOwner() string {
+ if x != nil {
+ return x.Owner
+ }
+ return ""
+}
+
+// GetAccountRequest is the request message for getting an account.
+type GetAccountRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
+ Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
+}
+
+func (x *GetAccountRequest) Reset() {
+ *x = GetAccountRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetAccountRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetAccountRequest) ProtoMessage() {}
+
+// Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
+func (*GetAccountRequest) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *GetAccountRequest) GetJwt() string {
+ if x != nil {
+ return x.Jwt
+ }
+ return ""
+}
+
+func (x *GetAccountRequest) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+// GetAccountResponse is the response message for getting an account.
+type GetAccountResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
+ Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
+ CoinType crypto.CoinType `protobuf:"varint,4,opt,name=coin_type,json=coinType,proto3,enum=common.crypto.CoinType" json:"coin_type,omitempty"`
+ Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
+}
+
+func (x *GetAccountResponse) Reset() {
+ *x = GetAccountResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetAccountResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetAccountResponse) ProtoMessage() {}
+
+// Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.
+func (*GetAccountResponse) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *GetAccountResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *GetAccountResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *GetAccountResponse) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *GetAccountResponse) GetCoinType() crypto.CoinType {
+ if x != nil {
+ return x.CoinType
+ }
+ return crypto.CoinType(0)
+}
+
+func (x *GetAccountResponse) GetOwner() string {
+ if x != nil {
+ return x.Owner
+ }
+ return ""
+}
+
+// ListAccountsRequest is the request message for listing accounts.
+type ListAccountsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
+}
+
+func (x *ListAccountsRequest) Reset() {
+ *x = ListAccountsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ListAccountsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ListAccountsRequest) ProtoMessage() {}
+
+// Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.
+func (*ListAccountsRequest) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *ListAccountsRequest) GetJwt() string {
+ if x != nil {
+ return x.Jwt
+ }
+ return ""
+}
+
+// ListAccountsResponse is the response message for listing accounts.
+type ListAccountsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
+ Accounts []string `protobuf:"bytes,3,rep,name=accounts,proto3" json:"accounts,omitempty"`
+}
+
+func (x *ListAccountsResponse) Reset() {
+ *x = ListAccountsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ListAccountsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ListAccountsResponse) ProtoMessage() {}
+
+// Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.
+func (*ListAccountsResponse) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *ListAccountsResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *ListAccountsResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *ListAccountsResponse) GetAccounts() []string {
+ if x != nil {
+ return x.Accounts
+ }
+ return nil
+}
+
+// SignMessageRequest is the request message for signing a message.
+type SignMessageRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
+ Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
+ Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
+}
+
+func (x *SignMessageRequest) Reset() {
+ *x = SignMessageRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *SignMessageRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SignMessageRequest) ProtoMessage() {}
+
+// Deprecated: Use SignMessageRequest.ProtoReflect.Descriptor instead.
+func (*SignMessageRequest) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *SignMessageRequest) GetJwt() string {
+ if x != nil {
+ return x.Jwt
+ }
+ return ""
+}
+
+func (x *SignMessageRequest) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *SignMessageRequest) GetMessage() []byte {
+ if x != nil {
+ return x.Message
+ }
+ return nil
+}
+
+// SignMessageResponse is the response message for signing a message.
+type SignMessageResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
+ Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
+}
+
+func (x *SignMessageResponse) Reset() {
+ *x = SignMessageResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *SignMessageResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SignMessageResponse) ProtoMessage() {}
+
+// Deprecated: Use SignMessageResponse.ProtoReflect.Descriptor instead.
+func (*SignMessageResponse) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *SignMessageResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *SignMessageResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *SignMessageResponse) GetSignature() []byte {
+ if x != nil {
+ return x.Signature
+ }
+ return nil
+}
+
+// VerifySignatureRequest is the request message for verifying a signature.
+type VerifySignatureRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
+ Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
+ Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
+ Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
+}
+
+func (x *VerifySignatureRequest) Reset() {
+ *x = VerifySignatureRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *VerifySignatureRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*VerifySignatureRequest) ProtoMessage() {}
+
+// Deprecated: Use VerifySignatureRequest.ProtoReflect.Descriptor instead.
+func (*VerifySignatureRequest) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{8}
+}
+
+func (x *VerifySignatureRequest) GetJwt() string {
+ if x != nil {
+ return x.Jwt
+ }
+ return ""
+}
+
+func (x *VerifySignatureRequest) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *VerifySignatureRequest) GetMessage() []byte {
+ if x != nil {
+ return x.Message
+ }
+ return nil
+}
+
+func (x *VerifySignatureRequest) GetSignature() []byte {
+ if x != nil {
+ return x.Signature
+ }
+ return nil
+}
+
+// VerifySignatureResponse is the response message for verifying a signature.
+type VerifySignatureResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
+ MessageVerified bool `protobuf:"varint,3,opt,name=message_verified,json=messageVerified,proto3" json:"message_verified,omitempty"`
+}
+
+func (x *VerifySignatureResponse) Reset() {
+ *x = VerifySignatureResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *VerifySignatureResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*VerifySignatureResponse) ProtoMessage() {}
+
+// Deprecated: Use VerifySignatureResponse.ProtoReflect.Descriptor instead.
+func (*VerifySignatureResponse) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{9}
+}
+
+func (x *VerifySignatureResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *VerifySignatureResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *VerifySignatureResponse) GetMessageVerified() bool {
+ if x != nil {
+ return x.MessageVerified
+ }
+ return false
+}
+
+// ExportWalletRequest is the request message for exporting a wallet.
+type ExportWalletRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
+ Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
+}
+
+func (x *ExportWalletRequest) Reset() {
+ *x = ExportWalletRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ExportWalletRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ExportWalletRequest) ProtoMessage() {}
+
+// Deprecated: Use ExportWalletRequest.ProtoReflect.Descriptor instead.
+func (*ExportWalletRequest) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{10}
+}
+
+func (x *ExportWalletRequest) GetJwt() string {
+ if x != nil {
+ return x.Jwt
+ }
+ return ""
+}
+
+func (x *ExportWalletRequest) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+// ExportWalletResponse is the response message for exporting a wallet.
+type ExportWalletResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
+ EncryptedWalletBuffer string `protobuf:"bytes,3,opt,name=encrypted_wallet_buffer,json=encryptedWalletBuffer,proto3" json:"encrypted_wallet_buffer,omitempty"`
+}
+
+func (x *ExportWalletResponse) Reset() {
+ *x = ExportWalletResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_highway_wallet_v1_service_proto_msgTypes[11]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ExportWalletResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ExportWalletResponse) ProtoMessage() {}
+
+// Deprecated: Use ExportWalletResponse.ProtoReflect.Descriptor instead.
+func (*ExportWalletResponse) Descriptor() ([]byte, []int) {
+ return file_highway_wallet_v1_service_proto_rawDescGZIP(), []int{11}
+}
+
+func (x *ExportWalletResponse) GetSuccess() bool {
+ if x != nil {
+ return x.Success
+ }
+ return false
+}
+
+func (x *ExportWalletResponse) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *ExportWalletResponse) GetEncryptedWalletBuffer() string {
+ if x != nil {
+ return x.EncryptedWalletBuffer
+ }
+ return ""
+}
+
+var File_highway_wallet_v1_service_proto protoreflect.FileDescriptor
+
+var file_highway_wallet_v1_service_proto_rawDesc = []byte{
+ 0x0a, 0x1f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74,
+ 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x12, 0x11, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65,
+ 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x72, 0x79,
+ 0x70, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8c, 0x01, 0x0a,
+ 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x03, 0x6a, 0x77, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x63,
+ 0x6f, 0x69, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x43,
+ 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0xb1, 0x01, 0x0a, 0x15,
+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
+ 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x12, 0x34, 0x0a, 0x09, 0x63, 0x6f, 0x69, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
+ 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52,
+ 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e,
+ 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22,
+ 0x3f, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x03, 0x6a, 0x77, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x22, 0xae, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65,
+ 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73,
+ 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61,
+ 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64,
+ 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x34, 0x0a, 0x09, 0x63, 0x6f, 0x69, 0x6e, 0x5f, 0x74, 0x79,
+ 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
+ 0x6e, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70,
+ 0x65, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f,
+ 0x77, 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65,
+ 0x72, 0x22, 0x27, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6a, 0x77, 0x74, 0x22, 0x66, 0x0a, 0x14, 0x4c, 0x69,
+ 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07,
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
+ 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
+ 0x74, 0x73, 0x22, 0x5a, 0x0a, 0x12, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6a, 0x77, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64,
+ 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x67,
+ 0x0a, 0x13, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
+ 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67,
+ 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69,
+ 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x7c, 0x0a, 0x16, 0x56, 0x65, 0x72, 0x69, 0x66,
+ 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
+ 0x6a, 0x77, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a,
+ 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07,
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61,
+ 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e,
+ 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x78, 0x0a, 0x17, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53,
+ 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73,
+ 0x73, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f,
+ 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f,
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22,
+ 0x41, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x03, 0x6a, 0x77, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x14, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x57, 0x61, 0x6c,
+ 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73,
+ 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75,
+ 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
+ 0x36, 0x0a, 0x17, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x77, 0x61, 0x6c,
+ 0x6c, 0x65, 0x74, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x15, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x57, 0x61, 0x6c, 0x6c, 0x65,
+ 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x32, 0xc2, 0x06, 0x0a, 0x0d, 0x57, 0x61, 0x6c, 0x6c,
+ 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x0d, 0x43, 0x72,
+ 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x68, 0x69,
+ 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e,
+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x77,
+ 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
+ 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1f, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79,
+ 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
+ 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x7f, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x63,
+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x24, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e,
+ 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63,
+ 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x68, 0x69,
+ 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e,
+ 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x1c, 0x2f, 0x68, 0x69, 0x67,
+ 0x68, 0x77, 0x61, 0x79, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f,
+ 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67, 0x65, 0x74, 0x12, 0x86, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73,
+ 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x68, 0x69, 0x67, 0x68,
+ 0x77, 0x61, 0x79, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
+ 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x27, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x77, 0x61, 0x6c, 0x6c,
+ 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
+ 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x1f, 0x22, 0x1d, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x77, 0x61, 0x6c,
+ 0x6c, 0x65, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x6c, 0x69, 0x73,
+ 0x74, 0x12, 0x83, 0x01, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x12, 0x25, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x77, 0x61, 0x6c, 0x6c,
+ 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77,
+ 0x61, 0x79, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67,
+ 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1d, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77,
+ 0x61, 0x79, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
+ 0x74, 0x73, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x91, 0x01, 0x0a, 0x0f, 0x56, 0x65, 0x72, 0x69,
+ 0x66, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x29, 0x2e, 0x68, 0x69,
+ 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e,
+ 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79,
+ 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66,
+ 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1f, 0x2f, 0x68, 0x69, 0x67,
+ 0x68, 0x77, 0x61, 0x79, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f,
+ 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x7f, 0x0a, 0x0c, 0x45,
+ 0x78, 0x70, 0x6f, 0x72, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x26, 0x2e, 0x68, 0x69,
+ 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e,
+ 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x77, 0x61,
+ 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x57, 0x61,
+ 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x18, 0x22, 0x16, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x77,
+ 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x42, 0xbe, 0x01, 0x0a,
+ 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x77, 0x61, 0x6c,
+ 0x6c, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50,
+ 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
+ 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68,
+ 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x76, 0x31,
+ 0x3b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x48, 0x57, 0x58, 0xaa,
+ 0x02, 0x11, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74,
+ 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x5c, 0x57, 0x61,
+ 0x6c, 0x6c, 0x65, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61,
+ 0x79, 0x5c, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61,
+ 0x79, 0x3a, 0x3a, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_highway_wallet_v1_service_proto_rawDescOnce sync.Once
+ file_highway_wallet_v1_service_proto_rawDescData = file_highway_wallet_v1_service_proto_rawDesc
+)
+
+func file_highway_wallet_v1_service_proto_rawDescGZIP() []byte {
+ file_highway_wallet_v1_service_proto_rawDescOnce.Do(func() {
+ file_highway_wallet_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_highway_wallet_v1_service_proto_rawDescData)
+ })
+ return file_highway_wallet_v1_service_proto_rawDescData
+}
+
+var file_highway_wallet_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
+var file_highway_wallet_v1_service_proto_goTypes = []interface{}{
+ (*CreateAccountRequest)(nil), // 0: highway.wallet.v1.CreateAccountRequest
+ (*CreateAccountResponse)(nil), // 1: highway.wallet.v1.CreateAccountResponse
+ (*GetAccountRequest)(nil), // 2: highway.wallet.v1.GetAccountRequest
+ (*GetAccountResponse)(nil), // 3: highway.wallet.v1.GetAccountResponse
+ (*ListAccountsRequest)(nil), // 4: highway.wallet.v1.ListAccountsRequest
+ (*ListAccountsResponse)(nil), // 5: highway.wallet.v1.ListAccountsResponse
+ (*SignMessageRequest)(nil), // 6: highway.wallet.v1.SignMessageRequest
+ (*SignMessageResponse)(nil), // 7: highway.wallet.v1.SignMessageResponse
+ (*VerifySignatureRequest)(nil), // 8: highway.wallet.v1.VerifySignatureRequest
+ (*VerifySignatureResponse)(nil), // 9: highway.wallet.v1.VerifySignatureResponse
+ (*ExportWalletRequest)(nil), // 10: highway.wallet.v1.ExportWalletRequest
+ (*ExportWalletResponse)(nil), // 11: highway.wallet.v1.ExportWalletResponse
+ (crypto.CoinType)(0), // 12: common.crypto.CoinType
+}
+var file_highway_wallet_v1_service_proto_depIdxs = []int32{
+ 12, // 0: highway.wallet.v1.CreateAccountRequest.coin_type:type_name -> common.crypto.CoinType
+ 12, // 1: highway.wallet.v1.CreateAccountResponse.coin_type:type_name -> common.crypto.CoinType
+ 12, // 2: highway.wallet.v1.GetAccountResponse.coin_type:type_name -> common.crypto.CoinType
+ 0, // 3: highway.wallet.v1.WalletService.CreateAccount:input_type -> highway.wallet.v1.CreateAccountRequest
+ 2, // 4: highway.wallet.v1.WalletService.GetAccount:input_type -> highway.wallet.v1.GetAccountRequest
+ 4, // 5: highway.wallet.v1.WalletService.ListAccounts:input_type -> highway.wallet.v1.ListAccountsRequest
+ 6, // 6: highway.wallet.v1.WalletService.SignMessage:input_type -> highway.wallet.v1.SignMessageRequest
+ 8, // 7: highway.wallet.v1.WalletService.VerifySignature:input_type -> highway.wallet.v1.VerifySignatureRequest
+ 10, // 8: highway.wallet.v1.WalletService.ExportWallet:input_type -> highway.wallet.v1.ExportWalletRequest
+ 1, // 9: highway.wallet.v1.WalletService.CreateAccount:output_type -> highway.wallet.v1.CreateAccountResponse
+ 3, // 10: highway.wallet.v1.WalletService.GetAccount:output_type -> highway.wallet.v1.GetAccountResponse
+ 5, // 11: highway.wallet.v1.WalletService.ListAccounts:output_type -> highway.wallet.v1.ListAccountsResponse
+ 7, // 12: highway.wallet.v1.WalletService.SignMessage:output_type -> highway.wallet.v1.SignMessageResponse
+ 9, // 13: highway.wallet.v1.WalletService.VerifySignature:output_type -> highway.wallet.v1.VerifySignatureResponse
+ 11, // 14: highway.wallet.v1.WalletService.ExportWallet:output_type -> highway.wallet.v1.ExportWalletResponse
+ 9, // [9:15] is the sub-list for method output_type
+ 3, // [3:9] is the sub-list for method input_type
+ 3, // [3:3] is the sub-list for extension type_name
+ 3, // [3:3] is the sub-list for extension extendee
+ 0, // [0:3] is the sub-list for field type_name
+}
+
+func init() { file_highway_wallet_v1_service_proto_init() }
+func file_highway_wallet_v1_service_proto_init() {
+ if File_highway_wallet_v1_service_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_highway_wallet_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateAccountRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateAccountResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetAccountRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetAccountResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListAccountsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListAccountsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SignMessageRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SignMessageResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*VerifySignatureRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*VerifySignatureResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ExportWalletRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_highway_wallet_v1_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ExportWalletResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_highway_wallet_v1_service_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 12,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_highway_wallet_v1_service_proto_goTypes,
+ DependencyIndexes: file_highway_wallet_v1_service_proto_depIdxs,
+ MessageInfos: file_highway_wallet_v1_service_proto_msgTypes,
+ }.Build()
+ File_highway_wallet_v1_service_proto = out.File
+ file_highway_wallet_v1_service_proto_rawDesc = nil
+ file_highway_wallet_v1_service_proto_goTypes = nil
+ file_highway_wallet_v1_service_proto_depIdxs = nil
+}
diff --git a/api/highway/wallet/v1/service_grpc.pb.go b/api/highway/wallet/v1/service_grpc.pb.go
new file mode 100644
index 000000000..465f1adb4
--- /dev/null
+++ b/api/highway/wallet/v1/service_grpc.pb.go
@@ -0,0 +1,306 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc (unknown)
+// source: highway/wallet/v1/service.proto
+
+package walletv1
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ WalletService_CreateAccount_FullMethodName = "/highway.wallet.v1.WalletService/CreateAccount"
+ WalletService_GetAccount_FullMethodName = "/highway.wallet.v1.WalletService/GetAccount"
+ WalletService_ListAccounts_FullMethodName = "/highway.wallet.v1.WalletService/ListAccounts"
+ WalletService_SignMessage_FullMethodName = "/highway.wallet.v1.WalletService/SignMessage"
+ WalletService_VerifySignature_FullMethodName = "/highway.wallet.v1.WalletService/VerifySignature"
+ WalletService_ExportWallet_FullMethodName = "/highway.wallet.v1.WalletService/ExportWallet"
+)
+
+// WalletServiceClient is the client API for WalletService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type WalletServiceClient interface {
+ // CreateAccount creates a new account.
+ CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error)
+ // GetAccount retrieves an account by its address.
+ GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
+ // ListAccounts lists all accounts.
+ ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
+ // SignMessage signs a message with the private key of an account.
+ SignMessage(ctx context.Context, in *SignMessageRequest, opts ...grpc.CallOption) (*SignMessageResponse, error)
+ // VerifySignature verifies a signature with the public key of an account.
+ VerifySignature(ctx context.Context, in *VerifySignatureRequest, opts ...grpc.CallOption) (*VerifySignatureResponse, error)
+ // ExportWallet exports a wallet.
+ ExportWallet(ctx context.Context, in *ExportWalletRequest, opts ...grpc.CallOption) (*ExportWalletResponse, error)
+}
+
+type walletServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewWalletServiceClient(cc grpc.ClientConnInterface) WalletServiceClient {
+ return &walletServiceClient{cc}
+}
+
+func (c *walletServiceClient) CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error) {
+ out := new(CreateAccountResponse)
+ err := c.cc.Invoke(ctx, WalletService_CreateAccount_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *walletServiceClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) {
+ out := new(GetAccountResponse)
+ err := c.cc.Invoke(ctx, WalletService_GetAccount_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *walletServiceClient) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) {
+ out := new(ListAccountsResponse)
+ err := c.cc.Invoke(ctx, WalletService_ListAccounts_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *walletServiceClient) SignMessage(ctx context.Context, in *SignMessageRequest, opts ...grpc.CallOption) (*SignMessageResponse, error) {
+ out := new(SignMessageResponse)
+ err := c.cc.Invoke(ctx, WalletService_SignMessage_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *walletServiceClient) VerifySignature(ctx context.Context, in *VerifySignatureRequest, opts ...grpc.CallOption) (*VerifySignatureResponse, error) {
+ out := new(VerifySignatureResponse)
+ err := c.cc.Invoke(ctx, WalletService_VerifySignature_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *walletServiceClient) ExportWallet(ctx context.Context, in *ExportWalletRequest, opts ...grpc.CallOption) (*ExportWalletResponse, error) {
+ out := new(ExportWalletResponse)
+ err := c.cc.Invoke(ctx, WalletService_ExportWallet_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// WalletServiceServer is the server API for WalletService service.
+// All implementations must embed UnimplementedWalletServiceServer
+// for forward compatibility
+type WalletServiceServer interface {
+ // CreateAccount creates a new account.
+ CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
+ // GetAccount retrieves an account by its address.
+ GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
+ // ListAccounts lists all accounts.
+ ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
+ // SignMessage signs a message with the private key of an account.
+ SignMessage(context.Context, *SignMessageRequest) (*SignMessageResponse, error)
+ // VerifySignature verifies a signature with the public key of an account.
+ VerifySignature(context.Context, *VerifySignatureRequest) (*VerifySignatureResponse, error)
+ // ExportWallet exports a wallet.
+ ExportWallet(context.Context, *ExportWalletRequest) (*ExportWalletResponse, error)
+ mustEmbedUnimplementedWalletServiceServer()
+}
+
+// UnimplementedWalletServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedWalletServiceServer struct {
+}
+
+func (UnimplementedWalletServiceServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateAccount not implemented")
+}
+func (UnimplementedWalletServiceServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented")
+}
+func (UnimplementedWalletServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented")
+}
+func (UnimplementedWalletServiceServer) SignMessage(context.Context, *SignMessageRequest) (*SignMessageResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method SignMessage not implemented")
+}
+func (UnimplementedWalletServiceServer) VerifySignature(context.Context, *VerifySignatureRequest) (*VerifySignatureResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method VerifySignature not implemented")
+}
+func (UnimplementedWalletServiceServer) ExportWallet(context.Context, *ExportWalletRequest) (*ExportWalletResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ExportWallet not implemented")
+}
+func (UnimplementedWalletServiceServer) mustEmbedUnimplementedWalletServiceServer() {}
+
+// UnsafeWalletServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to WalletServiceServer will
+// result in compilation errors.
+type UnsafeWalletServiceServer interface {
+ mustEmbedUnimplementedWalletServiceServer()
+}
+
+func RegisterWalletServiceServer(s grpc.ServiceRegistrar, srv WalletServiceServer) {
+ s.RegisterService(&WalletService_ServiceDesc, srv)
+}
+
+func _WalletService_CreateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CreateAccountRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(WalletServiceServer).CreateAccount(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: WalletService_CreateAccount_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(WalletServiceServer).CreateAccount(ctx, req.(*CreateAccountRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _WalletService_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetAccountRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(WalletServiceServer).GetAccount(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: WalletService_GetAccount_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(WalletServiceServer).GetAccount(ctx, req.(*GetAccountRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _WalletService_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ListAccountsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(WalletServiceServer).ListAccounts(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: WalletService_ListAccounts_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(WalletServiceServer).ListAccounts(ctx, req.(*ListAccountsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _WalletService_SignMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(SignMessageRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(WalletServiceServer).SignMessage(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: WalletService_SignMessage_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(WalletServiceServer).SignMessage(ctx, req.(*SignMessageRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _WalletService_VerifySignature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(VerifySignatureRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(WalletServiceServer).VerifySignature(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: WalletService_VerifySignature_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(WalletServiceServer).VerifySignature(ctx, req.(*VerifySignatureRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _WalletService_ExportWallet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ExportWalletRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(WalletServiceServer).ExportWallet(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: WalletService_ExportWallet_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(WalletServiceServer).ExportWallet(ctx, req.(*ExportWalletRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// WalletService_ServiceDesc is the grpc.ServiceDesc for WalletService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var WalletService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "highway.wallet.v1.WalletService",
+ HandlerType: (*WalletServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "CreateAccount",
+ Handler: _WalletService_CreateAccount_Handler,
+ },
+ {
+ MethodName: "GetAccount",
+ Handler: _WalletService_GetAccount_Handler,
+ },
+ {
+ MethodName: "ListAccounts",
+ Handler: _WalletService_ListAccounts_Handler,
+ },
+ {
+ MethodName: "SignMessage",
+ Handler: _WalletService_SignMessage_Handler,
+ },
+ {
+ MethodName: "VerifySignature",
+ Handler: _WalletService_VerifySignature_Handler,
+ },
+ {
+ MethodName: "ExportWallet",
+ Handler: _WalletService_ExportWallet_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "highway/wallet/v1/service.proto",
+}
diff --git a/app/app.go b/app/app.go
index ee73be04b..f0cc59bc5 100644
--- a/app/app.go
+++ b/app/app.go
@@ -112,18 +112,18 @@ import (
solomachine "github.com/cosmos/ibc-go/v7/modules/light-clients/06-solomachine"
ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"
- appparams "sonr.io/core/app/params"
- "sonr.io/core/docs"
- "sonr.io/core/internal/highway"
- domainmodule "sonr.io/core/x/domain"
- domainmodulekeeper "sonr.io/core/x/domain/keeper"
- domainmoduletypes "sonr.io/core/x/domain/types"
- identitymodule "sonr.io/core/x/identity"
- identitymodulekeeper "sonr.io/core/x/identity/keeper"
- identitymoduletypes "sonr.io/core/x/identity/types"
- servicemodule "sonr.io/core/x/service"
- servicemodulekeeper "sonr.io/core/x/service/keeper"
- servicemoduletypes "sonr.io/core/x/service/types"
+ appparams "github.com/sonr-io/sonr/app/params"
+ "github.com/sonr-io/sonr/docs"
+ "github.com/sonr-io/sonr/internal/highway"
+ domainmodule "github.com/sonr-io/sonr/x/domain"
+ domainmodulekeeper "github.com/sonr-io/sonr/x/domain/keeper"
+ domainmoduletypes "github.com/sonr-io/sonr/x/domain/types"
+ identitymodule "github.com/sonr-io/sonr/x/identity"
+ identitymodulekeeper "github.com/sonr-io/sonr/x/identity/keeper"
+ identitymoduletypes "github.com/sonr-io/sonr/x/identity/types"
+ servicemodule "github.com/sonr-io/sonr/x/service"
+ servicemodulekeeper "github.com/sonr-io/sonr/x/service/keeper"
+ servicemoduletypes "github.com/sonr-io/sonr/x/service/types"
"github.com/spf13/cast"
)
diff --git a/app/encoding.go b/app/encoding.go
index 436be2fb0..7863b5ae4 100644
--- a/app/encoding.go
+++ b/app/encoding.go
@@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/std"
"github.com/cosmos/cosmos-sdk/x/auth/tx"
- "sonr.io/core/app/params"
+ "github.com/sonr-io/sonr/app/params"
)
// makeEncodingConfig creates an EncodingConfig for an amino based test configuration.
diff --git a/cmd/sonrd/cmd/geninit.go b/cmd/sonrd/cmd/geninit.go
index 385cf83e8..d6cbc563d 100644
--- a/cmd/sonrd/cmd/geninit.go
+++ b/cmd/sonrd/cmd/geninit.go
@@ -20,7 +20,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/genutil"
"github.com/cosmos/go-bip39"
"github.com/pkg/errors"
- "sonr.io/core/config"
+ "github.com/sonr-io/sonr/config"
"github.com/spf13/cobra"
)
diff --git a/cmd/sonrd/cmd/plugin.go b/cmd/sonrd/cmd/plugin.go
index 1e6fb6bfc..789fca3c5 100644
--- a/cmd/sonrd/cmd/plugin.go
+++ b/cmd/sonrd/cmd/plugin.go
@@ -11,11 +11,11 @@ import (
"github.com/spf13/cobra"
flag "github.com/spf13/pflag"
- pluginsconfig "sonr.io/core/config/plugins"
- "sonr.io/core/pkg/clictx"
- "sonr.io/core/pkg/cliui"
- "sonr.io/core/pkg/cliui/icons"
- "sonr.io/core/services/plugin"
+ pluginsconfig "github.com/sonr-io/sonr/config/plugins"
+ "github.com/sonr-io/sonr/pkg/clictx"
+ "github.com/sonr-io/sonr/pkg/cliui"
+ "github.com/sonr-io/sonr/pkg/cliui/icons"
+ "github.com/sonr-io/sonr/services/plugin"
)
const (
diff --git a/cmd/sonrd/cmd/plugin_default.go b/cmd/sonrd/cmd/plugin_default.go
index 80981d450..b1ca04851 100644
--- a/cmd/sonrd/cmd/plugin_default.go
+++ b/cmd/sonrd/cmd/plugin_default.go
@@ -5,9 +5,9 @@ import (
"github.com/spf13/cobra"
- pluginsconfig "sonr.io/core/config/plugins"
- "sonr.io/core/pkg/cliui"
- "sonr.io/core/services/plugin"
+ pluginsconfig "github.com/sonr-io/sonr/config/plugins"
+ "github.com/sonr-io/sonr/pkg/cliui"
+ "github.com/sonr-io/sonr/services/plugin"
)
type defaultPlugin struct {
diff --git a/cmd/sonrd/cmd/root.go b/cmd/sonrd/cmd/root.go
index 9a4eaea5b..25cad1a94 100644
--- a/cmd/sonrd/cmd/root.go
+++ b/cmd/sonrd/cmd/root.go
@@ -43,10 +43,10 @@ import (
"github.com/spf13/pflag"
"github.com/spf13/viper"
- "sonr.io/core/app"
- appparams "sonr.io/core/app/params"
- sonrdconfig "sonr.io/core/config"
- "sonr.io/core/internal/highway"
+ "github.com/sonr-io/sonr/app"
+ appparams "github.com/sonr-io/sonr/app/params"
+ sonrdconfig "github.com/sonr-io/sonr/config"
+ "github.com/sonr-io/sonr/internal/highway"
)
var (
diff --git a/cmd/sonrd/main.go b/cmd/sonrd/main.go
index 6c94a85de..02767defc 100644
--- a/cmd/sonrd/main.go
+++ b/cmd/sonrd/main.go
@@ -6,8 +6,8 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
- "sonr.io/core/app"
- sonrcmd "sonr.io/core/cmd/sonrd/cmd"
+ "github.com/sonr-io/sonr/app"
+ sonrcmd "github.com/sonr-io/sonr/cmd/sonrd/cmd"
)
func main() {
diff --git a/config/config.go b/config/config.go
index 759cddfae..5383cb56f 100644
--- a/config/config.go
+++ b/config/config.go
@@ -1,8 +1,8 @@
package config
import (
- "sonr.io/core/pkg/env"
- "sonr.io/core/pkg/xfilepath"
+ "github.com/sonr-io/sonr/pkg/env"
+ "github.com/sonr-io/sonr/pkg/xfilepath"
)
var c Config
diff --git a/config/defaults.go b/config/defaults.go
index 4b10df79e..d4574b228 100644
--- a/config/defaults.go
+++ b/config/defaults.go
@@ -4,7 +4,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/viper"
- "sonr.io/core/app"
+ "github.com/sonr-io/sonr/app"
)
// Masthead is the masthead of the application.
diff --git a/config/plugins/config.go b/config/plugins/config.go
index 721105430..811087456 100644
--- a/config/plugins/config.go
+++ b/config/plugins/config.go
@@ -9,7 +9,7 @@ import (
"golang.org/x/exp/slices"
"gopkg.in/yaml.v2"
- "sonr.io/core/pkg/gomodule"
+ "github.com/sonr-io/sonr/pkg/gomodule"
)
type Config struct {
diff --git a/config/plugins/config_test.go b/config/plugins/config_test.go
index 3d46a25fc..9bcfed73b 100644
--- a/config/plugins/config_test.go
+++ b/config/plugins/config_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- pluginsconfig "sonr.io/core/config/plugins"
+ pluginsconfig "github.com/sonr-io/sonr/config/plugins"
)
func TestPluginIsGlobal(t *testing.T) {
diff --git a/docker/start/Dockerfile.dev b/docker/start/Dockerfile.dev
index 5b9f6486a..863b1bd92 100644
--- a/docker/start/Dockerfile.dev
+++ b/docker/start/Dockerfile.dev
@@ -7,7 +7,7 @@ ARG RUNNER_IMAGE="alpine:3.16"
# ! ||----------------------------------------------------------------------------------||
FROM --platform=linux alpine
-LABEL org.opencontainers.image.source https://sonr.io/core
+LABEL org.opencontainers.image.source https://github.com/sonr-io/sonr
LABEL org.opencontainers.image.description "Base sonr daemon image"
# Copy sonrd binary and config
COPY ../bin/sonrd /usr/local/bin/sonrd
diff --git a/go.mod b/go.mod
index 40e4c5c0e..8139b9577 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module sonr.io/core
+module github.com/sonr-io/sonr
go 1.21
diff --git a/internal/crypto/credential.go b/internal/crypto/credential.go
index b37aa8102..46f9c22bf 100644
--- a/internal/crypto/credential.go
+++ b/internal/crypto/credential.go
@@ -6,7 +6,7 @@ import (
"github.com/go-webauthn/webauthn/protocol"
- "sonr.io/core/types/crypto"
+ "github.com/sonr-io/sonr/types/crypto"
)
const (
diff --git a/internal/crypto/crypto.go b/internal/crypto/crypto.go
index 4177a63bd..8b2985b64 100644
--- a/internal/crypto/crypto.go
+++ b/internal/crypto/crypto.go
@@ -11,7 +11,7 @@ import (
mb "github.com/multiformats/go-multibase"
"github.com/multiformats/go-varint"
"github.com/shengdoushi/base58"
- types "sonr.io/core/types/crypto"
+ types "github.com/sonr-io/sonr/types/crypto"
)
// Secp256k1PubKey is a type alias for secp256k1.PubKey in pkg/crypto/keys/secp256k1.
diff --git a/internal/highway/handler/auth.go b/internal/highway/handler/auth.go
index 5afc0fd17..b588db225 100644
--- a/internal/highway/handler/auth.go
+++ b/internal/highway/handler/auth.go
@@ -5,9 +5,9 @@ import (
"fmt"
"github.com/cosmos/cosmos-sdk/client"
- mdw "sonr.io/core/internal/highway/middleware"
- "sonr.io/core/internal/highway/types"
- authenticationpb "sonr.io/core/types/highway/authentication/v1"
+ mdw "github.com/sonr-io/sonr/internal/highway/middleware"
+ "github.com/sonr-io/sonr/internal/highway/types"
+ authenticationpb "github.com/sonr-io/sonr/types/highway/authentication/v1"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
diff --git a/internal/highway/handler/database.go b/internal/highway/handler/database.go
index 2a5e4b226..7318e3b46 100644
--- a/internal/highway/handler/database.go
+++ b/internal/highway/handler/database.go
@@ -3,7 +3,7 @@ package handler
import (
"context"
- databasepb "sonr.io/core/types/highway/database/v1"
+ databasepb "github.com/sonr-io/sonr/types/highway/database/v1"
)
// DatabaseHandler is the handler for the authentication service
diff --git a/internal/highway/handler/handler.go b/internal/highway/handler/handler.go
index 583937893..4d9698ec1 100644
--- a/internal/highway/handler/handler.go
+++ b/internal/highway/handler/handler.go
@@ -4,10 +4,10 @@ import (
"context"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
- authenticationpb "sonr.io/core/types/highway/authentication/v1"
- databasepb "sonr.io/core/types/highway/database/v1"
- storagepb "sonr.io/core/types/highway/storage/v1"
- walletpb "sonr.io/core/types/highway/wallet/v1"
+ authenticationpb "github.com/sonr-io/sonr/types/highway/authentication/v1"
+ databasepb "github.com/sonr-io/sonr/types/highway/database/v1"
+ storagepb "github.com/sonr-io/sonr/types/highway/storage/v1"
+ walletpb "github.com/sonr-io/sonr/types/highway/wallet/v1"
)
// RegisterHandlers registers the Highway Service Server.
diff --git a/internal/highway/handler/storage.go b/internal/highway/handler/storage.go
index 3761bba78..c672c8b03 100644
--- a/internal/highway/handler/storage.go
+++ b/internal/highway/handler/storage.go
@@ -5,7 +5,7 @@ import (
"fmt"
"github.com/cosmos/cosmos-sdk/client"
- storagepb "sonr.io/core/types/highway/storage/v1"
+ storagepb "github.com/sonr-io/sonr/types/highway/storage/v1"
)
// StorageHandler is the handler for the authentication service
diff --git a/internal/highway/handler/wallet.go b/internal/highway/handler/wallet.go
index be688c6b9..5de4e36ea 100644
--- a/internal/highway/handler/wallet.go
+++ b/internal/highway/handler/wallet.go
@@ -5,10 +5,10 @@ import (
"fmt"
"github.com/cosmos/cosmos-sdk/client"
- "sonr.io/core/internal/crypto"
- mdw "sonr.io/core/internal/highway/middleware"
+ "github.com/sonr-io/sonr/internal/crypto"
+ mdw "github.com/sonr-io/sonr/internal/highway/middleware"
- walletpb "sonr.io/core/types/highway/wallet/v1"
+ walletpb "github.com/sonr-io/sonr/types/highway/wallet/v1"
)
// WalletAPI is the alias for the Highway Wallet Service Server.
diff --git a/internal/highway/highway.go b/internal/highway/highway.go
index d20dee26b..a97785d0a 100644
--- a/internal/highway/highway.go
+++ b/internal/highway/highway.go
@@ -6,7 +6,7 @@ import (
"net/http"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
- "sonr.io/core/internal/highway/handler"
+ "github.com/sonr-io/sonr/internal/highway/handler"
)
var hway *Instance
diff --git a/internal/highway/middleware/options.go b/internal/highway/middleware/options.go
index 86878ff22..0a998d202 100644
--- a/internal/highway/middleware/options.go
+++ b/internal/highway/middleware/options.go
@@ -5,7 +5,7 @@ import (
"github.com/go-webauthn/webauthn/protocol"
- authenticationpb "sonr.io/core/types/highway/authentication/v1"
+ authenticationpb "github.com/sonr-io/sonr/types/highway/authentication/v1"
)
// GetCredentialAttestationParams returns the credential attestation options to start wallet registration.
diff --git a/internal/highway/middleware/proxy.go b/internal/highway/middleware/proxy.go
index 94ce4c845..e465bf713 100644
--- a/internal/highway/middleware/proxy.go
+++ b/internal/highway/middleware/proxy.go
@@ -4,9 +4,9 @@ import (
"context"
"fmt"
- domaintypes "sonr.io/core/x/domain/types"
- identitytypes "sonr.io/core/x/identity/types"
- servicetypes "sonr.io/core/x/service/types"
+ domaintypes "github.com/sonr-io/sonr/x/domain/types"
+ identitytypes "github.com/sonr-io/sonr/x/identity/types"
+ servicetypes "github.com/sonr-io/sonr/x/service/types"
"github.com/spf13/viper"
"google.golang.org/grpc"
)
diff --git a/internal/highway/middleware/verifier.go b/internal/highway/middleware/verifier.go
index 1caed968a..8bcdef4b7 100644
--- a/internal/highway/middleware/verifier.go
+++ b/internal/highway/middleware/verifier.go
@@ -6,13 +6,13 @@ import (
"github.com/gin-gonic/gin"
"github.com/go-webauthn/webauthn/protocol"
- "sonr.io/core/internal/crypto"
- "sonr.io/core/internal/highway/types"
- "sonr.io/core/services/did/controller"
- "sonr.io/core/types/webauthn"
- domaintypes "sonr.io/core/x/domain/types"
- identitytypes "sonr.io/core/x/identity/types"
- servicetypes "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/internal/highway/types"
+ "github.com/sonr-io/sonr/services/did/controller"
+ "github.com/sonr-io/sonr/types/webauthn"
+ domaintypes "github.com/sonr-io/sonr/x/domain/types"
+ identitytypes "github.com/sonr-io/sonr/x/identity/types"
+ servicetypes "github.com/sonr-io/sonr/x/service/types"
)
// The function GetAuthCookies takes a gin.Context as input and returns three strings and an error.
diff --git a/internal/highway/types/claims.go b/internal/highway/types/claims.go
index 228d5c53f..281163759 100644
--- a/internal/highway/types/claims.go
+++ b/internal/highway/types/claims.go
@@ -9,8 +9,8 @@ import (
"github.com/kataras/jwt"
"github.com/spf13/viper"
- "sonr.io/core/internal/crypto"
- identitytypes "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/internal/crypto"
+ identitytypes "github.com/sonr-io/sonr/x/identity/types"
)
// ! ||--------------------------------------------------------------------------------||
diff --git a/internal/highway/types/response.go b/internal/highway/types/response.go
index 18e4aa1b6..3b7f2b5f1 100644
--- a/internal/highway/types/response.go
+++ b/internal/highway/types/response.go
@@ -3,8 +3,8 @@ package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/internal/crypto"
- identitytypes "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/internal/crypto"
+ identitytypes "github.com/sonr-io/sonr/x/identity/types"
)
// AuthenticationResult struct is defining a data structure that represents the response returned after a successful authentication process. It contains various fields such as `Account`, `Address`, `Alias`, `DID`, `DIDDocument`, and `JWT`, which hold information related to
diff --git a/internal/sfs/base/redis/client.go b/internal/sfs/base/redis/client.go
index e29c2fc32..1cd772990 100644
--- a/internal/sfs/base/redis/client.go
+++ b/internal/sfs/base/redis/client.go
@@ -5,7 +5,7 @@ import (
"fmt"
"github.com/go-redis/redis/v8"
- "sonr.io/core/internal/sfs/types"
+ "github.com/sonr-io/sonr/internal/sfs/types"
"github.com/spf13/viper"
)
diff --git a/internal/sfs/base/redis/map.go b/internal/sfs/base/redis/map.go
index b5b6f8978..40abef891 100644
--- a/internal/sfs/base/redis/map.go
+++ b/internal/sfs/base/redis/map.go
@@ -1,7 +1,7 @@
package redis
import (
- "sonr.io/core/internal/sfs/types"
+ "github.com/sonr-io/sonr/internal/sfs/types"
)
type sfsMap struct {
diff --git a/internal/sfs/base/redis/set.go b/internal/sfs/base/redis/set.go
index 30c641cac..2027f7f54 100644
--- a/internal/sfs/base/redis/set.go
+++ b/internal/sfs/base/redis/set.go
@@ -3,7 +3,7 @@ package redis
import (
"fmt"
- "sonr.io/core/internal/sfs/types"
+ "github.com/sonr-io/sonr/internal/sfs/types"
)
type sfsSet struct {
diff --git a/internal/sfs/sfs.go b/internal/sfs/sfs.go
index f162a4ff9..3a724c73a 100644
--- a/internal/sfs/sfs.go
+++ b/internal/sfs/sfs.go
@@ -1,8 +1,8 @@
package sfs
import (
- "sonr.io/core/internal/sfs/base/redis"
- "sonr.io/core/internal/sfs/types"
+ "github.com/sonr-io/sonr/internal/sfs/base/redis"
+ "github.com/sonr-io/sonr/internal/sfs/types"
)
type Map = types.SFSMap
diff --git a/internal/zk/zkset.go b/internal/zk/zkset.go
index 1cd2a96fb..242c07b76 100644
--- a/internal/zk/zkset.go
+++ b/internal/zk/zkset.go
@@ -7,9 +7,9 @@ import (
"errors"
"io"
- "sonr.io/core/internal/crypto"
"github.com/sonr-io/kryptology/pkg/accumulator"
"github.com/sonr-io/kryptology/pkg/core/curves"
+ "github.com/sonr-io/sonr/internal/crypto"
)
type Accumulator = accumulator.Accumulator
diff --git a/internal/zk/zkset_test.go b/internal/zk/zkset_test.go
index 5793a9090..b7897fcde 100644
--- a/internal/zk/zkset_test.go
+++ b/internal/zk/zkset_test.go
@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "sonr.io/core/internal/zk"
+ "github.com/sonr-io/sonr/internal/zk"
)
func TestZkSet(t *testing.T) {
diff --git a/pkg/cache/cache_test.go b/pkg/cache/cache_test.go
index 7cddecd50..27e76c2c1 100644
--- a/pkg/cache/cache_test.go
+++ b/pkg/cache/cache_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/cache"
+ "github.com/sonr-io/sonr/pkg/cache"
)
type TestStruct struct {
diff --git a/pkg/cliui/cliui.go b/pkg/cliui/cliui.go
index ab4baea83..186c7af4e 100755
--- a/pkg/cliui/cliui.go
+++ b/pkg/cliui/cliui.go
@@ -8,11 +8,11 @@ import (
"github.com/manifoldco/promptui"
- "sonr.io/core/pkg/cliui/cliquiz"
- "sonr.io/core/pkg/cliui/clispinner"
- "sonr.io/core/pkg/cliui/entrywriter"
- uilog "sonr.io/core/pkg/cliui/log"
- "sonr.io/core/pkg/events"
+ "github.com/sonr-io/sonr/pkg/cliui/cliquiz"
+ "github.com/sonr-io/sonr/pkg/cliui/clispinner"
+ "github.com/sonr-io/sonr/pkg/cliui/entrywriter"
+ uilog "github.com/sonr-io/sonr/pkg/cliui/log"
+ "github.com/sonr-io/sonr/pkg/events"
)
type sessionOptions struct {
diff --git a/pkg/cliui/entrywriter/entrywriter.go b/pkg/cliui/entrywriter/entrywriter.go
index 54557c46e..da8e0b7f0 100755
--- a/pkg/cliui/entrywriter/entrywriter.go
+++ b/pkg/cliui/entrywriter/entrywriter.go
@@ -7,7 +7,7 @@ import (
"github.com/pkg/errors"
- "sonr.io/core/pkg/xstrings"
+ "github.com/sonr-io/sonr/pkg/xstrings"
)
const (
diff --git a/pkg/cliui/entrywriter/entrywriter_test.go b/pkg/cliui/entrywriter/entrywriter_test.go
index 3ffb86680..f76626be2 100755
--- a/pkg/cliui/entrywriter/entrywriter_test.go
+++ b/pkg/cliui/entrywriter/entrywriter_test.go
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/cliui/entrywriter"
+ "github.com/sonr-io/sonr/pkg/cliui/entrywriter"
)
type WriterWithError struct{}
diff --git a/pkg/cliui/icons/icon.go b/pkg/cliui/icons/icon.go
index 04acf2852..e02a03534 100755
--- a/pkg/cliui/icons/icon.go
+++ b/pkg/cliui/icons/icon.go
@@ -1,7 +1,7 @@
package icons
import (
- "sonr.io/core/pkg/cliui/colors"
+ "github.com/sonr-io/sonr/pkg/cliui/colors"
)
var (
diff --git a/pkg/cliui/log/output.go b/pkg/cliui/log/output.go
index 62348c693..670a9a4ee 100755
--- a/pkg/cliui/log/output.go
+++ b/pkg/cliui/log/output.go
@@ -4,10 +4,10 @@ import (
"io"
"os"
- "sonr.io/core/pkg/cliui/colors"
- "sonr.io/core/pkg/cliui/lineprefixer"
- "sonr.io/core/pkg/cliui/prefixgen"
- "sonr.io/core/pkg/xio"
+ "github.com/sonr-io/sonr/pkg/cliui/colors"
+ "github.com/sonr-io/sonr/pkg/cliui/lineprefixer"
+ "github.com/sonr-io/sonr/pkg/cliui/prefixgen"
+ "github.com/sonr-io/sonr/pkg/xio"
)
const (
diff --git a/pkg/cliui/model/events.go b/pkg/cliui/model/events.go
index af8c3f0f8..1e1baba63 100755
--- a/pkg/cliui/model/events.go
+++ b/pkg/cliui/model/events.go
@@ -9,9 +9,9 @@ import (
"github.com/charmbracelet/bubbles/spinner"
tea "github.com/charmbracelet/bubbletea"
- "sonr.io/core/pkg/cliui/colors"
- "sonr.io/core/pkg/cliui/icons"
- "sonr.io/core/pkg/events"
+ "github.com/sonr-io/sonr/pkg/cliui/colors"
+ "github.com/sonr-io/sonr/pkg/cliui/icons"
+ "github.com/sonr-io/sonr/pkg/events"
)
// EventMsg defines a message for events.
diff --git a/pkg/cliui/model/events_test.go b/pkg/cliui/model/events_test.go
index 50c0b277a..067f8173e 100755
--- a/pkg/cliui/model/events_test.go
+++ b/pkg/cliui/model/events_test.go
@@ -8,10 +8,10 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/cliui/colors"
- "sonr.io/core/pkg/cliui/icons"
- cliuimodel "sonr.io/core/pkg/cliui/model"
- "sonr.io/core/pkg/events"
+ "github.com/sonr-io/sonr/pkg/cliui/colors"
+ "github.com/sonr-io/sonr/pkg/cliui/icons"
+ cliuimodel "github.com/sonr-io/sonr/pkg/cliui/model"
+ "github.com/sonr-io/sonr/pkg/events"
)
func TestStatusEventsView(t *testing.T) {
diff --git a/pkg/cliui/prefixgen/prefixgen.go b/pkg/cliui/prefixgen/prefixgen.go
index 79548884e..c44b186ca 100755
--- a/pkg/cliui/prefixgen/prefixgen.go
+++ b/pkg/cliui/prefixgen/prefixgen.go
@@ -6,7 +6,7 @@ import (
"fmt"
"strings"
- "sonr.io/core/pkg/cliui/colors"
+ "github.com/sonr-io/sonr/pkg/cliui/colors"
)
// Prefixer generates prefixes.
diff --git a/pkg/cliui/view/accountview/account.go b/pkg/cliui/view/accountview/account.go
index bf97d8dae..c4aee44f9 100755
--- a/pkg/cliui/view/accountview/account.go
+++ b/pkg/cliui/view/accountview/account.go
@@ -7,8 +7,8 @@ import (
"github.com/muesli/reflow/indent"
"github.com/muesli/reflow/wordwrap"
- "sonr.io/core/pkg/cliui/colors"
- "sonr.io/core/pkg/cliui/icons"
+ "github.com/sonr-io/sonr/pkg/cliui/colors"
+ "github.com/sonr-io/sonr/pkg/cliui/icons"
)
var (
diff --git a/pkg/cliui/view/errorview/error.go b/pkg/cliui/view/errorview/error.go
index 260f79d98..164ee3c09 100755
--- a/pkg/cliui/view/errorview/error.go
+++ b/pkg/cliui/view/errorview/error.go
@@ -5,7 +5,7 @@ import (
"github.com/muesli/reflow/wordwrap"
- "sonr.io/core/pkg/cliui/colors"
+ "github.com/sonr-io/sonr/pkg/cliui/colors"
)
func NewError(err error) Error {
diff --git a/pkg/cmdrunner/cmdrunner.go b/pkg/cmdrunner/cmdrunner.go
index 8041a9a86..d91cc6571 100644
--- a/pkg/cmdrunner/cmdrunner.go
+++ b/pkg/cmdrunner/cmdrunner.go
@@ -10,9 +10,9 @@ import (
"golang.org/x/sync/errgroup"
- "sonr.io/core/pkg/cmdrunner/step"
- "sonr.io/core/pkg/env"
- "sonr.io/core/pkg/goenv"
+ "github.com/sonr-io/sonr/pkg/cmdrunner/step"
+ "github.com/sonr-io/sonr/pkg/env"
+ "github.com/sonr-io/sonr/pkg/goenv"
)
// Runner is an object to run commands.
diff --git a/pkg/cmdrunner/exec/exec.go b/pkg/cmdrunner/exec/exec.go
index 5085cdb49..58aec2739 100644
--- a/pkg/cmdrunner/exec/exec.go
+++ b/pkg/cmdrunner/exec/exec.go
@@ -10,8 +10,8 @@ import (
"github.com/pkg/errors"
- "sonr.io/core/pkg/cmdrunner"
- "sonr.io/core/pkg/cmdrunner/step"
+ "github.com/sonr-io/sonr/pkg/cmdrunner"
+ "github.com/sonr-io/sonr/pkg/cmdrunner/step"
)
// ExitError is an alias to exec.ExitError.
diff --git a/pkg/env/env.go b/pkg/env/env.go
index 249f951d5..d4b9cac28 100644
--- a/pkg/env/env.go
+++ b/pkg/env/env.go
@@ -5,7 +5,7 @@ import (
"os"
"path"
- "sonr.io/core/pkg/xfilepath"
+ "github.com/sonr-io/sonr/pkg/xfilepath"
)
const (
diff --git a/pkg/events/events_test.go b/pkg/events/events_test.go
index ad695d72a..48fece846 100644
--- a/pkg/events/events_test.go
+++ b/pkg/events/events_test.go
@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/events"
+ "github.com/sonr-io/sonr/pkg/events"
)
func TestNew(t *testing.T) {
diff --git a/pkg/gocmd/gocmd.go b/pkg/gocmd/gocmd.go
index f49823299..c9a5532b0 100644
--- a/pkg/gocmd/gocmd.go
+++ b/pkg/gocmd/gocmd.go
@@ -9,9 +9,9 @@ import (
"path/filepath"
"strings"
- "sonr.io/core/pkg/cmdrunner/exec"
- "sonr.io/core/pkg/cmdrunner/step"
- "sonr.io/core/pkg/goenv"
+ "github.com/sonr-io/sonr/pkg/cmdrunner/exec"
+ "github.com/sonr-io/sonr/pkg/cmdrunner/step"
+ "github.com/sonr-io/sonr/pkg/goenv"
)
const (
diff --git a/pkg/gomodule/gomodule.go b/pkg/gomodule/gomodule.go
index 32c0eb399..7ebfdf947 100644
--- a/pkg/gomodule/gomodule.go
+++ b/pkg/gomodule/gomodule.go
@@ -14,9 +14,9 @@ import (
"golang.org/x/mod/modfile"
"golang.org/x/mod/module"
- "sonr.io/core/pkg/cache"
- "sonr.io/core/pkg/cmdrunner"
- "sonr.io/core/pkg/cmdrunner/step"
+ "github.com/sonr-io/sonr/pkg/cache"
+ "github.com/sonr-io/sonr/pkg/cmdrunner"
+ "github.com/sonr-io/sonr/pkg/cmdrunner/step"
)
const pathCacheNamespace = "gomodule.path"
diff --git a/pkg/placeholder/error.go b/pkg/placeholder/error.go
index cd4e12f14..2c330bd27 100755
--- a/pkg/placeholder/error.go
+++ b/pkg/placeholder/error.go
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
- "sonr.io/core/pkg/validation"
+ "github.com/sonr-io/sonr/pkg/validation"
)
var _ validation.Error = (*MissingPlaceholdersError)(nil)
diff --git a/pkg/xfilepath/xfilepath_test.go b/pkg/xfilepath/xfilepath_test.go
index 87603e6c1..a1a9d9e8f 100644
--- a/pkg/xfilepath/xfilepath_test.go
+++ b/pkg/xfilepath/xfilepath_test.go
@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/xfilepath"
+ "github.com/sonr-io/sonr/pkg/xfilepath"
)
func TestJoin(t *testing.T) {
diff --git a/pkg/xgenny/run.go b/pkg/xgenny/run.go
index 3fc1c2560..48558cd93 100755
--- a/pkg/xgenny/run.go
+++ b/pkg/xgenny/run.go
@@ -10,8 +10,8 @@ import (
"github.com/gobuffalo/logger"
"github.com/gobuffalo/packd"
- "sonr.io/core/pkg/placeholder"
- "sonr.io/core/pkg/validation"
+ "github.com/sonr-io/sonr/pkg/placeholder"
+ "github.com/sonr-io/sonr/pkg/validation"
)
var _ validation.Error = (*dryRunError)(nil)
diff --git a/pkg/xgenny/sourcemodification_test.go b/pkg/xgenny/sourcemodification_test.go
index 307504fd6..7653cf699 100755
--- a/pkg/xgenny/sourcemodification_test.go
+++ b/pkg/xgenny/sourcemodification_test.go
@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/xgenny"
+ "github.com/sonr-io/sonr/pkg/xgenny"
)
var (
diff --git a/pkg/xgenny/xgenny_test.go b/pkg/xgenny/xgenny_test.go
index c0a4fce7b..e08bed71e 100755
--- a/pkg/xgenny/xgenny_test.go
+++ b/pkg/xgenny/xgenny_test.go
@@ -9,7 +9,7 @@ import (
"github.com/gobuffalo/plush/v4"
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/xgenny"
+ "github.com/sonr-io/sonr/pkg/xgenny"
)
func Test_Transformer(t *testing.T) {
diff --git a/pkg/xgit/xgit_test.go b/pkg/xgit/xgit_test.go
index c0399aac1..da0f0735c 100644
--- a/pkg/xgit/xgit_test.go
+++ b/pkg/xgit/xgit_test.go
@@ -14,8 +14,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/randstr"
- "sonr.io/core/pkg/xgit"
+ "github.com/sonr-io/sonr/pkg/randstr"
+ "github.com/sonr-io/sonr/pkg/xgit"
)
func TestInitAndCommit(t *testing.T) {
diff --git a/pkg/xnet/xnet_test.go b/pkg/xnet/xnet_test.go
index bd6ae3f98..dd35362f8 100755
--- a/pkg/xnet/xnet_test.go
+++ b/pkg/xnet/xnet_test.go
@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/xnet"
+ "github.com/sonr-io/sonr/pkg/xnet"
)
func TestLocalhostIPv4Address(t *testing.T) {
diff --git a/pkg/xos/cp_test.go b/pkg/xos/cp_test.go
index 8cb111bfd..99ee32f92 100755
--- a/pkg/xos/cp_test.go
+++ b/pkg/xos/cp_test.go
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/xos"
+ "github.com/sonr-io/sonr/pkg/xos"
)
func TestCopyFolder(t *testing.T) {
diff --git a/pkg/xos/files_test.go b/pkg/xos/files_test.go
index de189fa0e..2ac0d3f8d 100755
--- a/pkg/xos/files_test.go
+++ b/pkg/xos/files_test.go
@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/xos"
+ "github.com/sonr-io/sonr/pkg/xos"
)
func TestFindFiles(t *testing.T) {
diff --git a/pkg/xos/mv_test.go b/pkg/xos/mv_test.go
index c80689e78..8ee67db23 100755
--- a/pkg/xos/mv_test.go
+++ b/pkg/xos/mv_test.go
@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/xos"
+ "github.com/sonr-io/sonr/pkg/xos"
)
func TestRename(t *testing.T) {
diff --git a/pkg/xstrings/xstrings_test.go b/pkg/xstrings/xstrings_test.go
index 0979e4d0f..6887c3e0b 100755
--- a/pkg/xstrings/xstrings_test.go
+++ b/pkg/xstrings/xstrings_test.go
@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/xstrings"
+ "github.com/sonr-io/sonr/pkg/xstrings"
)
func TestNoDash(t *testing.T) {
diff --git a/pkg/xtime/clock_test.go b/pkg/xtime/clock_test.go
index afdf71047..de8026e22 100755
--- a/pkg/xtime/clock_test.go
+++ b/pkg/xtime/clock_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
- "sonr.io/core/pkg/xtime"
+ "github.com/sonr-io/sonr/pkg/xtime"
)
func TestClockSystem(t *testing.T) {
diff --git a/pkg/xtime/unix_test.go b/pkg/xtime/unix_test.go
index 37fc2123c..d05f62b76 100755
--- a/pkg/xtime/unix_test.go
+++ b/pkg/xtime/unix_test.go
@@ -5,7 +5,7 @@ import (
"testing"
"time"
- "sonr.io/core/pkg/xtime"
+ "github.com/sonr-io/sonr/pkg/xtime"
"github.com/stretchr/testify/require"
)
diff --git a/pkg/yaml/map_test.go b/pkg/yaml/map_test.go
index 746482ee2..6081b0d47 100755
--- a/pkg/yaml/map_test.go
+++ b/pkg/yaml/map_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v2"
- xyaml "sonr.io/core/pkg/yaml"
+ xyaml "github.com/sonr-io/sonr/pkg/yaml"
)
func TestUnmarshalWithCustomMapType(t *testing.T) {
diff --git a/proto/common/crypto/coin.proto b/proto/common/crypto/coin.proto
index 01a763509..f1bdb5b43 100644
--- a/proto/common/crypto/coin.proto
+++ b/proto/common/crypto/coin.proto
@@ -2,7 +2,7 @@ syntax = "proto3";
package common.crypto;
-option go_package = "sonr.io/core/types/crypto";
+option go_package = "github.com/sonr-io/sonr/types/crypto";
// CoinType is the BIP-0044 coin type for each supported coin.
enum CoinType {
diff --git a/proto/common/crypto/ssi.proto b/proto/common/crypto/ssi.proto
index 98269f4a0..74338d133 100644
--- a/proto/common/crypto/ssi.proto
+++ b/proto/common/crypto/ssi.proto
@@ -1,7 +1,7 @@
syntax = "proto3";
package common.crypto;
-option go_package = "sonr.io/core/types/crypto";
+option go_package = "github.com/sonr-io/sonr/types/crypto";
// KeyType is the type of key used to sign a DID document.
enum KeyType {
diff --git a/proto/common/crypto/vc.proto b/proto/common/crypto/vc.proto
index 356e6566b..38bd92c1e 100644
--- a/proto/common/crypto/vc.proto
+++ b/proto/common/crypto/vc.proto
@@ -3,7 +3,7 @@ package common.crypto;
// this line is used by starport scaffolding # proto/tx/import
-option go_package = "sonr.io/core/types/crypto";
+option go_package = "github.com/sonr-io/sonr/types/crypto";
// PubKey represents a public key in bytes format.
message PubKey {
diff --git a/proto/common/webauthn/credential.proto b/proto/common/webauthn/credential.proto
index cd1f7ea29..3edef49bd 100644
--- a/proto/common/webauthn/credential.proto
+++ b/proto/common/webauthn/credential.proto
@@ -2,7 +2,7 @@
syntax = "proto3";
package common.webauthn;
-option go_package = "sonr.io/core/types/webauthn";
+option go_package = "github.com/sonr-io/sonr/types/webauthn";
// Credential is a message type that contains all needed information
// about a WebAuthn credential for storage.
diff --git a/proto/core/domain/genesis.proto b/proto/core/domain/genesis.proto
index 351c52fa6..ac4e4de05 100644
--- a/proto/core/domain/genesis.proto
+++ b/proto/core/domain/genesis.proto
@@ -6,7 +6,7 @@ import "core/domain/params.proto";
import "core/domain/record.proto";
import "gogoproto/gogo.proto";
-option go_package = "sonr.io/core/x/domain/types";
+option go_package = "github.com/sonr-io/sonr/x/domain/types";
// GenesisState defines the domain module's genesis state.
message GenesisState {
diff --git a/proto/core/domain/params.proto b/proto/core/domain/params.proto
index b60a7fd7c..b23318124 100644
--- a/proto/core/domain/params.proto
+++ b/proto/core/domain/params.proto
@@ -3,7 +3,7 @@ package core.domain;
import "gogoproto/gogo.proto";
-option go_package = "sonr.io/core/x/domain/types";
+option go_package = "github.com/sonr-io/sonr/x/domain/types";
// Params defines the parameters for the module.
message Params { option (gogoproto.goproto_stringer) = false; }
diff --git a/proto/core/domain/query.proto b/proto/core/domain/query.proto
index 8d7e70641..b9f144bc1 100644
--- a/proto/core/domain/query.proto
+++ b/proto/core/domain/query.proto
@@ -8,7 +8,7 @@ import "cosmos/base/query/v1beta1/pagination.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
-option go_package = "sonr.io/core/x/domain/types";
+option go_package = "github.com/sonr-io/sonr/x/domain/types";
// Query defines the gRPC querier service.
// It provides methods to query parameters and UsernameRecords.
diff --git a/proto/core/domain/record.proto b/proto/core/domain/record.proto
index d1624529d..84636f951 100644
--- a/proto/core/domain/record.proto
+++ b/proto/core/domain/record.proto
@@ -1,7 +1,7 @@
syntax = "proto3";
package core.domain;
-option go_package = "sonr.io/core/x/domain/types";
+option go_package = "github.com/sonr-io/sonr/x/domain/types";
message UsernameRecord {
string index = 1;
diff --git a/proto/core/domain/tx.proto b/proto/core/domain/tx.proto
index 183d47e29..8112806de 100644
--- a/proto/core/domain/tx.proto
+++ b/proto/core/domain/tx.proto
@@ -4,7 +4,7 @@ package core.domain;
import "core/domain/record.proto";
-option go_package = "sonr.io/core/x/domain/types";
+option go_package = "github.com/sonr-io/sonr/x/domain/types";
// Msg defines the Msg service.
// This service provides CRUD operations for UsernameRecords.
diff --git a/proto/core/identity/account.proto b/proto/core/identity/account.proto
index 54f0e4ec1..0d5bfdcc3 100644
--- a/proto/core/identity/account.proto
+++ b/proto/core/identity/account.proto
@@ -1,7 +1,7 @@
syntax = "proto3";
package core.identity;
-option go_package = "sonr.io/core/x/identity/types";
+option go_package = "github.com/sonr-io/sonr/x/identity/types";
message ControllerAccount {
string address = 1;
diff --git a/proto/core/identity/did.proto b/proto/core/identity/did.proto
index 63aa5bbc3..9f7bc3159 100644
--- a/proto/core/identity/did.proto
+++ b/proto/core/identity/did.proto
@@ -1,7 +1,7 @@
syntax = "proto3";
package core.identity;
-option go_package = "sonr.io/core/x/identity/types";
+option go_package = "github.com/sonr-io/sonr/x/identity/types";
// DIDDocument represents a Decentralized Identifier (DID) document that
// contains information about the DID subject, such as public keys, verification
diff --git a/proto/core/identity/genesis.proto b/proto/core/identity/genesis.proto
index 48a35d1fc..4494c532d 100644
--- a/proto/core/identity/genesis.proto
+++ b/proto/core/identity/genesis.proto
@@ -7,7 +7,7 @@ import "core/identity/did.proto";
import "core/identity/params.proto";
import "gogoproto/gogo.proto";
-option go_package = "sonr.io/core/x/identity/types";
+option go_package = "github.com/sonr-io/sonr/x/identity/types";
// GenesisState defines the identity module's genesis state.
message GenesisState {
diff --git a/proto/core/identity/identifier.proto b/proto/core/identity/identifier.proto
index 1c41b2fcb..a6562d4bb 100644
--- a/proto/core/identity/identifier.proto
+++ b/proto/core/identity/identifier.proto
@@ -1,7 +1,7 @@
syntax = "proto3";
package core.identity;
-option go_package = "sonr.io/core/x/identity/types";
+option go_package = "github.com/sonr-io/sonr/x/identity/types";
// UserIdentifierType defines the type of the user identifier\
enum UserIdentifierType {
diff --git a/proto/core/identity/params.proto b/proto/core/identity/params.proto
index 705871a94..901029612 100644
--- a/proto/core/identity/params.proto
+++ b/proto/core/identity/params.proto
@@ -3,7 +3,7 @@ package core.identity;
import "gogoproto/gogo.proto";
-option go_package = "sonr.io/core/x/identity/types";
+option go_package = "github.com/sonr-io/sonr/x/identity/types";
// Params defines the parameters for the module.
message Params {
diff --git a/proto/core/identity/query.proto b/proto/core/identity/query.proto
index 9359dda05..38f83ef8c 100644
--- a/proto/core/identity/query.proto
+++ b/proto/core/identity/query.proto
@@ -9,7 +9,7 @@ import "cosmos/base/query/v1beta1/pagination.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
-option go_package = "sonr.io/core/x/identity/types";
+option go_package = "github.com/sonr-io/sonr/x/identity/types";
// Query defines the gRPC querier service.
service Query {
diff --git a/proto/core/identity/state.proto b/proto/core/identity/state.proto
index 5c6cc0234..aa7eaea35 100644
--- a/proto/core/identity/state.proto
+++ b/proto/core/identity/state.proto
@@ -4,7 +4,7 @@ package core.identity;
import "cosmos/orm/v1/orm.proto";
-option go_package = "sonr.io/core/x/identity/types";
+option go_package = "github.com/sonr-io/sonr/x/identity/types";
message Balance {
option (cosmos.orm.v1.table) = {
diff --git a/proto/core/identity/tx.proto b/proto/core/identity/tx.proto
index 55c800651..050e02d25 100644
--- a/proto/core/identity/tx.proto
+++ b/proto/core/identity/tx.proto
@@ -5,7 +5,7 @@ package core.identity;
import "core/identity/account.proto";
import "core/identity/did.proto";
-option go_package = "sonr.io/core/x/identity/types";
+option go_package = "github.com/sonr-io/sonr/x/identity/types";
// Msg defines the Msg service.
// This service provides methods for managing identities.
diff --git a/proto/core/service/genesis.proto b/proto/core/service/genesis.proto
index f7b5a7af5..b1365d59c 100644
--- a/proto/core/service/genesis.proto
+++ b/proto/core/service/genesis.proto
@@ -6,7 +6,7 @@ import "core/service/params.proto";
import "core/service/record.proto";
import "gogoproto/gogo.proto";
-option go_package = "sonr.io/core/x/service/types";
+option go_package = "github.com/sonr-io/sonr/x/service/types";
// GenesisState defines the service module's genesis state.
message GenesisState {
diff --git a/proto/core/service/params.proto b/proto/core/service/params.proto
index a3960fcf2..a0e03bb04 100644
--- a/proto/core/service/params.proto
+++ b/proto/core/service/params.proto
@@ -3,7 +3,7 @@ package core.service;
import "gogoproto/gogo.proto";
-option go_package = "sonr.io/core/x/service/types";
+option go_package = "github.com/sonr-io/sonr/x/service/types";
// Params defines the parameters for the module.
message Params { option (gogoproto.goproto_stringer) = false; }
diff --git a/proto/core/service/query.proto b/proto/core/service/query.proto
index 73ff2b2ba..30f850a67 100644
--- a/proto/core/service/query.proto
+++ b/proto/core/service/query.proto
@@ -10,7 +10,7 @@ import "cosmos/base/query/v1beta1/pagination.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
-option go_package = "sonr.io/core/x/service/types";
+option go_package = "github.com/sonr-io/sonr/x/service/types";
// Query defines the gRPC querier service.
service Query {
diff --git a/proto/core/service/record.proto b/proto/core/service/record.proto
index 0d8a54467..7d059a40f 100644
--- a/proto/core/service/record.proto
+++ b/proto/core/service/record.proto
@@ -1,7 +1,7 @@
syntax = "proto3";
package core.service;
-option go_package = "sonr.io/core/x/service/types";
+option go_package = "github.com/sonr-io/sonr/x/service/types";
message ServiceRecord {
string id = 1;
diff --git a/proto/core/service/tx.proto b/proto/core/service/tx.proto
index 6004f5561..e24b6a693 100644
--- a/proto/core/service/tx.proto
+++ b/proto/core/service/tx.proto
@@ -6,7 +6,7 @@ package core.service;
import "core/service/record.proto";
// Specifying the go package for this service.
-option go_package = "sonr.io/core/x/service/types";
+option go_package = "github.com/sonr-io/sonr/x/service/types";
// Msg defines the Msg service.
// This service provides CRUD operations for ServiceRecord.
diff --git a/proto/highway/authentication/v1/service.proto b/proto/highway/authentication/v1/service.proto
index f3fb9cc3f..1de486729 100644
--- a/proto/highway/authentication/v1/service.proto
+++ b/proto/highway/authentication/v1/service.proto
@@ -6,7 +6,7 @@ package highway.authentication.v1;
import "google/api/annotations.proto";
import "google/protobuf/empty.proto";
-option go_package = "sonr.io/core/types/highway/authentication/v1;authenticationpb";
+option go_package = "github.com/sonr-io/sonr/types/highway/authentication/v1;authenticationpb";
// AuthenticationService provides methods for user authentication.
service AuthenticationService {
diff --git a/proto/highway/database/v1/service.proto b/proto/highway/database/v1/service.proto
index fa31b2a58..bacac2fc9 100644
--- a/proto/highway/database/v1/service.proto
+++ b/proto/highway/database/v1/service.proto
@@ -5,7 +5,7 @@ package highway.database.v1;
import "google/api/annotations.proto";
import "google/protobuf/empty.proto";
-option go_package = "sonr.io/core/types/highway/database/v1;databasepb";
+option go_package = "github.com/sonr-io/sonr/types/highway/database/v1;databasepb";
service DatabaseService {
rpc Health(HealthRequest) returns (HealthResponse) {
diff --git a/proto/highway/storage/v1/service.proto b/proto/highway/storage/v1/service.proto
index e8b6ba6ed..c49257aa8 100644
--- a/proto/highway/storage/v1/service.proto
+++ b/proto/highway/storage/v1/service.proto
@@ -4,7 +4,7 @@ package highway.storage.v1;
import "google/api/annotations.proto";
-option go_package = "sonr.io/core/types/highway/storage/v1;storagepb";
+option go_package = "github.com/sonr-io/sonr/types/highway/storage/v1;storagepb";
// StorageService provides methods for storing and retrieving data.
service StorageService {
diff --git a/proto/highway/wallet/v1/service.proto b/proto/highway/wallet/v1/service.proto
index 76c28e163..832759816 100644
--- a/proto/highway/wallet/v1/service.proto
+++ b/proto/highway/wallet/v1/service.proto
@@ -5,7 +5,7 @@ package highway.wallet.v1;
import "common/crypto/coin.proto";
import "google/api/annotations.proto";
-option go_package = "sonr.io/core/types/highway/wallet/v1;walletpb";
+option go_package = "github.com/sonr-io/sonr/types/highway/wallet/v1;walletpb";
// WalletService provides methods for managing wallet accounts.
service WalletService {
diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh
index d02650644..4e7d19fd2 100644
--- a/scripts/protocgen.sh
+++ b/scripts/protocgen.sh
@@ -22,5 +22,5 @@ done
cd ..
# move proto files to the right places
-cp -r sonr.io/core/* ./
-rm -rf sonr.io
+cp -r github.com/sonr-io/sonr/* ./
+rm -rf github.com
diff --git a/services/did/controller/controller.go b/services/did/controller/controller.go
index 96c85f227..9b96b86b4 100644
--- a/services/did/controller/controller.go
+++ b/services/did/controller/controller.go
@@ -5,12 +5,12 @@ import (
"fmt"
"github.com/highlight/highlight/sdk/highlight-go"
- "sonr.io/core/internal/crypto"
- "sonr.io/core/services/did/method/btcr"
- "sonr.io/core/services/did/method/ethr"
- "sonr.io/core/services/did/method/sonr"
- "sonr.io/core/services/did/types"
- identitytypes "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/services/did/method/btcr"
+ "github.com/sonr-io/sonr/services/did/method/ethr"
+ "github.com/sonr-io/sonr/services/did/method/sonr"
+ "github.com/sonr-io/sonr/services/did/types"
+ identitytypes "github.com/sonr-io/sonr/x/identity/types"
)
// Account returns the controller account
diff --git a/services/did/controller/idx.go b/services/did/controller/idx.go
index 7b027996c..53893a04e 100644
--- a/services/did/controller/idx.go
+++ b/services/did/controller/idx.go
@@ -6,10 +6,10 @@ import (
"fmt"
- "sonr.io/core/services/did/method/authr"
- "sonr.io/core/services/did/method/sonr"
- "sonr.io/core/services/did/types"
- identitytypes "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/services/did/method/authr"
+ "github.com/sonr-io/sonr/services/did/method/sonr"
+ "github.com/sonr-io/sonr/services/did/types"
+ identitytypes "github.com/sonr-io/sonr/x/identity/types"
)
var defaultDidMethod = types.DIDMethod("idxr")
diff --git a/services/did/method/authr/authr.go b/services/did/method/authr/authr.go
index 14593470d..f1e702282 100644
--- a/services/did/method/authr/authr.go
+++ b/services/did/method/authr/authr.go
@@ -4,9 +4,9 @@ import (
"fmt"
"github.com/go-webauthn/webauthn/protocol"
- "sonr.io/core/internal/crypto"
- "sonr.io/core/services/did/types"
"github.com/sonr-io/kryptology/pkg/core/curves"
+ "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/services/did/types"
)
const Method = types.DIDMethod("authr")
diff --git a/services/did/method/authr/data.go b/services/did/method/authr/data.go
index 4c1d2604e..c34f7dd17 100644
--- a/services/did/method/authr/data.go
+++ b/services/did/method/authr/data.go
@@ -9,7 +9,7 @@ import (
"fmt"
"io"
- "sonr.io/core/services/did/types"
+ "github.com/sonr-io/sonr/services/did/types"
"golang.org/x/crypto/hkdf"
"lukechampine.com/blake3"
)
diff --git a/services/did/method/authr/secret.go b/services/did/method/authr/secret.go
index 77eed95e1..c155f3529 100644
--- a/services/did/method/authr/secret.go
+++ b/services/did/method/authr/secret.go
@@ -9,9 +9,9 @@ import (
"io"
"github.com/google/uuid"
- "sonr.io/core/internal/crypto"
"github.com/sonr-io/kryptology/pkg/accumulator"
"github.com/sonr-io/kryptology/pkg/core/curves"
+ "github.com/sonr-io/sonr/internal/crypto"
"golang.org/x/crypto/hkdf"
"lukechampine.com/blake3"
)
diff --git a/services/did/method/btcr/account.go b/services/did/method/btcr/account.go
index ee8669370..0e216fa53 100644
--- a/services/did/method/btcr/account.go
+++ b/services/did/method/btcr/account.go
@@ -1,9 +1,9 @@
package btcr
import (
- "sonr.io/core/internal/crypto"
- "sonr.io/core/services/did/types"
- "sonr.io/core/services/mpc"
+ "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/services/did/types"
+ "github.com/sonr-io/sonr/services/mpc"
)
const Method = types.DIDMethod("btcr")
diff --git a/services/did/method/ethr/account.go b/services/did/method/ethr/account.go
index c9ec62fdd..a4f8197fd 100644
--- a/services/did/method/ethr/account.go
+++ b/services/did/method/ethr/account.go
@@ -1,9 +1,9 @@
package ethr
import (
- "sonr.io/core/internal/crypto"
- "sonr.io/core/services/did/types"
- "sonr.io/core/services/mpc"
+ "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/services/did/types"
+ "github.com/sonr-io/sonr/services/mpc"
)
const Method = types.DIDMethod("ethr")
diff --git a/services/did/method/sonr/account.go b/services/did/method/sonr/account.go
index 1cf1309ff..4e8a2dee7 100644
--- a/services/did/method/sonr/account.go
+++ b/services/did/method/sonr/account.go
@@ -3,9 +3,9 @@ package sonr
import (
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/internal/crypto"
- "sonr.io/core/services/did/types"
- "sonr.io/core/services/mpc"
+ "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/services/did/types"
+ "github.com/sonr-io/sonr/services/mpc"
)
// Method is the DID method for Sonr Wallet Actor DIDs
diff --git a/services/did/method/sonr/client.go b/services/did/method/sonr/client.go
index 202bdd4a5..dd2d9e828 100644
--- a/services/did/method/sonr/client.go
+++ b/services/did/method/sonr/client.go
@@ -9,8 +9,8 @@ import (
"github.com/spf13/viper"
"google.golang.org/grpc"
- "sonr.io/core/internal/local"
- "sonr.io/core/services/did/types"
+ "github.com/sonr-io/sonr/internal/local"
+ "github.com/sonr-io/sonr/services/did/types"
)
// ! ||--------------------------------------------------------------------------------||
diff --git a/services/did/method/sonr/signer.go b/services/did/method/sonr/signer.go
index bf3e70dfb..672a39456 100644
--- a/services/did/method/sonr/signer.go
+++ b/services/did/method/sonr/signer.go
@@ -7,9 +7,9 @@ import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
- "sonr.io/core/internal/crypto"
- "sonr.io/core/services/did/types"
- identitytypes "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/services/did/types"
+ identitytypes "github.com/sonr-io/sonr/x/identity/types"
)
// SignCosmosTx signs a transaction with the given inputs.
diff --git a/services/did/types/accumulator.go b/services/did/types/accumulator.go
index 9314ebec4..19b36bfdd 100644
--- a/services/did/types/accumulator.go
+++ b/services/did/types/accumulator.go
@@ -7,7 +7,7 @@ import (
"github.com/sonr-io/kryptology/pkg/accumulator"
"github.com/sonr-io/kryptology/pkg/core/curves"
- "sonr.io/core/internal/crypto"
+ "github.com/sonr-io/sonr/internal/crypto"
)
// DIDAccumulator is a ZKSet accumulator for a DID
diff --git a/services/did/types/identifier.go b/services/did/types/identifier.go
index 7e3811cc4..730cec1f6 100644
--- a/services/did/types/identifier.go
+++ b/services/did/types/identifier.go
@@ -3,8 +3,8 @@ package types
import (
"github.com/sonr-io/kryptology/pkg/accumulator"
- "sonr.io/core/internal/crypto"
- identitytypes "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/internal/crypto"
+ identitytypes "github.com/sonr-io/sonr/x/identity/types"
)
// DIDIdentifier is a DID identifier
diff --git a/services/did/types/method.go b/services/did/types/method.go
index 5dbc16b43..f53102a59 100644
--- a/services/did/types/method.go
+++ b/services/did/types/method.go
@@ -1,6 +1,6 @@
package types
-import "sonr.io/core/internal/crypto"
+import "github.com/sonr-io/sonr/internal/crypto"
// DIDMethod is a DID method
type DIDMethod string
diff --git a/services/did/types/resource.go b/services/did/types/resource.go
index df386a4a2..77e094f0d 100644
--- a/services/did/types/resource.go
+++ b/services/did/types/resource.go
@@ -6,7 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/internal/crypto"
+ "github.com/sonr-io/sonr/internal/crypto"
)
// TxResponse is a type alias for sdk.TxResponse
diff --git a/services/did/types/store.go b/services/did/types/store.go
index da1cec96f..01103468e 100644
--- a/services/did/types/store.go
+++ b/services/did/types/store.go
@@ -6,7 +6,7 @@ import (
"lukechampine.com/blake3"
- "sonr.io/core/internal/sfs"
+ "github.com/sonr-io/sonr/internal/sfs"
"github.com/spf13/viper"
)
diff --git a/services/did/types/url.go b/services/did/types/url.go
index 74db9cd8c..20ed583f4 100644
--- a/services/did/types/url.go
+++ b/services/did/types/url.go
@@ -5,7 +5,7 @@ import (
"strings"
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
- "sonr.io/core/types/webauthn"
+ "github.com/sonr-io/sonr/types/webauthn"
)
// Credential is a webauthn credential
diff --git a/services/mpc/base/account.go b/services/mpc/base/account.go
index d4935d0ec..8f8237594 100644
--- a/services/mpc/base/account.go
+++ b/services/mpc/base/account.go
@@ -4,11 +4,11 @@ import (
"encoding/json"
"fmt"
- "sonr.io/core/internal/crypto"
+ "github.com/sonr-io/sonr/internal/crypto"
secp256k1 "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
- algo "sonr.io/core/services/mpc/protocol/dkls"
- v1types "sonr.io/core/services/mpc/types"
+ algo "github.com/sonr-io/sonr/services/mpc/protocol/dkls"
+ v1types "github.com/sonr-io/sonr/services/mpc/types"
)
type EncryptionKey = *secp256k1.PubKey
diff --git a/services/mpc/mpc.go b/services/mpc/mpc.go
index c887e966a..bb5f455c6 100644
--- a/services/mpc/mpc.go
+++ b/services/mpc/mpc.go
@@ -1,11 +1,11 @@
package mpc
import (
- "sonr.io/core/internal/crypto"
- "sonr.io/core/services/mpc/base"
- models "sonr.io/core/services/mpc/base"
- v1algo "sonr.io/core/services/mpc/protocol/dkls"
- v1types "sonr.io/core/services/mpc/types"
+ "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/services/mpc/base"
+ models "github.com/sonr-io/sonr/services/mpc/base"
+ v1algo "github.com/sonr-io/sonr/services/mpc/protocol/dkls"
+ v1types "github.com/sonr-io/sonr/services/mpc/types"
)
// AccountV1 is a type alias for the AccountV1 struct in the base package.
diff --git a/services/mpc/mpc_test.go b/services/mpc/mpc_test.go
index 8bcc380b2..aeab6726d 100644
--- a/services/mpc/mpc_test.go
+++ b/services/mpc/mpc_test.go
@@ -4,8 +4,8 @@ import (
"strings"
"testing"
- "sonr.io/core/internal/crypto"
- v1 "sonr.io/core/services/mpc/base"
+ "github.com/sonr-io/sonr/internal/crypto"
+ v1 "github.com/sonr-io/sonr/services/mpc/base"
"github.com/stretchr/testify/assert"
)
diff --git a/services/mpc/protocol/dkls/dkls.go b/services/mpc/protocol/dkls/dkls.go
index 6410acd49..910645385 100644
--- a/services/mpc/protocol/dkls/dkls.go
+++ b/services/mpc/protocol/dkls/dkls.go
@@ -3,10 +3,10 @@ package dkls
import (
"fmt"
- mpcv1types "sonr.io/core/services/mpc/types"
"github.com/sonr-io/kryptology/pkg/core/curves"
"github.com/sonr-io/kryptology/pkg/core/protocol"
dklsv1 "github.com/sonr-io/kryptology/pkg/tecdsa/dkls/v1"
+ mpcv1types "github.com/sonr-io/sonr/services/mpc/types"
)
// The DKLSKeygen function generates a set of keyshares.
diff --git a/services/mpc/protocol/dkls/dkls_test.go b/services/mpc/protocol/dkls/dkls_test.go
index 3a03b19c5..b0d11bae2 100644
--- a/services/mpc/protocol/dkls/dkls_test.go
+++ b/services/mpc/protocol/dkls/dkls_test.go
@@ -3,8 +3,8 @@ package dkls_test
import (
"testing"
- "sonr.io/core/internal/crypto"
- "sonr.io/core/services/mpc/protocol/dkls"
+ "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/services/mpc/protocol/dkls"
"github.com/stretchr/testify/assert"
)
diff --git a/services/mpc/types/keyshare.go b/services/mpc/types/keyshare.go
index 09697d83d..c7192fd5a 100644
--- a/services/mpc/types/keyshare.go
+++ b/services/mpc/types/keyshare.go
@@ -5,11 +5,11 @@ import (
"fmt"
"math/big"
- sonrcrypto "sonr.io/core/internal/crypto"
- "sonr.io/core/types/crypto"
"github.com/sonr-io/kryptology/pkg/core/curves"
"github.com/sonr-io/kryptology/pkg/core/protocol"
dklsv1 "github.com/sonr-io/kryptology/pkg/tecdsa/dkls/v1"
+ sonrcrypto "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/types/crypto"
secp256k1 "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
"github.com/sonr-io/kryptology/pkg/tecdsa/dkls/v1/dkg"
diff --git a/services/mpc/types/kss.go b/services/mpc/types/kss.go
index f81cba18a..946488c14 100644
--- a/services/mpc/types/kss.go
+++ b/services/mpc/types/kss.go
@@ -8,7 +8,7 @@ import (
dklsv1 "github.com/sonr-io/kryptology/pkg/tecdsa/dkls/v1"
secp256k1 "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
- "sonr.io/core/internal/crypto"
+ "github.com/sonr-io/sonr/internal/crypto"
"golang.org/x/crypto/sha3"
)
diff --git a/services/plugin/cache.go b/services/plugin/cache.go
index d38d9bffc..fb70da186 100644
--- a/services/plugin/cache.go
+++ b/services/plugin/cache.go
@@ -8,7 +8,7 @@ import (
hplugin "github.com/hashicorp/go-plugin"
- "sonr.io/core/pkg/cache"
+ "github.com/sonr-io/sonr/pkg/cache"
)
const (
diff --git a/services/plugin/interface_test.go b/services/plugin/interface_test.go
index 70227aed6..6206929cd 100755
--- a/services/plugin/interface_test.go
+++ b/services/plugin/interface_test.go
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "sonr.io/core/services/plugin"
+ "github.com/sonr-io/sonr/services/plugin"
)
func TestCommandToCobraCommand(t *testing.T) {
diff --git a/services/plugin/plugin.go b/services/plugin/plugin.go
index 7c9237d07..87639dabd 100644
--- a/services/plugin/plugin.go
+++ b/services/plugin/plugin.go
@@ -18,14 +18,14 @@ import (
hplugin "github.com/hashicorp/go-plugin"
"github.com/pkg/errors"
- "sonr.io/core/config"
- pluginsconfig "sonr.io/core/config/plugins"
- "sonr.io/core/pkg/env"
- "sonr.io/core/pkg/events"
- "sonr.io/core/pkg/gocmd"
- "sonr.io/core/pkg/xfilepath"
- "sonr.io/core/pkg/xgit"
- "sonr.io/core/pkg/xurl"
+ "github.com/sonr-io/sonr/config"
+ pluginsconfig "github.com/sonr-io/sonr/config/plugins"
+ "github.com/sonr-io/sonr/pkg/env"
+ "github.com/sonr-io/sonr/pkg/events"
+ "github.com/sonr-io/sonr/pkg/gocmd"
+ "github.com/sonr-io/sonr/pkg/xfilepath"
+ "github.com/sonr-io/sonr/pkg/xgit"
+ "github.com/sonr-io/sonr/pkg/xurl"
)
// PluginsPath holds the plugin cache directory.
diff --git a/services/plugin/plugin_test.go b/services/plugin/plugin_test.go
index ae014ef45..8f2f8ccdd 100644
--- a/services/plugin/plugin_test.go
+++ b/services/plugin/plugin_test.go
@@ -17,9 +17,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- pluginsconfig "sonr.io/core/config/plugins"
- "sonr.io/core/pkg/gocmd"
- "sonr.io/core/pkg/gomodule"
+ pluginsconfig "github.com/sonr-io/sonr/config/plugins"
+ "github.com/sonr-io/sonr/pkg/gocmd"
+ "github.com/sonr-io/sonr/pkg/gomodule"
)
func TestNewPlugin(t *testing.T) {
diff --git a/services/plugin/scaffold.go b/services/plugin/scaffold.go
index ae69ef3c9..a67d7c363 100644
--- a/services/plugin/scaffold.go
+++ b/services/plugin/scaffold.go
@@ -11,8 +11,8 @@ import (
"github.com/gobuffalo/plush/v4"
"github.com/pkg/errors"
- "sonr.io/core/pkg/gocmd"
- "sonr.io/core/pkg/xgenny"
+ "github.com/sonr-io/sonr/pkg/gocmd"
+ "github.com/sonr-io/sonr/pkg/xgenny"
)
//go:embed template/*
diff --git a/testutil/keeper/domain.go b/testutil/keeper/domain.go
index 57ae36982..90c8a90ac 100644
--- a/testutil/keeper/domain.go
+++ b/testutil/keeper/domain.go
@@ -12,8 +12,8 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
typesparams "github.com/cosmos/cosmos-sdk/x/params/types"
- "sonr.io/core/x/domain/keeper"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/keeper"
+ "github.com/sonr-io/sonr/x/domain/types"
"github.com/stretchr/testify/require"
)
diff --git a/testutil/keeper/identity.go b/testutil/keeper/identity.go
index 05aa0db5c..2fbe685cf 100644
--- a/testutil/keeper/identity.go
+++ b/testutil/keeper/identity.go
@@ -3,8 +3,8 @@ package keeper
import (
"testing"
- "sonr.io/core/x/identity/keeper"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/keeper"
+ "github.com/sonr-io/sonr/x/identity/types"
tmdb "github.com/cometbft/cometbft-db"
"github.com/cometbft/cometbft/libs/log"
diff --git a/testutil/keeper/service.go b/testutil/keeper/service.go
index 2cd7f702e..11c4185e5 100644
--- a/testutil/keeper/service.go
+++ b/testutil/keeper/service.go
@@ -12,8 +12,8 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
typesparams "github.com/cosmos/cosmos-sdk/x/params/types"
- "sonr.io/core/x/service/keeper"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/keeper"
+ "github.com/sonr-io/sonr/x/service/types"
"github.com/stretchr/testify/require"
)
diff --git a/testutil/network/network.go b/testutil/network/network.go
index 609d2f0ec..017e23bbf 100644
--- a/testutil/network/network.go
+++ b/testutil/network/network.go
@@ -18,8 +18,8 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/stretchr/testify/require"
- "sonr.io/core/app"
- "sonr.io/core/internal/highway"
+ "github.com/sonr-io/sonr/app"
+ "github.com/sonr-io/sonr/internal/highway"
)
type (
diff --git a/types/crypto/coin.pb.go b/types/crypto/coin.pb.go
index 8b4075db2..e25f1ba4b 100644
--- a/types/crypto/coin.pb.go
+++ b/types/crypto/coin.pb.go
@@ -154,27 +154,28 @@ func init() {
func init() { proto.RegisterFile("common/crypto/coin.proto", fileDescriptor_0aeeac340f2c4abc) }
var fileDescriptor_0aeeac340f2c4abc = []byte{
- // 314 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xcd, 0x4e, 0xf2, 0x40,
- 0x18, 0x85, 0x3b, 0xc0, 0xc7, 0xcf, 0xfb, 0x41, 0x1c, 0x46, 0x4d, 0x6a, 0x62, 0x1a, 0xe2, 0x8a,
- 0xb8, 0x80, 0x05, 0x57, 0xc0, 0xcf, 0x28, 0x8d, 0xd0, 0x31, 0x9d, 0x31, 0x51, 0x37, 0xa6, 0x0c,
- 0x8d, 0x69, 0x02, 0x9d, 0xa6, 0x2d, 0x8b, 0xde, 0x85, 0x97, 0xe5, 0x92, 0xa5, 0x4b, 0x03, 0x17,
- 0xe0, 0x2d, 0x18, 0x8b, 0xd4, 0xcc, 0xee, 0x9d, 0xe7, 0x3c, 0x27, 0xb3, 0x38, 0x60, 0x4a, 0xb5,
- 0x5e, 0xab, 0xb0, 0x2f, 0xe3, 0x2c, 0x4a, 0x55, 0x5f, 0xaa, 0x20, 0xec, 0x45, 0xb1, 0x4a, 0x15,
- 0x69, 0x1d, 0x92, 0xde, 0x21, 0xb9, 0x7a, 0x82, 0xff, 0x43, 0x29, 0xd5, 0x26, 0x4c, 0x27, 0x5e,
- 0xea, 0x11, 0x13, 0x6a, 0xde, 0x72, 0x19, 0xfb, 0x49, 0x62, 0xa2, 0x0e, 0xea, 0x36, 0xdc, 0xe3,
- 0x93, 0x10, 0xa8, 0x78, 0xab, 0x57, 0x65, 0x96, 0x72, 0x9c, 0xdf, 0xe4, 0x12, 0x1a, 0xd1, 0x66,
- 0xb1, 0x0a, 0xe4, 0x9d, 0x9f, 0x99, 0xe5, 0x0e, 0xea, 0x36, 0xdd, 0x3f, 0x70, 0xfd, 0x85, 0xa0,
- 0x3e, 0x56, 0x41, 0x28, 0xb2, 0xc8, 0x27, 0x67, 0x80, 0x8f, 0xf7, 0xcb, 0xc8, 0x16, 0x63, 0x66,
- 0x3b, 0xd8, 0xd0, 0xa8, 0xa0, 0x5c, 0x38, 0x54, 0x60, 0x44, 0xce, 0xa1, 0x5d, 0xd0, 0x99, 0x2d,
- 0x68, 0x2e, 0x97, 0x48, 0x1b, 0x5a, 0x05, 0x9e, 0xb0, 0x5b, 0x8a, 0xcb, 0x9a, 0x49, 0xc5, 0x94,
- 0xba, 0xf4, 0x61, 0x8e, 0x2b, 0x9a, 0xc9, 0x99, 0xe3, 0xe2, 0x7f, 0xe4, 0x14, 0x4e, 0x0a, 0x34,
- 0x66, 0x7c, 0xce, 0x38, 0xae, 0x6a, 0xf5, 0x1b, 0x7b, 0x76, 0xf8, 0xa8, 0x46, 0x30, 0x34, 0x0b,
- 0x3c, 0x75, 0x38, 0xae, 0x6b, 0x6d, 0xce, 0x66, 0x43, 0x67, 0x88, 0x1b, 0x9a, 0xf6, 0xe8, 0xde,
- 0x63, 0x18, 0x0d, 0xde, 0x77, 0x16, 0xda, 0xee, 0x2c, 0xf4, 0xb9, 0xb3, 0xd0, 0xdb, 0xde, 0x32,
- 0xb6, 0x7b, 0xcb, 0xf8, 0xd8, 0x5b, 0xc6, 0xf3, 0x45, 0xa2, 0xc2, 0xb8, 0x17, 0xfc, 0x2c, 0x11,
- 0xfb, 0xfd, 0x34, 0x8b, 0xfc, 0xe4, 0x77, 0x9b, 0x45, 0x35, 0xdf, 0x65, 0xf0, 0x1d, 0x00, 0x00,
- 0xff, 0xff, 0xa9, 0xc9, 0x39, 0x66, 0xb3, 0x01, 0x00, 0x00,
+ // 324 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xcd, 0x4a, 0xf3, 0x40,
+ 0x14, 0x86, 0x33, 0x6d, 0xbf, 0xfe, 0x9c, 0xaf, 0xc5, 0xe9, 0xa8, 0x90, 0x85, 0x84, 0x22, 0x2e,
+ 0x8a, 0x60, 0xb3, 0x70, 0x2f, 0xf4, 0x67, 0xb4, 0xc1, 0x36, 0x91, 0x64, 0x04, 0x75, 0x23, 0xe9,
+ 0x34, 0xd4, 0x40, 0x9b, 0x13, 0x92, 0x74, 0x91, 0xbb, 0xf0, 0xb2, 0x5c, 0x76, 0xe9, 0x52, 0xda,
+ 0x0b, 0xf0, 0x16, 0x84, 0xd4, 0x46, 0xb2, 0x9a, 0x33, 0xcf, 0x79, 0x5e, 0xce, 0xe2, 0x05, 0x55,
+ 0xe2, 0x6a, 0x85, 0x81, 0x2e, 0xa3, 0x34, 0x4c, 0x50, 0x97, 0xe8, 0x07, 0xbd, 0x30, 0xc2, 0x04,
+ 0x59, 0x6b, 0xbf, 0xe9, 0xed, 0x37, 0xe7, 0xcf, 0xf0, 0xbf, 0x2f, 0x25, 0xae, 0x83, 0x64, 0xe4,
+ 0x26, 0x2e, 0x53, 0xa1, 0xe6, 0xce, 0xe7, 0x91, 0x17, 0xc7, 0x2a, 0xe9, 0x90, 0x6e, 0xc3, 0x3e,
+ 0x7c, 0x19, 0x83, 0x8a, 0xbb, 0x5c, 0xa0, 0x5a, 0xca, 0x70, 0x36, 0xb3, 0x33, 0x68, 0x84, 0xeb,
+ 0xd9, 0xd2, 0x97, 0xf7, 0x5e, 0xaa, 0x96, 0x3b, 0xa4, 0xdb, 0xb4, 0xff, 0xc0, 0xe5, 0x37, 0x81,
+ 0xfa, 0x10, 0xfd, 0x40, 0xa4, 0xa1, 0xc7, 0x4e, 0x80, 0x1e, 0xe6, 0xd7, 0x81, 0x21, 0x86, 0x96,
+ 0x61, 0x52, 0xa5, 0x40, 0x05, 0x77, 0x84, 0xc9, 0x05, 0x25, 0xec, 0x14, 0xda, 0x39, 0x9d, 0x18,
+ 0x82, 0x67, 0x72, 0x89, 0xb5, 0xa1, 0x95, 0xe3, 0x91, 0x75, 0xc7, 0x69, 0xb9, 0x60, 0x72, 0x31,
+ 0xe6, 0x36, 0x7f, 0x9c, 0xd2, 0x4a, 0xc1, 0x74, 0x2c, 0xd3, 0xa6, 0xff, 0xd8, 0x31, 0x1c, 0xe5,
+ 0x68, 0x68, 0x39, 0x53, 0xcb, 0xa1, 0xd5, 0x42, 0xfc, 0xd6, 0x98, 0xec, 0x0f, 0xd5, 0x18, 0x85,
+ 0x66, 0x8e, 0xc7, 0xa6, 0x43, 0xeb, 0x85, 0xb4, 0x63, 0x4d, 0xfa, 0x66, 0x9f, 0x36, 0x0a, 0xda,
+ 0x93, 0xfd, 0x40, 0x61, 0x70, 0xf3, 0xb1, 0xd5, 0xc8, 0x66, 0xab, 0x91, 0xaf, 0xad, 0x46, 0xde,
+ 0x77, 0x9a, 0xb2, 0xd9, 0x69, 0xca, 0xe7, 0x4e, 0x53, 0x5e, 0x2e, 0x16, 0x7e, 0xf2, 0xb6, 0x9e,
+ 0xf5, 0x24, 0xae, 0xf4, 0x18, 0x83, 0xe8, 0xca, 0xc7, 0xec, 0xd5, 0x93, 0x34, 0xf4, 0xe2, 0xdf,
+ 0x9a, 0x66, 0xd5, 0xac, 0xa2, 0xeb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x23, 0x73, 0x05, 0x33,
+ 0xbe, 0x01, 0x00, 0x00,
}
func (m *AccountData) Marshal() (dAtA []byte, err error) {
diff --git a/types/crypto/ssi.pb.go b/types/crypto/ssi.pb.go
index 002eff6e8..48518f4f3 100644
--- a/types/crypto/ssi.pb.go
+++ b/types/crypto/ssi.pb.go
@@ -382,50 +382,51 @@ func init() {
func init() { proto.RegisterFile("common/crypto/ssi.proto", fileDescriptor_b4d65a10f7585d94) }
var fileDescriptor_b4d65a10f7585d94 = []byte{
- // 683 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x4e, 0xdb, 0x4a,
- 0x14, 0xc6, 0xe3, 0x38, 0x09, 0x97, 0xc3, 0x9f, 0x9b, 0x3b, 0x70, 0xc1, 0x41, 0xf7, 0x46, 0x81,
- 0x16, 0x35, 0x45, 0xd4, 0x21, 0x46, 0x54, 0xc0, 0x2e, 0x24, 0xa6, 0x4d, 0x51, 0x43, 0x64, 0x07,
- 0x10, 0xdd, 0x58, 0x8e, 0x33, 0xb4, 0xa6, 0xc4, 0x63, 0xd9, 0x13, 0x4a, 0xde, 0xa2, 0x2f, 0xd4,
- 0x55, 0x37, 0x5d, 0xb2, 0xec, 0xb2, 0x82, 0x65, 0x57, 0x7d, 0x83, 0x6a, 0x66, 0xec, 0x24, 0x44,
- 0xa9, 0xd4, 0x6e, 0xa2, 0x39, 0xe7, 0xfc, 0xce, 0xc9, 0xf9, 0x3e, 0x8f, 0x0d, 0xcb, 0x0e, 0xe9,
- 0x76, 0x89, 0x57, 0x72, 0x82, 0xbe, 0x4f, 0x49, 0x29, 0x0c, 0x5d, 0xd5, 0x0f, 0x08, 0x25, 0x68,
- 0x4e, 0x14, 0x54, 0x51, 0x58, 0xfb, 0x24, 0x41, 0xba, 0x19, 0x10, 0x72, 0x81, 0x36, 0x21, 0x45,
- 0xfb, 0x3e, 0x56, 0xa4, 0x82, 0x54, 0x9c, 0xd7, 0x14, 0xf5, 0x01, 0xa7, 0x72, 0xa6, 0xd5, 0xf7,
- 0xb1, 0xc1, 0x29, 0xf4, 0x08, 0xe6, 0x7c, 0x96, 0xb2, 0xfc, 0x5e, 0xe0, 0x93, 0x10, 0x2b, 0xc9,
- 0x82, 0x54, 0x9c, 0x36, 0x66, 0x79, 0xb2, 0x29, 0x72, 0xa8, 0x04, 0x0b, 0xd7, 0x38, 0x70, 0x2f,
- 0x5c, 0xc7, 0xa6, 0x2e, 0xf1, 0xac, 0x2e, 0xa6, 0xef, 0x48, 0x47, 0x91, 0x39, 0x8a, 0x46, 0x4b,
- 0xaf, 0x79, 0x05, 0x29, 0x30, 0xe5, 0x04, 0xd8, 0xa6, 0xb8, 0xa3, 0xa4, 0x38, 0x14, 0x87, 0x68,
- 0x09, 0x32, 0x1d, 0xd2, 0xb5, 0x5d, 0x4f, 0x49, 0xf3, 0x42, 0x14, 0xad, 0x9d, 0x43, 0xee, 0x95,
- 0x79, 0xdc, 0x38, 0xc3, 0x6d, 0xd3, 0x7d, 0xeb, 0xd9, 0xb4, 0x17, 0x60, 0x6d, 0x4b, 0xdb, 0x12,
- 0x92, 0x36, 0x20, 0xcd, 0xf7, 0xe1, 0x9a, 0x66, 0xb4, 0xc5, 0x49, 0x9a, 0x0c, 0x81, 0xa0, 0x2c,
- 0xc8, 0x97, 0x1f, 0xc2, 0x48, 0x06, 0x3b, 0xae, 0x7d, 0x97, 0x61, 0xf1, 0x94, 0xef, 0x68, 0xb7,
- 0xaf, 0x70, 0x35, 0xc0, 0x1d, 0xec, 0x51, 0xd7, 0xbe, 0x42, 0xf3, 0x90, 0x74, 0x3b, 0x7c, 0xe6,
- 0xb4, 0x91, 0x74, 0xc5, 0xd6, 0xc4, 0xa3, 0xf8, 0x86, 0x2a, 0xc9, 0x82, 0xcc, 0xb7, 0x16, 0x21,
- 0x42, 0x91, 0xa7, 0x32, 0x4f, 0x0b, 0xe7, 0x96, 0x20, 0xe3, 0x86, 0x61, 0x0f, 0x07, 0x91, 0xc4,
- 0x28, 0x62, 0x8e, 0xb2, 0x93, 0xed, 0x39, 0xd8, 0xea, 0xd8, 0x14, 0x47, 0x42, 0x67, 0xe3, 0x64,
- 0xcd, 0xa6, 0x18, 0x3d, 0x81, 0xbf, 0xf1, 0x8d, 0xef, 0x06, 0xc2, 0x4f, 0x8e, 0x65, 0x38, 0x36,
- 0x3f, 0x4c, 0x73, 0xd0, 0x05, 0xe4, 0x0c, 0x36, 0xb6, 0xc2, 0x5e, 0xfb, 0x12, 0x3b, 0x54, 0x99,
- 0x2a, 0xc8, 0xc5, 0x19, 0x6d, 0x7f, 0xcc, 0x87, 0x49, 0x22, 0xd5, 0xe1, 0xd1, 0x14, 0xcd, 0xba,
- 0x47, 0x83, 0xbe, 0xf1, 0x8f, 0x33, 0x9e, 0x47, 0xb5, 0xd8, 0xe5, 0xbf, 0xf8, 0x74, 0xf5, 0x77,
- 0xa6, 0x73, 0xeb, 0xc5, 0x44, 0xd1, 0xbc, 0x52, 0x83, 0xa5, 0xc9, 0x7f, 0xc9, 0x9e, 0xcc, 0x7b,
- 0xdc, 0x8f, 0xfc, 0x66, 0x47, 0xb4, 0x08, 0xe9, 0x6b, 0xfb, 0xaa, 0x17, 0x5f, 0x3a, 0x11, 0xec,
- 0x27, 0x77, 0xa5, 0x95, 0x5d, 0x80, 0xe1, 0xe8, 0x3f, 0xe9, 0xdc, 0xf8, 0x21, 0xc1, 0xd4, 0x11,
- 0xee, 0xb3, 0x2b, 0x8e, 0x96, 0x61, 0x21, 0x3a, 0x5a, 0x27, 0x0d, 0xb3, 0xa9, 0x57, 0xeb, 0x87,
- 0x75, 0xbd, 0x96, 0x4d, 0xa0, 0xff, 0x21, 0x17, 0x17, 0xd8, 0xad, 0xb3, 0xce, 0xf4, 0x03, 0xeb,
- 0x48, 0x3f, 0xb7, 0xd8, 0x95, 0xcb, 0x4a, 0xe8, 0x29, 0xac, 0xc7, 0x65, 0xbd, 0xa6, 0xed, 0xec,
- 0x94, 0xf7, 0xac, 0x53, 0xdd, 0xa8, 0x1f, 0xd6, 0xab, 0x95, 0x56, 0xfd, 0xb8, 0x11, 0xa1, 0xe5,
- 0xdd, 0x6c, 0x12, 0x95, 0xe1, 0xd9, 0x00, 0xad, 0xd6, 0xcc, 0x8a, 0x65, 0xea, 0xd5, 0xa6, 0xb6,
- 0xf3, 0xfc, 0xa8, 0x3c, 0xb1, 0x65, 0x2f, 0x2b, 0xa3, 0x75, 0x58, 0x8d, 0x5b, 0x0c, 0xb3, 0xf2,
- 0x8b, 0xc9, 0xa9, 0xd1, 0x25, 0xd8, 0x7a, 0x95, 0x93, 0xd6, 0xcb, 0x06, 0xff, 0xd5, 0x1b, 0xad,
- 0x18, 0xe7, 0x68, 0x7a, 0xe3, 0xb3, 0x04, 0xd3, 0x83, 0x17, 0x1b, 0xe5, 0xe0, 0xdf, 0x41, 0x30,
- 0xa6, 0x7b, 0x1d, 0x56, 0x87, 0xa5, 0x81, 0x72, 0xb3, 0xfe, 0xa2, 0x51, 0x69, 0x9d, 0x18, 0x7a,
- 0xac, 0xff, 0x31, 0x14, 0x86, 0x58, 0xec, 0xc0, 0x28, 0xc5, 0xa5, 0x6f, 0x42, 0x71, 0x84, 0x1a,
- 0x13, 0xff, 0x80, 0x66, 0xaa, 0x0b, 0xf0, 0xdf, 0x90, 0x66, 0xba, 0xc7, 0xe6, 0xa5, 0x0e, 0xb6,
- 0xbf, 0xdc, 0xe5, 0xa5, 0xdb, 0xbb, 0xbc, 0xf4, 0xed, 0x2e, 0x2f, 0x7d, 0xbc, 0xcf, 0x27, 0x6e,
- 0xef, 0xf3, 0x89, 0xaf, 0xf7, 0xf9, 0xc4, 0x9b, 0x5c, 0x48, 0xbc, 0x40, 0x75, 0x49, 0xc9, 0x21,
- 0x01, 0x2e, 0xb1, 0xb7, 0x2f, 0x8c, 0x3e, 0x88, 0xed, 0x0c, 0xff, 0x1a, 0x6e, 0xff, 0x0c, 0x00,
- 0x00, 0xff, 0xff, 0x1f, 0x0a, 0x9c, 0x78, 0x28, 0x05, 0x00, 0x00,
+ // 689 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x4d, 0x53, 0xda, 0x5c,
+ 0x14, 0xc7, 0x09, 0x01, 0x7c, 0x3c, 0xbe, 0x3c, 0xf4, 0x6a, 0x35, 0x3a, 0x2d, 0x83, 0x56, 0xa7,
+ 0xd4, 0x51, 0x90, 0x74, 0xec, 0xa8, 0x8b, 0xce, 0x20, 0xc4, 0x96, 0x3a, 0x45, 0x26, 0x41, 0x1d,
+ 0xbb, 0xc9, 0x84, 0x70, 0xd5, 0x6b, 0x25, 0x37, 0x93, 0x5c, 0xac, 0x7c, 0x8b, 0x7e, 0xa1, 0xae,
+ 0xba, 0xe9, 0xd2, 0x65, 0x97, 0x1d, 0x5d, 0x76, 0xd5, 0x6f, 0xd0, 0xb9, 0x37, 0x09, 0x20, 0x43,
+ 0x67, 0xda, 0x0d, 0x9c, 0x97, 0xdf, 0x39, 0x9c, 0xff, 0xe1, 0x24, 0x30, 0x6f, 0xd3, 0x76, 0x9b,
+ 0x3a, 0x05, 0xdb, 0xeb, 0xba, 0x8c, 0x16, 0x7c, 0x9f, 0xe4, 0x5d, 0x8f, 0x32, 0x8a, 0xa6, 0x82,
+ 0x44, 0x3e, 0x48, 0x2c, 0x7f, 0x91, 0x20, 0x59, 0xf7, 0x28, 0x3d, 0x43, 0xeb, 0x90, 0x60, 0x5d,
+ 0x17, 0x2b, 0x52, 0x56, 0xca, 0x4d, 0xab, 0x4a, 0xfe, 0x01, 0x97, 0x17, 0x4c, 0xa3, 0xeb, 0x62,
+ 0x5d, 0x50, 0xe8, 0x19, 0x4c, 0xb9, 0x3c, 0x64, 0xba, 0x1d, 0xcf, 0xa5, 0x3e, 0x56, 0xe2, 0x59,
+ 0x29, 0x37, 0xae, 0x4f, 0x8a, 0x60, 0x3d, 0x88, 0xa1, 0x02, 0xcc, 0x5c, 0x63, 0x8f, 0x9c, 0x11,
+ 0xdb, 0x62, 0x84, 0x3a, 0x66, 0x1b, 0xb3, 0x0b, 0xda, 0x52, 0x64, 0x81, 0xa2, 0xc1, 0xd4, 0x7b,
+ 0x91, 0x41, 0x0a, 0x8c, 0xd9, 0x1e, 0xb6, 0x18, 0x6e, 0x29, 0x09, 0x01, 0x45, 0x2e, 0x9a, 0x83,
+ 0x54, 0x8b, 0xb6, 0x2d, 0xe2, 0x28, 0x49, 0x91, 0x08, 0xbd, 0xe5, 0x53, 0x58, 0x78, 0x67, 0x1c,
+ 0xd6, 0x4e, 0x70, 0xd3, 0x20, 0xe7, 0x8e, 0xc5, 0x3a, 0x1e, 0x56, 0x37, 0xd5, 0xcd, 0x40, 0xd2,
+ 0x1a, 0x24, 0xc5, 0x3c, 0x42, 0xd3, 0x84, 0x3a, 0x3b, 0x4a, 0x93, 0x1e, 0x20, 0x28, 0x0d, 0xf2,
+ 0xe5, 0x27, 0x3f, 0x94, 0xc1, 0xcd, 0xe5, 0x9f, 0x32, 0xcc, 0x1e, 0x8b, 0x19, 0xad, 0xe6, 0x15,
+ 0x2e, 0x7b, 0xb8, 0x85, 0x1d, 0x46, 0xac, 0x2b, 0x34, 0x0d, 0x71, 0xd2, 0x12, 0x3d, 0xc7, 0xf5,
+ 0x38, 0x09, 0xa6, 0xa6, 0x0e, 0xc3, 0x37, 0x4c, 0x89, 0x67, 0x65, 0x31, 0x75, 0xe0, 0x22, 0x14,
+ 0xee, 0x54, 0x16, 0xe1, 0x60, 0x73, 0x73, 0x90, 0x22, 0xbe, 0xdf, 0xc1, 0x5e, 0x28, 0x31, 0xf4,
+ 0xf8, 0x46, 0xb9, 0x65, 0x39, 0x36, 0x36, 0x5b, 0x16, 0xc3, 0xa1, 0xd0, 0xc9, 0x28, 0x58, 0xb1,
+ 0x18, 0x46, 0xcf, 0xe1, 0x7f, 0x7c, 0xe3, 0x12, 0x2f, 0xd8, 0xa7, 0xc0, 0x52, 0x02, 0x9b, 0xee,
+ 0x87, 0x05, 0x48, 0x00, 0xd9, 0xbd, 0x89, 0x4d, 0xbf, 0xd3, 0xbc, 0xc4, 0x36, 0x53, 0xc6, 0xb2,
+ 0x72, 0x6e, 0x42, 0xdd, 0x1d, 0xda, 0xc3, 0x28, 0x91, 0xf9, 0xbe, 0x69, 0x04, 0xc5, 0x9a, 0xc3,
+ 0xbc, 0xae, 0xfe, 0xc8, 0x1e, 0x8e, 0xa3, 0x4a, 0xb4, 0xe5, 0xff, 0x44, 0xf7, 0xfc, 0xdf, 0x74,
+ 0x17, 0xab, 0x0f, 0x3a, 0x06, 0xc5, 0x8b, 0x15, 0x98, 0x1b, 0xfd, 0x93, 0xfc, 0x9f, 0xf9, 0x88,
+ 0xbb, 0xe1, 0xbe, 0xb9, 0x89, 0x66, 0x21, 0x79, 0x6d, 0x5d, 0x75, 0xa2, 0xa3, 0x0b, 0x9c, 0xdd,
+ 0xf8, 0xb6, 0xb4, 0xb8, 0x0d, 0xd0, 0x6f, 0xfd, 0x2f, 0x95, 0x6b, 0xbf, 0x24, 0x18, 0x3b, 0xc0,
+ 0x5d, 0x7e, 0xe2, 0x68, 0x1e, 0x66, 0x42, 0xd3, 0x3c, 0xaa, 0x19, 0x75, 0xad, 0x5c, 0xdd, 0xaf,
+ 0x6a, 0x95, 0x74, 0x0c, 0x3d, 0x85, 0x85, 0x28, 0xc1, 0xaf, 0xce, 0x3c, 0xd1, 0xf6, 0xcc, 0x03,
+ 0xed, 0xd4, 0xe4, 0x27, 0x97, 0x96, 0xd0, 0x0b, 0x58, 0x8d, 0xd2, 0x5a, 0x45, 0xdd, 0xda, 0x2a,
+ 0xee, 0x98, 0xc7, 0x9a, 0x5e, 0xdd, 0xaf, 0x96, 0x4b, 0x8d, 0xea, 0x61, 0x2d, 0x44, 0x8b, 0xdb,
+ 0xe9, 0x38, 0x2a, 0xc2, 0x46, 0x0f, 0x2d, 0x57, 0x8c, 0x92, 0x69, 0x68, 0xe5, 0xba, 0xba, 0xf5,
+ 0xea, 0xa0, 0x38, 0xb2, 0x64, 0x27, 0x2d, 0xa3, 0x55, 0x58, 0x8a, 0x4a, 0x74, 0xa3, 0xf4, 0x87,
+ 0xce, 0x89, 0xc1, 0x21, 0xf8, 0x78, 0xa5, 0xa3, 0xc6, 0xdb, 0x9a, 0xf8, 0xd4, 0x6a, 0x8d, 0x08,
+ 0x17, 0x68, 0x72, 0xed, 0xab, 0x04, 0xe3, 0xbd, 0x07, 0x1b, 0x2d, 0xc0, 0xe3, 0x9e, 0x33, 0xa4,
+ 0x7b, 0x15, 0x96, 0xfa, 0xa9, 0x9e, 0x72, 0xa3, 0xfa, 0xa6, 0x56, 0x6a, 0x1c, 0xe9, 0x5a, 0xa4,
+ 0x7f, 0x05, 0xb2, 0x7d, 0x2c, 0xda, 0xc0, 0x20, 0x25, 0xa4, 0xaf, 0x43, 0x6e, 0x80, 0x1a, 0x12,
+ 0xff, 0x80, 0xe6, 0xaa, 0xb3, 0xf0, 0xa4, 0x4f, 0x73, 0xdd, 0x43, 0xfd, 0x12, 0x7b, 0xaf, 0xbf,
+ 0xdd, 0x65, 0xa4, 0xdb, 0xbb, 0x8c, 0xf4, 0xe3, 0x2e, 0x23, 0x7d, 0xbe, 0xcf, 0xc4, 0x6e, 0xef,
+ 0x33, 0xb1, 0xef, 0xf7, 0x99, 0xd8, 0x87, 0x95, 0x73, 0xc2, 0x2e, 0x3a, 0x4d, 0x7e, 0x90, 0x05,
+ 0x9f, 0x3a, 0xde, 0x06, 0xa1, 0xe2, 0xbb, 0xc0, 0x1f, 0x44, 0x3f, 0x7c, 0x37, 0x36, 0x53, 0xe2,
+ 0xc5, 0xf8, 0xf2, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x96, 0xb1, 0xd0, 0x33, 0x05, 0x00,
+ 0x00,
}
func (m *Proof) Marshal() (dAtA []byte, err error) {
diff --git a/types/crypto/vc.pb.go b/types/crypto/vc.pb.go
index f68088e75..dabe3b422 100644
--- a/types/crypto/vc.pb.go
+++ b/types/crypto/vc.pb.go
@@ -82,18 +82,18 @@ func init() {
func init() { proto.RegisterFile("common/crypto/vc.proto", fileDescriptor_64c0ba2ef76e413c) }
var fileDescriptor_64c0ba2ef76e413c = []byte{
- // 161 bytes of a gzipped FileDescriptorProto
+ // 168 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0xce, 0xcf, 0xcd,
0xcd, 0xcf, 0xd3, 0x4f, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xd7, 0x2f, 0x4b, 0xd6, 0x2b, 0x28, 0xca,
0x2f, 0xc9, 0x17, 0xe2, 0x85, 0x88, 0xeb, 0x41, 0xc4, 0x95, 0x4c, 0xb9, 0xd8, 0x02, 0x4a, 0x93,
0xbc, 0x53, 0x2b, 0x85, 0x04, 0xb8, 0x98, 0xb3, 0x53, 0x2b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x78,
0x82, 0x40, 0x4c, 0x21, 0x49, 0x2e, 0x8e, 0xec, 0xd4, 0xca, 0xf8, 0x92, 0xca, 0x82, 0x54, 0x09,
- 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0xf6, 0xec, 0xd4, 0xca, 0x90, 0xca, 0x82, 0x54, 0x27, 0xe3,
+ 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0xf6, 0xec, 0xd4, 0xca, 0x90, 0xca, 0x82, 0x54, 0x27, 0xbb,
0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39,
- 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x92, 0x2c, 0xce, 0xcf, 0x2b, 0xd2,
- 0xcb, 0xcc, 0xd7, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x07, 0xe9, 0x2d, 0x86, 0xba, 0x21, 0x89, 0x0d,
- 0xec, 0x02, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5c, 0x54, 0xbc, 0x29, 0x9b, 0x00, 0x00,
- 0x00,
+ 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x49, 0xcf, 0x2c, 0xc9, 0x28,
+ 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x2f, 0xce, 0xcf, 0x2b, 0xd2, 0xcd, 0xcc, 0x07, 0xd3, 0xfa,
+ 0x20, 0x63, 0x8a, 0xa1, 0xce, 0x49, 0x62, 0x03, 0x3b, 0xc6, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff,
+ 0x15, 0x2e, 0xbb, 0x23, 0xa6, 0x00, 0x00, 0x00,
}
func (m *PubKey) Marshal() (dAtA []byte, err error) {
diff --git a/types/highway/authentication/v1/service.pb.go b/types/highway/authentication/v1/service.pb.go
index 3df912f39..4bc9c4604 100644
--- a/types/highway/authentication/v1/service.pb.go
+++ b/types/highway/authentication/v1/service.pb.go
@@ -801,59 +801,60 @@ func init() {
}
var fileDescriptor_a204e94b3257a8d4 = []byte{
- // 829 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcf, 0x8f, 0xdb, 0x44,
- 0x14, 0x5e, 0x6f, 0x12, 0x27, 0x79, 0xdb, 0xc2, 0x32, 0xe9, 0x8f, 0xd4, 0xa4, 0xee, 0x62, 0x41,
- 0xb3, 0x50, 0xe1, 0x51, 0xe1, 0x88, 0x38, 0x00, 0x42, 0x42, 0x08, 0x09, 0x14, 0xa0, 0x88, 0x5e,
- 0xa2, 0x59, 0x67, 0xd6, 0x9e, 0x25, 0xb1, 0xcd, 0xcc, 0x24, 0xd9, 0xa8, 0xaa, 0x84, 0x10, 0x88,
- 0x0b, 0x07, 0x10, 0x1c, 0xb8, 0xc3, 0x1f, 0xc3, 0xb1, 0x12, 0x97, 0x1e, 0xd1, 0x2e, 0x7f, 0x08,
- 0xf2, 0x78, 0xe2, 0x8c, 0xbb, 0x89, 0xbb, 0x52, 0x6e, 0x79, 0xf3, 0xbe, 0xbc, 0xf7, 0xcd, 0x9b,
- 0xf7, 0xbd, 0x67, 0xe8, 0x47, 0x2c, 0x8c, 0xe6, 0x64, 0x81, 0xc9, 0x54, 0x46, 0x34, 0x96, 0x2c,
- 0x20, 0x92, 0x25, 0x31, 0x9e, 0xdd, 0xc7, 0x82, 0xf2, 0x19, 0x0b, 0xa8, 0x9f, 0xf2, 0x44, 0x26,
- 0xe8, 0x96, 0x06, 0xfa, 0x65, 0xa0, 0x3f, 0xbb, 0xef, 0xf4, 0xc2, 0x24, 0x09, 0xc7, 0x14, 0x93,
- 0x94, 0x61, 0x12, 0xc7, 0x89, 0x54, 0x1e, 0x91, 0xff, 0xd1, 0x79, 0x59, 0x7b, 0x95, 0x75, 0x34,
- 0x3d, 0xc6, 0x74, 0x92, 0xca, 0x45, 0xee, 0xf4, 0x1e, 0xc2, 0x95, 0x4f, 0x92, 0x90, 0xc5, 0x03,
- 0xfa, 0xed, 0x94, 0x0a, 0x89, 0x6e, 0x80, 0x9d, 0x70, 0x16, 0xb2, 0xb8, 0x6b, 0x1d, 0x58, 0x87,
- 0xed, 0x81, 0xb6, 0xd0, 0x35, 0x68, 0x90, 0x31, 0x23, 0xa2, 0xbb, 0xab, 0x8e, 0x73, 0x03, 0xf5,
- 0xa0, 0x4d, 0x84, 0xa0, 0x3c, 0x4b, 0xd7, 0xad, 0x29, 0xcf, 0xea, 0xc0, 0xfb, 0xc9, 0x82, 0xab,
- 0x3a, 0xb8, 0x48, 0x93, 0x58, 0x50, 0xd4, 0x85, 0xa6, 0x98, 0x06, 0x01, 0x15, 0x42, 0x85, 0x6f,
- 0x0d, 0x96, 0x66, 0xe6, 0x99, 0x50, 0x21, 0x48, 0x48, 0x75, 0x86, 0xa5, 0x89, 0xf6, 0xa1, 0x76,
- 0x32, 0x97, 0x3a, 0x7a, 0xf6, 0x33, 0xc3, 0x92, 0xd1, 0x88, 0x67, 0x51, 0xea, 0x39, 0x56, 0x9b,
- 0x06, 0xfb, 0x86, 0xc9, 0xde, 0xfb, 0xd5, 0x82, 0xce, 0x07, 0x53, 0xce, 0x69, 0x2c, 0xbf, 0x14,
- 0x94, 0x6f, 0xc5, 0xc7, 0xc8, 0x5e, 0x2b, 0x67, 0x2f, 0x6a, 0x54, 0x37, 0x6b, 0xb4, 0x89, 0xd3,
- 0xd7, 0x70, 0xf5, 0x33, 0xc2, 0xc9, 0x44, 0x2c, 0x4b, 0xef, 0x40, 0x8b, 0x9e, 0x32, 0x21, 0x59,
- 0x1c, 0x6a, 0x36, 0x85, 0x6d, 0x04, 0xd9, 0x5d, 0xff, 0x2c, 0x35, 0x23, 0xa5, 0xf7, 0xd7, 0x2e,
- 0xbc, 0xb0, 0x8c, 0xbd, 0xc5, 0x4d, 0x4d, 0x42, 0xb5, 0x8d, 0x84, 0xea, 0xeb, 0x09, 0x35, 0xcc,
- 0x1a, 0x18, 0x35, 0xb3, 0xcb, 0x35, 0xeb, 0x41, 0x3b, 0x88, 0xc8, 0x78, 0x4c, 0xe3, 0x90, 0x76,
- 0x9b, 0x79, 0x07, 0x15, 0x07, 0x08, 0x43, 0x87, 0x48, 0x49, 0x45, 0xde, 0xd0, 0xc3, 0x24, 0x55,
- 0x7d, 0xdd, 0x6d, 0x29, 0x1c, 0x32, 0x5c, 0x9f, 0xe6, 0x1e, 0x74, 0x0f, 0x5e, 0x2a, 0xfa, 0xaf,
- 0x80, 0xb7, 0x15, 0x7c, 0xbf, 0x70, 0x68, 0xb0, 0xf7, 0xa3, 0x05, 0x2f, 0x0e, 0x68, 0xc8, 0x84,
- 0xcc, 0x5a, 0xa2, 0xba, 0xff, 0x1d, 0x68, 0x4d, 0x05, 0xe5, 0x31, 0x99, 0x2c, 0xcb, 0x54, 0xd8,
- 0xe8, 0x00, 0xf6, 0x0c, 0x2a, 0xfa, 0x29, 0xcc, 0xa3, 0xf2, 0x2d, 0xeb, 0xcf, 0xdc, 0xd2, 0xfb,
- 0xd3, 0x82, 0xfd, 0x15, 0x8f, 0x2d, 0x1e, 0xec, 0x26, 0x34, 0xe5, 0xe9, 0x30, 0x22, 0x22, 0xd2,
- 0x24, 0x6c, 0x79, 0xfa, 0x11, 0x11, 0x51, 0x85, 0x62, 0xb4, 0xba, 0x1a, 0x2b, 0x75, 0xad, 0x2a,
- 0x60, 0x97, 0xfa, 0xb5, 0x0f, 0x9d, 0x01, 0x3d, 0xe6, 0x54, 0x44, 0x5f, 0x24, 0xdf, 0xd0, 0x62,
- 0x60, 0xe8, 0x00, 0x56, 0x11, 0xc0, 0x0b, 0xe0, 0x5a, 0x19, 0xb8, 0xdd, 0x8d, 0x62, 0x3a, 0x1f,
- 0xae, 0x06, 0x80, 0x1d, 0xd3, 0xf9, 0xc7, 0x73, 0xe9, 0xdd, 0x05, 0xf4, 0x80, 0x72, 0x76, 0xbc,
- 0x78, 0x0e, 0x99, 0x11, 0x74, 0x4a, 0xb8, 0x2d, 0xb8, 0xdc, 0x82, 0x16, 0x13, 0xc3, 0x19, 0x19,
- 0xb3, 0x91, 0x96, 0x43, 0x93, 0x89, 0x07, 0x99, 0xf9, 0xd6, 0x53, 0x1b, 0xae, 0xbf, 0x57, 0x1a,
- 0xcb, 0x9f, 0xe7, 0xb3, 0x1b, 0xfd, 0x60, 0x81, 0x9d, 0x4b, 0x11, 0x1d, 0xfa, 0x1b, 0x27, 0xb8,
- 0x5f, 0x9a, 0x04, 0xce, 0xeb, 0x97, 0x40, 0xe6, 0x17, 0xf1, 0x5e, 0xfb, 0xfe, 0x9f, 0xff, 0x7e,
- 0xdb, 0xbd, 0x83, 0x6e, 0x63, 0x73, 0x8f, 0xe0, 0x54, 0xa1, 0xf0, 0xa3, 0xfc, 0xed, 0x1e, 0xa3,
- 0xef, 0x2c, 0x68, 0xa8, 0x51, 0x8c, 0xfa, 0x15, 0xb1, 0xcd, 0x4d, 0xe0, 0x1c, 0x3e, 0x1f, 0xa8,
- 0x39, 0xbc, 0xaa, 0x38, 0xb8, 0x5e, 0xaf, 0xcc, 0x61, 0x9c, 0x81, 0x56, 0x14, 0x7e, 0xb6, 0xa0,
- 0xb5, 0xec, 0x72, 0xf4, 0x46, 0x45, 0xf0, 0x67, 0x24, 0xe9, 0xdc, 0xbb, 0x14, 0x56, 0x73, 0xe9,
- 0x2b, 0x2e, 0xaf, 0x78, 0x77, 0xca, 0x5c, 0xb8, 0xc6, 0xad, 0xe8, 0x48, 0xd8, 0x33, 0x36, 0x02,
- 0xba, 0xe1, 0xe7, 0x5b, 0xd2, 0x5f, 0x6e, 0x49, 0xff, 0xc3, 0x6c, 0x4b, 0x3a, 0x7e, 0x45, 0xf2,
- 0x35, 0x1b, 0xc5, 0xbb, 0xad, 0xf2, 0xdf, 0x44, 0xd7, 0xcb, 0xf9, 0x83, 0x1c, 0x8a, 0xfe, 0xb0,
- 0xe0, 0x8a, 0x29, 0x0e, 0xe4, 0x57, 0x5e, 0xee, 0x82, 0xdc, 0x1c, 0x7c, 0x69, 0x7c, 0x75, 0x41,
- 0x4e, 0xe6, 0x12, 0xf3, 0x1c, 0x8f, 0x1f, 0x9d, 0xcc, 0xe5, 0x63, 0xf4, 0xbb, 0x05, 0x7b, 0x86,
- 0x54, 0xd0, 0x9b, 0x15, 0x99, 0x2e, 0x4a, 0xaf, 0xb2, 0x50, 0x6b, 0x14, 0xe8, 0xdd, 0x55, 0xbc,
- 0x0e, 0x3c, 0xf7, 0x22, 0xaf, 0x99, 0x82, 0xe7, 0xb4, 0xde, 0xff, 0xea, 0xef, 0x33, 0xd7, 0x7a,
- 0x72, 0xe6, 0x5a, 0xff, 0x9e, 0xb9, 0xd6, 0x2f, 0xe7, 0xee, 0xce, 0x93, 0x73, 0x77, 0xe7, 0xe9,
- 0xb9, 0xbb, 0xf3, 0xf0, 0x5d, 0x91, 0xc4, 0xdc, 0x67, 0x09, 0x0e, 0x12, 0x4e, 0xb1, 0x5c, 0xa4,
- 0x54, 0xe0, 0x8d, 0x1f, 0x53, 0xef, 0x94, 0x4f, 0xd2, 0xa3, 0x23, 0x5b, 0xbd, 0xf4, 0xdb, 0xff,
- 0x07, 0x00, 0x00, 0xff, 0xff, 0xac, 0x76, 0xe1, 0x5b, 0x81, 0x09, 0x00, 0x00,
+ // 835 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcf, 0x6f, 0xe3, 0x44,
+ 0x14, 0xae, 0xf3, 0xc3, 0x49, 0x5e, 0x77, 0xa1, 0x4c, 0xf6, 0x47, 0xd6, 0x64, 0xbd, 0xc5, 0x82,
+ 0x4d, 0x61, 0xb5, 0x1e, 0x2d, 0x1c, 0x39, 0x01, 0x42, 0x5a, 0x21, 0x24, 0x50, 0x80, 0x95, 0xd8,
+ 0x4b, 0x34, 0x71, 0xa6, 0xf6, 0x94, 0xc4, 0x36, 0x9e, 0x49, 0xd2, 0x68, 0xb5, 0x12, 0x42, 0x20,
+ 0x2e, 0x1c, 0x40, 0x70, 0xe0, 0x0e, 0x7f, 0x0c, 0xc7, 0x4a, 0x5c, 0x7a, 0x44, 0x2d, 0x7f, 0x08,
+ 0xf2, 0x78, 0xe2, 0x8c, 0xdb, 0xc4, 0xad, 0x94, 0x53, 0xf2, 0xe6, 0x7d, 0x79, 0xef, 0x9b, 0x37,
+ 0xef, 0x7b, 0x2f, 0xd0, 0x0b, 0x98, 0x1f, 0xcc, 0xc9, 0x02, 0x93, 0xa9, 0x08, 0x68, 0x28, 0x98,
+ 0x47, 0x04, 0x8b, 0x42, 0x3c, 0x7b, 0x82, 0x39, 0x4d, 0x66, 0xcc, 0xa3, 0x6e, 0x9c, 0x44, 0x22,
+ 0x42, 0xf7, 0x14, 0xd0, 0x2d, 0x02, 0xdd, 0xd9, 0x13, 0xab, 0xeb, 0x47, 0x91, 0x3f, 0xa6, 0x98,
+ 0xc4, 0x0c, 0x93, 0x30, 0x8c, 0x84, 0xf4, 0xf0, 0xec, 0x87, 0xd6, 0xeb, 0xca, 0x2b, 0xad, 0xe1,
+ 0xf4, 0x10, 0xd3, 0x49, 0x2c, 0x16, 0x99, 0xd3, 0x79, 0x0e, 0x37, 0x3e, 0x8d, 0x7c, 0x16, 0xf6,
+ 0xe9, 0xb7, 0x53, 0xca, 0x05, 0xba, 0x03, 0x66, 0x94, 0x30, 0x9f, 0x85, 0x1d, 0x63, 0xdf, 0x38,
+ 0x68, 0xf5, 0x95, 0x85, 0x6e, 0x41, 0x9d, 0x8c, 0x19, 0xe1, 0x9d, 0x8a, 0x3c, 0xce, 0x0c, 0xd4,
+ 0x85, 0x16, 0xe1, 0x9c, 0x26, 0x69, 0xba, 0x4e, 0x55, 0x7a, 0x56, 0x07, 0xce, 0x4f, 0x06, 0xdc,
+ 0x54, 0xc1, 0x79, 0x1c, 0x85, 0x9c, 0xa2, 0x0e, 0x34, 0xf8, 0xd4, 0xf3, 0x28, 0xe7, 0x32, 0x7c,
+ 0xb3, 0xbf, 0x34, 0x53, 0xcf, 0x84, 0x72, 0x4e, 0x7c, 0xaa, 0x32, 0x2c, 0x4d, 0xb4, 0x07, 0xd5,
+ 0xa3, 0xb9, 0x50, 0xd1, 0xd3, 0xaf, 0x29, 0x96, 0x8c, 0x46, 0x49, 0x1a, 0xa5, 0x96, 0x61, 0x95,
+ 0xa9, 0xb1, 0xaf, 0xeb, 0xec, 0x9d, 0x5f, 0x0d, 0x68, 0x7f, 0x34, 0x4d, 0x12, 0x1a, 0x8a, 0xaf,
+ 0x38, 0x4d, 0xb6, 0xe2, 0xa3, 0x65, 0xaf, 0x16, 0xb3, 0xe7, 0x35, 0xaa, 0xe9, 0x35, 0xda, 0xc4,
+ 0xe9, 0x6b, 0xb8, 0xf9, 0x39, 0x49, 0xc8, 0x84, 0x2f, 0x4b, 0x6f, 0x41, 0x93, 0x1e, 0x33, 0x2e,
+ 0x58, 0xe8, 0x2b, 0x36, 0xb9, 0xad, 0x05, 0xa9, 0xac, 0x7f, 0x96, 0xaa, 0x96, 0xd2, 0xf9, 0xab,
+ 0x02, 0xaf, 0x2c, 0x63, 0x6f, 0x71, 0x53, 0x9d, 0x50, 0x75, 0x23, 0xa1, 0xda, 0x7a, 0x42, 0x75,
+ 0xbd, 0x06, 0x5a, 0xcd, 0xcc, 0x62, 0xcd, 0xba, 0xd0, 0xf2, 0x02, 0x32, 0x1e, 0xd3, 0xd0, 0xa7,
+ 0x9d, 0x46, 0xd6, 0x41, 0xf9, 0x01, 0xc2, 0xd0, 0x26, 0x42, 0x50, 0x9e, 0x35, 0xf4, 0x20, 0x8a,
+ 0x65, 0x5f, 0x77, 0x9a, 0x12, 0x87, 0x34, 0xd7, 0x67, 0x99, 0x07, 0x3d, 0x82, 0xd7, 0xf2, 0xfe,
+ 0xcb, 0xe1, 0x2d, 0x09, 0xdf, 0xcb, 0x1d, 0x0a, 0xec, 0xfc, 0x68, 0xc0, 0xab, 0x7d, 0xea, 0x33,
+ 0x2e, 0xd2, 0x96, 0x28, 0xef, 0x7f, 0x0b, 0x9a, 0x53, 0x4e, 0x93, 0x90, 0x4c, 0x96, 0x65, 0xca,
+ 0x6d, 0xb4, 0x0f, 0xbb, 0x1a, 0x15, 0xf5, 0x14, 0xfa, 0x51, 0xf1, 0x96, 0xb5, 0x0b, 0xb7, 0x74,
+ 0xfe, 0x34, 0x60, 0x6f, 0xc5, 0x63, 0x8b, 0x07, 0xbb, 0x0b, 0x0d, 0x71, 0x3c, 0x08, 0x08, 0x0f,
+ 0x14, 0x09, 0x53, 0x1c, 0x3f, 0x25, 0x3c, 0x28, 0x51, 0x8c, 0x52, 0x57, 0x7d, 0xa5, 0xae, 0x55,
+ 0x05, 0xcc, 0x42, 0xbf, 0xf6, 0xa0, 0xdd, 0xa7, 0x87, 0x09, 0xe5, 0xc1, 0x97, 0xd1, 0x37, 0x34,
+ 0x1f, 0x18, 0x2a, 0x80, 0x91, 0x07, 0x70, 0x3c, 0xb8, 0x55, 0x04, 0x6e, 0x77, 0xa3, 0x90, 0xce,
+ 0x07, 0xab, 0x01, 0x60, 0x86, 0x74, 0xfe, 0xc9, 0x5c, 0x38, 0x0f, 0x01, 0x3d, 0xa3, 0x09, 0x3b,
+ 0x5c, 0x5c, 0x41, 0x66, 0x04, 0xed, 0x02, 0x6e, 0x0b, 0x2e, 0xf7, 0xa0, 0xc9, 0xf8, 0x60, 0x46,
+ 0xc6, 0x6c, 0xa4, 0xe4, 0xd0, 0x60, 0xfc, 0x59, 0x6a, 0xbe, 0x7b, 0x6a, 0xc2, 0xed, 0x0f, 0x0a,
+ 0x63, 0xf9, 0x8b, 0x6c, 0x76, 0xa3, 0x1f, 0x0c, 0x30, 0x33, 0x29, 0xa2, 0x03, 0x77, 0xe3, 0x04,
+ 0x77, 0x0b, 0x93, 0xc0, 0x7a, 0xfb, 0x1a, 0xc8, 0xec, 0x22, 0xce, 0x5b, 0xdf, 0xff, 0xf3, 0xdf,
+ 0x6f, 0x95, 0x07, 0xe8, 0x3e, 0xd6, 0xf7, 0x08, 0x8e, 0x25, 0x0a, 0xbf, 0xc8, 0xde, 0xee, 0x25,
+ 0xfa, 0xce, 0x80, 0xba, 0x1c, 0xc5, 0xa8, 0x57, 0x12, 0x5b, 0xdf, 0x04, 0xd6, 0xc1, 0xd5, 0x40,
+ 0xc5, 0xe1, 0x4d, 0xc9, 0xc1, 0x76, 0xba, 0x45, 0x0e, 0xe3, 0x14, 0xb4, 0xa2, 0xf0, 0xb3, 0x01,
+ 0xcd, 0x65, 0x97, 0xa3, 0x77, 0x4a, 0x82, 0x5f, 0x90, 0xa4, 0xf5, 0xe8, 0x5a, 0x58, 0xc5, 0xa5,
+ 0x27, 0xb9, 0xbc, 0xe1, 0x3c, 0x28, 0x72, 0x49, 0x14, 0x6e, 0x45, 0x47, 0xc0, 0xae, 0xb6, 0x11,
+ 0xd0, 0x1d, 0x37, 0xdb, 0x92, 0xee, 0x72, 0x4b, 0xba, 0x1f, 0xa7, 0x5b, 0xd2, 0x72, 0x4b, 0x92,
+ 0xaf, 0xd9, 0x28, 0xce, 0x7d, 0x99, 0xff, 0x2e, 0xba, 0x5d, 0xcc, 0xef, 0x65, 0x50, 0xf4, 0x87,
+ 0x01, 0x37, 0x74, 0x71, 0x20, 0xb7, 0xf4, 0x72, 0x97, 0xe4, 0x66, 0xe1, 0x6b, 0xe3, 0xcb, 0x0b,
+ 0x72, 0x34, 0x17, 0x38, 0xc9, 0xf0, 0xf8, 0xc5, 0xd1, 0x5c, 0xbc, 0x44, 0xbf, 0x1b, 0xb0, 0xab,
+ 0x49, 0x05, 0x3d, 0x2e, 0xc9, 0x74, 0x59, 0x7a, 0xa5, 0x85, 0x5a, 0xa3, 0x40, 0xe7, 0xa1, 0xe4,
+ 0xb5, 0xef, 0xd8, 0x97, 0x79, 0xcd, 0x24, 0x3c, 0xa3, 0xf5, 0xe1, 0xf0, 0xef, 0x33, 0xdb, 0x38,
+ 0x39, 0xb3, 0x8d, 0x7f, 0xcf, 0x6c, 0xe3, 0x97, 0x73, 0x7b, 0xe7, 0xe4, 0xdc, 0xde, 0x39, 0x3d,
+ 0xb7, 0x77, 0x9e, 0x3f, 0xf5, 0x99, 0x08, 0xa6, 0x43, 0xd7, 0x8b, 0x26, 0x98, 0x47, 0x61, 0xf2,
+ 0x98, 0x45, 0xf2, 0x13, 0x8b, 0x45, 0x4c, 0x39, 0xde, 0xf8, 0xbf, 0xea, 0xfd, 0xe2, 0x49, 0x3c,
+ 0x1c, 0x9a, 0xf2, 0xd1, 0xdf, 0xfb, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x39, 0xc5, 0x9c, 0x0a, 0x8c,
+ 0x09, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/types/highway/database/v1/service.pb.go b/types/highway/database/v1/service.pb.go
index 03dbe9b4f..137562c89 100644
--- a/types/highway/database/v1/service.pb.go
+++ b/types/highway/database/v1/service.pb.go
@@ -134,29 +134,30 @@ func init() {
func init() { proto.RegisterFile("highway/database/v1/service.proto", fileDescriptor_f6a3579db4bb4b52) }
var fileDescriptor_f6a3579db4bb4b52 = []byte{
- // 346 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x4f, 0x4b, 0xf3, 0x40,
- 0x10, 0xc6, 0xbb, 0x29, 0x6f, 0xfb, 0x76, 0xd5, 0x56, 0x56, 0x0f, 0x21, 0x4a, 0xa8, 0xf1, 0xd2,
- 0xd3, 0xae, 0xad, 0x17, 0xa9, 0x37, 0xa9, 0x20, 0x7a, 0x8b, 0x37, 0x6f, 0x9b, 0x76, 0x4c, 0x42,
- 0xd3, 0x6c, 0xcc, 0x6e, 0x22, 0xb9, 0xfa, 0x09, 0x04, 0xbf, 0x91, 0x27, 0x8f, 0x05, 0x2f, 0x1e,
- 0xa5, 0xf5, 0x83, 0x88, 0x49, 0x17, 0x14, 0x8a, 0x78, 0x9b, 0x67, 0x9e, 0xf9, 0xf3, 0x63, 0x06,
- 0x1f, 0x04, 0xa1, 0x1f, 0xdc, 0xf3, 0x82, 0x4d, 0xb8, 0xe2, 0x1e, 0x97, 0xc0, 0xf2, 0x3e, 0x93,
- 0x90, 0xe6, 0xe1, 0x18, 0x68, 0x92, 0x0a, 0x25, 0xc8, 0xce, 0xaa, 0x84, 0xea, 0x12, 0x9a, 0xf7,
- 0xad, 0x7d, 0x5f, 0x08, 0x3f, 0x02, 0xc6, 0x93, 0x90, 0xf1, 0x38, 0x16, 0x8a, 0xab, 0x50, 0xc4,
- 0xb2, 0x6a, 0xb1, 0xf6, 0x56, 0x6e, 0xa9, 0xbc, 0xec, 0x96, 0xc1, 0x2c, 0x51, 0x45, 0x65, 0x3a,
- 0x1d, 0xbc, 0x75, 0x01, 0x3c, 0x52, 0x81, 0x0b, 0x77, 0x19, 0x48, 0xe5, 0x3c, 0x23, 0xdc, 0xd6,
- 0x19, 0x99, 0x88, 0x58, 0x02, 0x69, 0x63, 0x43, 0x4c, 0x4d, 0xd4, 0x45, 0xbd, 0xff, 0xae, 0x21,
- 0xa6, 0xc4, 0xc4, 0xcd, 0x19, 0x48, 0xc9, 0x7d, 0x30, 0x8d, 0x2e, 0xea, 0xb5, 0x5c, 0x2d, 0xc9,
- 0x25, 0x6e, 0x4e, 0x40, 0xf1, 0x30, 0x92, 0x66, 0xbd, 0x5b, 0xef, 0x6d, 0x0c, 0x8e, 0xe8, 0x1a,
- 0x5e, 0xfa, 0x73, 0x3e, 0x1d, 0x55, 0x2d, 0xe7, 0xb1, 0x4a, 0x0b, 0x57, 0x0f, 0xb0, 0x86, 0x78,
- 0xf3, 0xbb, 0x41, 0xb6, 0x71, 0x7d, 0x0a, 0x45, 0x89, 0xd1, 0x72, 0xbf, 0x42, 0xb2, 0x8b, 0xff,
- 0xe5, 0x3c, 0xca, 0x34, 0x45, 0x25, 0x86, 0xc6, 0x09, 0x1a, 0x64, 0xb8, 0x33, 0x5a, 0xed, 0xbb,
- 0xae, 0xce, 0x47, 0x3c, 0xdc, 0xa8, 0xd6, 0x12, 0xe7, 0x57, 0xa6, 0xf2, 0x0a, 0xd6, 0xe1, 0x1f,
- 0xb8, 0x9d, 0xce, 0xc3, 0xeb, 0xc7, 0x93, 0xd1, 0x22, 0x4d, 0x16, 0x94, 0xc6, 0xd9, 0xd5, 0xcb,
- 0xc2, 0x46, 0xf3, 0x85, 0x8d, 0xde, 0x17, 0x36, 0x7a, 0x5c, 0xda, 0xb5, 0xf9, 0xd2, 0xae, 0xbd,
- 0x2d, 0xed, 0xda, 0x4d, 0x5f, 0x8a, 0x38, 0xa5, 0xa1, 0x60, 0x63, 0x91, 0x02, 0x53, 0x45, 0x02,
- 0x92, 0xad, 0x79, 0xf6, 0xa9, 0x8e, 0x13, 0xcf, 0x6b, 0x94, 0x0f, 0x3a, 0xfe, 0x0c, 0x00, 0x00,
- 0xff, 0xff, 0xc1, 0x51, 0x6c, 0x8c, 0x15, 0x02, 0x00, 0x00,
+ // 356 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xcf, 0x4a, 0xeb, 0x40,
+ 0x14, 0xc6, 0x3b, 0x29, 0xb7, 0xbd, 0x9d, 0x7b, 0x6f, 0x7b, 0x19, 0x5d, 0x84, 0x28, 0xa1, 0xc6,
+ 0x4d, 0x37, 0xce, 0xd8, 0xba, 0x91, 0xea, 0x4a, 0x2a, 0x88, 0xcb, 0x08, 0x2e, 0xdc, 0x4d, 0xda,
+ 0x63, 0x32, 0x34, 0xcd, 0xc4, 0xcc, 0x24, 0x92, 0xad, 0x4f, 0x20, 0xf8, 0x46, 0xae, 0x5c, 0x16,
+ 0xdc, 0xb8, 0x94, 0xd6, 0x07, 0x11, 0x93, 0x06, 0x14, 0x8a, 0xb8, 0x9a, 0xf3, 0xcd, 0x77, 0xfe,
+ 0xfc, 0x38, 0x07, 0xef, 0x04, 0xc2, 0x0f, 0x6e, 0x79, 0xce, 0x26, 0x5c, 0x73, 0x8f, 0x2b, 0x60,
+ 0x59, 0x9f, 0x29, 0x48, 0x32, 0x31, 0x06, 0x1a, 0x27, 0x52, 0x4b, 0xb2, 0xb1, 0x4a, 0xa1, 0x55,
+ 0x0a, 0xcd, 0xfa, 0xd6, 0xb6, 0x2f, 0xa5, 0x1f, 0x02, 0xe3, 0xb1, 0x60, 0x3c, 0x8a, 0xa4, 0xe6,
+ 0x5a, 0xc8, 0x48, 0x95, 0x25, 0xd6, 0xd6, 0xca, 0x2d, 0x94, 0x97, 0x5e, 0x33, 0x98, 0xc5, 0x3a,
+ 0x2f, 0x4d, 0xa7, 0x83, 0xff, 0x9d, 0x01, 0x0f, 0x75, 0xe0, 0xc2, 0x4d, 0x0a, 0x4a, 0x3b, 0x8f,
+ 0x08, 0xb7, 0xab, 0x1f, 0x15, 0xcb, 0x48, 0x01, 0x69, 0x63, 0x43, 0x4e, 0x4d, 0xd4, 0x45, 0xbd,
+ 0xdf, 0xae, 0x21, 0xa7, 0xc4, 0xc4, 0xcd, 0x19, 0x28, 0xc5, 0x7d, 0x30, 0x8d, 0x2e, 0xea, 0xb5,
+ 0xdc, 0x4a, 0x92, 0x73, 0xdc, 0x9c, 0x80, 0xe6, 0x22, 0x54, 0x66, 0xbd, 0x5b, 0xef, 0xfd, 0x19,
+ 0xec, 0xd3, 0x35, 0xbc, 0xf4, 0x6b, 0x7f, 0x3a, 0x2a, 0x4b, 0x4e, 0x23, 0x9d, 0xe4, 0x6e, 0xd5,
+ 0xc0, 0x1a, 0xe2, 0xbf, 0x9f, 0x0d, 0xf2, 0x1f, 0xd7, 0xa7, 0x90, 0x17, 0x18, 0x2d, 0xf7, 0x23,
+ 0x24, 0x9b, 0xf8, 0x57, 0xc6, 0xc3, 0xb4, 0xa2, 0x28, 0xc5, 0xd0, 0x38, 0x44, 0x83, 0x14, 0x77,
+ 0x46, 0xab, 0x79, 0x17, 0xe5, 0xfa, 0x88, 0x87, 0x1b, 0xe5, 0x58, 0xe2, 0x7c, 0xcb, 0x54, 0x6c,
+ 0xc1, 0xda, 0xfd, 0x01, 0xb7, 0xd3, 0xb9, 0x7b, 0x7e, 0x7b, 0x30, 0x5a, 0xa4, 0xc9, 0x82, 0xc2,
+ 0x38, 0xb9, 0x7c, 0x5a, 0xd8, 0x68, 0xbe, 0xb0, 0xd1, 0xeb, 0xc2, 0x46, 0xf7, 0x4b, 0xbb, 0x36,
+ 0x5f, 0xda, 0xb5, 0x97, 0xa5, 0x5d, 0xbb, 0x3a, 0xf6, 0x85, 0x0e, 0x52, 0x8f, 0x8e, 0xe5, 0x8c,
+ 0x29, 0x19, 0x25, 0x7b, 0x42, 0x16, 0x2f, 0xd3, 0x79, 0x0c, 0x8a, 0xad, 0xb9, 0xfb, 0x51, 0x15,
+ 0xc7, 0x9e, 0xd7, 0x28, 0x6e, 0x75, 0xf0, 0x1e, 0x00, 0x00, 0xff, 0xff, 0x18, 0x65, 0x0b, 0x74,
+ 0x20, 0x02, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/types/highway/storage/v1/service.pb.go b/types/highway/storage/v1/service.pb.go
index 120786200..cc5ebba33 100644
--- a/types/highway/storage/v1/service.pb.go
+++ b/types/highway/storage/v1/service.pb.go
@@ -240,27 +240,28 @@ func init() {
func init() { proto.RegisterFile("highway/storage/v1/service.proto", fileDescriptor_913be91a9864b42e) }
var fileDescriptor_913be91a9864b42e = []byte{
- // 313 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x4b, 0xc3, 0x30,
- 0x14, 0xc6, 0x97, 0x29, 0x13, 0x03, 0xdb, 0x24, 0x20, 0x8c, 0x22, 0x61, 0xeb, 0x2e, 0x9e, 0x12,
- 0xa6, 0xe0, 0xc5, 0x9b, 0x0e, 0x64, 0x37, 0xd9, 0x6e, 0xde, 0xb2, 0x36, 0x76, 0x01, 0xe9, 0xab,
- 0x4d, 0x56, 0x19, 0xe2, 0xc5, 0xbf, 0x40, 0xf0, 0x9f, 0xf2, 0x38, 0xf0, 0xe2, 0x51, 0x5a, 0xff,
- 0x10, 0x69, 0x53, 0x85, 0xd2, 0x6d, 0xb7, 0x47, 0xf9, 0x7d, 0xef, 0x7b, 0xdf, 0xd7, 0xe0, 0xfe,
- 0x42, 0x05, 0x8b, 0x27, 0xb1, 0xe2, 0xda, 0x40, 0x2c, 0x02, 0xc9, 0x93, 0x11, 0xd7, 0x32, 0x4e,
- 0x94, 0x27, 0x59, 0x14, 0x83, 0x01, 0x42, 0x4a, 0x82, 0x95, 0x04, 0x4b, 0x46, 0xce, 0x49, 0x00,
- 0x10, 0x3c, 0x48, 0x2e, 0x22, 0xc5, 0x45, 0x18, 0x82, 0x11, 0x46, 0x41, 0xa8, 0xad, 0xc2, 0x1d,
- 0xe0, 0xf6, 0x8d, 0x34, 0xd7, 0x93, 0xf1, 0x54, 0x3e, 0x2e, 0xa5, 0x36, 0xe4, 0x08, 0xef, 0x79,
- 0xca, 0xef, 0xa1, 0x3e, 0x3a, 0x3d, 0x9c, 0xe6, 0xa3, 0x7b, 0x81, 0x3b, 0x7f, 0x88, 0x8e, 0x20,
- 0xd4, 0xb2, 0xce, 0x10, 0x82, 0xf7, 0x7d, 0x61, 0x44, 0xaf, 0x59, 0x7c, 0x2a, 0xe6, 0x5c, 0x77,
- 0xbb, 0x34, 0x63, 0x61, 0xc4, 0xd6, 0xdd, 0x1b, 0x75, 0x43, 0xdc, 0xfd, 0xd7, 0x6d, 0x33, 0x3c,
- 0xcb, 0x10, 0xee, 0xcc, 0x6c, 0xc8, 0x99, 0xad, 0x80, 0xdc, 0xe3, 0x96, 0xbd, 0x93, 0x0c, 0x58,
- 0xbd, 0x07, 0x56, 0x89, 0xe9, 0xb8, 0xbb, 0x10, 0xeb, 0xea, 0x1e, 0xbf, 0x7e, 0xfe, 0xbc, 0x37,
- 0xbb, 0xa4, 0x9d, 0x17, 0xed, 0x29, 0x9f, 0x3f, 0x7b, 0xca, 0x7f, 0x21, 0x0a, 0x1f, 0x94, 0xf7,
- 0x91, 0x8d, 0x5b, 0xaa, 0xa1, 0x9d, 0xe1, 0x4e, 0xa6, 0x6a, 0xe5, 0x56, 0xad, 0xae, 0x26, 0x1f,
- 0x29, 0x45, 0xeb, 0x94, 0xa2, 0xef, 0x94, 0xa2, 0xb7, 0x8c, 0x36, 0xd6, 0x19, 0x6d, 0x7c, 0x65,
- 0xb4, 0x71, 0xc7, 0x35, 0x84, 0x31, 0x53, 0xc0, 0x3d, 0x88, 0x25, 0x37, 0xab, 0x48, 0x6a, 0x5e,
- 0x7f, 0x1e, 0x97, 0xe5, 0x18, 0xcd, 0xe7, 0xad, 0xe2, 0x7f, 0x9f, 0xff, 0x06, 0x00, 0x00, 0xff,
- 0xff, 0x13, 0xbf, 0x08, 0x67, 0x45, 0x02, 0x00, 0x00,
+ // 321 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc8, 0xc8, 0x4c, 0xcf,
+ 0x28, 0x4f, 0xac, 0xd4, 0x2f, 0x2e, 0xc9, 0x2f, 0x4a, 0x4c, 0x4f, 0xd5, 0x2f, 0x33, 0xd4, 0x2f,
+ 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xaa,
+ 0xd0, 0x83, 0xaa, 0xd0, 0x2b, 0x33, 0x94, 0x92, 0x49, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x4f,
+ 0x2c, 0xc8, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0x86, 0xe8,
+ 0x50, 0x52, 0xe4, 0xe2, 0x75, 0x4f, 0x2d, 0x71, 0xf6, 0x74, 0x09, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d,
+ 0x2e, 0x11, 0x12, 0xe0, 0x62, 0x4e, 0xce, 0x4c, 0x91, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02,
+ 0x31, 0x95, 0xcc, 0xb8, 0xf8, 0x60, 0x4a, 0x8a, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x31, 0xd5, 0x08,
+ 0x09, 0x71, 0xb1, 0xa4, 0x24, 0x96, 0x24, 0x4a, 0x30, 0x81, 0x85, 0xc0, 0x6c, 0x90, 0xbe, 0x80,
+ 0xd2, 0x12, 0x97, 0xc4, 0x92, 0x44, 0x9c, 0x66, 0x63, 0xd5, 0xa7, 0xcc, 0xc5, 0x0f, 0xd7, 0x87,
+ 0xcb, 0x42, 0xa3, 0xc7, 0x8c, 0x5c, 0x7c, 0xc1, 0x10, 0x4f, 0x06, 0x43, 0x82, 0x40, 0x28, 0x8d,
+ 0x8b, 0x0d, 0xe2, 0x4e, 0x21, 0x45, 0x3d, 0xcc, 0x70, 0xd0, 0x43, 0xf1, 0xa6, 0x94, 0x12, 0x3e,
+ 0x25, 0x10, 0x5b, 0x95, 0x44, 0x9b, 0x2e, 0x3f, 0x99, 0xcc, 0xc4, 0x2f, 0xc4, 0x0b, 0x0a, 0xe8,
+ 0xe4, 0xcc, 0x14, 0xfd, 0xea, 0xe4, 0xcc, 0x94, 0x5a, 0xa1, 0x4c, 0x2e, 0x76, 0xa8, 0xfb, 0x84,
+ 0xb0, 0x9a, 0x82, 0xea, 0x69, 0x29, 0x65, 0xbc, 0x6a, 0x50, 0xad, 0x52, 0x42, 0xb5, 0xca, 0x29,
+ 0xe4, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58,
+ 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xac, 0xd2, 0x33, 0x4b, 0x32,
+ 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x8b, 0xf3, 0xf3, 0x8a, 0x74, 0x33, 0xf3, 0xc1, 0xb4,
+ 0x7e, 0x49, 0x65, 0x41, 0x6a, 0xb1, 0x3e, 0x66, 0x4a, 0xb1, 0x86, 0x32, 0x0b, 0x92, 0x92, 0xd8,
+ 0xc0, 0x51, 0x6f, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x2a, 0xaf, 0x7d, 0xfa, 0x50, 0x02, 0x00,
+ 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/types/highway/wallet/v1/service.pb.go b/types/highway/wallet/v1/service.pb.go
index 4bbac56c9..2906ce5a1 100644
--- a/types/highway/wallet/v1/service.pb.go
+++ b/types/highway/wallet/v1/service.pb.go
@@ -8,6 +8,7 @@ import (
fmt "fmt"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
+ crypto "github.com/sonr-io/sonr/types/crypto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
@@ -15,7 +16,6 @@ import (
io "io"
math "math"
math_bits "math/bits"
- crypto "sonr.io/core/types/crypto"
)
// Reference imports to suppress errors if they are not otherwise used.
@@ -795,53 +795,54 @@ func init() {
func init() { proto.RegisterFile("highway/wallet/v1/service.proto", fileDescriptor_6b44f8b21811e31c) }
var fileDescriptor_6b44f8b21811e31c = []byte{
- // 734 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4f, 0x4f, 0x13, 0x5f,
- 0x14, 0x65, 0x68, 0xe1, 0xd7, 0xde, 0x1f, 0x08, 0x3c, 0x0a, 0x4c, 0x26, 0x38, 0xe0, 0x0b, 0xd0,
- 0x62, 0xe2, 0x4c, 0x40, 0xe3, 0xc6, 0x85, 0x01, 0x62, 0xd8, 0xe8, 0xa6, 0x18, 0x4c, 0xd8, 0x34,
- 0xc3, 0xf4, 0x75, 0x18, 0x6d, 0xdf, 0x1b, 0xe7, 0xbd, 0xb6, 0x34, 0x31, 0x21, 0xc1, 0xc4, 0x8d,
- 0x2e, 0x34, 0x7e, 0x0f, 0x13, 0xbf, 0x82, 0x2b, 0x97, 0x24, 0x6e, 0x5c, 0x1a, 0xf0, 0x83, 0x98,
- 0x79, 0x33, 0x03, 0xfd, 0x33, 0xa4, 0x0d, 0x75, 0xe1, 0xee, 0xdd, 0x7b, 0xcf, 0xdc, 0x7b, 0x6e,
- 0xa7, 0xe7, 0xcc, 0x83, 0xa5, 0x23, 0xd7, 0x39, 0x6a, 0x5a, 0x2d, 0xb3, 0x69, 0x55, 0xab, 0x44,
- 0x98, 0x8d, 0x0d, 0x93, 0x13, 0xbf, 0xe1, 0xda, 0xc4, 0xf0, 0x7c, 0x26, 0x18, 0x9a, 0x89, 0x00,
- 0x46, 0x08, 0x30, 0x1a, 0x1b, 0x9a, 0x6a, 0xb3, 0x5a, 0x8d, 0x51, 0xd3, 0xf6, 0x5b, 0x9e, 0x60,
- 0xa6, 0xcd, 0x5c, 0x1a, 0x82, 0xb5, 0x45, 0x87, 0x31, 0xa7, 0x4a, 0x4c, 0xcb, 0x73, 0x4d, 0x8b,
- 0x52, 0x26, 0x2c, 0xe1, 0x32, 0xca, 0xc3, 0x2a, 0xfe, 0xa0, 0x40, 0x6e, 0xc7, 0x27, 0x96, 0x20,
- 0x5b, 0xb6, 0xcd, 0xea, 0x54, 0x14, 0xc9, 0xeb, 0x3a, 0xe1, 0x02, 0x4d, 0x43, 0xea, 0x65, 0x53,
- 0xa8, 0xca, 0xb2, 0x52, 0xc8, 0x16, 0x83, 0x23, 0x42, 0x90, 0xa6, 0x56, 0x8d, 0xa8, 0xa3, 0x32,
- 0x25, 0xcf, 0xe8, 0x01, 0x64, 0x83, 0x51, 0x25, 0xd1, 0xf2, 0x88, 0x9a, 0x5a, 0x56, 0x0a, 0xb7,
- 0x36, 0x17, 0x8c, 0x90, 0x8a, 0x11, 0x52, 0x31, 0x76, 0x98, 0x4b, 0x9f, 0xb7, 0x3c, 0x52, 0xcc,
- 0xd8, 0xd1, 0x09, 0xa9, 0xf0, 0x1f, 0x25, 0xa2, 0xc9, 0xfc, 0x57, 0x6a, 0x5a, 0x36, 0x8b, 0x43,
- 0xfc, 0x55, 0x81, 0xb9, 0x2e, 0x3a, 0xdc, 0x63, 0x94, 0xcb, 0x67, 0x78, 0xdd, 0xb6, 0x09, 0xe7,
- 0x92, 0x53, 0xa6, 0x18, 0x87, 0x41, 0xa5, 0x46, 0x38, 0xb7, 0x9c, 0x98, 0x5a, 0x1c, 0x06, 0x15,
- 0xab, 0x5c, 0xf6, 0x83, 0x67, 0x52, 0x61, 0x25, 0x0a, 0x3b, 0x79, 0xa7, 0x07, 0xe5, 0x9d, 0x83,
- 0x31, 0xd6, 0xa4, 0xc4, 0x57, 0xc7, 0x64, 0xb7, 0x30, 0xc0, 0x8f, 0x61, 0x66, 0x97, 0x88, 0xbe,
- 0x3f, 0x5f, 0x1b, 0x99, 0xd1, 0x0e, 0x32, 0xf8, 0x8b, 0x02, 0xa8, 0xbd, 0xc3, 0x3f, 0xbf, 0x71,
- 0x1e, 0x66, 0x9f, 0xba, 0x3c, 0x26, 0xcc, 0xaf, 0xdd, 0x19, 0x57, 0x20, 0xd7, 0x09, 0x1c, 0x62,
- 0x35, 0x0d, 0x32, 0x56, 0xd4, 0x47, 0x4d, 0x2d, 0xa7, 0x0a, 0xd9, 0xe2, 0x65, 0x8c, 0x0f, 0x00,
- 0xed, 0xb9, 0x0e, 0x7d, 0x16, 0x42, 0x6f, 0xf0, 0x0e, 0xda, 0xe7, 0x06, 0x3f, 0xdc, 0xc4, 0xe5,
- 0x5c, 0xec, 0xc0, 0x6c, 0x47, 0xef, 0x21, 0x56, 0x58, 0x84, 0x2c, 0x77, 0x1d, 0x6a, 0x89, 0xba,
- 0x1f, 0x8f, 0xb9, 0x4a, 0xe0, 0x37, 0x30, 0xbf, 0x4f, 0x7c, 0xb7, 0xd2, 0xda, 0x8b, 0x53, 0x7f,
- 0x75, 0x91, 0xce, 0xe9, 0xe9, 0xee, 0xe9, 0xc7, 0xb0, 0xd0, 0x33, 0x7d, 0x88, 0x55, 0xd7, 0x61,
- 0x3a, 0x3a, 0x96, 0x1a, 0x41, 0x5b, 0x97, 0x94, 0x25, 0x9f, 0x4c, 0x71, 0x2a, 0xca, 0xef, 0x47,
- 0x69, 0xbc, 0x05, 0xb3, 0x4f, 0x8e, 0x3d, 0xe6, 0x8b, 0x17, 0xd2, 0xcd, 0x6e, 0xa2, 0xa0, 0x53,
- 0x05, 0x72, 0x9d, 0x3d, 0x86, 0xa0, 0xfe, 0x10, 0x16, 0x08, 0x95, 0x92, 0x20, 0xe5, 0x52, 0xe8,
- 0xb0, 0xa5, 0xc3, 0x7a, 0xa5, 0x42, 0xfc, 0x48, 0x53, 0x73, 0x97, 0xe5, 0x70, 0xda, 0xb6, 0x2c,
- 0x6e, 0x7e, 0x1b, 0x87, 0xc9, 0x30, 0xb1, 0x17, 0xba, 0x35, 0x7a, 0xaf, 0xc0, 0x64, 0x87, 0x9b,
- 0xa1, 0xbc, 0xd1, 0x63, 0xdd, 0x46, 0x92, 0xfd, 0x6a, 0x85, 0xfe, 0xc0, 0x70, 0x45, 0x9c, 0x3f,
- 0xfd, 0xf1, 0xfb, 0xf3, 0xe8, 0x1d, 0xbc, 0x64, 0x76, 0x7d, 0x36, 0x62, 0x75, 0x98, 0xb6, 0x7c,
- 0x0e, 0x9d, 0x00, 0x5c, 0xb9, 0x0c, 0x5a, 0x49, 0x18, 0xd0, 0x63, 0x63, 0xda, 0x6a, 0x1f, 0x54,
- 0xc4, 0x61, 0x45, 0x72, 0xd0, 0xf1, 0xe2, 0xb5, 0x1c, 0x1c, 0x22, 0xd0, 0x3b, 0x05, 0x26, 0xda,
- 0xed, 0x00, 0xad, 0x25, 0x74, 0x4f, 0x30, 0x16, 0x2d, 0xdf, 0x17, 0x17, 0xf1, 0x58, 0x95, 0x3c,
- 0x96, 0xf0, 0xed, 0x6b, 0x79, 0x54, 0x5d, 0x2e, 0xd0, 0x5b, 0x05, 0xfe, 0x6f, 0xd3, 0x34, 0x4a,
- 0xda, 0xb2, 0xd7, 0x4f, 0xb4, 0xb5, 0x7e, 0xb0, 0x81, 0x59, 0x04, 0xb2, 0x43, 0x9f, 0x14, 0x98,
- 0xea, 0x92, 0x1c, 0x5a, 0x4f, 0x18, 0x91, 0x6c, 0x0a, 0xda, 0xdd, 0x41, 0xa0, 0x03, 0xff, 0x47,
- 0xa4, 0x48, 0x5b, 0xe8, 0x04, 0x26, 0xda, 0x75, 0x94, 0xf8, 0x86, 0x12, 0xc4, 0x9a, 0xf8, 0x86,
- 0x92, 0x04, 0x89, 0x75, 0xc9, 0x44, 0xc5, 0xf3, 0xdd, 0x4c, 0x88, 0x44, 0x6f, 0xef, 0x7e, 0x3f,
- 0xd7, 0x95, 0xb3, 0x73, 0x5d, 0xf9, 0x75, 0xae, 0x2b, 0x1f, 0x2f, 0xf4, 0x91, 0xb3, 0x0b, 0x7d,
- 0xe4, 0xe7, 0x85, 0x3e, 0x72, 0x70, 0x8f, 0x33, 0xea, 0x1b, 0x6e, 0x70, 0xb7, 0xf1, 0x89, 0x19,
- 0x7c, 0xc6, 0xb8, 0xd9, 0x73, 0x51, 0x7a, 0x14, 0x9e, 0xbc, 0xc3, 0xc3, 0x71, 0x79, 0xbf, 0xb9,
- 0xff, 0x27, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xd8, 0x79, 0xe9, 0x4d, 0x09, 0x00, 0x00,
+ // 744 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4d, 0x4f, 0xdb, 0x4a,
+ 0x14, 0xc5, 0x24, 0xf0, 0x92, 0xfb, 0xe0, 0x01, 0x43, 0x00, 0xcb, 0xe2, 0x19, 0xde, 0x08, 0x48,
+ 0x78, 0x52, 0x6d, 0x41, 0xab, 0xaa, 0x52, 0x17, 0x15, 0xa0, 0xaa, 0x9b, 0x76, 0x13, 0x2a, 0x2a,
+ 0xb1, 0x89, 0x1c, 0x67, 0x62, 0xdc, 0x26, 0x33, 0xae, 0x67, 0x92, 0x10, 0xa9, 0x12, 0x12, 0x95,
+ 0xba, 0x69, 0x17, 0xad, 0xfa, 0x3f, 0x2a, 0xf5, 0x2f, 0x74, 0xd5, 0x25, 0x52, 0x37, 0x5d, 0x56,
+ 0xd0, 0x1f, 0x52, 0x79, 0x6c, 0x43, 0x3e, 0x8c, 0x12, 0x91, 0x2e, 0xba, 0xca, 0xdc, 0x7b, 0x8f,
+ 0xef, 0x3d, 0xd7, 0xce, 0x39, 0x36, 0xac, 0x1c, 0xb9, 0xce, 0x51, 0xcb, 0x6a, 0x9b, 0x2d, 0xab,
+ 0x56, 0x23, 0xc2, 0x6c, 0x6e, 0x99, 0x9c, 0xf8, 0x4d, 0xd7, 0x26, 0x86, 0xe7, 0x33, 0xc1, 0xd0,
+ 0x5c, 0x04, 0x30, 0x42, 0x80, 0xd1, 0xdc, 0xd2, 0x54, 0x9b, 0xd5, 0xeb, 0x8c, 0x9a, 0xb6, 0xdf,
+ 0xf6, 0x04, 0x33, 0x6d, 0xe6, 0xd2, 0x10, 0xac, 0x2d, 0x3b, 0x8c, 0x39, 0x35, 0x62, 0x5a, 0x9e,
+ 0x6b, 0x5a, 0x94, 0x32, 0x61, 0x09, 0x97, 0x51, 0x1e, 0x56, 0xf1, 0x3b, 0x05, 0x72, 0x7b, 0x3e,
+ 0xb1, 0x04, 0xd9, 0xb1, 0x6d, 0xd6, 0xa0, 0xa2, 0x48, 0x5e, 0x36, 0x08, 0x17, 0x68, 0x16, 0x52,
+ 0xcf, 0x5b, 0x42, 0x55, 0x56, 0x95, 0x42, 0xb6, 0x18, 0x1c, 0x11, 0x82, 0x34, 0xb5, 0xea, 0x44,
+ 0x1d, 0x97, 0x29, 0x79, 0x46, 0x77, 0x20, 0x1b, 0x8c, 0x2a, 0x89, 0xb6, 0x47, 0xd4, 0xd4, 0xaa,
+ 0x52, 0xf8, 0x67, 0x7b, 0xc9, 0x08, 0xa9, 0x18, 0x21, 0x15, 0x63, 0x8f, 0xb9, 0xf4, 0x69, 0xdb,
+ 0x23, 0xc5, 0x8c, 0x1d, 0x9d, 0x90, 0x0a, 0x7f, 0x51, 0x22, 0x5a, 0xcc, 0x7f, 0xa1, 0xa6, 0x65,
+ 0xb3, 0x38, 0xc4, 0x9f, 0x15, 0x58, 0xe8, 0xa1, 0xc3, 0x3d, 0x46, 0xb9, 0xbc, 0x86, 0x37, 0x6c,
+ 0x9b, 0x70, 0x2e, 0x39, 0x65, 0x8a, 0x71, 0x18, 0x54, 0xea, 0x84, 0x73, 0xcb, 0x89, 0xa9, 0xc5,
+ 0x61, 0x50, 0xb1, 0x2a, 0x15, 0x3f, 0xb8, 0x26, 0x15, 0x56, 0xa2, 0xb0, 0x9b, 0x77, 0x7a, 0x58,
+ 0xde, 0x39, 0x98, 0x60, 0x2d, 0x4a, 0x7c, 0x75, 0x42, 0x76, 0x0b, 0x03, 0xfc, 0x00, 0xe6, 0x1e,
+ 0x11, 0x31, 0xf0, 0xf6, 0x75, 0x90, 0x19, 0xef, 0x22, 0x83, 0x3f, 0x29, 0x80, 0x3a, 0x3b, 0xfc,
+ 0xf1, 0x1b, 0xe7, 0x61, 0xfe, 0xb1, 0xcb, 0x63, 0xc2, 0xfc, 0xda, 0x9d, 0x71, 0x15, 0x72, 0xdd,
+ 0xc0, 0x11, 0x56, 0xd3, 0x20, 0x63, 0x45, 0x7d, 0xd4, 0xd4, 0x6a, 0xaa, 0x90, 0x2d, 0x5e, 0xc6,
+ 0xf8, 0x10, 0xd0, 0xbe, 0xeb, 0xd0, 0x27, 0x21, 0xf4, 0x06, 0xcf, 0xa0, 0x73, 0x6e, 0x70, 0xe3,
+ 0xa6, 0x2e, 0xe7, 0x62, 0x07, 0xe6, 0xbb, 0x7a, 0x8f, 0xb0, 0xc2, 0x32, 0x64, 0xb9, 0xeb, 0x50,
+ 0x4b, 0x34, 0xfc, 0x78, 0xcc, 0x55, 0x02, 0xbf, 0x82, 0xc5, 0x03, 0xe2, 0xbb, 0xd5, 0xf6, 0x7e,
+ 0x9c, 0xfa, 0xad, 0x8b, 0x74, 0x4f, 0x4f, 0xf7, 0x4e, 0x3f, 0x86, 0xa5, 0xbe, 0xe9, 0x23, 0xac,
+ 0xba, 0x09, 0xb3, 0xd1, 0xb1, 0xd4, 0x0c, 0xda, 0xba, 0xa4, 0x22, 0xf9, 0x64, 0x8a, 0x33, 0x51,
+ 0xfe, 0x20, 0x4a, 0xe3, 0x1d, 0x98, 0x7f, 0x78, 0xec, 0x31, 0x5f, 0x3c, 0x93, 0x6e, 0x76, 0x13,
+ 0x05, 0x9d, 0x2a, 0x90, 0xeb, 0xee, 0x31, 0x02, 0xf5, 0xbb, 0xb0, 0x44, 0xa8, 0x94, 0x04, 0xa9,
+ 0x94, 0x42, 0x87, 0x2d, 0x95, 0x1b, 0xd5, 0x2a, 0xf1, 0x23, 0x4d, 0x2d, 0x5c, 0x96, 0xc3, 0x69,
+ 0xbb, 0xb2, 0xb8, 0xfd, 0x65, 0x12, 0xa6, 0xc3, 0xc4, 0x7e, 0xe8, 0xd6, 0xe8, 0xad, 0x02, 0xd3,
+ 0x5d, 0x6e, 0x86, 0xf2, 0x46, 0x9f, 0x75, 0x1b, 0x49, 0xf6, 0xab, 0x15, 0x06, 0x03, 0xc3, 0x15,
+ 0x71, 0xfe, 0xf4, 0xdb, 0xcf, 0x8f, 0xe3, 0xff, 0xe1, 0x15, 0xb3, 0xe7, 0xb5, 0x11, 0xab, 0xc3,
+ 0xb4, 0xe5, 0x75, 0xe8, 0x04, 0xe0, 0xca, 0x65, 0xd0, 0x5a, 0xc2, 0x80, 0x3e, 0x1b, 0xd3, 0xd6,
+ 0x07, 0xa0, 0x22, 0x0e, 0x6b, 0x92, 0x83, 0x8e, 0x97, 0xaf, 0xe5, 0xe0, 0x10, 0x81, 0xde, 0x28,
+ 0x30, 0xd5, 0x69, 0x07, 0x68, 0x23, 0xa1, 0x7b, 0x82, 0xb1, 0x68, 0xf9, 0x81, 0xb8, 0x88, 0xc7,
+ 0xba, 0xe4, 0xb1, 0x82, 0xff, 0xbd, 0x96, 0x47, 0xcd, 0xe5, 0x02, 0xbd, 0x56, 0xe0, 0xef, 0x0e,
+ 0x4d, 0xa3, 0xa4, 0x2d, 0xfb, 0xfd, 0x44, 0xdb, 0x18, 0x04, 0x1b, 0x9a, 0x45, 0x20, 0x3b, 0xf4,
+ 0x41, 0x81, 0x99, 0x1e, 0xc9, 0xa1, 0xcd, 0x84, 0x11, 0xc9, 0xa6, 0xa0, 0xfd, 0x3f, 0x0c, 0x74,
+ 0xe8, 0xff, 0x88, 0x14, 0x69, 0x1b, 0x9d, 0xc0, 0x54, 0xa7, 0x8e, 0x12, 0x9f, 0x50, 0x82, 0x58,
+ 0x13, 0x9f, 0x50, 0x92, 0x20, 0xb1, 0x2e, 0x99, 0xa8, 0x78, 0xb1, 0x97, 0x09, 0x91, 0xe8, 0xdd,
+ 0xe2, 0xd7, 0x73, 0x5d, 0x39, 0x3b, 0xd7, 0x95, 0x1f, 0xe7, 0xba, 0xf2, 0xfe, 0x42, 0x1f, 0x3b,
+ 0xbb, 0xd0, 0xc7, 0xbe, 0x5f, 0xe8, 0x63, 0x87, 0xf7, 0x1c, 0x57, 0x1c, 0x35, 0xca, 0xc1, 0x3b,
+ 0xcb, 0xe4, 0x8c, 0xfa, 0xb7, 0x5c, 0x26, 0x7f, 0xcd, 0xe0, 0x8d, 0xc6, 0xcd, 0xbe, 0x6f, 0xa6,
+ 0xfb, 0xe1, 0xc9, 0x2b, 0x97, 0x27, 0xe5, 0xa7, 0xce, 0xed, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff,
+ 0x91, 0xff, 0xab, 0xc4, 0x58, 0x09, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/types/webauthn/credential.go b/types/webauthn/credential.go
index 9f91d34eb..e460b7eb0 100644
--- a/types/webauthn/credential.go
+++ b/types/webauthn/credential.go
@@ -11,8 +11,8 @@ import (
"github.com/go-webauthn/webauthn/protocol"
"github.com/go-webauthn/webauthn/protocol/webauthncose"
- "sonr.io/core/internal/crypto"
- idtypes "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/internal/crypto"
+ idtypes "github.com/sonr-io/sonr/x/identity/types"
"github.com/yoseplee/vrf"
)
diff --git a/types/webauthn/credential.pb.go b/types/webauthn/credential.pb.go
index 73d1b4f35..2b5a0558c 100644
--- a/types/webauthn/credential.pb.go
+++ b/types/webauthn/credential.pb.go
@@ -198,27 +198,28 @@ func init() {
func init() { proto.RegisterFile("common/webauthn/credential.proto", fileDescriptor_9642ee7a70a978ce) }
var fileDescriptor_9642ee7a70a978ce = []byte{
- // 315 bytes of a gzipped FileDescriptorProto
+ // 321 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xb1, 0x4e, 0xeb, 0x30,
- 0x14, 0x86, 0xeb, 0xf6, 0xde, 0x4a, 0x39, 0xf7, 0x96, 0x22, 0x0f, 0x28, 0x12, 0x60, 0x45, 0x9d,
- 0xc2, 0x92, 0x48, 0x20, 0x1e, 0x00, 0xca, 0xc6, 0x16, 0x31, 0xb1, 0x54, 0xae, 0x6b, 0x5a, 0x8b,
- 0xd4, 0x27, 0x72, 0x4e, 0x84, 0xf2, 0x16, 0x3c, 0x16, 0x63, 0x47, 0x46, 0xd4, 0x6e, 0x3c, 0x05,
- 0x72, 0x5a, 0x4a, 0xca, 0xe8, 0x4f, 0xff, 0x91, 0xff, 0xef, 0x1c, 0x88, 0x14, 0x2e, 0x97, 0x68,
- 0xd3, 0x17, 0x3d, 0x95, 0x15, 0x2d, 0x6c, 0xaa, 0x9c, 0x9e, 0x69, 0x4b, 0x46, 0xe6, 0x49, 0xe1,
- 0x90, 0x90, 0x0f, 0xb7, 0x89, 0xe4, 0x3b, 0x31, 0xfa, 0x64, 0x00, 0xe3, 0x7d, 0x8a, 0x1f, 0x41,
- 0xd7, 0xcc, 0x42, 0x16, 0xb1, 0xf8, 0x7f, 0xd6, 0x35, 0x33, 0x7e, 0x0e, 0x50, 0x54, 0xd3, 0xdc,
- 0xa8, 0xc9, 0xb3, 0xae, 0xc3, 0x6e, 0xc3, 0x83, 0x2d, 0xb9, 0xd7, 0x35, 0xbf, 0x80, 0x63, 0x49,
- 0xa4, 0x4b, 0x92, 0x64, 0xd0, 0x4e, 0xa8, 0x2e, 0x74, 0xd8, 0x8b, 0x58, 0x1c, 0x64, 0xc3, 0x16,
- 0x7f, 0xa8, 0x0b, 0xcd, 0xcf, 0x20, 0x20, 0x27, 0x6d, 0x59, 0xa0, 0xa3, 0xf0, 0x4f, 0xd4, 0x8b,
- 0x83, 0xec, 0x07, 0xf0, 0x3b, 0x18, 0xf8, 0x3e, 0xbe, 0x85, 0x92, 0x84, 0x2e, 0xfc, 0x1b, 0xb1,
- 0xf8, 0xdf, 0xa5, 0x48, 0x7e, 0xf5, 0x4d, 0x6e, 0xda, 0xa9, 0xec, 0x70, 0x88, 0x0b, 0x00, 0x85,
- 0x96, 0x1c, 0xe6, 0xb9, 0x76, 0x61, 0xbf, 0x29, 0xd2, 0x22, 0xa3, 0x27, 0x18, 0x1c, 0xcc, 0xf3,
- 0x13, 0xe8, 0x4b, 0x39, 0xaf, 0xf6, 0xca, 0xbb, 0x97, 0xd7, 0x2e, 0xcd, 0xdc, 0x4e, 0x14, 0x56,
- 0x96, 0x1a, 0xed, 0x41, 0x16, 0x78, 0x32, 0xf6, 0xc0, 0xff, 0x23, 0x89, 0xa4, 0x5a, 0x2c, 0xb5,
- 0xa5, 0x9d, 0x70, 0x8b, 0xdc, 0x5e, 0xbf, 0xad, 0x05, 0x5b, 0xad, 0x05, 0xfb, 0x58, 0x0b, 0xf6,
- 0xba, 0x11, 0x9d, 0xd5, 0x46, 0x74, 0xde, 0x37, 0xa2, 0xf3, 0x78, 0x5a, 0xa2, 0x75, 0x89, 0xc1,
- 0x54, 0xa1, 0xd3, 0xa9, 0xdf, 0x57, 0xb9, 0xbf, 0xd6, 0xb4, 0xdf, 0xdc, 0xe8, 0xea, 0x2b, 0x00,
- 0x00, 0xff, 0xff, 0x69, 0x12, 0x4a, 0x52, 0xc7, 0x01, 0x00, 0x00,
+ 0x14, 0x86, 0xeb, 0xf6, 0xde, 0x4a, 0x39, 0x50, 0x8a, 0x3c, 0x20, 0x0f, 0x60, 0x45, 0x1d, 0x50,
+ 0x18, 0x48, 0x24, 0x78, 0x01, 0xa0, 0x6c, 0x6c, 0x11, 0x13, 0x4b, 0xe5, 0xb8, 0xa6, 0xb5, 0x48,
+ 0xed, 0xc8, 0x39, 0x11, 0xca, 0x5b, 0xf0, 0x58, 0x8c, 0x1d, 0x19, 0x51, 0xbb, 0xf1, 0x14, 0xc8,
+ 0x69, 0x29, 0x29, 0x93, 0xe5, 0x4f, 0xff, 0x91, 0xff, 0xcf, 0x07, 0x42, 0x69, 0x17, 0x0b, 0x6b,
+ 0x92, 0x57, 0x95, 0x89, 0x0a, 0xe7, 0x26, 0x91, 0x4e, 0x4d, 0x95, 0x41, 0x2d, 0xf2, 0xb8, 0x70,
+ 0x16, 0x2d, 0x1d, 0x6e, 0x12, 0xf1, 0x4f, 0x62, 0xf4, 0x45, 0x00, 0xc6, 0xbb, 0x14, 0x3d, 0x82,
+ 0xae, 0x9e, 0x32, 0x12, 0x92, 0xe8, 0x30, 0xed, 0xea, 0x29, 0x3d, 0x03, 0x28, 0xaa, 0x2c, 0xd7,
+ 0x72, 0xf2, 0xa2, 0x6a, 0xd6, 0x6d, 0x78, 0xb0, 0x21, 0x0f, 0xaa, 0xa6, 0x17, 0x70, 0x2c, 0x10,
+ 0x55, 0x89, 0x02, 0xb5, 0x35, 0x13, 0xac, 0x0b, 0xc5, 0x7a, 0x21, 0x89, 0x82, 0x74, 0xd8, 0xe2,
+ 0x8f, 0x75, 0xa1, 0xe8, 0x29, 0x04, 0xe8, 0x84, 0x29, 0x0b, 0xeb, 0x90, 0xfd, 0x0b, 0x7b, 0x51,
+ 0x90, 0xfe, 0x02, 0x7a, 0x0f, 0x03, 0xdf, 0xc7, 0xb7, 0x90, 0x02, 0xad, 0x63, 0xff, 0x43, 0x12,
+ 0x1d, 0x5c, 0xf1, 0xf8, 0x4f, 0xdf, 0xf8, 0xb6, 0x9d, 0x4a, 0xf7, 0x87, 0x28, 0x07, 0x90, 0xd6,
+ 0xa0, 0xb3, 0x79, 0xae, 0x1c, 0xeb, 0x37, 0x45, 0x5a, 0x64, 0xf4, 0x0c, 0x83, 0xbd, 0x79, 0x7a,
+ 0x02, 0x7d, 0x21, 0x66, 0xd5, 0x4e, 0x79, 0x7b, 0xf3, 0xda, 0xa5, 0x9e, 0x99, 0x89, 0xb4, 0x95,
+ 0xc1, 0x46, 0x7b, 0x90, 0x06, 0x9e, 0x8c, 0x3d, 0xf0, 0xef, 0x08, 0x44, 0x21, 0xe7, 0x0b, 0x65,
+ 0x70, 0x2b, 0xdc, 0x22, 0x77, 0x37, 0xef, 0x2b, 0x4e, 0x96, 0x2b, 0x4e, 0x3e, 0x57, 0x9c, 0xbc,
+ 0xad, 0x79, 0x67, 0xb9, 0xe6, 0x9d, 0x8f, 0x35, 0xef, 0x3c, 0x9d, 0xcf, 0x34, 0xce, 0xab, 0xcc,
+ 0x6b, 0x25, 0xa5, 0x35, 0xee, 0x52, 0xdb, 0xe6, 0x4c, 0xfc, 0xd7, 0x95, 0xbb, 0xc5, 0x65, 0xfd,
+ 0x66, 0x5d, 0xd7, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x32, 0x68, 0x24, 0xee, 0xd2, 0x01, 0x00,
+ 0x00,
}
func (m *Credential) Marshal() (dAtA []byte, err error) {
diff --git a/types/webauthn/webauthn.go b/types/webauthn/webauthn.go
index 0134b802f..1a2d6d398 100644
--- a/types/webauthn/webauthn.go
+++ b/types/webauthn/webauthn.go
@@ -7,7 +7,7 @@ import (
"github.com/go-webauthn/webauthn/protocol"
"github.com/shengdoushi/base58"
- "sonr.io/core/internal/crypto"
+ "github.com/sonr-io/sonr/internal/crypto"
)
// PublicKeyMultibase returns the public key in multibase format
diff --git a/x/domain/client/cli/query.go b/x/domain/client/cli/query.go
index 173630ce7..f356b08ad 100644
--- a/x/domain/client/cli/query.go
+++ b/x/domain/client/cli/query.go
@@ -10,7 +10,7 @@ import (
// "github.com/cosmos/cosmos-sdk/client/flags"
// sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
)
// GetQueryCmd returns the cli query commands for this module
diff --git a/x/domain/client/cli/query_params.go b/x/domain/client/cli/query_params.go
index 1bb39e5f0..da8ee4d97 100644
--- a/x/domain/client/cli/query_params.go
+++ b/x/domain/client/cli/query_params.go
@@ -5,7 +5,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/spf13/cobra"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
)
func CmdQueryParams() *cobra.Command {
diff --git a/x/domain/client/cli/query_username_records.go b/x/domain/client/cli/query_username_records.go
index 52405b7d4..c5dfc45a3 100644
--- a/x/domain/client/cli/query_username_records.go
+++ b/x/domain/client/cli/query_username_records.go
@@ -5,7 +5,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/spf13/cobra"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
)
func CmdListUsernameRecords() *cobra.Command {
diff --git a/x/domain/client/cli/tx.go b/x/domain/client/cli/tx.go
index 9bd24ba11..abf266472 100644
--- a/x/domain/client/cli/tx.go
+++ b/x/domain/client/cli/tx.go
@@ -8,7 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
// "github.com/cosmos/cosmos-sdk/client/flags"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
)
var (
diff --git a/x/domain/client/cli/tx_username_records.go b/x/domain/client/cli/tx_username_records.go
index 1f46d95cf..0336a1240 100644
--- a/x/domain/client/cli/tx_username_records.go
+++ b/x/domain/client/cli/tx_username_records.go
@@ -4,7 +4,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
"github.com/spf13/cobra"
)
diff --git a/x/domain/client/proxy/query.go b/x/domain/client/proxy/query.go
index 100fc3c32..382f6bab2 100644
--- a/x/domain/client/proxy/query.go
+++ b/x/domain/client/proxy/query.go
@@ -4,7 +4,7 @@ import (
"context"
"fmt"
- domaintypes "sonr.io/core/x/domain/types"
+ domaintypes "github.com/sonr-io/sonr/x/domain/types"
"github.com/spf13/viper"
"google.golang.org/grpc"
)
diff --git a/x/domain/genesis.go b/x/domain/genesis.go
index e9ffc2534..4a683423e 100644
--- a/x/domain/genesis.go
+++ b/x/domain/genesis.go
@@ -2,8 +2,8 @@ package domain
import (
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/domain/keeper"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/keeper"
+ "github.com/sonr-io/sonr/x/domain/types"
)
// InitGenesis initializes the module's state from a provided genesis state.
diff --git a/x/domain/genesis_test.go b/x/domain/genesis_test.go
index e5ea40e32..e51442e71 100644
--- a/x/domain/genesis_test.go
+++ b/x/domain/genesis_test.go
@@ -3,10 +3,10 @@ package domain_test
import (
"testing"
- keepertest "sonr.io/core/testutil/keeper"
- "sonr.io/core/testutil/nullify"
- "sonr.io/core/x/domain"
- "sonr.io/core/x/domain/types"
+ keepertest "github.com/sonr-io/sonr/testutil/keeper"
+ "github.com/sonr-io/sonr/testutil/nullify"
+ "github.com/sonr-io/sonr/x/domain"
+ "github.com/sonr-io/sonr/x/domain/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/domain/keeper/keeper.go b/x/domain/keeper/keeper.go
index 36f1bb5f9..e8426e46f 100644
--- a/x/domain/keeper/keeper.go
+++ b/x/domain/keeper/keeper.go
@@ -9,7 +9,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
)
type (
diff --git a/x/domain/keeper/msg_server.go b/x/domain/keeper/msg_server.go
index 67dd6ab9d..2addcc1e6 100644
--- a/x/domain/keeper/msg_server.go
+++ b/x/domain/keeper/msg_server.go
@@ -1,7 +1,7 @@
package keeper
import (
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
)
type msgServer struct {
diff --git a/x/domain/keeper/msg_server_test.go b/x/domain/keeper/msg_server_test.go
index ce5d422e6..699a16763 100644
--- a/x/domain/keeper/msg_server_test.go
+++ b/x/domain/keeper/msg_server_test.go
@@ -5,9 +5,9 @@ import (
"testing"
sdk "github.com/cosmos/cosmos-sdk/types"
- keepertest "sonr.io/core/testutil/keeper"
- "sonr.io/core/x/domain/keeper"
- "sonr.io/core/x/domain/types"
+ keepertest "github.com/sonr-io/sonr/testutil/keeper"
+ "github.com/sonr-io/sonr/x/domain/keeper"
+ "github.com/sonr-io/sonr/x/domain/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/domain/keeper/msg_server_username_records.go b/x/domain/keeper/msg_server_username_records.go
index ad9f2178c..c56845edb 100644
--- a/x/domain/keeper/msg_server_username_records.go
+++ b/x/domain/keeper/msg_server_username_records.go
@@ -5,7 +5,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
)
func (k msgServer) CreateUsernameRecord(goCtx context.Context, msg *types.MsgCreateUsernameRecords) (*types.MsgCreateUsernameRecordsResponse, error) {
diff --git a/x/domain/keeper/msg_server_username_records_test.go b/x/domain/keeper/msg_server_username_records_test.go
index 82e8b180f..074096595 100644
--- a/x/domain/keeper/msg_server_username_records_test.go
+++ b/x/domain/keeper/msg_server_username_records_test.go
@@ -8,9 +8,9 @@ import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/stretchr/testify/require"
- keepertest "sonr.io/core/testutil/keeper"
- "sonr.io/core/x/domain/keeper"
- "sonr.io/core/x/domain/types"
+ keepertest "github.com/sonr-io/sonr/testutil/keeper"
+ "github.com/sonr-io/sonr/x/domain/keeper"
+ "github.com/sonr-io/sonr/x/domain/types"
)
// Prevent strconv unused error
diff --git a/x/domain/keeper/params.go b/x/domain/keeper/params.go
index c763d15c4..7cd195c6a 100644
--- a/x/domain/keeper/params.go
+++ b/x/domain/keeper/params.go
@@ -2,7 +2,7 @@ package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
)
// GetParams get all parameters as types.Params
diff --git a/x/domain/keeper/params_test.go b/x/domain/keeper/params_test.go
index 3dc965f75..0e9d60b7e 100644
--- a/x/domain/keeper/params_test.go
+++ b/x/domain/keeper/params_test.go
@@ -3,8 +3,8 @@ package keeper_test
import (
"testing"
- testkeeper "sonr.io/core/testutil/keeper"
- "sonr.io/core/x/domain/types"
+ testkeeper "github.com/sonr-io/sonr/testutil/keeper"
+ "github.com/sonr-io/sonr/x/domain/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/domain/keeper/query.go b/x/domain/keeper/query.go
index ee3808c2f..2507f3864 100644
--- a/x/domain/keeper/query.go
+++ b/x/domain/keeper/query.go
@@ -1,7 +1,7 @@
package keeper
import (
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
)
var _ types.QueryServer = Keeper{}
diff --git a/x/domain/keeper/query_params.go b/x/domain/keeper/query_params.go
index a546c6e6b..bd3584d39 100644
--- a/x/domain/keeper/query_params.go
+++ b/x/domain/keeper/query_params.go
@@ -4,7 +4,7 @@ import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/x/domain/keeper/query_params_test.go b/x/domain/keeper/query_params_test.go
index 9c80eb688..503844919 100644
--- a/x/domain/keeper/query_params_test.go
+++ b/x/domain/keeper/query_params_test.go
@@ -4,8 +4,8 @@ import (
"testing"
sdk "github.com/cosmos/cosmos-sdk/types"
- testkeeper "sonr.io/core/testutil/keeper"
- "sonr.io/core/x/domain/types"
+ testkeeper "github.com/sonr-io/sonr/testutil/keeper"
+ "github.com/sonr-io/sonr/x/domain/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/domain/keeper/query_username_records.go b/x/domain/keeper/query_username_records.go
index cfc5f58af..a139acaeb 100644
--- a/x/domain/keeper/query_username_records.go
+++ b/x/domain/keeper/query_username_records.go
@@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/query"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/x/domain/keeper/query_username_records_test.go b/x/domain/keeper/query_username_records_test.go
index 94fa4f1af..301603ab9 100644
--- a/x/domain/keeper/query_username_records_test.go
+++ b/x/domain/keeper/query_username_records_test.go
@@ -10,9 +10,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
- keepertest "sonr.io/core/testutil/keeper"
- "sonr.io/core/testutil/nullify"
- "sonr.io/core/x/domain/types"
+ keepertest "github.com/sonr-io/sonr/testutil/keeper"
+ "github.com/sonr-io/sonr/testutil/nullify"
+ "github.com/sonr-io/sonr/x/domain/types"
)
// Prevent strconv unused error
diff --git a/x/domain/keeper/username_records.go b/x/domain/keeper/username_records.go
index 310f34508..33964c676 100644
--- a/x/domain/keeper/username_records.go
+++ b/x/domain/keeper/username_records.go
@@ -3,7 +3,7 @@ package keeper
import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
)
// SetUsernameRecords set a specific UsernameRecord in the store from its index
diff --git a/x/domain/keeper/username_records_test.go b/x/domain/keeper/username_records_test.go
index 6384f246a..b51fcf1ed 100644
--- a/x/domain/keeper/username_records_test.go
+++ b/x/domain/keeper/username_records_test.go
@@ -5,10 +5,10 @@ import (
"testing"
sdk "github.com/cosmos/cosmos-sdk/types"
- keepertest "sonr.io/core/testutil/keeper"
- "sonr.io/core/testutil/nullify"
- "sonr.io/core/x/domain/keeper"
- "sonr.io/core/x/domain/types"
+ keepertest "github.com/sonr-io/sonr/testutil/keeper"
+ "github.com/sonr-io/sonr/testutil/nullify"
+ "github.com/sonr-io/sonr/x/domain/keeper"
+ "github.com/sonr-io/sonr/x/domain/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/domain/module.go b/x/domain/module.go
index e789959b5..0586de437 100644
--- a/x/domain/module.go
+++ b/x/domain/module.go
@@ -17,9 +17,9 @@ import (
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
- "sonr.io/core/x/domain/client/cli"
- "sonr.io/core/x/domain/keeper"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/client/cli"
+ "github.com/sonr-io/sonr/x/domain/keeper"
+ "github.com/sonr-io/sonr/x/domain/types"
)
var (
diff --git a/x/domain/module_simulation.go b/x/domain/module_simulation.go
index b31f3f874..3d0a1e15f 100644
--- a/x/domain/module_simulation.go
+++ b/x/domain/module_simulation.go
@@ -8,9 +8,9 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
- "sonr.io/core/testutil/sample"
- domainsimulation "sonr.io/core/x/domain/simulation"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/testutil/sample"
+ domainsimulation "github.com/sonr-io/sonr/x/domain/simulation"
+ "github.com/sonr-io/sonr/x/domain/types"
)
// avoid unused import issue
diff --git a/x/domain/simulation/username_records.go b/x/domain/simulation/username_records.go
index 7f16ef53b..d1e9b3708 100644
--- a/x/domain/simulation/username_records.go
+++ b/x/domain/simulation/username_records.go
@@ -9,8 +9,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
- "sonr.io/core/x/domain/keeper"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/keeper"
+ "github.com/sonr-io/sonr/x/domain/types"
)
// Prevent strconv unused error
diff --git a/x/domain/types/genesis.pb.go b/x/domain/types/genesis.pb.go
index 97a9b1e2f..63e9ad99b 100644
--- a/x/domain/types/genesis.pb.go
+++ b/x/domain/types/genesis.pb.go
@@ -83,7 +83,7 @@ func init() {
func init() { proto.RegisterFile("core/domain/genesis.proto", fileDescriptor_f3758676deb05ab8) }
var fileDescriptor_f3758676deb05ab8 = []byte{
- // 225 bytes of a gzipped FileDescriptorProto
+ // 235 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0xce, 0x2f, 0x4a,
0xd5, 0x4f, 0xc9, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6,
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x06, 0x49, 0xe9, 0x41, 0xa4, 0xa4, 0x24, 0x90, 0xd5,
@@ -93,12 +93,12 @@ var fileDescriptor_f3758676deb05ab8 = []byte{
0x09, 0x46, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x61, 0x3d, 0x24, 0x8b, 0xf5, 0x02, 0xc0, 0x52, 0x4e,
0x2c, 0x27, 0xee, 0xc9, 0x33, 0x04, 0x41, 0x15, 0x0a, 0x05, 0x73, 0x09, 0x97, 0x16, 0xa7, 0x16,
0xe5, 0x25, 0xe6, 0xa6, 0x06, 0x81, 0x6d, 0x2c, 0xf6, 0xc9, 0x2c, 0x2e, 0x91, 0x60, 0x52, 0x60,
- 0xd6, 0xe0, 0x36, 0x92, 0x46, 0xd1, 0x1f, 0x8a, 0xa2, 0x0e, 0x6a, 0x0e, 0x36, 0xdd, 0x4e, 0xa6,
+ 0xd6, 0xe0, 0x36, 0x92, 0x46, 0xd1, 0x1f, 0x8a, 0xa2, 0x0e, 0x6a, 0x0e, 0x36, 0xdd, 0x4e, 0x0e,
0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72,
- 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0x25, 0x5d, 0x9c, 0x9f, 0x57, 0xa4,
- 0x97, 0x99, 0xaf, 0x0f, 0xf6, 0x6a, 0x05, 0xcc, 0xb3, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c,
- 0x60, 0x6f, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x41, 0xa9, 0xb9, 0x4a, 0x01, 0x00,
- 0x00,
+ 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x96, 0x9e, 0x59, 0x92, 0x51,
+ 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x5f, 0x9c, 0x9f, 0x57, 0xa4, 0x9b, 0x99, 0x0f, 0xa6, 0xf5,
+ 0x2b, 0x60, 0xfe, 0x2e, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xfb, 0xd0, 0x18, 0x10, 0x00,
+ 0x00, 0xff, 0xff, 0xc4, 0x59, 0x69, 0x30, 0x55, 0x01, 0x00, 0x00,
}
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
diff --git a/x/domain/types/genesis_test.go b/x/domain/types/genesis_test.go
index cdb897c47..a1fb7bc4e 100644
--- a/x/domain/types/genesis_test.go
+++ b/x/domain/types/genesis_test.go
@@ -3,7 +3,7 @@ package types_test
import (
"testing"
- "sonr.io/core/x/domain/types"
+ "github.com/sonr-io/sonr/x/domain/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/domain/types/keys.go b/x/domain/types/keys.go
index 2634233a8..15c1fa1f8 100644
--- a/x/domain/types/keys.go
+++ b/x/domain/types/keys.go
@@ -1,7 +1,7 @@
package types
import (
- "sonr.io/core/internal/crypto"
+ "github.com/sonr-io/sonr/internal/crypto"
"lukechampine.com/blake3"
)
diff --git a/x/domain/types/messages_username_records_test.go b/x/domain/types/messages_username_records_test.go
index 598ac0503..88f8f84a3 100644
--- a/x/domain/types/messages_username_records_test.go
+++ b/x/domain/types/messages_username_records_test.go
@@ -4,7 +4,7 @@ import (
"testing"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
- "sonr.io/core/testutil/sample"
+ "github.com/sonr-io/sonr/testutil/sample"
"github.com/stretchr/testify/require"
)
diff --git a/x/domain/types/params.pb.go b/x/domain/types/params.pb.go
index 6e5a23285..73e465b4f 100644
--- a/x/domain/types/params.pb.go
+++ b/x/domain/types/params.pb.go
@@ -66,16 +66,17 @@ func init() {
func init() { proto.RegisterFile("core/domain/params.proto", fileDescriptor_212b5bbc8abf73fb) }
var fileDescriptor_212b5bbc8abf73fb = []byte{
- // 136 bytes of a gzipped FileDescriptorProto
+ // 146 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0xce, 0x2f, 0x4a,
0xd5, 0x4f, 0xc9, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b,
0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x06, 0xc9, 0xe8, 0x41, 0x64, 0xa4, 0x44, 0xd2, 0xf3, 0xd3,
0xf3, 0xc1, 0xe2, 0xfa, 0x20, 0x16, 0x44, 0x89, 0x12, 0x1f, 0x17, 0x5b, 0x00, 0x58, 0x8b, 0x15,
- 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0xa6, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8,
+ 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0x0e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8,
0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7,
- 0x10, 0x25, 0x5d, 0x9c, 0x9f, 0x57, 0xa4, 0x97, 0x99, 0xaf, 0x0f, 0xb6, 0xae, 0x02, 0x66, 0x61,
- 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x34, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff,
- 0x3b, 0x80, 0xc5, 0x8b, 0x8c, 0x00, 0x00, 0x00,
+ 0x10, 0xa5, 0x96, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x5f, 0x9c, 0x9f,
+ 0x57, 0xa4, 0x9b, 0x99, 0x0f, 0xa6, 0xf5, 0x2b, 0x60, 0x76, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x27,
+ 0xb1, 0x81, 0x0d, 0x36, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x81, 0x56, 0x1e, 0x01, 0x97, 0x00,
+ 0x00, 0x00,
}
func (m *Params) Marshal() (dAtA []byte, err error) {
diff --git a/x/domain/types/query.pb.go b/x/domain/types/query.pb.go
index addf7a17e..e18b06cc6 100644
--- a/x/domain/types/query.pb.go
+++ b/x/domain/types/query.pb.go
@@ -321,38 +321,39 @@ func init() {
func init() { proto.RegisterFile("core/domain/query.proto", fileDescriptor_8b7084fe185c90ac) }
var fileDescriptor_8b7084fe185c90ac = []byte{
- // 486 bytes of a gzipped FileDescriptorProto
+ // 497 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x6b, 0x13, 0x41,
- 0x14, 0xc7, 0x33, 0xad, 0x0d, 0x38, 0x05, 0xc5, 0x49, 0x4a, 0x4b, 0x62, 0x37, 0x65, 0xc0, 0x1f,
- 0xa8, 0xcc, 0x90, 0x8a, 0xde, 0xdb, 0x83, 0x15, 0xbc, 0xd4, 0x05, 0x2f, 0xde, 0x26, 0xc9, 0xb0,
- 0x5d, 0xd8, 0xcc, 0xdb, 0xce, 0x6c, 0xa4, 0x45, 0xbc, 0x78, 0x17, 0x44, 0xc1, 0x7f, 0xc5, 0x7f,
- 0xa1, 0xc7, 0x82, 0x17, 0x4f, 0x22, 0x89, 0x7f, 0x88, 0xec, 0xcc, 0x04, 0x77, 0xcc, 0xae, 0x8a,
- 0xb7, 0xc9, 0xbc, 0xef, 0xf7, 0xbd, 0xcf, 0x9b, 0xf7, 0xb2, 0x78, 0x7b, 0x0c, 0x5a, 0xf2, 0x09,
- 0x4c, 0x45, 0xaa, 0xf8, 0xe9, 0x4c, 0xea, 0x73, 0x96, 0x6b, 0x28, 0x80, 0x6c, 0x96, 0x01, 0xe6,
- 0x02, 0xbd, 0x9d, 0xaa, 0x2a, 0x17, 0x5a, 0x4c, 0x8d, 0x93, 0x85, 0x11, 0x2d, 0xc7, 0xa0, 0x27,
- 0x3e, 0x72, 0x6f, 0x0c, 0x66, 0x0a, 0x86, 0x8f, 0x84, 0x91, 0x2e, 0x33, 0x7f, 0x35, 0x1c, 0xc9,
- 0x42, 0x0c, 0x79, 0x2e, 0x92, 0x54, 0x89, 0x22, 0x05, 0xe5, 0xb5, 0xdd, 0x04, 0x12, 0xb0, 0x47,
- 0x5e, 0x9e, 0xfc, 0xed, 0xcd, 0x04, 0x20, 0xc9, 0x24, 0x17, 0x79, 0xca, 0x85, 0x52, 0x50, 0x58,
- 0x8b, 0xaf, 0x4c, 0xbb, 0x98, 0x3c, 0x2f, 0xb3, 0x1e, 0x5b, 0x9c, 0x58, 0x9e, 0xce, 0xa4, 0x29,
- 0xe8, 0x53, 0xdc, 0x09, 0x6e, 0x4d, 0x0e, 0xca, 0x48, 0x32, 0xc4, 0x6d, 0x87, 0xbd, 0x83, 0xf6,
- 0xd0, 0xdd, 0xcd, 0xfd, 0x0e, 0xab, 0xb4, 0xc7, 0x9c, 0xf8, 0xf0, 0xca, 0xc5, 0xb7, 0x41, 0x2b,
- 0xf6, 0x42, 0xfa, 0x18, 0x47, 0x36, 0xd3, 0x91, 0x2c, 0x5e, 0x18, 0xa9, 0x95, 0x98, 0xca, 0xd8,
- 0xf6, 0xb7, 0xac, 0x45, 0xba, 0x78, 0x23, 0x55, 0x13, 0x79, 0x66, 0x73, 0x5e, 0x8d, 0xdd, 0x0f,
- 0xaa, 0xf0, 0xa0, 0xd1, 0xe7, 0x69, 0x9e, 0xe1, 0xeb, 0xb3, 0x30, 0xe4, 0xb1, 0xfa, 0x01, 0x56,
- 0x68, 0xf7, 0x78, 0xbf, 0x3b, 0xe9, 0x89, 0xe7, 0x3c, 0xc8, 0xb2, 0x06, 0xce, 0x27, 0x18, 0xff,
- 0x7a, 0x71, 0x5f, 0xe9, 0x36, 0x73, 0xe3, 0x61, 0xe5, 0x78, 0x98, 0x1b, 0xbc, 0x1f, 0x0f, 0x3b,
- 0x16, 0x89, 0xf4, 0xde, 0xb8, 0xe2, 0xa4, 0x9f, 0x91, 0x6f, 0xad, 0xae, 0xd4, 0x9f, 0x5a, 0x5b,
- 0xff, 0xbf, 0xd6, 0xc8, 0x51, 0x00, 0xbe, 0x66, 0xc1, 0xef, 0xfc, 0x15, 0xdc, 0x91, 0x54, 0xc9,
- 0xf7, 0x3f, 0xad, 0xe3, 0x0d, 0x4b, 0x4e, 0x4e, 0x70, 0xdb, 0x4d, 0x9b, 0x0c, 0x02, 0xa0, 0xd5,
- 0x55, 0xea, 0xed, 0x35, 0x0b, 0x5c, 0x09, 0xda, 0x7f, 0xfb, 0xe5, 0xc7, 0xc7, 0xb5, 0x2d, 0xd2,
- 0xe1, 0xab, 0xff, 0x0f, 0xf2, 0x01, 0xe1, 0x6b, 0x61, 0x9b, 0xe4, 0xfe, 0x6a, 0xc6, 0xc6, 0xed,
- 0xea, 0x3d, 0xf8, 0x37, 0xb1, 0x47, 0xb9, 0x65, 0x51, 0x06, 0x64, 0x37, 0x40, 0x59, 0x3e, 0x28,
- 0x7f, 0x6d, 0x77, 0xf3, 0x0d, 0x79, 0x87, 0xf0, 0x8d, 0x30, 0xc5, 0x41, 0x96, 0xd5, 0x71, 0x35,
- 0x6e, 0x53, 0x1d, 0x57, 0xf3, 0x3e, 0xd0, 0x5d, 0xcb, 0xb5, 0x4d, 0xb6, 0x6a, 0xb9, 0x0e, 0x1f,
- 0x5d, 0xcc, 0x23, 0x74, 0x39, 0x8f, 0xd0, 0xf7, 0x79, 0x84, 0xde, 0x2f, 0xa2, 0xd6, 0xe5, 0x22,
- 0x6a, 0x7d, 0x5d, 0x44, 0xad, 0x97, 0x7d, 0x03, 0x4a, 0xb3, 0x14, 0x9c, 0xef, 0x6c, 0xe9, 0x2c,
- 0xce, 0x73, 0x69, 0x46, 0x6d, 0xfb, 0x09, 0x78, 0xf8, 0x33, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x2d,
- 0xea, 0x5b, 0xbe, 0x04, 0x00, 0x00,
+ 0x14, 0xc7, 0xb3, 0xad, 0x0d, 0x38, 0x05, 0xc5, 0x49, 0x4a, 0x4b, 0x6a, 0x37, 0x65, 0xc0, 0x2a,
+ 0xfe, 0x98, 0x21, 0x15, 0x3c, 0xdb, 0x1e, 0xac, 0xe0, 0xa5, 0x2e, 0x78, 0xf1, 0x36, 0x49, 0x86,
+ 0xcd, 0xc2, 0xee, 0xbc, 0xed, 0xcc, 0x44, 0x5a, 0xc4, 0x8b, 0x77, 0x41, 0x14, 0xfc, 0x57, 0xfc,
+ 0x17, 0x7a, 0x0c, 0x78, 0xf1, 0x24, 0x92, 0xf8, 0x87, 0x48, 0x66, 0x26, 0x98, 0x31, 0xbb, 0x2a,
+ 0x9e, 0x32, 0x99, 0xf7, 0x7d, 0xdf, 0xf7, 0x79, 0xf3, 0x5e, 0x82, 0xb6, 0x07, 0xa0, 0x04, 0x1b,
+ 0x42, 0xc1, 0x33, 0xc9, 0xce, 0xc6, 0x42, 0x5d, 0xd0, 0x52, 0x81, 0x01, 0xbc, 0x39, 0x0f, 0x50,
+ 0x17, 0xe8, 0xec, 0x2c, 0xab, 0x4a, 0xae, 0x78, 0xa1, 0x9d, 0x2c, 0x8c, 0x28, 0x31, 0x00, 0x35,
+ 0xf4, 0x91, 0xbb, 0x03, 0xd0, 0x05, 0x68, 0xd6, 0xe7, 0x5a, 0x38, 0x67, 0xf6, 0xaa, 0xd7, 0x17,
+ 0x86, 0xf7, 0x58, 0xc9, 0xd3, 0x4c, 0x72, 0x93, 0x81, 0xf4, 0xda, 0x76, 0x0a, 0x29, 0xd8, 0x23,
+ 0x9b, 0x9f, 0xfc, 0xed, 0xcd, 0x14, 0x20, 0xcd, 0x05, 0xe3, 0x65, 0xc6, 0xb8, 0x94, 0x60, 0x6c,
+ 0x8a, 0xaf, 0x4c, 0xda, 0x08, 0x3f, 0x9f, 0xbb, 0x9e, 0x5a, 0x9c, 0x44, 0x9c, 0x8d, 0x85, 0x36,
+ 0xe4, 0x29, 0x6a, 0x05, 0xb7, 0xba, 0x04, 0xa9, 0x05, 0xee, 0xa1, 0xa6, 0xc3, 0xde, 0x89, 0xf6,
+ 0xa3, 0x3b, 0x9b, 0x87, 0x2d, 0xba, 0xd4, 0x1e, 0x75, 0xe2, 0xe3, 0x2b, 0x97, 0xdf, 0xba, 0x8d,
+ 0xc4, 0x0b, 0xc9, 0x23, 0x14, 0x5b, 0xa7, 0x13, 0x61, 0x5e, 0x68, 0xa1, 0x24, 0x2f, 0x44, 0x62,
+ 0xfb, 0x5b, 0xd4, 0xc2, 0x6d, 0xb4, 0x91, 0xc9, 0xa1, 0x38, 0xb7, 0x9e, 0x57, 0x13, 0xf7, 0x85,
+ 0x48, 0xd4, 0xad, 0xcd, 0xf3, 0x34, 0xcf, 0xd0, 0xf5, 0x71, 0x18, 0xf2, 0x58, 0xbb, 0x01, 0x56,
+ 0x98, 0xee, 0xf1, 0x7e, 0xcf, 0x24, 0x23, 0xcf, 0x79, 0x94, 0xe7, 0x35, 0x9c, 0x4f, 0x10, 0xfa,
+ 0xf5, 0xe2, 0xbe, 0xd2, 0x01, 0x75, 0xe3, 0xa1, 0xf3, 0xf1, 0x50, 0x37, 0x78, 0x3f, 0x1e, 0x7a,
+ 0xca, 0x53, 0xe1, 0x73, 0x93, 0xa5, 0x4c, 0xf2, 0x39, 0xf2, 0xad, 0x55, 0x95, 0xfa, 0x53, 0x6b,
+ 0xeb, 0xff, 0xd7, 0x1a, 0x3e, 0x09, 0xc0, 0xd7, 0x2c, 0xf8, 0xed, 0xbf, 0x82, 0x3b, 0x92, 0x65,
+ 0xf2, 0xc3, 0x4f, 0xeb, 0x68, 0xc3, 0x92, 0xe3, 0x11, 0x6a, 0xba, 0x69, 0xe3, 0x6e, 0x00, 0xb4,
+ 0xba, 0x4a, 0x9d, 0xfd, 0x7a, 0x81, 0x2b, 0x41, 0x76, 0xdf, 0x7e, 0xf9, 0xf1, 0x71, 0x6d, 0x0b,
+ 0xb7, 0xd8, 0xea, 0xef, 0x03, 0x7f, 0x88, 0xd0, 0xb5, 0xb0, 0x4d, 0x7c, 0x6f, 0xd5, 0xb1, 0x76,
+ 0xbb, 0x3a, 0xf7, 0xff, 0x4d, 0xec, 0x51, 0x6e, 0x59, 0x94, 0x2e, 0xde, 0x0b, 0x50, 0x16, 0x0f,
+ 0xca, 0x5e, 0xdb, 0xdd, 0x7c, 0x83, 0xdf, 0x45, 0xe8, 0x46, 0x68, 0x71, 0x94, 0xe7, 0x55, 0x5c,
+ 0xb5, 0xdb, 0x54, 0xc5, 0x55, 0xbf, 0x0f, 0x64, 0xcf, 0x72, 0x6d, 0xe3, 0xad, 0x4a, 0xae, 0xe3,
+ 0xc7, 0x97, 0xd3, 0x38, 0x9a, 0x4c, 0xe3, 0xe8, 0xfb, 0x34, 0x8e, 0xde, 0xcf, 0xe2, 0xc6, 0x64,
+ 0x16, 0x37, 0xbe, 0xce, 0xe2, 0xc6, 0xcb, 0x83, 0x34, 0x33, 0xa3, 0x71, 0x9f, 0x0e, 0xa0, 0x60,
+ 0x1a, 0xa4, 0x7a, 0x90, 0x81, 0xfd, 0x64, 0xe7, 0x0b, 0x13, 0x73, 0x51, 0x0a, 0xdd, 0x6f, 0xda,
+ 0x7f, 0x83, 0x87, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x2e, 0x02, 0x4c, 0xea, 0xc9, 0x04, 0x00,
+ 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/x/domain/types/record.pb.go b/x/domain/types/record.pb.go
index 9602b6fda..dfab1af84 100644
--- a/x/domain/types/record.pb.go
+++ b/x/domain/types/record.pb.go
@@ -89,18 +89,19 @@ func init() {
func init() { proto.RegisterFile("core/domain/record.proto", fileDescriptor_550832b98116f1e7) }
var fileDescriptor_550832b98116f1e7 = []byte{
- // 175 bytes of a gzipped FileDescriptorProto
+ // 185 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0xce, 0x2f, 0x4a,
0xd5, 0x4f, 0xc9, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x2f, 0x4a, 0x4d, 0xce, 0x2f, 0x4a, 0xd1, 0x2b,
0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x06, 0xc9, 0xe8, 0x41, 0x64, 0x94, 0x22, 0xb8, 0xf8, 0x42,
0x8b, 0x53, 0x8b, 0xf2, 0x12, 0x73, 0x53, 0x83, 0xc0, 0x8a, 0x84, 0x44, 0xb8, 0x58, 0x33, 0xf3,
0x52, 0x52, 0x2b, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x20, 0x1c, 0x21, 0x09, 0x2e, 0xf6,
0xc4, 0x94, 0x94, 0xa2, 0xd4, 0xe2, 0x62, 0x09, 0x26, 0xb0, 0x38, 0x8c, 0x2b, 0x24, 0xc6, 0xc5,
- 0x96, 0x9b, 0x5a, 0x92, 0x91, 0x9f, 0x22, 0xc1, 0x0c, 0x96, 0x80, 0xf2, 0x9c, 0x4c, 0x4f, 0x3c,
+ 0x96, 0x9b, 0x5a, 0x92, 0x91, 0x9f, 0x22, 0xc1, 0x0c, 0x96, 0x80, 0xf2, 0x9c, 0x1c, 0x4e, 0x3c,
0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e,
- 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0xba, 0x38, 0x3f, 0xaf, 0x48, 0x2f, 0x33,
- 0x5f, 0x1f, 0xec, 0xc4, 0x0a, 0x98, 0x23, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x8e,
- 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x54, 0xac, 0xcc, 0x87, 0xc0, 0x00, 0x00, 0x00,
+ 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x2d, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49,
+ 0x2f, 0x39, 0x3f, 0x57, 0xbf, 0x38, 0x3f, 0xaf, 0x48, 0x37, 0x33, 0x1f, 0x4c, 0xeb, 0x57, 0xc0,
+ 0xdc, 0x5b, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0xaf, 0x31, 0x20, 0x00, 0x00, 0xff,
+ 0xff, 0x35, 0x74, 0x5f, 0x6c, 0xcb, 0x00, 0x00, 0x00,
}
func (m *UsernameRecord) Marshal() (dAtA []byte, err error) {
diff --git a/x/domain/types/tx.pb.go b/x/domain/types/tx.pb.go
index 2ca4e6355..4e9df02e0 100644
--- a/x/domain/types/tx.pb.go
+++ b/x/domain/types/tx.pb.go
@@ -320,26 +320,26 @@ func init() {
func init() { proto.RegisterFile("core/domain/tx.proto", fileDescriptor_d1e2442c81dc82e6) }
var fileDescriptor_d1e2442c81dc82e6 = []byte{
- // 292 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0xce, 0x2f, 0x4a,
- 0xd5, 0x4f, 0xc9, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9,
- 0x17, 0xe2, 0x06, 0x89, 0xea, 0x41, 0x44, 0xa5, 0x24, 0x90, 0x95, 0x14, 0xa5, 0x26, 0xe7, 0x17,
- 0xa5, 0x40, 0x94, 0x29, 0x25, 0x71, 0x49, 0xf8, 0x16, 0xa7, 0x3b, 0x17, 0xa5, 0x26, 0x96, 0xa4,
- 0x86, 0x16, 0xa7, 0x16, 0xe5, 0x25, 0xe6, 0xa6, 0x06, 0x81, 0x15, 0x14, 0x0b, 0x49, 0x70, 0xb1,
- 0x27, 0x83, 0x24, 0xf2, 0x8b, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x60, 0x5c, 0x21, 0x11,
- 0x2e, 0xd6, 0xcc, 0xbc, 0x94, 0xd4, 0x0a, 0x09, 0x26, 0xb0, 0x38, 0x84, 0x23, 0x24, 0xc6, 0xc5,
- 0x96, 0x9b, 0x5a, 0x92, 0x91, 0x9f, 0x22, 0xc1, 0x0c, 0x16, 0x86, 0xf2, 0x94, 0x94, 0xb8, 0x14,
- 0x70, 0xd9, 0x11, 0x94, 0x5a, 0x5c, 0x90, 0x9f, 0x57, 0x9c, 0xaa, 0xe4, 0x05, 0x76, 0x47, 0x68,
- 0x41, 0x0a, 0xe5, 0xee, 0x80, 0xda, 0x87, 0xd5, 0x2c, 0x34, 0xfb, 0x5c, 0x52, 0x73, 0x52, 0xa9,
- 0x65, 0x1f, 0x56, 0xb3, 0x60, 0xf6, 0x19, 0x9d, 0x67, 0xe2, 0x62, 0xf6, 0x2d, 0x4e, 0x17, 0xca,
- 0xe1, 0x12, 0xc1, 0x16, 0x10, 0x42, 0xaa, 0x7a, 0x48, 0xf1, 0xa5, 0x87, 0x2b, 0xb8, 0xa4, 0x74,
- 0x89, 0x52, 0x06, 0xb3, 0x15, 0x64, 0x1b, 0xb6, 0x60, 0xc0, 0xb4, 0x0d, 0x6b, 0x60, 0x61, 0xda,
- 0x86, 0x37, 0x4c, 0x41, 0xb6, 0x61, 0x0b, 0x04, 0x4c, 0xdb, 0xb0, 0x06, 0x15, 0xa6, 0x6d, 0x78,
- 0x43, 0xd4, 0xc9, 0xf4, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63,
- 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xa4, 0x8b,
- 0xf3, 0xf3, 0x8a, 0xf4, 0x32, 0xf3, 0xf5, 0xc1, 0xa9, 0xbe, 0x02, 0x9e, 0x35, 0x2a, 0x0b, 0x52,
- 0x8b, 0x93, 0xd8, 0xc0, 0xe9, 0xde, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x96, 0x61, 0x7f,
- 0x36, 0x03, 0x00, 0x00,
+ // 302 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcd, 0x4a, 0xc3, 0x40,
+ 0x14, 0x85, 0x93, 0x16, 0x2b, 0x8e, 0xbb, 0x21, 0xc8, 0xd0, 0xc5, 0x50, 0x02, 0x8a, 0x9b, 0x26,
+ 0xa0, 0x2f, 0x20, 0xea, 0x4a, 0xe8, 0x26, 0xd0, 0x8d, 0xbb, 0xfc, 0x5c, 0xd2, 0x40, 0x93, 0x1b,
+ 0x66, 0x46, 0x88, 0x6f, 0xe1, 0x63, 0xb9, 0xb3, 0x4b, 0x97, 0x92, 0xbc, 0x88, 0x64, 0xd2, 0x48,
+ 0x31, 0xd3, 0x22, 0xd8, 0x55, 0xb8, 0x27, 0x87, 0xf9, 0x86, 0x6f, 0xb8, 0xc4, 0x89, 0x51, 0x80,
+ 0x9f, 0x60, 0x1e, 0x66, 0x85, 0xaf, 0x2a, 0xaf, 0x14, 0xa8, 0x90, 0x9e, 0xb7, 0xa9, 0xd7, 0xa5,
+ 0x53, 0xb6, 0x5b, 0x11, 0x10, 0xa3, 0x48, 0xba, 0x9a, 0x1b, 0x11, 0xb6, 0x90, 0xe9, 0x83, 0x80,
+ 0x50, 0xc1, 0x52, 0x82, 0x28, 0xc2, 0x1c, 0x02, 0x5d, 0x90, 0x94, 0x91, 0xd3, 0xb8, 0xfd, 0x81,
+ 0x82, 0xd9, 0x33, 0xfb, 0xfa, 0x2c, 0xe8, 0x47, 0xea, 0x90, 0x93, 0xac, 0x48, 0xa0, 0x62, 0x23,
+ 0x9d, 0x77, 0x03, 0xbd, 0x20, 0x93, 0x1c, 0xd4, 0x0a, 0x13, 0x36, 0xd6, 0xf1, 0x76, 0x72, 0x5d,
+ 0x32, 0xdb, 0xc7, 0x08, 0x40, 0x96, 0x58, 0x48, 0x70, 0x9f, 0xf4, 0x3d, 0x96, 0x65, 0xf2, 0xff,
+ 0x7b, 0x6c, 0x79, 0xc6, 0xb3, 0x7e, 0xf1, 0x1e, 0x61, 0x0d, 0xc7, 0xe2, 0x19, 0xcf, 0xea, 0x79,
+ 0x37, 0x1f, 0x23, 0x32, 0x5e, 0xc8, 0x94, 0xae, 0x89, 0x63, 0x12, 0x41, 0x2f, 0xbd, 0x9d, 0xf7,
+ 0xf2, 0xf6, 0xe9, 0x9a, 0xce, 0xff, 0x54, 0xeb, 0xa9, 0x2d, 0xcd, 0xa4, 0x61, 0x48, 0x33, 0xca,
+ 0x1a, 0xd2, 0x0e, 0x3a, 0x6d, 0x69, 0x26, 0x09, 0x43, 0x9a, 0x51, 0xd5, 0x90, 0x76, 0xd0, 0xe8,
+ 0xfd, 0xdd, 0x7b, 0xcd, 0xed, 0x4d, 0xcd, 0xed, 0xaf, 0x9a, 0xdb, 0x6f, 0x0d, 0xb7, 0x36, 0x0d,
+ 0xb7, 0x3e, 0x1b, 0x6e, 0x3d, 0x5f, 0xa5, 0x99, 0x5a, 0xbd, 0x44, 0x5e, 0x8c, 0xb9, 0x2f, 0xb1,
+ 0x10, 0xf3, 0x0c, 0xf5, 0xd7, 0xaf, 0x7e, 0xb6, 0xe4, 0xb5, 0x04, 0x19, 0x4d, 0xf4, 0x0a, 0xdc,
+ 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x81, 0x01, 0xb9, 0xc5, 0x41, 0x03, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/x/identity/client/cli/query.go b/x/identity/client/cli/query.go
index 744cb2932..321472520 100644
--- a/x/identity/client/cli/query.go
+++ b/x/identity/client/cli/query.go
@@ -10,7 +10,7 @@ import (
// "github.com/cosmos/cosmos-sdk/client/flags"
// sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/types"
)
// GetQueryCmd returns the cli query commands for this module
diff --git a/x/identity/client/cli/query_controller_account.go b/x/identity/client/cli/query_controller_account.go
index 9844ffe61..4b203a087 100644
--- a/x/identity/client/cli/query_controller_account.go
+++ b/x/identity/client/cli/query_controller_account.go
@@ -3,7 +3,7 @@ package cli
import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/types"
"github.com/spf13/cobra"
)
diff --git a/x/identity/client/cli/query_did_document.go b/x/identity/client/cli/query_did_document.go
index d77e5ed5f..36c2c8e61 100644
--- a/x/identity/client/cli/query_did_document.go
+++ b/x/identity/client/cli/query_did_document.go
@@ -5,7 +5,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/spf13/cobra"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/types"
)
func CmdListDIDDocument() *cobra.Command {
diff --git a/x/identity/client/cli/query_params.go b/x/identity/client/cli/query_params.go
index 34f0fafcd..11289e49a 100644
--- a/x/identity/client/cli/query_params.go
+++ b/x/identity/client/cli/query_params.go
@@ -5,7 +5,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/spf13/cobra"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/types"
)
func CmdQueryParams() *cobra.Command {
diff --git a/x/identity/client/cli/tx.go b/x/identity/client/cli/tx.go
index 58ec41eaf..99df0186d 100644
--- a/x/identity/client/cli/tx.go
+++ b/x/identity/client/cli/tx.go
@@ -8,7 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
// "github.com/cosmos/cosmos-sdk/client/flags"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/types"
)
var (
diff --git a/x/identity/client/cli/tx_controller_account.go b/x/identity/client/cli/tx_controller_account.go
index 0114599ad..b0442fcd3 100644
--- a/x/identity/client/cli/tx_controller_account.go
+++ b/x/identity/client/cli/tx_controller_account.go
@@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/types"
"github.com/spf13/cobra"
)
diff --git a/x/identity/genesis.go b/x/identity/genesis.go
index bd5f6212a..c642572a1 100644
--- a/x/identity/genesis.go
+++ b/x/identity/genesis.go
@@ -2,8 +2,8 @@ package identity
import (
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/identity/keeper"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/keeper"
+ "github.com/sonr-io/sonr/x/identity/types"
)
// InitGenesis initializes the module's state from a provided genesis state.
diff --git a/x/identity/genesis_test.go b/x/identity/genesis_test.go
index f4b84c5f6..b222f1e1c 100644
--- a/x/identity/genesis_test.go
+++ b/x/identity/genesis_test.go
@@ -3,10 +3,10 @@ package identity_test
import (
"testing"
- keepertest "sonr.io/core/testutil/keeper"
- "sonr.io/core/testutil/nullify"
- "sonr.io/core/x/identity"
- "sonr.io/core/x/identity/types"
+ keepertest "github.com/sonr-io/sonr/testutil/keeper"
+ "github.com/sonr-io/sonr/testutil/nullify"
+ "github.com/sonr-io/sonr/x/identity"
+ "github.com/sonr-io/sonr/x/identity/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/identity/keeper/genesis.go b/x/identity/keeper/genesis.go
index eee498280..649309373 100644
--- a/x/identity/keeper/genesis.go
+++ b/x/identity/keeper/genesis.go
@@ -5,7 +5,7 @@ import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/x/identity/keeper/keeper.go b/x/identity/keeper/keeper.go
index ffb471261..93b7310bc 100644
--- a/x/identity/keeper/keeper.go
+++ b/x/identity/keeper/keeper.go
@@ -14,7 +14,7 @@ import (
host "github.com/cosmos/ibc-go/v7/modules/core/24-host"
"github.com/cosmos/ibc-go/v7/modules/core/exported"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/types"
)
type (
diff --git a/x/identity/keeper/msg_server.go b/x/identity/keeper/msg_server.go
index 7a40d4dba..5caa1e159 100644
--- a/x/identity/keeper/msg_server.go
+++ b/x/identity/keeper/msg_server.go
@@ -8,8 +8,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
- "sonr.io/core/internal/crypto"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/internal/crypto"
+ "github.com/sonr-io/sonr/x/identity/types"
)
type msgServer struct {
diff --git a/x/identity/keeper/params_test.go b/x/identity/keeper/params_test.go
index 208acaeed..84c30cee3 100644
--- a/x/identity/keeper/params_test.go
+++ b/x/identity/keeper/params_test.go
@@ -3,8 +3,8 @@ package keeper_test
import (
"testing"
- testkeeper "sonr.io/core/testutil/keeper"
- "sonr.io/core/x/identity/types"
+ testkeeper "github.com/sonr-io/sonr/testutil/keeper"
+ "github.com/sonr-io/sonr/x/identity/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/identity/keeper/query.go b/x/identity/keeper/query.go
index 292b7b805..0b7dfc97b 100644
--- a/x/identity/keeper/query.go
+++ b/x/identity/keeper/query.go
@@ -8,7 +8,7 @@ import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/types/query"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/x/identity/module.go b/x/identity/module.go
index f8ee9df07..f0b804987 100644
--- a/x/identity/module.go
+++ b/x/identity/module.go
@@ -17,9 +17,9 @@ import (
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
- "sonr.io/core/x/identity/client/cli"
- "sonr.io/core/x/identity/keeper"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/client/cli"
+ "github.com/sonr-io/sonr/x/identity/keeper"
+ "github.com/sonr-io/sonr/x/identity/types"
)
var (
diff --git a/x/identity/module_simulation.go b/x/identity/module_simulation.go
index dec64c202..f2c37e9bb 100644
--- a/x/identity/module_simulation.go
+++ b/x/identity/module_simulation.go
@@ -8,9 +8,9 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
- "sonr.io/core/testutil/sample"
- identitysimulation "sonr.io/core/x/identity/simulation"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/testutil/sample"
+ identitysimulation "github.com/sonr-io/sonr/x/identity/simulation"
+ "github.com/sonr-io/sonr/x/identity/types"
)
// avoid unused import issue
diff --git a/x/identity/simulation/controller_account.go b/x/identity/simulation/controller_account.go
index 68956ee90..9cfc1201c 100644
--- a/x/identity/simulation/controller_account.go
+++ b/x/identity/simulation/controller_account.go
@@ -8,8 +8,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
- "sonr.io/core/x/identity/keeper"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/keeper"
+ "github.com/sonr-io/sonr/x/identity/types"
)
func SimulateMsgCreateControllerAccount(
diff --git a/x/identity/simulation/did_document.go b/x/identity/simulation/did_document.go
index 5df752e9c..6abfa7f78 100644
--- a/x/identity/simulation/did_document.go
+++ b/x/identity/simulation/did_document.go
@@ -7,8 +7,8 @@ import (
"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
- "sonr.io/core/x/identity/keeper"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/keeper"
+ "github.com/sonr-io/sonr/x/identity/types"
)
// Prevent strconv unused error
diff --git a/x/identity/simulation/register_identity.go b/x/identity/simulation/register_identity.go
index 0e44d07ef..6a7b0a433 100644
--- a/x/identity/simulation/register_identity.go
+++ b/x/identity/simulation/register_identity.go
@@ -6,8 +6,8 @@ import (
"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
- "sonr.io/core/x/identity/keeper"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/keeper"
+ "github.com/sonr-io/sonr/x/identity/types"
)
func SimulateMsgRegisterIdentity(
diff --git a/x/identity/types/account.pb.go b/x/identity/types/account.pb.go
index 747fafb34..44cc86549 100644
--- a/x/identity/types/account.pb.go
+++ b/x/identity/types/account.pb.go
@@ -97,7 +97,7 @@ func init() {
func init() { proto.RegisterFile("core/identity/account.proto", fileDescriptor_19070c8376816cff) }
var fileDescriptor_19070c8376816cff = []byte{
- // 210 bytes of a gzipped FileDescriptorProto
+ // 220 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0xce, 0x2f, 0x4a,
0xd5, 0xcf, 0x4c, 0x49, 0xcd, 0x2b, 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x4c, 0x4e, 0xce, 0x2f, 0xcd,
0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x05, 0x49, 0xea, 0xc1, 0x24, 0x95, 0x7a,
@@ -107,11 +107,11 @@ var fileDescriptor_19070c8376816cff = []byte{
0x4a, 0x09, 0x26, 0xb0, 0x1c, 0x42, 0x40, 0x48, 0x8d, 0x8b, 0x2f, 0xb1, 0xb4, 0x24, 0x03, 0x64,
0x76, 0x72, 0x62, 0x49, 0x7e, 0x51, 0xb1, 0x04, 0xb3, 0x02, 0xb3, 0x06, 0x67, 0x10, 0x9a, 0x28,
0xc8, 0xfc, 0xf2, 0xc4, 0x9c, 0x9c, 0xd4, 0x92, 0x62, 0x09, 0x16, 0xb0, 0x02, 0x18, 0xd7, 0xc9,
- 0xfc, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58,
- 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x64, 0x8b, 0xf3, 0xf3, 0x8a,
- 0xf4, 0x32, 0xf3, 0xf5, 0xc1, 0xbe, 0xab, 0x40, 0xf8, 0xaf, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89,
- 0x0d, 0xec, 0x3d, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x36, 0x38, 0x37, 0x58, 0xfd, 0x00,
- 0x00, 0x00,
+ 0xe9, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58,
+ 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x34, 0xd2, 0x33, 0x4b, 0x32,
+ 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x8b, 0xf3, 0xf3, 0x8a, 0x74, 0x33, 0xf3, 0xc1, 0xb4,
+ 0x7e, 0x05, 0xc2, 0xab, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x9f, 0x1a, 0x03, 0x02,
+ 0x00, 0x00, 0xff, 0xff, 0x6a, 0xba, 0x67, 0x19, 0x08, 0x01, 0x00, 0x00,
}
func (m *ControllerAccount) Marshal() (dAtA []byte, err error) {
diff --git a/x/identity/types/did.pb.go b/x/identity/types/did.pb.go
index 0232ecc79..fdff5e4dc 100644
--- a/x/identity/types/did.pb.go
+++ b/x/identity/types/did.pb.go
@@ -315,42 +315,42 @@ func init() {
func init() { proto.RegisterFile("core/identity/did.proto", fileDescriptor_04e15460d8451849) }
var fileDescriptor_04e15460d8451849 = []byte{
- // 547 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcf, 0x6f, 0x12, 0x41,
- 0x14, 0xee, 0x42, 0x5b, 0x64, 0x28, 0xb4, 0x99, 0xd2, 0xb8, 0x07, 0xdd, 0x20, 0x31, 0x11, 0x2f,
- 0x60, 0xf0, 0xe0, 0x19, 0xc3, 0x05, 0x6b, 0x63, 0xb2, 0x31, 0x1e, 0x8c, 0xc9, 0x66, 0xd8, 0x7d,
- 0x2d, 0xe3, 0x2e, 0x33, 0x9b, 0x99, 0x01, 0xba, 0xff, 0x85, 0x7f, 0x87, 0x17, 0x6f, 0xfe, 0x0d,
- 0x1e, 0x7b, 0xf4, 0x68, 0xe0, 0x1f, 0x31, 0x33, 0xfb, 0x83, 0x95, 0x46, 0x13, 0x3c, 0xc1, 0xbc,
- 0xef, 0x7b, 0xdf, 0xce, 0x7b, 0xdf, 0x97, 0x41, 0x0f, 0x7d, 0x2e, 0x60, 0x40, 0x03, 0x60, 0x8a,
- 0xaa, 0x64, 0x10, 0xd0, 0xa0, 0x1f, 0x0b, 0xae, 0x38, 0x6e, 0x6a, 0xa0, 0x9f, 0x03, 0xdd, 0xaf,
- 0x87, 0xa8, 0x31, 0x9e, 0x8c, 0xc7, 0xdc, 0x5f, 0xcc, 0x81, 0x29, 0x6c, 0xa3, 0x9a, 0xcf, 0x99,
- 0x82, 0x5b, 0x65, 0x5b, 0x9d, 0x6a, 0xaf, 0xee, 0xe6, 0x47, 0xdc, 0x42, 0x15, 0x1a, 0xd8, 0x95,
- 0x8e, 0xd5, 0xab, 0xbb, 0x15, 0x1a, 0x60, 0x07, 0x21, 0x0d, 0x09, 0x1e, 0x45, 0x20, 0xec, 0xaa,
- 0x21, 0x97, 0x2a, 0xf8, 0x1d, 0x6a, 0x91, 0x85, 0x9a, 0xe9, 0xef, 0xf8, 0x44, 0x51, 0xce, 0xec,
- 0xa3, 0x4e, 0xb5, 0xd7, 0x18, 0x3e, 0xeb, 0xff, 0x71, 0x83, 0xfe, 0x07, 0x10, 0xf4, 0x3a, 0xa3,
- 0xb8, 0x10, 0x99, 0x5f, 0x39, 0xa3, 0xb1, 0xbb, 0xd3, 0x8e, 0x5d, 0x74, 0x46, 0xa4, 0x04, 0xa1,
- 0x0f, 0xde, 0x1c, 0xd4, 0x8c, 0x07, 0xf6, 0xf1, 0x7e, 0x92, 0xa7, 0x85, 0xc0, 0x95, 0xe9, 0xc7,
- 0x9f, 0xd0, 0x85, 0x4f, 0x62, 0x32, 0xa5, 0x11, 0x55, 0x89, 0x47, 0xd9, 0x92, 0x67, 0x77, 0xad,
- 0xed, 0x27, 0xdc, 0xde, 0xaa, 0x4c, 0x0a, 0x91, 0x1d, 0xf5, 0x00, 0x22, 0xb8, 0x49, 0xd5, 0x1f,
- 0xfc, 0xb7, 0xfa, 0xb8, 0x10, 0xc1, 0x6f, 0x51, 0x33, 0x84, 0xc4, 0x23, 0x37, 0x02, 0x40, 0x7b,
- 0x67, 0xd7, 0xf7, 0x53, 0x3d, 0x09, 0x21, 0x19, 0xe5, 0xcd, 0xb8, 0x8b, 0x9a, 0x24, 0x92, 0xdc,
- 0x0b, 0x19, 0x5f, 0x31, 0x8f, 0x48, 0x1b, 0x19, 0x47, 0x1b, 0xba, 0x78, 0xa9, 0x6b, 0x23, 0xd9,
- 0xfd, 0x56, 0x41, 0xb8, 0x2c, 0x97, 0x2d, 0x31, 0x4d, 0x86, 0x55, 0x24, 0x03, 0xa3, 0x43, 0x95,
- 0xc4, 0x90, 0x65, 0xc5, 0xfc, 0xbf, 0x97, 0x16, 0x6b, 0x27, 0x2d, 0x4f, 0x51, 0x2b, 0x5e, 0x4c,
- 0x23, 0xea, 0x7b, 0x7a, 0xa6, 0xcf, 0xab, 0xd0, 0x3e, 0x34, 0x9c, 0x93, 0xb4, 0x7a, 0x09, 0xc9,
- 0x9b, 0x55, 0x88, 0x5f, 0xa0, 0x76, 0x89, 0x35, 0x5f, 0x44, 0x8a, 0x4e, 0x89, 0x04, 0xfb, 0xc8,
- 0x70, 0x71, 0xc1, 0xbd, 0xca, 0x11, 0x3c, 0x44, 0x17, 0xd3, 0x88, 0xfb, 0xa1, 0x3f, 0x23, 0x94,
- 0x79, 0xc4, 0xf7, 0xf9, 0x82, 0x29, 0x8f, 0xea, 0xe4, 0xe8, 0x96, 0xf3, 0x2d, 0x38, 0x4a, 0xb1,
- 0x49, 0x80, 0x9f, 0xa3, 0x33, 0xa2, 0x14, 0x48, 0x65, 0x86, 0xf4, 0xcc, 0x2c, 0x35, 0x43, 0x3f,
- 0x2d, 0xd5, 0xdf, 0x67, 0x63, 0x29, 0x41, 0x98, 0x8c, 0xb9, 0x50, 0xd2, 0xd8, 0x5a, 0x77, 0x4b,
- 0x95, 0xee, 0x77, 0x0b, 0xd9, 0x7f, 0x33, 0x00, 0xbb, 0xe8, 0x7c, 0x59, 0xc2, 0xf2, 0x4c, 0xeb,
- 0x45, 0x36, 0x86, 0x4f, 0xfe, 0x61, 0x63, 0xba, 0x77, 0x17, 0x2f, 0xef, 0x7b, 0xf1, 0x08, 0xd5,
- 0x05, 0x5c, 0x83, 0x00, 0xe6, 0xe7, 0x06, 0x6c, 0x0b, 0x85, 0x33, 0xd5, 0x92, 0x33, 0x6d, 0x74,
- 0xc4, 0x57, 0x0c, 0x44, 0xb6, 0xf0, 0xf4, 0xf0, 0xfa, 0xd5, 0x8f, 0xb5, 0x63, 0xdd, 0xad, 0x1d,
- 0xeb, 0xd7, 0xda, 0xb1, 0xbe, 0x6c, 0x9c, 0x83, 0xbb, 0x8d, 0x73, 0xf0, 0x73, 0xe3, 0x1c, 0x7c,
- 0x7c, 0x2c, 0x39, 0x13, 0x7d, 0xca, 0x07, 0xe6, 0x85, 0xb9, 0xdd, 0xbe, 0x31, 0x5a, 0x4d, 0x4e,
- 0x8f, 0xcd, 0x33, 0xf3, 0xf2, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb, 0xf6, 0x15, 0x8a, 0x81,
- 0x04, 0x00, 0x00,
+ // 554 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcb, 0x8e, 0xd3, 0x30,
+ 0x14, 0x9d, 0xb4, 0xf3, 0xa0, 0xee, 0xb4, 0x33, 0xf2, 0x74, 0x44, 0x16, 0x28, 0x2a, 0x15, 0x12,
+ 0x65, 0x41, 0x8b, 0xca, 0x17, 0x74, 0xd4, 0x4d, 0x19, 0x46, 0x48, 0x11, 0x62, 0x81, 0x90, 0x22,
+ 0xc7, 0xf1, 0xb4, 0x26, 0xa9, 0x1d, 0xd9, 0x4e, 0x3b, 0xf9, 0x0b, 0xbe, 0x83, 0x0d, 0x3b, 0xbe,
+ 0x81, 0xe5, 0x2c, 0x59, 0xa2, 0xf6, 0x47, 0x90, 0x9d, 0x47, 0x43, 0x47, 0x20, 0x95, 0x55, 0xea,
+ 0x7b, 0xce, 0x3d, 0xf5, 0xbd, 0xe7, 0xc8, 0xe0, 0x31, 0xe6, 0x82, 0x0c, 0x69, 0x40, 0x98, 0xa2,
+ 0x2a, 0x1d, 0x06, 0x34, 0x18, 0xc4, 0x82, 0x2b, 0x0e, 0x5b, 0x1a, 0x18, 0x14, 0x40, 0xef, 0xeb,
+ 0x21, 0x68, 0x4e, 0xa6, 0x93, 0x09, 0xc7, 0xc9, 0x82, 0x30, 0x05, 0x6d, 0x70, 0x82, 0x39, 0x53,
+ 0xe4, 0x4e, 0xd9, 0x56, 0xb7, 0xde, 0x6f, 0xb8, 0xc5, 0x11, 0xb6, 0x41, 0x8d, 0x06, 0x76, 0xad,
+ 0x6b, 0xf5, 0x1b, 0x6e, 0x8d, 0x06, 0xd0, 0x01, 0x40, 0x43, 0x82, 0x47, 0x11, 0x11, 0x76, 0xdd,
+ 0x90, 0x2b, 0x15, 0xf8, 0x0e, 0xb4, 0x51, 0xa2, 0xe6, 0xfa, 0x7f, 0x30, 0x52, 0x94, 0x33, 0xfb,
+ 0xa8, 0x5b, 0xef, 0x37, 0x47, 0xcf, 0x07, 0x7f, 0xdc, 0x60, 0xf0, 0x81, 0x08, 0x7a, 0x9b, 0x53,
+ 0x5c, 0x12, 0x99, 0xaf, 0x9c, 0xd3, 0xd8, 0xdd, 0x69, 0x87, 0x2e, 0x38, 0x47, 0x52, 0x12, 0xa1,
+ 0x0f, 0xde, 0x82, 0xa8, 0x39, 0x0f, 0xec, 0xe3, 0xfd, 0x24, 0xcf, 0x4a, 0x81, 0x1b, 0xd3, 0x0f,
+ 0x3f, 0x81, 0x4b, 0x8c, 0x62, 0xe4, 0xd3, 0x88, 0xaa, 0xd4, 0xa3, 0x6c, 0xc9, 0xf3, 0xbb, 0x9e,
+ 0xec, 0x27, 0xdc, 0xd9, 0xaa, 0x4c, 0x4b, 0x91, 0x1d, 0xf5, 0x80, 0x44, 0x64, 0x96, 0xa9, 0x3f,
+ 0xfa, 0x6f, 0xf5, 0x49, 0x29, 0x02, 0xdf, 0x82, 0x56, 0x48, 0x52, 0x0f, 0xcd, 0x04, 0x21, 0xda,
+ 0x3b, 0xbb, 0xb1, 0x9f, 0xea, 0x69, 0x48, 0xd2, 0x71, 0xd1, 0x0c, 0x7b, 0xa0, 0x85, 0x22, 0xc9,
+ 0xbd, 0x90, 0xf1, 0x15, 0xf3, 0x90, 0xb4, 0x81, 0x71, 0xb4, 0xa9, 0x8b, 0xd7, 0xba, 0x36, 0x96,
+ 0xbd, 0x6f, 0x35, 0x00, 0xab, 0x72, 0xf9, 0x12, 0xb3, 0x64, 0x58, 0x65, 0x32, 0x20, 0x38, 0x54,
+ 0x69, 0x4c, 0xf2, 0xac, 0x98, 0xdf, 0x0f, 0xd2, 0x62, 0xed, 0xa4, 0xe5, 0x19, 0x68, 0xc7, 0x89,
+ 0x1f, 0x51, 0xec, 0xe9, 0x99, 0x3e, 0xaf, 0x42, 0xfb, 0xd0, 0x70, 0x4e, 0xb3, 0xea, 0x35, 0x49,
+ 0xdf, 0xac, 0x42, 0xf8, 0x0a, 0x74, 0x2a, 0xac, 0x45, 0x12, 0x29, 0xea, 0x23, 0x49, 0xec, 0x23,
+ 0xc3, 0x85, 0x25, 0xf7, 0xa6, 0x40, 0xe0, 0x08, 0x5c, 0xfa, 0x11, 0xc7, 0x21, 0x9e, 0x23, 0xca,
+ 0x3c, 0x84, 0x31, 0x4f, 0x98, 0xf2, 0xa8, 0x4e, 0x8e, 0x6e, 0xb9, 0xd8, 0x82, 0xe3, 0x0c, 0x9b,
+ 0x06, 0xf0, 0x05, 0x38, 0x47, 0x4a, 0x11, 0xa9, 0xcc, 0x90, 0x9e, 0x99, 0xe5, 0xc4, 0xd0, 0xcf,
+ 0x2a, 0xf5, 0xf7, 0xf9, 0x58, 0x4a, 0x20, 0x26, 0x63, 0x2e, 0x94, 0x34, 0xb6, 0x36, 0xdc, 0x4a,
+ 0xa5, 0xf7, 0xdd, 0x02, 0xf6, 0xdf, 0x0c, 0x80, 0x2e, 0xb8, 0x58, 0x56, 0xb0, 0x22, 0xd3, 0x7a,
+ 0x91, 0xcd, 0xd1, 0xd3, 0x7f, 0xd8, 0x98, 0xed, 0xdd, 0x85, 0xcb, 0x87, 0x5e, 0x3c, 0x01, 0x0d,
+ 0x41, 0x6e, 0x89, 0x20, 0x0c, 0x17, 0x06, 0x6c, 0x0b, 0xa5, 0x33, 0xf5, 0x8a, 0x33, 0x1d, 0x70,
+ 0xc4, 0x57, 0x8c, 0x88, 0x7c, 0xe1, 0xd9, 0xe1, 0xea, 0xea, 0xc7, 0xda, 0xb1, 0xee, 0xd7, 0x8e,
+ 0xf5, 0x6b, 0xed, 0x58, 0x5f, 0x36, 0xce, 0xc1, 0xfd, 0xc6, 0x39, 0xf8, 0xb9, 0x71, 0x0e, 0x3e,
+ 0xf6, 0x67, 0x54, 0xcd, 0x13, 0x7f, 0x80, 0xf9, 0x62, 0x28, 0x39, 0x13, 0x2f, 0x29, 0x37, 0xdf,
+ 0xe1, 0xdd, 0xf6, 0xb9, 0xd1, 0xc2, 0xd2, 0x3f, 0x36, 0x2f, 0xce, 0xeb, 0xdf, 0x01, 0x00, 0x00,
+ 0xff, 0xff, 0x9c, 0xb1, 0x8f, 0x7b, 0x8c, 0x04, 0x00, 0x00,
}
func (m *DIDDocument) Marshal() (dAtA []byte, err error) {
diff --git a/x/identity/types/did_document.go b/x/identity/types/did_document.go
index abce104a5..a81e85394 100644
--- a/x/identity/types/did_document.go
+++ b/x/identity/types/did_document.go
@@ -7,7 +7,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/go-webauthn/webauthn/protocol"
- crypto "sonr.io/core/internal/crypto"
+ crypto "github.com/sonr-io/sonr/internal/crypto"
)
// NewDIDDocument creates a new DIDDocument from an Identification and optional VerificationRelationships
diff --git a/x/identity/types/genesis.pb.go b/x/identity/types/genesis.pb.go
index 97c5b975a..42fc0f6aa 100644
--- a/x/identity/types/genesis.pb.go
+++ b/x/identity/types/genesis.pb.go
@@ -99,7 +99,7 @@ func init() {
func init() { proto.RegisterFile("core/identity/genesis.proto", fileDescriptor_22ee3e6e2aad889c) }
var fileDescriptor_22ee3e6e2aad889c = []byte{
- // 288 bytes of a gzipped FileDescriptorProto
+ // 299 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0xce, 0x2f, 0x4a,
0xd5, 0xcf, 0x4c, 0x49, 0xcd, 0x2b, 0xc9, 0x2c, 0xa9, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce,
0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x05, 0x49, 0xea, 0xc1, 0x24, 0xa5, 0xd0,
@@ -113,11 +113,12 @@ var fileDescriptor_22ee3e6e2aad889c = []byte{
0x85, 0xa6, 0xdb, 0x05, 0xa1, 0x0a, 0x6a, 0x04, 0xba, 0x46, 0xa1, 0x18, 0x2e, 0xd1, 0xe4, 0xfc,
0xbc, 0x92, 0xa2, 0xfc, 0x9c, 0x9c, 0xd4, 0x22, 0x47, 0x88, 0xbf, 0xc1, 0x26, 0x32, 0x83, 0x4d,
0x54, 0x40, 0x33, 0xd1, 0x19, 0x5d, 0x2d, 0xd4, 0x5c, 0xec, 0x86, 0x08, 0x99, 0x71, 0x89, 0x61,
- 0x48, 0x38, 0x83, 0x08, 0x09, 0x16, 0x05, 0x46, 0x0d, 0x96, 0x20, 0x1c, 0xb2, 0x4e, 0xe6, 0x27,
+ 0x48, 0x38, 0x83, 0x08, 0x09, 0x16, 0x05, 0x46, 0x0d, 0x96, 0x20, 0x1c, 0xb2, 0x4e, 0x4e, 0x27,
0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c,
- 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0x25, 0x5b, 0x9c, 0x9f, 0x57, 0xa4, 0x97,
- 0x99, 0xaf, 0x0f, 0x0e, 0xfb, 0x0a, 0x44, 0xe8, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81,
- 0xc3, 0xd9, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x78, 0x1e, 0xeb, 0x62, 0xfd, 0x01, 0x00, 0x00,
+ 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x91, 0x9e, 0x59, 0x92, 0x51, 0x9a,
+ 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x5f, 0x9c, 0x9f, 0x57, 0xa4, 0x9b, 0x99, 0x0f, 0xa6, 0xf5, 0x2b,
+ 0x10, 0x11, 0x51, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x0e, 0x72, 0x63, 0x40, 0x00, 0x00,
+ 0x00, 0xff, 0xff, 0x8c, 0x06, 0x24, 0x39, 0x08, 0x02, 0x00, 0x00,
}
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
diff --git a/x/identity/types/genesis_test.go b/x/identity/types/genesis_test.go
index 886b395bb..b13d6a8aa 100644
--- a/x/identity/types/genesis_test.go
+++ b/x/identity/types/genesis_test.go
@@ -3,7 +3,7 @@ package types_test
import (
"testing"
- "sonr.io/core/x/identity/types"
+ "github.com/sonr-io/sonr/x/identity/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/identity/types/identifier.pb.go b/x/identity/types/identifier.pb.go
index 8567a503d..27880715f 100644
--- a/x/identity/types/identifier.pb.go
+++ b/x/identity/types/identifier.pb.go
@@ -175,7 +175,7 @@ func init() {
func init() { proto.RegisterFile("core/identity/identifier.proto", fileDescriptor_279efc507d29e268) }
var fileDescriptor_279efc507d29e268 = []byte{
- // 276 bytes of a gzipped FileDescriptorProto
+ // 286 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xce, 0x2f, 0x4a,
0xd5, 0xcf, 0x4c, 0x49, 0xcd, 0x2b, 0xc9, 0x2c, 0xa9, 0x84, 0x32, 0xd2, 0x32, 0x53, 0x8b, 0xf4,
0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x78, 0x41, 0xf2, 0x7a, 0x30, 0x79, 0xa5, 0x74, 0x2e, 0xbe,
@@ -189,11 +189,11 @@ var fileDescriptor_279efc507d29e268 = []byte{
0x55, 0x80, 0x41, 0x88, 0x93, 0x8b, 0xd5, 0xd5, 0xd7, 0xd1, 0xd3, 0x47, 0x80, 0x11, 0xc4, 0x0c,
0xf0, 0x00, 0x89, 0x32, 0x81, 0xe4, 0xdd, 0x3c, 0x5d, 0xfc, 0x05, 0x98, 0x85, 0xb8, 0xb9, 0xd8,
0x03, 0x1c, 0x83, 0x83, 0xbd, 0x5d, 0x23, 0x05, 0x58, 0x84, 0xd8, 0xb9, 0x98, 0xdd, 0x03, 0xdc,
- 0x05, 0x58, 0x9d, 0xcc, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39,
- 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0xb6,
- 0x38, 0x3f, 0xaf, 0x48, 0x2f, 0x33, 0x5f, 0x1f, 0x1c, 0xb0, 0x15, 0x88, 0xa0, 0x05, 0x79, 0xbb,
- 0x38, 0x89, 0x0d, 0x1c, 0xac, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x60, 0xbe, 0x44, 0x55,
- 0x78, 0x01, 0x00, 0x00,
+ 0x05, 0x58, 0x9d, 0x9c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39,
+ 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x23,
+ 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xbf, 0x38, 0x3f, 0xaf, 0x48, 0x37,
+ 0x33, 0x1f, 0x4c, 0xeb, 0x57, 0x20, 0x42, 0x19, 0x14, 0x02, 0xc5, 0x49, 0x6c, 0xe0, 0x10, 0x36,
+ 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x8a, 0x3e, 0x5c, 0x30, 0x83, 0x01, 0x00, 0x00,
}
func (m *UserIdentifier) Marshal() (dAtA []byte, err error) {
diff --git a/x/identity/types/messages_controller_account_test.go b/x/identity/types/messages_controller_account_test.go
index 9c344e106..e74fb8219 100644
--- a/x/identity/types/messages_controller_account_test.go
+++ b/x/identity/types/messages_controller_account_test.go
@@ -4,7 +4,7 @@ import (
"testing"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
- "sonr.io/core/testutil/sample"
+ "github.com/sonr-io/sonr/testutil/sample"
"github.com/stretchr/testify/require"
)
diff --git a/x/identity/types/msg_identity.go b/x/identity/types/msg_identity.go
index e2cfea273..eb04bf853 100644
--- a/x/identity/types/msg_identity.go
+++ b/x/identity/types/msg_identity.go
@@ -3,7 +3,7 @@ package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
- "sonr.io/core/internal/crypto"
+ "github.com/sonr-io/sonr/internal/crypto"
)
const TypeMsgRegisterIdentity = "register_identity"
diff --git a/x/identity/types/params.pb.go b/x/identity/types/params.pb.go
index 5a7cfc031..14697aa3c 100644
--- a/x/identity/types/params.pb.go
+++ b/x/identity/types/params.pb.go
@@ -114,28 +114,28 @@ func init() {
func init() { proto.RegisterFile("core/identity/params.proto", fileDescriptor_2b3a47d8d2dc969e) }
var fileDescriptor_2b3a47d8d2dc969e = []byte{
- // 326 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0xd1, 0xbf, 0x4b, 0xc3, 0x40,
- 0x14, 0xc0, 0xf1, 0x5c, 0x7f, 0x41, 0x0f, 0x14, 0x89, 0xd5, 0xc6, 0x82, 0x31, 0x38, 0x65, 0x6a,
- 0x40, 0x11, 0xa5, 0x4e, 0x56, 0x17, 0x07, 0x45, 0x32, 0xba, 0x84, 0x6b, 0xee, 0x51, 0x0f, 0xbc,
- 0xbc, 0x70, 0x77, 0xd5, 0xf6, 0xbf, 0x70, 0x74, 0xf4, 0xcf, 0x71, 0xec, 0x24, 0x8e, 0xd2, 0xfe,
- 0x23, 0xd2, 0x6b, 0x12, 0x45, 0xdc, 0x02, 0x9f, 0x7c, 0x79, 0xbc, 0x7b, 0xb4, 0x97, 0xa2, 0x82,
- 0x48, 0x70, 0xc8, 0x8c, 0x30, 0xb3, 0x28, 0x67, 0x8a, 0x49, 0xdd, 0xcf, 0x15, 0x1a, 0x74, 0x37,
- 0x56, 0xd6, 0x2f, 0xad, 0xd7, 0x19, 0xe3, 0x18, 0xad, 0x44, 0xab, 0xaf, 0xf5, 0x4f, 0x87, 0x1f,
- 0x35, 0xda, 0xba, 0xb3, 0x95, 0x7b, 0x42, 0xbb, 0x2c, 0x4d, 0x71, 0x92, 0x99, 0x84, 0x0b, 0x9e,
- 0x48, 0x30, 0x0f, 0xc8, 0x93, 0x8c, 0x49, 0xf0, 0x48, 0x40, 0xc2, 0x76, 0xdc, 0x29, 0xf8, 0x4a,
- 0xf0, 0x1b, 0x8b, 0xb7, 0x4c, 0x82, 0x7b, 0x4e, 0x7b, 0xff, 0x64, 0x29, 0x66, 0x06, 0xa6, 0xc6,
- 0xab, 0xd9, 0xb2, 0xfb, 0xb7, 0xbc, 0x5c, 0xb3, 0x3b, 0xa0, 0x7b, 0x2c, 0xad, 0x6a, 0x9d, 0xe2,
- 0x13, 0xa8, 0x59, 0xa2, 0xe0, 0x99, 0x29, 0xee, 0xd5, 0x03, 0x12, 0xd6, 0x6d, 0x5b, 0xc4, 0x85,
- 0xc7, 0x96, 0xdd, 0x90, 0x6e, 0xad, 0x06, 0x8e, 0x98, 0x86, 0x6a, 0x5c, 0xc3, 0x8e, 0xdb, 0xe4,
- 0x82, 0x0f, 0x99, 0x86, 0x72, 0xca, 0x19, 0xf5, 0x24, 0x9b, 0x0a, 0x39, 0x91, 0x49, 0xf9, 0x1c,
- 0x09, 0x7b, 0x14, 0x4c, 0x83, 0xf6, 0x9a, 0x01, 0x09, 0x9b, 0xf1, 0x6e, 0xe1, 0xd7, 0x05, 0x5f,
- 0xac, 0xd5, 0x3d, 0xa2, 0x3b, 0x7a, 0x92, 0xe7, 0xa8, 0x0c, 0xf0, 0x5f, 0xeb, 0x69, 0xaf, 0x15,
- 0xd4, 0xc3, 0x76, 0xbc, 0x5d, 0x61, 0xb5, 0x99, 0x1e, 0x34, 0x5e, 0xdf, 0x0e, 0x9c, 0xe1, 0xe9,
- 0xfb, 0xc2, 0x27, 0xf3, 0x85, 0x4f, 0xbe, 0x16, 0x3e, 0x79, 0x59, 0xfa, 0xce, 0x7c, 0xe9, 0x3b,
- 0x9f, 0x4b, 0xdf, 0xb9, 0xdf, 0xd7, 0x98, 0xa9, 0xbe, 0xc0, 0xc8, 0xde, 0x6e, 0xfa, 0x73, 0x3d,
- 0x33, 0xcb, 0x41, 0x8f, 0x5a, 0xf6, 0x30, 0xc7, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa3, 0x31,
- 0xb6, 0x97, 0xdb, 0x01, 0x00, 0x00,
+ // 334 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0xd1, 0x3f, 0x4b, 0xc3, 0x40,
+ 0x18, 0x06, 0xf0, 0xa4, 0xff, 0xa0, 0x07, 0x8a, 0xc4, 0x6a, 0x63, 0x87, 0x18, 0x9c, 0xb2, 0xd8,
+ 0x80, 0x22, 0x48, 0x9d, 0xac, 0x2e, 0x0e, 0x8a, 0x64, 0x74, 0x09, 0xd7, 0xbb, 0x97, 0xf6, 0xc0,
+ 0xcb, 0x1b, 0xee, 0x2e, 0xda, 0x7e, 0x0b, 0x47, 0x47, 0x3f, 0x8e, 0x63, 0x27, 0x71, 0x94, 0xf6,
+ 0x8b, 0x48, 0xaf, 0x69, 0x14, 0x71, 0xba, 0x83, 0xdf, 0x3d, 0x3c, 0xbc, 0xf7, 0x92, 0x1e, 0x43,
+ 0x05, 0xb1, 0xe0, 0x90, 0x19, 0x61, 0x66, 0x71, 0x4e, 0x15, 0x95, 0xba, 0x9f, 0x2b, 0x34, 0xe8,
+ 0x6d, 0xad, 0xac, 0xbf, 0xb1, 0x5e, 0x67, 0x8c, 0x63, 0xb4, 0x12, 0xaf, 0x6e, 0xeb, 0x47, 0x47,
+ 0x1f, 0x35, 0xd2, 0xba, 0xb7, 0x29, 0xef, 0x8c, 0x74, 0x29, 0x63, 0x58, 0x64, 0x26, 0xe5, 0x82,
+ 0xa7, 0x12, 0xcc, 0x04, 0x79, 0x9a, 0x51, 0x09, 0xbe, 0x1b, 0xba, 0x51, 0x3b, 0xe9, 0x94, 0x7c,
+ 0x2d, 0xf8, 0xad, 0xc5, 0x3b, 0x2a, 0xc1, 0xbb, 0x20, 0xbd, 0x7f, 0x62, 0x0c, 0x33, 0x03, 0x53,
+ 0xe3, 0xd7, 0x6c, 0xb2, 0xfb, 0x37, 0x79, 0xb5, 0x66, 0x6f, 0x40, 0x0e, 0x28, 0xab, 0xd2, 0x9a,
+ 0xe1, 0x13, 0xa8, 0x59, 0xaa, 0xe0, 0x99, 0x2a, 0xee, 0xd7, 0x43, 0x37, 0xaa, 0xdb, 0x6c, 0x19,
+ 0x2e, 0x3d, 0xb1, 0xec, 0x45, 0x64, 0x67, 0x55, 0x38, 0xa2, 0x1a, 0xaa, 0xba, 0x86, 0xad, 0xdb,
+ 0xe6, 0x82, 0x0f, 0xa9, 0x86, 0x4d, 0xcb, 0x39, 0xf1, 0x25, 0x9d, 0x0a, 0x59, 0xc8, 0x74, 0xf3,
+ 0x1d, 0x29, 0x7d, 0x14, 0x54, 0x83, 0xf6, 0x9b, 0xa1, 0x1b, 0x35, 0x93, 0xfd, 0xd2, 0x6f, 0x4a,
+ 0xbe, 0x5c, 0xab, 0x77, 0x42, 0xf6, 0x74, 0x91, 0xe7, 0xa8, 0x0c, 0xf0, 0x5f, 0xe3, 0x69, 0xbf,
+ 0x15, 0xd6, 0xa3, 0x76, 0xb2, 0x5b, 0x61, 0x35, 0x99, 0x1e, 0x34, 0x5e, 0xdf, 0x0e, 0x9d, 0xe1,
+ 0xf0, 0x7d, 0x11, 0xb8, 0xf3, 0x45, 0xe0, 0x7e, 0x2d, 0x02, 0xf7, 0x65, 0x19, 0x38, 0xf3, 0x65,
+ 0xe0, 0x7c, 0x2e, 0x03, 0xe7, 0x21, 0x1a, 0x0b, 0x33, 0x29, 0x46, 0x7d, 0x86, 0x32, 0xd6, 0x98,
+ 0xa9, 0x63, 0x81, 0xf6, 0x8c, 0xa7, 0x3f, 0x8b, 0x34, 0xb3, 0x1c, 0xf4, 0xa8, 0x65, 0x77, 0x74,
+ 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x21, 0x8d, 0x9a, 0x9f, 0xe6, 0x01, 0x00, 0x00,
}
func (m *Params) Marshal() (dAtA []byte, err error) {
diff --git a/x/identity/types/query.pb.go b/x/identity/types/query.pb.go
index ae446ee0b..6332570f5 100644
--- a/x/identity/types/query.pb.go
+++ b/x/identity/types/query.pb.go
@@ -808,61 +808,62 @@ func init() {
func init() { proto.RegisterFile("core/identity/query.proto", fileDescriptor_55ac06fdf68c11fd) }
var fileDescriptor_55ac06fdf68c11fd = []byte{
- // 858 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0x4d, 0x6f, 0xd3, 0x48,
- 0x18, 0xc7, 0xe3, 0x76, 0xdb, 0x6d, 0xa7, 0xda, 0x2a, 0x9d, 0x4d, 0xd3, 0xae, 0x9b, 0x7a, 0xd3,
- 0xd1, 0x6e, 0x81, 0x82, 0x3c, 0xb4, 0x45, 0xe2, 0xc2, 0x25, 0x21, 0xa2, 0x02, 0x84, 0x28, 0x11,
- 0x27, 0x24, 0x84, 0x26, 0xf6, 0x28, 0x0c, 0xb8, 0x9e, 0xd4, 0x76, 0xda, 0x46, 0xa1, 0x17, 0x8e,
- 0x48, 0x48, 0x48, 0x1c, 0xb8, 0xf1, 0x01, 0xf8, 0x18, 0x9c, 0x7a, 0xac, 0xc4, 0x85, 0x13, 0x42,
- 0x2d, 0x1f, 0x04, 0x79, 0x3c, 0x8e, 0xe3, 0xd8, 0x4e, 0x53, 0xe8, 0x29, 0x9e, 0x99, 0xe7, 0xe5,
- 0xf7, 0xcc, 0x33, 0xf3, 0x9f, 0x80, 0x7f, 0x0c, 0xee, 0x50, 0xcc, 0x4c, 0x6a, 0x7b, 0xcc, 0xeb,
- 0xe0, 0xdd, 0x36, 0x75, 0x3a, 0x7a, 0xcb, 0xe1, 0x1e, 0x87, 0x7f, 0xf9, 0x4b, 0x7a, 0xb8, 0xa4,
- 0x2e, 0xc5, 0x2d, 0x89, 0x61, 0xf0, 0xb6, 0xed, 0x05, 0xb6, 0xea, 0x42, 0x7c, 0xd1, 0x64, 0xa6,
- 0x5c, 0x50, 0xe3, 0x0b, 0x2d, 0xe2, 0x90, 0x1d, 0x57, 0xae, 0xad, 0x19, 0xdc, 0xdd, 0xe1, 0x2e,
- 0x6e, 0x10, 0x97, 0x06, 0x99, 0xf1, 0xde, 0x7a, 0x83, 0x7a, 0x64, 0x1d, 0xb7, 0x48, 0x93, 0xd9,
- 0xc4, 0x63, 0xdc, 0x96, 0xb6, 0x85, 0x26, 0x6f, 0x72, 0xf1, 0x89, 0xfd, 0x2f, 0x39, 0x5b, 0x6a,
- 0x72, 0xde, 0xb4, 0x28, 0x26, 0x2d, 0x86, 0x89, 0x6d, 0x73, 0x4f, 0xb8, 0xc8, 0xf8, 0xa8, 0x00,
- 0xe0, 0x23, 0x3f, 0xea, 0xb6, 0x48, 0x5a, 0xa7, 0xbb, 0x6d, 0xea, 0x7a, 0xe8, 0x1e, 0xf8, 0x3b,
- 0x36, 0xeb, 0xb6, 0xb8, 0xed, 0x52, 0xb8, 0x09, 0x26, 0x03, 0xb8, 0x45, 0xa5, 0xac, 0x5c, 0x9e,
- 0xd9, 0x98, 0xd7, 0x63, 0xe5, 0xeb, 0x81, 0x79, 0xf5, 0x8f, 0xa3, 0x6f, 0xff, 0xe6, 0xea, 0xd2,
- 0x14, 0xe9, 0x40, 0x15, 0xb1, 0xb6, 0xa8, 0x57, 0xbb, 0x5b, 0xab, 0x71, 0xa3, 0xbd, 0x43, 0x6d,
- 0x4f, 0x66, 0x82, 0x79, 0x30, 0x6e, 0x32, 0x53, 0xc4, 0x9b, 0xae, 0xfb, 0x9f, 0x88, 0x80, 0xa5,
- 0x54, 0x7b, 0xc9, 0x50, 0x05, 0x33, 0x66, 0x34, 0x2d, 0x41, 0xd4, 0x01, 0x90, 0x3e, 0x47, 0x49,
- 0xd3, 0xef, 0x84, 0x4c, 0x89, 0x54, 0xb1, 0xac, 0x14, 0xa4, 0x3b, 0x00, 0x44, 0x5b, 0x2b, 0x13,
- 0xac, 0xea, 0x41, 0x1f, 0x74, 0xbf, 0x0f, 0x7a, 0x70, 0x02, 0x64, 0x1f, 0xf4, 0x6d, 0xd2, 0xa4,
- 0xd2, 0xb7, 0xde, 0xe7, 0x89, 0x3e, 0x29, 0xb2, 0x92, 0xc1, 0x34, 0x59, 0x95, 0x8c, 0x9f, 0xbb,
- 0x12, 0xb8, 0x15, 0x63, 0x1d, 0x13, 0xac, 0x97, 0xce, 0x64, 0x0d, 0x00, 0x62, 0xb0, 0x37, 0x40,
- 0x49, 0xb0, 0xd6, 0x98, 0x59, 0xed, 0x54, 0x2c, 0x97, 0xdf, 0xb7, 0xf9, 0xbe, 0x5d, 0x09, 0x4f,
- 0x04, 0x2c, 0x80, 0x09, 0x62, 0x31, 0xe2, 0xca, 0x4e, 0x05, 0x03, 0x64, 0x80, 0xe5, 0x0c, 0xaf,
- 0xbe, 0x1a, 0x99, 0xf9, 0x0b, 0xdd, 0x8a, 0x9c, 0xd0, 0x46, 0xaf, 0x5b, 0x8c, 0xb8, 0x95, 0x3d,
- 0xc2, 0x2c, 0xd2, 0xb0, 0xe8, 0x70, 0xb0, 0x37, 0xd1, 0xde, 0xc7, 0x9d, 0x24, 0x57, 0x09, 0x4c,
- 0x93, 0x70, 0x52, 0x78, 0x4e, 0xd5, 0xa3, 0x09, 0xf8, 0x00, 0xcc, 0xd1, 0x03, 0xe6, 0x7a, 0xcc,
- 0x6e, 0x3e, 0x33, 0x43, 0xf6, 0xb1, 0x91, 0xd8, 0x95, 0x7a, 0x3e, 0x74, 0xed, 0x15, 0xa0, 0x83,
- 0x62, 0xb4, 0x4b, 0x0f, 0xf7, 0x6d, 0xea, 0xf4, 0xc1, 0x73, 0x7f, 0x1c, 0xc2, 0x8b, 0x01, 0x7a,
- 0x0a, 0x16, 0x12, 0xf6, 0x17, 0xb8, 0x9f, 0xb7, 0x40, 0x39, 0xbc, 0x60, 0xb7, 0xb9, 0xed, 0x39,
- 0xdc, 0xb2, 0xa8, 0x53, 0x09, 0xa4, 0x2a, 0x04, 0x5b, 0x04, 0x7f, 0x12, 0xd3, 0x74, 0xa8, 0x1b,
- 0xee, 0x6b, 0x38, 0x44, 0x1d, 0xb0, 0x32, 0xc4, 0x5b, 0x62, 0x3e, 0x06, 0x73, 0xc6, 0xe0, 0xa2,
- 0x84, 0x2d, 0x0f, 0xc0, 0x26, 0x82, 0x48, 0xe4, 0x64, 0x00, 0xf4, 0x42, 0x82, 0x57, 0x2c, 0x2b,
- 0x13, 0xfc, 0xa2, 0x2e, 0xef, 0x67, 0x45, 0xd6, 0x99, 0x9e, 0x6c, 0x78, 0x9d, 0xe3, 0xbf, 0x55,
- 0xe7, 0x85, 0x5d, 0xea, 0x8d, 0xa3, 0x29, 0x30, 0x21, 0x8a, 0x80, 0x36, 0x98, 0x0c, 0xc4, 0x19,
- 0xae, 0x0c, 0x70, 0x25, 0xd5, 0x5f, 0x45, 0xc3, 0x4c, 0x82, 0x34, 0x68, 0xf9, 0xf5, 0x97, 0x1f,
- 0xef, 0xc7, 0x16, 0xe0, 0x3c, 0x16, 0x8f, 0x57, 0xa0, 0xf5, 0xbd, 0x37, 0x0c, 0xbe, 0x02, 0x33,
- 0x7d, 0xa7, 0x10, 0x5e, 0x49, 0x8b, 0x98, 0xfa, 0x20, 0xa8, 0x6b, 0xa3, 0x98, 0x4a, 0x88, 0xa2,
- 0x80, 0xc8, 0xc3, 0x59, 0x2c, 0x5f, 0x50, 0xdc, 0x35, 0x99, 0x79, 0x08, 0x3b, 0x60, 0xb6, 0xcf,
- 0xbc, 0x62, 0x59, 0xe9, 0x00, 0xa9, 0xf2, 0x9f, 0x0e, 0x90, 0x2e, 0xe1, 0x28, 0x2f, 0x00, 0x00,
- 0x9c, 0x0a, 0x01, 0x60, 0x17, 0x80, 0xe8, 0xda, 0xc2, 0xff, 0xd3, 0x62, 0x25, 0x64, 0x40, 0x5d,
- 0x3d, 0xcb, 0x4c, 0xa6, 0xd3, 0x44, 0xba, 0x45, 0x58, 0xec, 0xd5, 0x2b, 0x04, 0x03, 0x77, 0xc5,
- 0xcf, 0x21, 0x7c, 0xab, 0x80, 0xfc, 0xa0, 0x14, 0xc3, 0xab, 0x99, 0xc1, 0x93, 0x32, 0xaf, 0x5e,
- 0x1b, 0xcd, 0x38, 0x93, 0x47, 0xa8, 0x2f, 0xee, 0x8a, 0x1f, 0xc1, 0x33, 0x1b, 0x17, 0xe0, 0xac,
- 0x46, 0xa4, 0x28, 0x7b, 0x56, 0x23, 0xd2, 0xf4, 0x1c, 0xfd, 0x27, 0x48, 0x34, 0x58, 0x4a, 0x27,
- 0xc1, 0xc6, 0x73, 0x6a, 0xbc, 0x84, 0x1f, 0x15, 0x30, 0x97, 0xb8, 0x87, 0x10, 0x67, 0x9c, 0xb8,
- 0x2c, 0x8d, 0x51, 0xaf, 0x8f, 0xee, 0x20, 0xf1, 0x56, 0x05, 0x5e, 0x19, 0x6a, 0x3d, 0xbc, 0xe8,
- 0xd6, 0xfb, 0x90, 0x81, 0xb6, 0x1e, 0xc2, 0x0f, 0x0a, 0x28, 0x24, 0xa2, 0xf8, 0xe7, 0x17, 0x67,
- 0x1c, 0xca, 0xf3, 0x31, 0x0e, 0xd3, 0x32, 0x54, 0x12, 0x8c, 0x45, 0x58, 0x48, 0x63, 0xac, 0xde,
- 0x3c, 0x3a, 0xd1, 0x94, 0xe3, 0x13, 0x4d, 0xf9, 0x7e, 0xa2, 0x29, 0xef, 0x4e, 0xb5, 0xdc, 0xf1,
- 0xa9, 0x96, 0xfb, 0x7a, 0xaa, 0xe5, 0x9e, 0x2c, 0xbb, 0xdc, 0x76, 0x74, 0xc6, 0x03, 0xb7, 0x83,
- 0xe8, 0x7f, 0xac, 0xd7, 0x69, 0x51, 0xb7, 0x31, 0x29, 0xfe, 0x67, 0x6e, 0xfe, 0x0c, 0x00, 0x00,
- 0xff, 0xff, 0x13, 0x03, 0x83, 0xc9, 0x45, 0x0b, 0x00, 0x00,
+ // 869 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0x4d, 0x6f, 0xdb, 0x36,
+ 0x18, 0xc7, 0xad, 0x64, 0xc9, 0x12, 0x06, 0x0b, 0x1c, 0xce, 0x71, 0x32, 0xc5, 0xd1, 0x1c, 0x62,
+ 0xcb, 0xb2, 0x6c, 0x13, 0x97, 0x64, 0xc7, 0x5d, 0xec, 0x19, 0x0b, 0xb6, 0x61, 0x58, 0x66, 0xf4,
+ 0x54, 0xa0, 0x28, 0x68, 0x89, 0x50, 0xd8, 0xca, 0xa2, 0x23, 0xc9, 0x49, 0x0c, 0x37, 0x97, 0x1e,
+ 0x0b, 0x14, 0x28, 0xd0, 0x43, 0x6f, 0xfd, 0x00, 0xfd, 0x18, 0x3d, 0xe5, 0x18, 0xa0, 0x97, 0x9e,
+ 0x8a, 0x22, 0xe9, 0x07, 0x29, 0x44, 0x51, 0x96, 0x65, 0x49, 0x8e, 0xd3, 0xe6, 0x24, 0x89, 0x7c,
+ 0x5e, 0x7e, 0x0f, 0x1f, 0xf2, 0x4f, 0x81, 0x6f, 0x0c, 0xee, 0x52, 0xcc, 0x4c, 0xea, 0xf8, 0xcc,
+ 0xef, 0xe1, 0xa3, 0x2e, 0x75, 0x7b, 0x7a, 0xc7, 0xe5, 0x3e, 0x87, 0x5f, 0x05, 0x53, 0x7a, 0x34,
+ 0xa5, 0xae, 0x25, 0x2d, 0x89, 0x61, 0xf0, 0xae, 0xe3, 0x87, 0xb6, 0xea, 0x4a, 0x72, 0xd2, 0x64,
+ 0xa6, 0x9c, 0x50, 0x93, 0x13, 0x1d, 0xe2, 0x92, 0xb6, 0x27, 0xe7, 0xb6, 0x0d, 0xee, 0xb5, 0xb9,
+ 0x87, 0x5b, 0xc4, 0xa3, 0x61, 0x66, 0x7c, 0xbc, 0xd3, 0xa2, 0x3e, 0xd9, 0xc1, 0x1d, 0x62, 0x31,
+ 0x87, 0xf8, 0x8c, 0x3b, 0xd2, 0xb6, 0x64, 0x71, 0x8b, 0x8b, 0x57, 0x1c, 0xbc, 0xc9, 0xd1, 0x8a,
+ 0xc5, 0xb9, 0x65, 0x53, 0x4c, 0x3a, 0x0c, 0x13, 0xc7, 0xe1, 0xbe, 0x70, 0x91, 0xf1, 0x51, 0x09,
+ 0xc0, 0xff, 0x83, 0xa8, 0x07, 0x22, 0x69, 0x93, 0x1e, 0x75, 0xa9, 0xe7, 0xa3, 0xbf, 0xc1, 0xd7,
+ 0x89, 0x51, 0xaf, 0xc3, 0x1d, 0x8f, 0xc2, 0x3d, 0x30, 0x1b, 0xc2, 0xad, 0x2a, 0x55, 0x65, 0x6b,
+ 0x61, 0x77, 0x59, 0x4f, 0x94, 0xaf, 0x87, 0xe6, 0xf5, 0x2f, 0xce, 0xdf, 0x7d, 0x5b, 0x68, 0x4a,
+ 0x53, 0xa4, 0x03, 0x55, 0xc4, 0xda, 0xa7, 0x7e, 0xe3, 0xaf, 0x46, 0x83, 0x1b, 0xdd, 0x36, 0x75,
+ 0x7c, 0x99, 0x09, 0x16, 0xc1, 0xb4, 0xc9, 0x4c, 0x11, 0x6f, 0xbe, 0x19, 0xbc, 0x22, 0x02, 0xd6,
+ 0x32, 0xed, 0x25, 0x43, 0x1d, 0x2c, 0x98, 0xf1, 0xb0, 0x04, 0x51, 0x47, 0x40, 0x86, 0x1c, 0x25,
+ 0xcd, 0xb0, 0x13, 0x32, 0x25, 0x52, 0xcd, 0xb6, 0x33, 0x90, 0xfe, 0x04, 0x20, 0x5e, 0x5a, 0x99,
+ 0x60, 0x53, 0x0f, 0xfb, 0xa0, 0x07, 0x7d, 0xd0, 0xc3, 0x1d, 0x20, 0xfb, 0xa0, 0x1f, 0x10, 0x8b,
+ 0x4a, 0xdf, 0xe6, 0x90, 0x27, 0x7a, 0xa5, 0xc8, 0x4a, 0x46, 0xd3, 0xe4, 0x55, 0x32, 0x7d, 0xe3,
+ 0x4a, 0xe0, 0x7e, 0x82, 0x75, 0x4a, 0xb0, 0xfe, 0x70, 0x2d, 0x6b, 0x08, 0x90, 0x80, 0xfd, 0x0d,
+ 0x54, 0x04, 0x6b, 0x83, 0x99, 0xf5, 0x5e, 0xcd, 0xf6, 0xf8, 0x3f, 0x0e, 0x3f, 0x71, 0x6a, 0xd1,
+ 0x8e, 0x80, 0x25, 0x30, 0x43, 0x6c, 0x46, 0x3c, 0xd9, 0xa9, 0xf0, 0x03, 0x19, 0x60, 0x3d, 0xc7,
+ 0x6b, 0xa8, 0x46, 0x66, 0x7e, 0x42, 0xb7, 0x62, 0x27, 0xb4, 0x3b, 0xe8, 0x16, 0x23, 0x5e, 0xed,
+ 0x98, 0x30, 0x9b, 0xb4, 0x6c, 0x3a, 0x1e, 0xec, 0x49, 0xbc, 0xf6, 0x49, 0x27, 0xc9, 0x55, 0x01,
+ 0xf3, 0x24, 0x1a, 0x14, 0x9e, 0x73, 0xcd, 0x78, 0x00, 0xfe, 0x0b, 0x96, 0xe8, 0x29, 0xf3, 0x7c,
+ 0xe6, 0x58, 0xf7, 0xcd, 0x88, 0x7d, 0x6a, 0x22, 0x76, 0xa5, 0x59, 0x8c, 0x5c, 0x07, 0x05, 0xe8,
+ 0xa0, 0x1c, 0xaf, 0xd2, 0x7f, 0x27, 0x0e, 0x75, 0x87, 0xe0, 0x79, 0xf0, 0x1d, 0xc1, 0x8b, 0x0f,
+ 0x74, 0x0f, 0xac, 0xa4, 0xec, 0x6f, 0x71, 0x3d, 0x7f, 0x07, 0xd5, 0xe8, 0x80, 0xfd, 0xc1, 0x1d,
+ 0xdf, 0xe5, 0xb6, 0x4d, 0xdd, 0x5a, 0x28, 0x55, 0x11, 0xd8, 0x2a, 0xf8, 0x92, 0x98, 0xa6, 0x4b,
+ 0xbd, 0x68, 0x5d, 0xa3, 0x4f, 0xd4, 0x03, 0x1b, 0x63, 0xbc, 0x25, 0xe6, 0x1d, 0xb0, 0x64, 0x8c,
+ 0x4e, 0x4a, 0xd8, 0xea, 0x08, 0x6c, 0x2a, 0x88, 0x44, 0x4e, 0x07, 0x40, 0x0f, 0x24, 0x78, 0xcd,
+ 0xb6, 0x73, 0xc1, 0x6f, 0xeb, 0xf0, 0xbe, 0x56, 0x64, 0x9d, 0xd9, 0xc9, 0xc6, 0xd7, 0x39, 0xfd,
+ 0x59, 0x75, 0xde, 0xda, 0xa1, 0xde, 0x3d, 0x9f, 0x03, 0x33, 0xa2, 0x08, 0xe8, 0x80, 0xd9, 0x50,
+ 0x9c, 0xe1, 0xc6, 0x08, 0x57, 0x5a, 0xfd, 0x55, 0x34, 0xce, 0x24, 0x4c, 0x83, 0xd6, 0x1f, 0xbf,
+ 0xf9, 0xf0, 0x7c, 0x6a, 0x05, 0x2e, 0x63, 0x71, 0x79, 0x85, 0x5a, 0x3f, 0xb8, 0xc3, 0xe0, 0x23,
+ 0xb0, 0x30, 0xb4, 0x0b, 0xe1, 0x8f, 0x59, 0x11, 0x33, 0x2f, 0x04, 0x75, 0x7b, 0x12, 0x53, 0x09,
+ 0x51, 0x16, 0x10, 0x45, 0xb8, 0x88, 0xe5, 0x0d, 0x8a, 0xfb, 0x26, 0x33, 0xcf, 0x60, 0x0f, 0x2c,
+ 0x0e, 0x99, 0xd7, 0x6c, 0x3b, 0x1b, 0x20, 0x53, 0xfe, 0xb3, 0x01, 0xb2, 0x25, 0x1c, 0x15, 0x05,
+ 0x00, 0x80, 0x73, 0x11, 0x00, 0xec, 0x03, 0x10, 0x1f, 0x5b, 0xf8, 0x7d, 0x56, 0xac, 0x94, 0x0c,
+ 0xa8, 0x9b, 0xd7, 0x99, 0xc9, 0x74, 0x9a, 0x48, 0xb7, 0x0a, 0xcb, 0x83, 0x7a, 0x85, 0x60, 0xe0,
+ 0xbe, 0x78, 0x9c, 0xc1, 0xa7, 0x0a, 0x28, 0x8e, 0x4a, 0x31, 0xfc, 0x29, 0x37, 0x78, 0x5a, 0xe6,
+ 0xd5, 0x9f, 0x27, 0x33, 0xce, 0xe5, 0x11, 0xea, 0x8b, 0xfb, 0xe2, 0x21, 0x78, 0x16, 0x93, 0x02,
+ 0x9c, 0xd7, 0x88, 0x0c, 0x65, 0xcf, 0x6b, 0x44, 0x96, 0x9e, 0xa3, 0xef, 0x04, 0x89, 0x06, 0x2b,
+ 0xd9, 0x24, 0xd8, 0x38, 0xa4, 0xc6, 0x43, 0xf8, 0x52, 0x01, 0x4b, 0xa9, 0x73, 0x08, 0x71, 0xce,
+ 0x8e, 0xcb, 0xd3, 0x18, 0xf5, 0xd7, 0xc9, 0x1d, 0x24, 0xde, 0xa6, 0xc0, 0xab, 0x42, 0x6d, 0x80,
+ 0x17, 0x9f, 0xfa, 0x00, 0x32, 0xd4, 0xd6, 0x33, 0xf8, 0x42, 0x01, 0xa5, 0x54, 0x94, 0x60, 0xff,
+ 0xe2, 0x9c, 0x4d, 0x79, 0x33, 0xc6, 0x71, 0x5a, 0x86, 0x2a, 0x82, 0xb1, 0x0c, 0x4b, 0x59, 0x8c,
+ 0xf5, 0xfa, 0xf9, 0xa5, 0xa6, 0x5c, 0x5c, 0x6a, 0xca, 0xfb, 0x4b, 0x4d, 0x79, 0x76, 0xa5, 0x15,
+ 0x2e, 0xae, 0xb4, 0xc2, 0xdb, 0x2b, 0xad, 0x70, 0x77, 0xcb, 0x62, 0xfe, 0x61, 0xb7, 0xa5, 0x1b,
+ 0xbc, 0x8d, 0x3d, 0xee, 0xb8, 0xbf, 0x30, 0x2e, 0x9e, 0xf8, 0x34, 0xfe, 0xa5, 0xf5, 0x7b, 0x1d,
+ 0xea, 0xb5, 0x66, 0xc5, 0x2f, 0xe7, 0xde, 0xc7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xce, 0xc5, 0x1d,
+ 0x88, 0x50, 0x0b, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/x/identity/types/tx.pb.go b/x/identity/types/tx.pb.go
index 0da75e2b1..4ddb681a0 100644
--- a/x/identity/types/tx.pb.go
+++ b/x/identity/types/tx.pb.go
@@ -488,39 +488,40 @@ func init() {
func init() { proto.RegisterFile("core/identity/tx.proto", fileDescriptor_893033e8c7493d64) }
var fileDescriptor_893033e8c7493d64 = []byte{
- // 511 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4d, 0x8b, 0xd3, 0x4e,
- 0x18, 0xef, 0xa4, 0xfd, 0xff, 0x77, 0x33, 0xab, 0x8b, 0x44, 0xb0, 0x21, 0xd5, 0x10, 0x82, 0x48,
- 0xf5, 0x90, 0xe2, 0x7a, 0x10, 0x04, 0x0f, 0xba, 0xbd, 0x14, 0x29, 0xc8, 0x80, 0x17, 0x2f, 0x6b,
- 0x3a, 0x33, 0xd4, 0x81, 0x98, 0x09, 0x33, 0x13, 0xbb, 0xfd, 0x06, 0x82, 0x17, 0x4f, 0x7e, 0x26,
- 0x8f, 0x7b, 0xf0, 0xe0, 0x51, 0xda, 0x2f, 0x22, 0x99, 0x74, 0x6a, 0x5f, 0x32, 0xd4, 0x65, 0x8f,
- 0xcf, 0x93, 0x5f, 0x9e, 0xdf, 0xcb, 0xcc, 0x3c, 0xf0, 0x1e, 0xe6, 0x82, 0x0e, 0x18, 0xa1, 0xb9,
- 0x62, 0x6a, 0x3e, 0x50, 0x97, 0x49, 0x21, 0xb8, 0xe2, 0xde, 0xed, 0xaa, 0x9f, 0x98, 0x7e, 0xd0,
- 0xdb, 0x86, 0xa5, 0x18, 0xf3, 0x32, 0x57, 0x35, 0x36, 0xe8, 0x6e, 0x7f, 0x24, 0x8c, 0xd4, 0x1f,
- 0xe2, 0xaf, 0x00, 0xde, 0x1d, 0xcb, 0x29, 0xa2, 0x53, 0x26, 0x15, 0x15, 0xa3, 0x15, 0xc2, 0xf3,
- 0xe1, 0x11, 0x16, 0x34, 0x55, 0x5c, 0xf8, 0x20, 0x02, 0x7d, 0x17, 0x99, 0xd2, 0x7b, 0x09, 0x6f,
- 0x11, 0x46, 0x2e, 0x08, 0xc7, 0xe5, 0x27, 0x9a, 0x2b, 0xdf, 0x89, 0x40, 0xff, 0xe4, 0x2c, 0x48,
- 0xb6, 0xd4, 0x24, 0xc3, 0xd1, 0x70, 0xb8, 0x42, 0xa0, 0x13, 0xc2, 0x88, 0x29, 0xbc, 0x1e, 0x74,
- 0x67, 0x69, 0x96, 0x51, 0x75, 0xc1, 0x88, 0xdf, 0x8e, 0x40, 0xbf, 0x83, 0x8e, 0xeb, 0xc6, 0x88,
- 0xc4, 0x9f, 0x61, 0xaf, 0x41, 0x0c, 0xa2, 0xb2, 0xe0, 0xb9, 0xa4, 0x95, 0x28, 0x59, 0x62, 0x4c,
- 0xa5, 0xd4, 0xa2, 0x8e, 0x91, 0x29, 0x6f, 0x28, 0x2a, 0xfe, 0x0e, 0x60, 0x30, 0x96, 0xd3, 0xf3,
- 0xca, 0x22, 0x3d, 0xe7, 0xb9, 0x12, 0x3c, 0xcb, 0xa8, 0x78, 0x55, 0x67, 0x58, 0xf1, 0xa6, 0x84,
- 0x08, 0xc3, 0xeb, 0x22, 0x53, 0x7a, 0xf7, 0xa1, 0x5b, 0x94, 0x93, 0x8c, 0xe1, 0x37, 0x74, 0xae,
- 0xdd, 0xb8, 0xe8, 0x6f, 0xc3, 0x7b, 0x04, 0x4f, 0xd3, 0x52, 0x7d, 0xac, 0xd8, 0x71, 0x95, 0x9d,
- 0xf4, 0x3b, 0x51, 0xbb, 0xef, 0xa2, 0x9d, 0x6e, 0x35, 0xbf, 0x8e, 0x40, 0xfa, 0xff, 0x69, 0x80,
- 0x29, 0xe3, 0x02, 0xc6, 0x76, 0x5d, 0xeb, 0x5c, 0x4e, 0xa1, 0xc3, 0x88, 0x96, 0xd6, 0x41, 0x0e,
- 0x23, 0xde, 0x0b, 0x78, 0xb4, 0x3a, 0xfe, 0x55, 0x10, 0xd1, 0x4e, 0x10, 0xfb, 0xa3, 0xcc, 0x0f,
- 0xf1, 0x97, 0x3a, 0x8a, 0x77, 0x05, 0xb9, 0x66, 0x14, 0xb5, 0x08, 0x67, 0x2d, 0xe2, 0xe6, 0xe6,
- 0x3f, 0x68, 0xf3, 0x16, 0x25, 0x6b, 0xf3, 0x1b, 0x66, 0xc1, 0x75, 0xcd, 0xbe, 0xd5, 0x5e, 0x87,
- 0x34, 0xa3, 0x16, 0xaf, 0x96, 0x37, 0xb0, 0x91, 0x82, 0xb3, 0x95, 0x42, 0xfc, 0x50, 0x6b, 0xb6,
- 0x4c, 0x34, 0x9a, 0xcf, 0x7e, 0xb6, 0x61, 0x7b, 0x2c, 0xa7, 0xde, 0x04, 0xde, 0xd9, 0x7b, 0x79,
- 0xf1, 0x8e, 0xfc, 0x86, 0x07, 0x11, 0x3c, 0x39, 0x8c, 0x59, 0xe7, 0x33, 0x83, 0x5d, 0xdb, 0xbd,
- 0x7e, 0xbc, 0x3f, 0xc6, 0x02, 0x0d, 0x9e, 0xfe, 0x33, 0x74, 0x93, 0xd8, 0x76, 0x8b, 0x1a, 0x88,
- 0x2d, 0xd0, 0x26, 0xe2, 0x43, 0x37, 0x62, 0x06, 0xbb, 0xb6, 0x23, 0x6d, 0x20, 0xb6, 0x40, 0x9b,
- 0x88, 0x0f, 0x1c, 0xeb, 0xeb, 0xe7, 0x3f, 0x16, 0x21, 0xb8, 0x5a, 0x84, 0xe0, 0xf7, 0x22, 0x04,
- 0xdf, 0x96, 0x61, 0xeb, 0x6a, 0x19, 0xb6, 0x7e, 0x2d, 0xc3, 0xd6, 0xfb, 0x07, 0x92, 0xe7, 0x22,
- 0x61, 0x7c, 0xa0, 0xf7, 0xf0, 0xe5, 0xc6, 0x36, 0x9f, 0x17, 0x54, 0x4e, 0xfe, 0xd7, 0xcb, 0xf8,
- 0xd9, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7f, 0xca, 0x29, 0x12, 0xeb, 0x05, 0x00, 0x00,
+ // 517 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4d, 0x8b, 0xd3, 0x40,
+ 0x18, 0xee, 0xb4, 0xd5, 0xdd, 0xcc, 0xea, 0x22, 0x11, 0x6c, 0x48, 0x25, 0x84, 0x20, 0x12, 0x05,
+ 0x53, 0x5c, 0x6f, 0x82, 0x07, 0x77, 0x7b, 0x29, 0x52, 0x90, 0x01, 0x2f, 0x5e, 0xd6, 0x74, 0x66,
+ 0xc8, 0x0e, 0x64, 0x33, 0x21, 0x33, 0xb1, 0xdb, 0x7f, 0x20, 0x78, 0xf1, 0xe4, 0x6f, 0xf2, 0xb8,
+ 0x07, 0x0f, 0x1e, 0xa5, 0xfd, 0x23, 0x92, 0x49, 0xa7, 0xf6, 0x23, 0x43, 0x77, 0xd9, 0x53, 0x78,
+ 0xdf, 0x79, 0xf2, 0x3e, 0x1f, 0xf3, 0x01, 0x9f, 0x60, 0x5e, 0xd0, 0x01, 0x23, 0x34, 0x93, 0x4c,
+ 0xce, 0x06, 0xf2, 0x2a, 0xca, 0x0b, 0x2e, 0xb9, 0xfd, 0xb0, 0xea, 0x47, 0xba, 0xef, 0xf6, 0x37,
+ 0x61, 0x31, 0xc6, 0xbc, 0xcc, 0x64, 0x8d, 0x75, 0x7b, 0x9b, 0x8b, 0x84, 0x91, 0x7a, 0x21, 0xf8,
+ 0x0e, 0xe0, 0xe3, 0xb1, 0x48, 0x10, 0x4d, 0x98, 0x90, 0xb4, 0x18, 0x2d, 0x11, 0xb6, 0x03, 0x0f,
+ 0x70, 0x41, 0x63, 0xc9, 0x0b, 0x07, 0xf8, 0x20, 0xb4, 0x90, 0x2e, 0xed, 0x77, 0xf0, 0x01, 0x61,
+ 0xe4, 0x9c, 0x70, 0x5c, 0x5e, 0xd2, 0x4c, 0x3a, 0x6d, 0x1f, 0x84, 0x47, 0x27, 0x6e, 0xb4, 0xa1,
+ 0x26, 0x1a, 0x8e, 0x86, 0xc3, 0x25, 0x02, 0x1d, 0x11, 0x46, 0x74, 0x61, 0xf7, 0xa1, 0x35, 0x8d,
+ 0xd3, 0x94, 0xca, 0x73, 0x46, 0x9c, 0x8e, 0x0f, 0xc2, 0x2e, 0x3a, 0xac, 0x1b, 0x23, 0x12, 0x7c,
+ 0x85, 0xfd, 0x06, 0x31, 0x88, 0x8a, 0x9c, 0x67, 0x82, 0x56, 0xa2, 0x44, 0x89, 0x31, 0x15, 0x42,
+ 0x89, 0x3a, 0x44, 0xba, 0xbc, 0xa3, 0xa8, 0xe0, 0x27, 0x80, 0xee, 0x58, 0x24, 0x67, 0x95, 0x45,
+ 0x7a, 0xc6, 0x33, 0x59, 0xf0, 0x34, 0xa5, 0xc5, 0xfb, 0x3a, 0xc3, 0x8a, 0x37, 0x26, 0xa4, 0xd0,
+ 0xbc, 0x16, 0xd2, 0xa5, 0xfd, 0x14, 0x5a, 0x79, 0x39, 0x49, 0x19, 0xfe, 0x40, 0x67, 0xca, 0x8d,
+ 0x85, 0xfe, 0x37, 0xec, 0xe7, 0xf0, 0x38, 0x2e, 0xe5, 0x45, 0xc5, 0x8e, 0xab, 0xec, 0x84, 0xd3,
+ 0xf5, 0x3b, 0xa1, 0x85, 0xb6, 0xba, 0xd5, 0xfc, 0x3a, 0x02, 0xe1, 0xdc, 0x53, 0x00, 0x5d, 0x06,
+ 0x39, 0x0c, 0xcc, 0xba, 0x56, 0xb9, 0x1c, 0xc3, 0x36, 0x23, 0x4a, 0x5a, 0x17, 0xb5, 0x19, 0xb1,
+ 0xdf, 0xc2, 0x83, 0xe5, 0xf6, 0x2f, 0x83, 0xf0, 0xb7, 0x82, 0xd8, 0x1d, 0xa5, 0x7f, 0x08, 0xbe,
+ 0xd5, 0x51, 0x7c, 0xca, 0xc9, 0x2d, 0xa3, 0xa8, 0x45, 0xb4, 0x57, 0x22, 0xee, 0x6e, 0xfe, 0x8b,
+ 0x32, 0x6f, 0x50, 0xb2, 0x32, 0xbf, 0x66, 0x16, 0xdc, 0xd6, 0xec, 0x47, 0xe5, 0x75, 0x48, 0x53,
+ 0x6a, 0xf0, 0x6a, 0xb8, 0x03, 0x6b, 0x29, 0xb4, 0x37, 0x52, 0x08, 0x9e, 0x29, 0xcd, 0x86, 0x89,
+ 0x5a, 0xf3, 0xc9, 0xef, 0x0e, 0xec, 0x8c, 0x45, 0x62, 0x4f, 0xe0, 0xa3, 0x9d, 0x9b, 0x17, 0x6c,
+ 0xc9, 0x6f, 0xb8, 0x10, 0xee, 0xcb, 0xfd, 0x98, 0x55, 0x3e, 0x53, 0xd8, 0x33, 0x9d, 0xeb, 0x17,
+ 0xbb, 0x63, 0x0c, 0x50, 0xf7, 0xf5, 0x8d, 0xa1, 0xeb, 0xc4, 0xa6, 0x53, 0xd4, 0x40, 0x6c, 0x80,
+ 0x36, 0x11, 0xef, 0x3b, 0x11, 0x53, 0xd8, 0x33, 0x6d, 0x69, 0x03, 0xb1, 0x01, 0xda, 0x44, 0xbc,
+ 0x67, 0x5b, 0x4f, 0x4f, 0x7f, 0xcd, 0x3d, 0x70, 0x3d, 0xf7, 0xc0, 0xdf, 0xb9, 0x07, 0x7e, 0x2c,
+ 0xbc, 0xd6, 0xf5, 0xc2, 0x6b, 0xfd, 0x59, 0x78, 0xad, 0xcf, 0x61, 0xc2, 0xe4, 0x45, 0x39, 0x89,
+ 0x30, 0xbf, 0x1c, 0x08, 0x9e, 0x15, 0xaf, 0x18, 0x57, 0xdf, 0xc1, 0xd5, 0xda, 0xc3, 0x3e, 0xcb,
+ 0xa9, 0x98, 0xdc, 0x57, 0xef, 0xf2, 0x9b, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x62, 0x86, 0x84,
+ 0x7c, 0xf6, 0x05, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/x/service/client/cli/query.go b/x/service/client/cli/query.go
index 65a661c5a..b9e619836 100644
--- a/x/service/client/cli/query.go
+++ b/x/service/client/cli/query.go
@@ -10,7 +10,7 @@ import (
// "github.com/cosmos/cosmos-sdk/client/flags"
// sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/types"
)
// GetQueryCmd returns the cli query commands for this module
diff --git a/x/service/client/cli/query_params.go b/x/service/client/cli/query_params.go
index 4e2d40ac4..c01db3257 100644
--- a/x/service/client/cli/query_params.go
+++ b/x/service/client/cli/query_params.go
@@ -5,7 +5,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/spf13/cobra"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/types"
)
func CmdQueryParams() *cobra.Command {
diff --git a/x/service/client/cli/tx.go b/x/service/client/cli/tx.go
index e5480223a..37b8242e2 100644
--- a/x/service/client/cli/tx.go
+++ b/x/service/client/cli/tx.go
@@ -8,7 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
// "github.com/cosmos/cosmos-sdk/client/flags"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/types"
)
var (
diff --git a/x/service/client/cli/tx_service_record.go b/x/service/client/cli/tx_service_record.go
index 2a376e04c..c181fc4e0 100644
--- a/x/service/client/cli/tx_service_record.go
+++ b/x/service/client/cli/tx_service_record.go
@@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/types"
"github.com/spf13/cobra"
)
diff --git a/x/service/genesis.go b/x/service/genesis.go
index 6d84c3ea4..18d34c500 100644
--- a/x/service/genesis.go
+++ b/x/service/genesis.go
@@ -2,8 +2,8 @@ package service
import (
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/service/keeper"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/keeper"
+ "github.com/sonr-io/sonr/x/service/types"
)
// InitGenesis initializes the module's state from a provided genesis state.
diff --git a/x/service/genesis_test.go b/x/service/genesis_test.go
index 67e7d9645..5395cd8b5 100644
--- a/x/service/genesis_test.go
+++ b/x/service/genesis_test.go
@@ -3,10 +3,10 @@ package service_test
import (
"testing"
- keepertest "sonr.io/core/testutil/keeper"
- "sonr.io/core/testutil/nullify"
- "sonr.io/core/x/service"
- "sonr.io/core/x/service/types"
+ keepertest "github.com/sonr-io/sonr/testutil/keeper"
+ "github.com/sonr-io/sonr/testutil/nullify"
+ "github.com/sonr-io/sonr/x/service"
+ "github.com/sonr-io/sonr/x/service/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/service/keeper/keeper.go b/x/service/keeper/keeper.go
index 7ec53eebd..e4f853b1c 100644
--- a/x/service/keeper/keeper.go
+++ b/x/service/keeper/keeper.go
@@ -11,7 +11,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/types"
)
type (
diff --git a/x/service/keeper/msg_server.go b/x/service/keeper/msg_server.go
index b48609a2e..582abf4ab 100644
--- a/x/service/keeper/msg_server.go
+++ b/x/service/keeper/msg_server.go
@@ -4,7 +4,7 @@ import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/types"
)
type msgServer struct {
diff --git a/x/service/keeper/params.go b/x/service/keeper/params.go
index 60e6ca55f..fe2ded438 100644
--- a/x/service/keeper/params.go
+++ b/x/service/keeper/params.go
@@ -4,7 +4,7 @@ import (
"strings"
sdk "github.com/cosmos/cosmos-sdk/types"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/types"
)
// GetParams get all parameters as types.Params
diff --git a/x/service/keeper/query.go b/x/service/keeper/query.go
index 23208ea88..a4345bfc7 100644
--- a/x/service/keeper/query.go
+++ b/x/service/keeper/query.go
@@ -8,7 +8,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/types/query"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/x/service/module.go b/x/service/module.go
index 73c5e4753..8e9f7681e 100644
--- a/x/service/module.go
+++ b/x/service/module.go
@@ -17,9 +17,9 @@ import (
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
- "sonr.io/core/x/service/client/cli"
- "sonr.io/core/x/service/keeper"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/client/cli"
+ "github.com/sonr-io/sonr/x/service/keeper"
+ "github.com/sonr-io/sonr/x/service/types"
)
var (
diff --git a/x/service/module_simulation.go b/x/service/module_simulation.go
index c843d2c5a..f369cc03a 100644
--- a/x/service/module_simulation.go
+++ b/x/service/module_simulation.go
@@ -8,9 +8,9 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
- "sonr.io/core/testutil/sample"
- servicesimulation "sonr.io/core/x/service/simulation"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/testutil/sample"
+ servicesimulation "github.com/sonr-io/sonr/x/service/simulation"
+ "github.com/sonr-io/sonr/x/service/types"
)
// avoid unused import issue
diff --git a/x/service/simulation/service_record.go b/x/service/simulation/service_record.go
index 1712abf5a..71bccc999 100644
--- a/x/service/simulation/service_record.go
+++ b/x/service/simulation/service_record.go
@@ -8,8 +8,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
- "sonr.io/core/x/service/keeper"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/keeper"
+ "github.com/sonr-io/sonr/x/service/types"
)
func SimulateMsgCreateServiceRecord(
diff --git a/x/service/types/expected_keepers.go b/x/service/types/expected_keepers.go
index 78027d97c..da3722f16 100644
--- a/x/service/types/expected_keepers.go
+++ b/x/service/types/expected_keepers.go
@@ -6,7 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cosmos/cosmos-sdk/x/group"
- identitytypes "sonr.io/core/x/identity/types"
+ identitytypes "github.com/sonr-io/sonr/x/identity/types"
)
type GroupKeeper interface {
diff --git a/x/service/types/genesis.pb.go b/x/service/types/genesis.pb.go
index 4eddc415b..fd2dd93d0 100644
--- a/x/service/types/genesis.pb.go
+++ b/x/service/types/genesis.pb.go
@@ -91,7 +91,7 @@ func init() {
func init() { proto.RegisterFile("core/service/genesis.proto", fileDescriptor_7bd0c748f4da7215) }
var fileDescriptor_7bd0c748f4da7215 = []byte{
- // 239 bytes of a gzipped FileDescriptorProto
+ // 249 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0x2f, 0x4a,
0xd5, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c,
0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0xc9, 0xe9, 0x41, 0xe5, 0xa4, 0x24, 0x51,
@@ -102,11 +102,12 @@ var fileDescriptor_7bd0c748f4da7215 = []byte{
0x4e, 0x2c, 0x27, 0xee, 0xc9, 0x33, 0x04, 0x41, 0x55, 0x0a, 0xf9, 0x73, 0x09, 0x42, 0xe5, 0x83,
0xc0, 0x36, 0xfa, 0x64, 0x16, 0x97, 0x48, 0x30, 0x29, 0x30, 0x6b, 0x70, 0x1b, 0x49, 0xa3, 0x6a,
0x0f, 0x46, 0x56, 0x06, 0x35, 0x05, 0x53, 0xaf, 0x90, 0x1e, 0x97, 0x10, 0x8a, 0xa0, 0x73, 0x7e,
- 0x69, 0x5e, 0x89, 0x04, 0xb3, 0x02, 0xa3, 0x06, 0x4b, 0x10, 0x16, 0x19, 0x27, 0xb3, 0x13, 0x8f,
+ 0x69, 0x5e, 0x89, 0x04, 0xb3, 0x02, 0xa3, 0x06, 0x4b, 0x10, 0x16, 0x19, 0x27, 0xc7, 0x13, 0x8f,
0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b,
- 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x92, 0x29, 0xce, 0xcf, 0x2b, 0xd2, 0xcb, 0xcc,
- 0xd7, 0x07, 0x07, 0x4c, 0x05, 0x3c, 0x68, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x81,
- 0x60, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xcb, 0x55, 0x87, 0xe1, 0x7c, 0x01, 0x00, 0x00,
+ 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x4f, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2,
+ 0x4b, 0xce, 0xcf, 0xd5, 0x2f, 0xce, 0xcf, 0x2b, 0xd2, 0xcd, 0xcc, 0x07, 0xd3, 0xfa, 0x15, 0xf0,
+ 0x50, 0x2a, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, 0x87, 0x31, 0x20, 0x00, 0x00, 0xff,
+ 0xff, 0xa9, 0xf8, 0xbb, 0x09, 0x87, 0x01, 0x00, 0x00,
}
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
diff --git a/x/service/types/genesis_test.go b/x/service/types/genesis_test.go
index 47af08191..999d1c70c 100644
--- a/x/service/types/genesis_test.go
+++ b/x/service/types/genesis_test.go
@@ -3,7 +3,7 @@ package types_test
import (
"testing"
- "sonr.io/core/x/service/types"
+ "github.com/sonr-io/sonr/x/service/types"
"github.com/stretchr/testify/require"
)
diff --git a/x/service/types/messages_service_record_test.go b/x/service/types/messages_service_record_test.go
index 2c67f169b..e9145296d 100644
--- a/x/service/types/messages_service_record_test.go
+++ b/x/service/types/messages_service_record_test.go
@@ -4,7 +4,7 @@ import (
"testing"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
- "sonr.io/core/testutil/sample"
+ "github.com/sonr-io/sonr/testutil/sample"
"github.com/stretchr/testify/require"
)
diff --git a/x/service/types/params.go b/x/service/types/params.go
index 7e08c2a9a..255e7cbaf 100644
--- a/x/service/types/params.go
+++ b/x/service/types/params.go
@@ -4,7 +4,7 @@ import (
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/go-webauthn/webauthn/protocol"
"github.com/go-webauthn/webauthn/protocol/webauthncose"
- "sonr.io/core/internal/crypto"
+ "github.com/sonr-io/sonr/internal/crypto"
"gopkg.in/yaml.v2"
)
diff --git a/x/service/types/params.pb.go b/x/service/types/params.pb.go
index 5154addd8..b8353577d 100644
--- a/x/service/types/params.pb.go
+++ b/x/service/types/params.pb.go
@@ -66,16 +66,17 @@ func init() {
func init() { proto.RegisterFile("core/service/params.proto", fileDescriptor_7c849a488e547d45) }
var fileDescriptor_7c849a488e547d45 = []byte{
- // 137 bytes of a gzipped FileDescriptorProto
+ // 147 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0xce, 0x2f, 0x4a,
0xd5, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6,
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0x49, 0xe9, 0x41, 0xa5, 0xa4, 0x44, 0xd2, 0xf3,
0xd3, 0xf3, 0xc1, 0x12, 0xfa, 0x20, 0x16, 0x44, 0x8d, 0x12, 0x1f, 0x17, 0x5b, 0x00, 0x58, 0x8f,
- 0x15, 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0x66, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7,
+ 0x15, 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0x8e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7,
0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c,
- 0xc7, 0x10, 0x25, 0x53, 0x9c, 0x9f, 0x57, 0xa4, 0x97, 0x99, 0xaf, 0x0f, 0xb6, 0xb0, 0x02, 0x6e,
- 0x65, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x38, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff,
- 0xff, 0x61, 0xbf, 0xcb, 0x37, 0x8f, 0x00, 0x00, 0x00,
+ 0xc7, 0x10, 0xa5, 0x9e, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x5f, 0x9c,
+ 0x9f, 0x57, 0xa4, 0x9b, 0x99, 0x0f, 0xa6, 0xf5, 0x2b, 0xe0, 0xb6, 0x97, 0x54, 0x16, 0xa4, 0x16,
+ 0x27, 0xb1, 0x81, 0x4d, 0x36, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x55, 0x08, 0x7d, 0xc2, 0x9a,
+ 0x00, 0x00, 0x00,
}
func (m *Params) Marshal() (dAtA []byte, err error) {
diff --git a/x/service/types/query.pb.go b/x/service/types/query.pb.go
index 0751ea613..9db6bfc27 100644
--- a/x/service/types/query.pb.go
+++ b/x/service/types/query.pb.go
@@ -10,6 +10,7 @@ import (
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
+ _ "github.com/sonr-io/sonr/x/identity/types"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
@@ -17,7 +18,6 @@ import (
io "io"
math "math"
math_bits "math/bits"
- _ "sonr.io/core/x/identity/types"
)
// Reference imports to suppress errors if they are not otherwise used.
@@ -318,38 +318,39 @@ func init() {
func init() { proto.RegisterFile("core/service/query.proto", fileDescriptor_5cf4b2348245f9e3) }
var fileDescriptor_5cf4b2348245f9e3 = []byte{
- // 492 bytes of a gzipped FileDescriptorProto
+ // 503 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xc1, 0x6e, 0x13, 0x31,
- 0x10, 0x86, 0xb3, 0x2d, 0x44, 0xc2, 0x50, 0x81, 0x4c, 0x08, 0x21, 0x84, 0xa5, 0xec, 0x01, 0x50,
- 0x91, 0x6c, 0x35, 0x48, 0xbd, 0xb7, 0x07, 0x22, 0x6e, 0x65, 0xb9, 0x71, 0x73, 0x12, 0xb3, 0x58,
- 0x6c, 0x77, 0xb6, 0xb6, 0x5b, 0x11, 0x21, 0x2e, 0x15, 0x07, 0x8e, 0x48, 0x3c, 0x09, 0x6f, 0xd1,
- 0x63, 0x25, 0x2e, 0x9c, 0x10, 0x4a, 0x78, 0x10, 0xb4, 0xf6, 0x14, 0x62, 0xba, 0x0b, 0xa8, 0xb7,
- 0x5d, 0xcf, 0x3f, 0x33, 0xdf, 0x78, 0x7e, 0x93, 0xde, 0x04, 0xb4, 0xe4, 0x46, 0xea, 0x43, 0x35,
- 0x91, 0x7c, 0xff, 0x40, 0xea, 0x19, 0x2b, 0x35, 0x58, 0xa0, 0x57, 0xaa, 0x08, 0xc3, 0x48, 0xff,
- 0xa6, 0xd3, 0xa9, 0xa9, 0x2c, 0xac, 0xb2, 0x33, 0x3e, 0x55, 0x53, 0x2f, 0xeb, 0xdf, 0x0a, 0x0a,
- 0x94, 0x42, 0x8b, 0x3d, 0x53, 0x1b, 0xd2, 0x72, 0x02, 0xfa, 0x34, 0x6b, 0x63, 0x02, 0x66, 0x0f,
- 0x0c, 0x1f, 0x0b, 0x83, 0x5d, 0xf9, 0xe1, 0xe6, 0x58, 0x5a, 0xb1, 0xc9, 0x4b, 0x91, 0xa9, 0x42,
- 0x58, 0x05, 0x05, 0x6a, 0x3b, 0x19, 0x64, 0xe0, 0x3e, 0x79, 0xf5, 0x85, 0xa7, 0x83, 0x0c, 0x20,
- 0xcb, 0x25, 0x17, 0xa5, 0xe2, 0xa2, 0x28, 0xc0, 0xba, 0x14, 0x6c, 0x9d, 0x74, 0x08, 0x7d, 0x56,
- 0x55, 0xdd, 0x75, 0x3c, 0xa9, 0xdc, 0x3f, 0x90, 0xc6, 0x26, 0x4f, 0xc9, 0xf5, 0xe0, 0xd4, 0x94,
- 0x50, 0x18, 0x49, 0x87, 0xa4, 0xed, 0xb9, 0x7b, 0xd1, 0x7a, 0xf4, 0xf0, 0xf2, 0xb0, 0xc3, 0x96,
- 0x47, 0x67, 0x5e, 0xbd, 0x73, 0xe1, 0xf8, 0xdb, 0xdd, 0x56, 0x8a, 0xca, 0x64, 0x8b, 0x0c, 0x5c,
- 0xa9, 0x91, 0xb4, 0xcf, 0xbd, 0x2e, 0x75, 0xf3, 0x61, 0x2b, 0xda, 0x25, 0x6d, 0xd0, 0x2a, 0x53,
- 0x85, 0xab, 0x79, 0x29, 0xc5, 0xbf, 0xe4, 0x15, 0xb9, 0xd3, 0x90, 0x87, 0x30, 0x23, 0xb2, 0x16,
- 0x04, 0x90, 0xe9, 0x76, 0xc8, 0x14, 0x48, 0x10, 0x2d, 0xcc, 0x4b, 0x5e, 0x22, 0xe1, 0x76, 0x9e,
- 0xd7, 0x12, 0x3e, 0x21, 0xe4, 0xf7, 0x55, 0x63, 0x97, 0xfb, 0xcc, 0xef, 0x85, 0x55, 0x7b, 0x61,
- 0xde, 0x0d, 0xb8, 0x17, 0xb6, 0x2b, 0x32, 0x89, 0xb9, 0xe9, 0x52, 0x66, 0xf2, 0x39, 0xc2, 0x91,
- 0xce, 0x36, 0x6a, 0x1e, 0x69, 0xf5, 0x3c, 0x23, 0xd1, 0x51, 0x80, 0xbc, 0xe2, 0x90, 0x1f, 0xfc,
- 0x13, 0xd9, 0x53, 0x2c, 0x33, 0x0f, 0xdf, 0xaf, 0x92, 0x8b, 0x8e, 0x99, 0xbe, 0x26, 0x6d, 0xbf,
- 0x5f, 0xba, 0x1e, 0xe2, 0x9c, 0xb5, 0x4f, 0xff, 0xde, 0x5f, 0x14, 0xbe, 0x49, 0x32, 0x38, 0xfa,
- 0xf2, 0xe3, 0xd3, 0x4a, 0x97, 0x76, 0xb8, 0xf3, 0xbe, 0x37, 0xcb, 0xe9, 0x13, 0xa0, 0x1f, 0xa2,
- 0x3f, 0x6e, 0x82, 0x6e, 0xd4, 0x94, 0x6c, 0xb0, 0x54, 0xff, 0xd1, 0x7f, 0x69, 0x11, 0x24, 0x76,
- 0x20, 0x3d, 0xda, 0xe5, 0xc1, 0x23, 0x7c, 0xeb, 0x6d, 0xf8, 0x8e, 0x1e, 0x45, 0xe4, 0x5a, 0x90,
- 0xb9, 0x9d, 0xe7, 0xb5, 0x34, 0x0d, 0xf6, 0xa9, 0xa5, 0x69, 0x72, 0x40, 0x72, 0xc3, 0xd1, 0x5c,
- 0xa5, 0x6b, 0x01, 0xcd, 0xce, 0xd6, 0xf1, 0x3c, 0x8e, 0x4e, 0xe6, 0x71, 0xf4, 0x7d, 0x1e, 0x47,
- 0x1f, 0x17, 0x71, 0xeb, 0x64, 0x11, 0xb7, 0xbe, 0x2e, 0xe2, 0xd6, 0x8b, 0x81, 0x81, 0x42, 0x33,
- 0x05, 0x5e, 0xff, 0xe6, 0x17, 0xbf, 0x9d, 0x95, 0xd2, 0x8c, 0xdb, 0xee, 0x91, 0x3f, 0xfe, 0x19,
- 0x00, 0x00, 0xff, 0xff, 0x4d, 0x4c, 0xe0, 0x3b, 0xbd, 0x04, 0x00, 0x00,
+ 0x10, 0x86, 0xb3, 0x2d, 0x44, 0xc2, 0x50, 0x81, 0x4c, 0x08, 0x21, 0x84, 0xa5, 0xec, 0x81, 0xa2,
+ 0x22, 0xd6, 0x6a, 0x90, 0xb8, 0xa7, 0x07, 0x22, 0x6e, 0x65, 0xb9, 0x71, 0x73, 0x36, 0x66, 0x6b,
+ 0xb1, 0xd9, 0xd9, 0xda, 0x4e, 0x45, 0x84, 0xb8, 0x54, 0x1c, 0x38, 0x22, 0xf1, 0x24, 0xbc, 0x45,
+ 0x8f, 0x95, 0xb8, 0x70, 0x42, 0x28, 0xe1, 0x41, 0x50, 0xec, 0x29, 0xc4, 0x74, 0x17, 0x50, 0x4f,
+ 0xd9, 0x78, 0xfe, 0x99, 0xf9, 0xc6, 0xf3, 0x9b, 0x74, 0x52, 0x50, 0x82, 0x69, 0xa1, 0x0e, 0x65,
+ 0x2a, 0xd8, 0xc1, 0x54, 0xa8, 0x59, 0x5c, 0x2a, 0x30, 0x40, 0xaf, 0x2c, 0x23, 0x31, 0x46, 0xba,
+ 0x37, 0xad, 0x4e, 0x8e, 0x45, 0x61, 0xa4, 0x99, 0xb1, 0xb1, 0x1c, 0x3b, 0x59, 0xf7, 0x96, 0x57,
+ 0xa0, 0xe4, 0x8a, 0x4f, 0x74, 0x65, 0x48, 0x89, 0x14, 0xd4, 0x69, 0xd6, 0x76, 0x0a, 0x7a, 0x02,
+ 0x9a, 0x8d, 0xb8, 0xc6, 0xae, 0xec, 0x70, 0x67, 0x24, 0x0c, 0xdf, 0x61, 0x25, 0xcf, 0x64, 0xc1,
+ 0x8d, 0x84, 0x02, 0xb5, 0xad, 0x0c, 0x32, 0xb0, 0x9f, 0x6c, 0xf9, 0x85, 0xa7, 0xbd, 0x0c, 0x20,
+ 0xcb, 0x05, 0xe3, 0xa5, 0x64, 0xbc, 0x28, 0xc0, 0xd8, 0x14, 0x6c, 0x1d, 0xb5, 0x08, 0x7d, 0xbe,
+ 0xac, 0xba, 0x67, 0x79, 0x12, 0x71, 0x30, 0x15, 0xda, 0x44, 0xcf, 0xc8, 0x75, 0xef, 0x54, 0x97,
+ 0x50, 0x68, 0x41, 0xfb, 0xa4, 0xe9, 0xb8, 0x3b, 0xc1, 0x66, 0xf0, 0xe0, 0x72, 0xbf, 0x15, 0xaf,
+ 0x8e, 0x1e, 0x3b, 0xf5, 0xee, 0x85, 0xe3, 0x6f, 0x77, 0x1b, 0x09, 0x2a, 0xa3, 0x27, 0xa4, 0x67,
+ 0x4b, 0x0d, 0x85, 0x79, 0xe1, 0x74, 0x89, 0x9d, 0x0f, 0x5b, 0xd1, 0x36, 0x69, 0x82, 0x92, 0x99,
+ 0x2c, 0x6c, 0xcd, 0x4b, 0x09, 0xfe, 0x8b, 0xf6, 0xc9, 0x9d, 0x9a, 0x3c, 0x84, 0x19, 0x92, 0x0d,
+ 0x2f, 0x80, 0x4c, 0xb7, 0x7d, 0x26, 0x4f, 0x82, 0x68, 0x7e, 0x5e, 0xf4, 0x0a, 0x09, 0x07, 0x79,
+ 0x5e, 0x49, 0xf8, 0x94, 0x90, 0xdf, 0x57, 0x8d, 0x5d, 0xee, 0xc7, 0x6e, 0x2f, 0xf1, 0x72, 0x2f,
+ 0xb1, 0x73, 0x03, 0xee, 0x25, 0xde, 0xe3, 0x99, 0xc0, 0xdc, 0x64, 0x25, 0x33, 0xfa, 0x1c, 0xe0,
+ 0x48, 0x67, 0x1b, 0xd5, 0x8f, 0xb4, 0x7e, 0x9e, 0x91, 0xe8, 0xd0, 0x43, 0x5e, 0xb3, 0xc8, 0x5b,
+ 0xff, 0x44, 0x76, 0x14, 0xab, 0xcc, 0xfd, 0xf7, 0xeb, 0xe4, 0xa2, 0x65, 0xa6, 0xaf, 0x49, 0xd3,
+ 0xed, 0x97, 0x6e, 0xfa, 0x38, 0x67, 0xed, 0xd3, 0xbd, 0xf7, 0x17, 0x85, 0x6b, 0x12, 0xf5, 0x8e,
+ 0xbe, 0xfc, 0xf8, 0xb4, 0xd6, 0xa6, 0x2d, 0x66, 0xbd, 0xef, 0xcc, 0x72, 0xfa, 0x04, 0xe8, 0x87,
+ 0xe0, 0x8f, 0x9b, 0xa0, 0xdb, 0x15, 0x25, 0x6b, 0x2c, 0xd5, 0x7d, 0xf8, 0x5f, 0x5a, 0x04, 0x09,
+ 0x2d, 0x48, 0x87, 0xb6, 0x99, 0xf7, 0x08, 0xdf, 0x3a, 0x1b, 0xbe, 0xa3, 0x47, 0x01, 0xb9, 0xe6,
+ 0x65, 0x0e, 0xf2, 0xbc, 0x92, 0xa6, 0xc6, 0x3e, 0x95, 0x34, 0x75, 0x0e, 0x88, 0x6e, 0x58, 0x9a,
+ 0xab, 0x74, 0xc3, 0xa3, 0xd9, 0x1d, 0x1c, 0xcf, 0xc3, 0xe0, 0x64, 0x1e, 0x06, 0xdf, 0xe7, 0x61,
+ 0xf0, 0x71, 0x11, 0x36, 0x4e, 0x16, 0x61, 0xe3, 0xeb, 0x22, 0x6c, 0xbc, 0xdc, 0xca, 0xa4, 0xd9,
+ 0x9f, 0x8e, 0xe2, 0x14, 0x26, 0x4c, 0x43, 0xa1, 0x1e, 0x49, 0xb0, 0xbf, 0xec, 0xcd, 0xaf, 0x51,
+ 0xcc, 0xac, 0x14, 0x7a, 0xd4, 0xb4, 0xef, 0xfd, 0xf1, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xee,
+ 0x2b, 0x8b, 0xe2, 0xc8, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/x/service/types/record.go b/x/service/types/record.go
index 9e17ae5f0..b8e715601 100644
--- a/x/service/types/record.go
+++ b/x/service/types/record.go
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/go-webauthn/webauthn/protocol"
- "sonr.io/core/types/webauthn"
+ "github.com/sonr-io/sonr/types/webauthn"
)
const (
diff --git a/x/service/types/record.pb.go b/x/service/types/record.pb.go
index 7ccaa953e..f7050b18c 100644
--- a/x/service/types/record.pb.go
+++ b/x/service/types/record.pb.go
@@ -226,29 +226,30 @@ func init() {
func init() { proto.RegisterFile("core/service/record.proto", fileDescriptor_17bfe358aaf56022) }
var fileDescriptor_17bfe358aaf56022 = []byte{
- // 347 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xcf, 0x4e, 0xea, 0x40,
- 0x18, 0xc5, 0x3b, 0x2d, 0xff, 0xfa, 0x01, 0x37, 0xcd, 0xdc, 0xbb, 0x98, 0x7b, 0x43, 0x9a, 0x86,
- 0x15, 0xb9, 0x0b, 0x58, 0x98, 0xb8, 0x07, 0x53, 0x0d, 0x1b, 0x34, 0x53, 0x12, 0xa3, 0x2e, 0x08,
- 0x4e, 0x47, 0x9c, 0x04, 0x66, 0x9a, 0x99, 0x6a, 0xe4, 0x2d, 0x7c, 0x0f, 0x5f, 0xc4, 0x25, 0x4b,
- 0x97, 0x06, 0x5e, 0xc4, 0x74, 0xa8, 0xc8, 0xee, 0xfc, 0xce, 0xf9, 0x66, 0x72, 0x92, 0x03, 0x7f,
- 0x99, 0xd2, 0x7c, 0x60, 0xb8, 0x7e, 0x16, 0x8c, 0x0f, 0x34, 0x67, 0x4a, 0xa7, 0xfd, 0x4c, 0xab,
- 0x5c, 0xe1, 0x56, 0x11, 0xf5, 0xcb, 0xa8, 0xfb, 0x86, 0xa0, 0x9d, 0xec, 0x35, 0xb5, 0x57, 0xf8,
- 0x17, 0xb8, 0x22, 0x25, 0x28, 0x42, 0x3d, 0x9f, 0xba, 0x22, 0xc5, 0x21, 0x00, 0x53, 0x32, 0xd7,
- 0x6a, 0xb9, 0xe4, 0x9a, 0xb8, 0xd6, 0x3f, 0x72, 0x30, 0x81, 0xba, 0xd2, 0x62, 0x21, 0xa4, 0x21,
- 0x5e, 0xe4, 0xf5, 0x7c, 0xfa, 0x8d, 0x18, 0x43, 0x45, 0xce, 0x57, 0x9c, 0x54, 0xec, 0x1b, 0xab,
- 0x71, 0x04, 0xcd, 0x94, 0x1b, 0xa6, 0x45, 0x96, 0x0b, 0x25, 0x49, 0xd5, 0x46, 0xc7, 0x16, 0xfe,
- 0x07, 0x0d, 0x36, 0xcf, 0xf9, 0x42, 0xe9, 0x35, 0xa9, 0xd9, 0xf8, 0xc0, 0xdd, 0x3b, 0xf8, 0x7d,
- 0x28, 0xbb, 0x9c, 0x17, 0xe7, 0xe6, 0x51, 0x64, 0xb8, 0x03, 0xbe, 0xe6, 0x0f, 0x5c, 0x73, 0xc9,
- 0x78, 0xd9, 0xfc, 0xc7, 0xc0, 0x01, 0x78, 0xa9, 0x48, 0xcb, 0xe6, 0x85, 0xc4, 0x7f, 0xa0, 0xca,
- 0xd4, 0x93, 0xcc, 0x89, 0x17, 0xa1, 0x5e, 0x9b, 0xee, 0xe1, 0x7f, 0x02, 0xcd, 0x2b, 0xae, 0x57,
- 0xc2, 0x98, 0xe2, 0x5f, 0xdc, 0x84, 0x7a, 0x42, 0x67, 0xa3, 0x61, 0x12, 0x07, 0x4e, 0x09, 0xc9,
- 0xf8, 0x62, 0x12, 0x20, 0xdc, 0x82, 0x46, 0x42, 0x67, 0xd7, 0x74, 0x3c, 0x8d, 0x03, 0x17, 0xb7,
- 0xc1, 0x4f, 0xe8, 0xec, 0x8c, 0xc6, 0xc3, 0x69, 0x1c, 0x78, 0x25, 0x4e, 0x2e, 0xa7, 0xe3, 0xf3,
- 0x9b, 0xa0, 0x32, 0x3a, 0x7d, 0xdf, 0x86, 0x68, 0xb3, 0x0d, 0xd1, 0xe7, 0x36, 0x44, 0xaf, 0xbb,
- 0xd0, 0xd9, 0xec, 0x42, 0xe7, 0x63, 0x17, 0x3a, 0xb7, 0x1d, 0xa3, 0xa4, 0xee, 0x0b, 0x35, 0xb0,
- 0x53, 0xbd, 0x1c, 0xc6, 0xca, 0xd7, 0x19, 0x37, 0xf7, 0x35, 0x3b, 0xd6, 0xc9, 0x57, 0x00, 0x00,
- 0x00, 0xff, 0xff, 0xae, 0x6a, 0xa0, 0x13, 0xc9, 0x01, 0x00, 0x00,
+ // 356 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xcd, 0x6e, 0xe2, 0x30,
+ 0x14, 0x85, 0xe3, 0x84, 0xbf, 0x5c, 0x60, 0x14, 0x79, 0x66, 0xe1, 0x19, 0x8d, 0xa2, 0x88, 0xcd,
+ 0xa0, 0x91, 0x4a, 0x16, 0x7d, 0x02, 0xa8, 0xd2, 0x8a, 0x0d, 0xad, 0x1c, 0xa4, 0xaa, 0xed, 0x02,
+ 0x81, 0xe3, 0x82, 0x25, 0x88, 0x23, 0x3b, 0x54, 0xe5, 0x2d, 0xfa, 0x1e, 0x7d, 0x91, 0x2e, 0x59,
+ 0x76, 0x59, 0xc1, 0x8b, 0x54, 0x31, 0x29, 0x65, 0xe5, 0xf3, 0x9d, 0x73, 0x7d, 0x75, 0xa4, 0x0b,
+ 0xbf, 0x99, 0x54, 0x3c, 0xd4, 0x5c, 0x3d, 0x09, 0xc6, 0x43, 0xc5, 0x99, 0x54, 0x49, 0x2f, 0x53,
+ 0x32, 0x97, 0xb8, 0x55, 0x44, 0xbd, 0x32, 0xea, 0xbc, 0x22, 0x68, 0xc7, 0x07, 0x4d, 0xcd, 0x14,
+ 0xfe, 0x01, 0xb6, 0x48, 0x08, 0x0a, 0x50, 0xd7, 0xa5, 0xb6, 0x48, 0xb0, 0x0f, 0xc0, 0x64, 0x9a,
+ 0x2b, 0xb9, 0x5c, 0x72, 0x45, 0x6c, 0xe3, 0x9f, 0x38, 0x98, 0x40, 0x5d, 0x2a, 0x31, 0x17, 0xa9,
+ 0x26, 0x4e, 0xe0, 0x74, 0x5d, 0xfa, 0x85, 0x18, 0x43, 0x25, 0x9d, 0xae, 0x38, 0xa9, 0x98, 0x3f,
+ 0x46, 0xe3, 0x00, 0x9a, 0x09, 0xd7, 0x4c, 0x89, 0x2c, 0x17, 0x32, 0x25, 0x55, 0x13, 0x9d, 0x5a,
+ 0xf8, 0x0f, 0x34, 0xd8, 0x34, 0xe7, 0x73, 0xa9, 0x36, 0xa4, 0x66, 0xe2, 0x23, 0x77, 0x1e, 0xe0,
+ 0xe7, 0xb1, 0xec, 0x72, 0x5a, 0x8c, 0xeb, 0x85, 0xc8, 0xf0, 0x5f, 0x70, 0x15, 0x7f, 0xe4, 0x8a,
+ 0xa7, 0x8c, 0x97, 0xcd, 0xbf, 0x0d, 0xec, 0x81, 0x93, 0x88, 0xa4, 0x6c, 0x5e, 0x48, 0xfc, 0x0b,
+ 0xaa, 0x4c, 0xae, 0xd3, 0x9c, 0x38, 0x01, 0xea, 0xb6, 0xe9, 0x01, 0xfe, 0xc7, 0xd0, 0xbc, 0xe1,
+ 0x6a, 0x25, 0xb4, 0x2e, 0xf6, 0xe2, 0x26, 0xd4, 0x63, 0x3a, 0x19, 0xf4, 0xe3, 0xc8, 0xb3, 0x4a,
+ 0x88, 0x87, 0x57, 0x23, 0x0f, 0xe1, 0x16, 0x34, 0x62, 0x3a, 0xb9, 0xa5, 0xc3, 0x71, 0xe4, 0xd9,
+ 0xb8, 0x0d, 0x6e, 0x4c, 0x27, 0x17, 0x34, 0xea, 0x8f, 0x23, 0xcf, 0x29, 0x71, 0x74, 0x3d, 0x1e,
+ 0x5e, 0xde, 0x79, 0x95, 0x41, 0xff, 0x6d, 0xe7, 0xa3, 0xed, 0xce, 0x47, 0x1f, 0x3b, 0x1f, 0xbd,
+ 0xec, 0x7d, 0x6b, 0xbb, 0xf7, 0xad, 0xf7, 0xbd, 0x6f, 0xdd, 0xff, 0x9b, 0x8b, 0x7c, 0xb1, 0x9e,
+ 0xf5, 0x98, 0x5c, 0x85, 0x5a, 0xa6, 0xea, 0x4c, 0x48, 0xf3, 0x86, 0xcf, 0xc7, 0xbb, 0xe5, 0x9b,
+ 0x8c, 0xeb, 0x59, 0xcd, 0xdc, 0xed, 0xfc, 0x33, 0x00, 0x00, 0xff, 0xff, 0x3b, 0xe7, 0x1e, 0xea,
+ 0xd4, 0x01, 0x00, 0x00,
}
func (m *ServiceRecord) Marshal() (dAtA []byte, err error) {
diff --git a/x/service/types/tx.pb.go b/x/service/types/tx.pb.go
index 4c8cb1e3c..085a5d1fd 100644
--- a/x/service/types/tx.pb.go
+++ b/x/service/types/tx.pb.go
@@ -315,7 +315,7 @@ func init() {
func init() { proto.RegisterFile("core/service/tx.proto", fileDescriptor_376dd44ebb86aa2f) }
var fileDescriptor_376dd44ebb86aa2f = []byte{
- // 277 bytes of a gzipped FileDescriptorProto
+ // 287 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0xce, 0x2f, 0x4a,
0xd5, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f,
0xc9, 0x17, 0xe2, 0x01, 0x09, 0xeb, 0x41, 0x85, 0xa5, 0x24, 0x51, 0x14, 0x15, 0xa5, 0x26, 0xe7,
@@ -329,11 +329,11 @@ var fileDescriptor_376dd44ebb86aa2f = []byte{
0x50, 0x26, 0x97, 0x30, 0xb6, 0x60, 0x53, 0xd1, 0x43, 0x0e, 0x7a, 0x3d, 0xec, 0x01, 0x25, 0xa5,
0x43, 0x8c, 0x2a, 0x78, 0x70, 0x66, 0x72, 0x09, 0x63, 0x0b, 0x3b, 0x4c, 0xab, 0xb0, 0xa8, 0xc2,
0x62, 0x15, 0x9e, 0x30, 0x04, 0x59, 0x85, 0x2d, 0x00, 0x31, 0xad, 0xc2, 0xa2, 0x0a, 0x8b, 0x55,
- 0x78, 0x02, 0xd2, 0xc9, 0xec, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92,
- 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x64,
- 0x8a, 0xf3, 0xf3, 0x8a, 0xf4, 0x32, 0xf3, 0xf5, 0xc1, 0xe9, 0xb6, 0x02, 0x91, 0xbc, 0x2b, 0x0b,
- 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x29, 0xd7, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x37, 0xad, 0xfb,
- 0x90, 0xfb, 0x02, 0x00, 0x00,
+ 0x78, 0x02, 0xd2, 0xc9, 0xf1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92,
+ 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xd4,
+ 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x8b, 0xf3, 0xf3, 0x8a, 0x74,
+ 0x33, 0xf3, 0xc1, 0xb4, 0x7e, 0x05, 0x22, 0xa5, 0x57, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x13,
+ 0xb1, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x60, 0x94, 0xff, 0x06, 0x03, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/x/service/types/utils.go b/x/service/types/utils.go
index b6c19c635..cbd0dbe3d 100644
--- a/x/service/types/utils.go
+++ b/x/service/types/utils.go
@@ -8,7 +8,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/go-webauthn/webauthn/protocol"
- "sonr.io/core/types/webauthn"
+ "github.com/sonr-io/sonr/types/webauthn"
"lukechampine.com/blake3"
)