mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-09 09:35:03 +09:00
2271 lines
57 KiB
Go
2271 lines
57 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: nameservice/nameserviceproto/protos/nameservice.proto
|
|
|
|
package nameserviceproto
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/anyproto/protobuf/proto"
|
|
io "io"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type NameAvailableRequest struct {
|
|
// Name including .any suffix
|
|
FullName string `protobuf:"bytes,1,opt,name=fullName,proto3" json:"fullName,omitempty"`
|
|
}
|
|
|
|
func (m *NameAvailableRequest) Reset() { *m = NameAvailableRequest{} }
|
|
func (m *NameAvailableRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*NameAvailableRequest) ProtoMessage() {}
|
|
func (*NameAvailableRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_06bca2ea4304f305, []int{0}
|
|
}
|
|
func (m *NameAvailableRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NameAvailableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_NameAvailableRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *NameAvailableRequest) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
|
|
b = b[:newLen]
|
|
_, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b, nil
|
|
}
|
|
func (m *NameAvailableRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NameAvailableRequest.Merge(m, src)
|
|
}
|
|
func (m *NameAvailableRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NameAvailableRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NameAvailableRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NameAvailableRequest proto.InternalMessageInfo
|
|
|
|
func (m *NameAvailableRequest) GetFullName() string {
|
|
if m != nil {
|
|
return m.FullName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type BatchNameAvailableRequest struct {
|
|
// Names including .any suffix
|
|
FullNames []string `protobuf:"bytes,1,rep,name=fullNames,proto3" json:"fullNames,omitempty"`
|
|
}
|
|
|
|
func (m *BatchNameAvailableRequest) Reset() { *m = BatchNameAvailableRequest{} }
|
|
func (m *BatchNameAvailableRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BatchNameAvailableRequest) ProtoMessage() {}
|
|
func (*BatchNameAvailableRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_06bca2ea4304f305, []int{1}
|
|
}
|
|
func (m *BatchNameAvailableRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BatchNameAvailableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BatchNameAvailableRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BatchNameAvailableRequest) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
|
|
b = b[:newLen]
|
|
_, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b, nil
|
|
}
|
|
func (m *BatchNameAvailableRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BatchNameAvailableRequest.Merge(m, src)
|
|
}
|
|
func (m *BatchNameAvailableRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BatchNameAvailableRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BatchNameAvailableRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BatchNameAvailableRequest proto.InternalMessageInfo
|
|
|
|
func (m *BatchNameAvailableRequest) GetFullNames() []string {
|
|
if m != nil {
|
|
return m.FullNames
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NameByAddressRequest struct {
|
|
// EOA -> SCW -> name
|
|
// A SCW Ethereum address that owns that name
|
|
OwnerScwEthAddress string `protobuf:"bytes,1,opt,name=ownerScwEthAddress,proto3" json:"ownerScwEthAddress,omitempty"`
|
|
}
|
|
|
|
func (m *NameByAddressRequest) Reset() { *m = NameByAddressRequest{} }
|
|
func (m *NameByAddressRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*NameByAddressRequest) ProtoMessage() {}
|
|
func (*NameByAddressRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_06bca2ea4304f305, []int{2}
|
|
}
|
|
func (m *NameByAddressRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NameByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_NameByAddressRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *NameByAddressRequest) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
|
|
b = b[:newLen]
|
|
_, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b, nil
|
|
}
|
|
func (m *NameByAddressRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NameByAddressRequest.Merge(m, src)
|
|
}
|
|
func (m *NameByAddressRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NameByAddressRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NameByAddressRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NameByAddressRequest proto.InternalMessageInfo
|
|
|
|
func (m *NameByAddressRequest) GetOwnerScwEthAddress() string {
|
|
if m != nil {
|
|
return m.OwnerScwEthAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type BatchNameByAddressRequest struct {
|
|
// EOA -> SCW -> name
|
|
// A SCW Ethereum address that owns that name
|
|
OwnerScwEthAddresses []string `protobuf:"bytes,1,rep,name=ownerScwEthAddresses,proto3" json:"ownerScwEthAddresses,omitempty"`
|
|
}
|
|
|
|
func (m *BatchNameByAddressRequest) Reset() { *m = BatchNameByAddressRequest{} }
|
|
func (m *BatchNameByAddressRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BatchNameByAddressRequest) ProtoMessage() {}
|
|
func (*BatchNameByAddressRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_06bca2ea4304f305, []int{3}
|
|
}
|
|
func (m *BatchNameByAddressRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BatchNameByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BatchNameByAddressRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BatchNameByAddressRequest) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
|
|
b = b[:newLen]
|
|
_, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b, nil
|
|
}
|
|
func (m *BatchNameByAddressRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BatchNameByAddressRequest.Merge(m, src)
|
|
}
|
|
func (m *BatchNameByAddressRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BatchNameByAddressRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BatchNameByAddressRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BatchNameByAddressRequest proto.InternalMessageInfo
|
|
|
|
func (m *BatchNameByAddressRequest) GetOwnerScwEthAddresses() []string {
|
|
if m != nil {
|
|
return m.OwnerScwEthAddresses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NameByAnyIdRequest struct {
|
|
AnyAddress string `protobuf:"bytes,1,opt,name=anyAddress,proto3" json:"anyAddress,omitempty"`
|
|
}
|
|
|
|
func (m *NameByAnyIdRequest) Reset() { *m = NameByAnyIdRequest{} }
|
|
func (m *NameByAnyIdRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*NameByAnyIdRequest) ProtoMessage() {}
|
|
func (*NameByAnyIdRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_06bca2ea4304f305, []int{4}
|
|
}
|
|
func (m *NameByAnyIdRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NameByAnyIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_NameByAnyIdRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *NameByAnyIdRequest) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
|
|
b = b[:newLen]
|
|
_, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b, nil
|
|
}
|
|
func (m *NameByAnyIdRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NameByAnyIdRequest.Merge(m, src)
|
|
}
|
|
func (m *NameByAnyIdRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NameByAnyIdRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NameByAnyIdRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NameByAnyIdRequest proto.InternalMessageInfo
|
|
|
|
func (m *NameByAnyIdRequest) GetAnyAddress() string {
|
|
if m != nil {
|
|
return m.AnyAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type BatchNameByAnyIdRequest struct {
|
|
AnyAddresses []string `protobuf:"bytes,1,rep,name=anyAddresses,proto3" json:"anyAddresses,omitempty"`
|
|
}
|
|
|
|
func (m *BatchNameByAnyIdRequest) Reset() { *m = BatchNameByAnyIdRequest{} }
|
|
func (m *BatchNameByAnyIdRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BatchNameByAnyIdRequest) ProtoMessage() {}
|
|
func (*BatchNameByAnyIdRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_06bca2ea4304f305, []int{5}
|
|
}
|
|
func (m *BatchNameByAnyIdRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BatchNameByAnyIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BatchNameByAnyIdRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BatchNameByAnyIdRequest) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
|
|
b = b[:newLen]
|
|
_, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b, nil
|
|
}
|
|
func (m *BatchNameByAnyIdRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BatchNameByAnyIdRequest.Merge(m, src)
|
|
}
|
|
func (m *BatchNameByAnyIdRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BatchNameByAnyIdRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BatchNameByAnyIdRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BatchNameByAnyIdRequest proto.InternalMessageInfo
|
|
|
|
func (m *BatchNameByAnyIdRequest) GetAnyAddresses() []string {
|
|
if m != nil {
|
|
return m.AnyAddresses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NameAvailableResponse struct {
|
|
Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`
|
|
// EOA -> SCW -> name
|
|
// This field is non-empty only if name is "already registered"
|
|
OwnerScwEthAddress string `protobuf:"bytes,2,opt,name=ownerScwEthAddress,proto3" json:"ownerScwEthAddress,omitempty"`
|
|
// This field is non-empty only if name is "already registered"
|
|
OwnerEthAddress string `protobuf:"bytes,3,opt,name=ownerEthAddress,proto3" json:"ownerEthAddress,omitempty"`
|
|
// A content hash attached to this name
|
|
// This field is non-empty only if name is "already registered"
|
|
OwnerAnyAddress string `protobuf:"bytes,4,opt,name=ownerAnyAddress,proto3" json:"ownerAnyAddress,omitempty"`
|
|
// A SpaceID attached to this name
|
|
// This field is non-empty only if name is "already registered"
|
|
SpaceId string `protobuf:"bytes,5,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
|
|
// doesn't work with marashalling/unmarshalling
|
|
//google.protobuf.Timestamp nameExpires = 5 [(gogoproto.stdtime) = true];
|
|
NameExpires int64 `protobuf:"varint,6,opt,name=nameExpires,proto3" json:"nameExpires,omitempty"`
|
|
}
|
|
|
|
func (m *NameAvailableResponse) Reset() { *m = NameAvailableResponse{} }
|
|
func (m *NameAvailableResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*NameAvailableResponse) ProtoMessage() {}
|
|
func (*NameAvailableResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_06bca2ea4304f305, []int{6}
|
|
}
|
|
func (m *NameAvailableResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NameAvailableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_NameAvailableResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *NameAvailableResponse) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
|
|
b = b[:newLen]
|
|
_, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b, nil
|
|
}
|
|
func (m *NameAvailableResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NameAvailableResponse.Merge(m, src)
|
|
}
|
|
func (m *NameAvailableResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NameAvailableResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NameAvailableResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NameAvailableResponse proto.InternalMessageInfo
|
|
|
|
func (m *NameAvailableResponse) GetAvailable() bool {
|
|
if m != nil {
|
|
return m.Available
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *NameAvailableResponse) GetOwnerScwEthAddress() string {
|
|
if m != nil {
|
|
return m.OwnerScwEthAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *NameAvailableResponse) GetOwnerEthAddress() string {
|
|
if m != nil {
|
|
return m.OwnerEthAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *NameAvailableResponse) GetOwnerAnyAddress() string {
|
|
if m != nil {
|
|
return m.OwnerAnyAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *NameAvailableResponse) GetSpaceId() string {
|
|
if m != nil {
|
|
return m.SpaceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *NameAvailableResponse) GetNameExpires() int64 {
|
|
if m != nil {
|
|
return m.NameExpires
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type BatchNameAvailableResponse struct {
|
|
Results []*NameAvailableResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
|
|
}
|
|
|
|
func (m *BatchNameAvailableResponse) Reset() { *m = BatchNameAvailableResponse{} }
|
|
func (m *BatchNameAvailableResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BatchNameAvailableResponse) ProtoMessage() {}
|
|
func (*BatchNameAvailableResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_06bca2ea4304f305, []int{7}
|
|
}
|
|
func (m *BatchNameAvailableResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BatchNameAvailableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BatchNameAvailableResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BatchNameAvailableResponse) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
|
|
b = b[:newLen]
|
|
_, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b, nil
|
|
}
|
|
func (m *BatchNameAvailableResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BatchNameAvailableResponse.Merge(m, src)
|
|
}
|
|
func (m *BatchNameAvailableResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BatchNameAvailableResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BatchNameAvailableResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BatchNameAvailableResponse proto.InternalMessageInfo
|
|
|
|
func (m *BatchNameAvailableResponse) GetResults() []*NameAvailableResponse {
|
|
if m != nil {
|
|
return m.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NameByAddressResponse struct {
|
|
Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (m *NameByAddressResponse) Reset() { *m = NameByAddressResponse{} }
|
|
func (m *NameByAddressResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*NameByAddressResponse) ProtoMessage() {}
|
|
func (*NameByAddressResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_06bca2ea4304f305, []int{8}
|
|
}
|
|
func (m *NameByAddressResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NameByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_NameByAddressResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *NameByAddressResponse) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
|
|
b = b[:newLen]
|
|
_, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b, nil
|
|
}
|
|
func (m *NameByAddressResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NameByAddressResponse.Merge(m, src)
|
|
}
|
|
func (m *NameByAddressResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NameByAddressResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NameByAddressResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NameByAddressResponse proto.InternalMessageInfo
|
|
|
|
func (m *NameByAddressResponse) GetFound() bool {
|
|
if m != nil {
|
|
return m.Found
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *NameByAddressResponse) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type BatchNameByAddressResponse struct {
|
|
Results []*NameByAddressResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
|
|
}
|
|
|
|
func (m *BatchNameByAddressResponse) Reset() { *m = BatchNameByAddressResponse{} }
|
|
func (m *BatchNameByAddressResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BatchNameByAddressResponse) ProtoMessage() {}
|
|
func (*BatchNameByAddressResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_06bca2ea4304f305, []int{9}
|
|
}
|
|
func (m *BatchNameByAddressResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BatchNameByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BatchNameByAddressResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BatchNameByAddressResponse) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
|
|
b = b[:newLen]
|
|
_, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b, nil
|
|
}
|
|
func (m *BatchNameByAddressResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BatchNameByAddressResponse.Merge(m, src)
|
|
}
|
|
func (m *BatchNameByAddressResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BatchNameByAddressResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BatchNameByAddressResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BatchNameByAddressResponse proto.InternalMessageInfo
|
|
|
|
func (m *BatchNameByAddressResponse) GetResults() []*NameByAddressResponse {
|
|
if m != nil {
|
|
return m.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*NameAvailableRequest)(nil), "NameAvailableRequest")
|
|
proto.RegisterType((*BatchNameAvailableRequest)(nil), "BatchNameAvailableRequest")
|
|
proto.RegisterType((*NameByAddressRequest)(nil), "NameByAddressRequest")
|
|
proto.RegisterType((*BatchNameByAddressRequest)(nil), "BatchNameByAddressRequest")
|
|
proto.RegisterType((*NameByAnyIdRequest)(nil), "NameByAnyIdRequest")
|
|
proto.RegisterType((*BatchNameByAnyIdRequest)(nil), "BatchNameByAnyIdRequest")
|
|
proto.RegisterType((*NameAvailableResponse)(nil), "NameAvailableResponse")
|
|
proto.RegisterType((*BatchNameAvailableResponse)(nil), "BatchNameAvailableResponse")
|
|
proto.RegisterType((*NameByAddressResponse)(nil), "NameByAddressResponse")
|
|
proto.RegisterType((*BatchNameByAddressResponse)(nil), "BatchNameByAddressResponse")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("nameservice/nameserviceproto/protos/nameservice.proto", fileDescriptor_06bca2ea4304f305)
|
|
}
|
|
|
|
var fileDescriptor_06bca2ea4304f305 = []byte{
|
|
// 562 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4d, 0x6f, 0xd3, 0x40,
|
|
0x10, 0xb5, 0x49, 0xd2, 0x36, 0x53, 0x44, 0xd1, 0x36, 0xa1, 0xc6, 0xad, 0xac, 0x68, 0x4f, 0x39,
|
|
0x6d, 0x51, 0xf8, 0x10, 0x1c, 0x10, 0x72, 0x50, 0x41, 0x11, 0x52, 0x2a, 0xdc, 0x1b, 0x17, 0xb4,
|
|
0x8d, 0xb7, 0xad, 0xa5, 0x64, 0x1d, 0xbc, 0x4e, 0x4b, 0xfe, 0x05, 0x17, 0xfe, 0x13, 0xc7, 0x1e,
|
|
0x39, 0xa2, 0xe4, 0x37, 0x70, 0x47, 0x5e, 0xdb, 0xf1, 0xfa, 0xab, 0xa8, 0x97, 0xd6, 0xfb, 0xe6,
|
|
0xcd, 0xdb, 0x37, 0x4f, 0x3b, 0x81, 0x97, 0x9c, 0xce, 0x98, 0x60, 0xc1, 0xb5, 0x37, 0x61, 0xc7,
|
|
0xca, 0xf7, 0x3c, 0xf0, 0x43, 0xff, 0x58, 0xfe, 0x15, 0x2a, 0x4e, 0x24, 0x64, 0xbe, 0xbe, 0x67,
|
|
0xdb, 0x57, 0x4a, 0xe3, 0x4e, 0x3c, 0x80, 0xce, 0x98, 0xce, 0x98, 0x7d, 0x4d, 0xbd, 0x29, 0x3d,
|
|
0x9f, 0x32, 0x87, 0x7d, 0x5b, 0x30, 0x11, 0x22, 0x13, 0x76, 0x2e, 0x16, 0xd3, 0x69, 0x54, 0x33,
|
|
0xf4, 0x9e, 0xde, 0x6f, 0x3b, 0x9b, 0x33, 0x7e, 0x03, 0x4f, 0x87, 0x34, 0x9c, 0x5c, 0x55, 0x36,
|
|
0x1e, 0x41, 0x3b, 0x25, 0x0a, 0x43, 0xef, 0x35, 0xfa, 0x6d, 0x27, 0x03, 0xf0, 0x87, 0xf8, 0xba,
|
|
0xe1, 0xd2, 0x76, 0xdd, 0x80, 0x09, 0x91, 0x76, 0x11, 0x40, 0xfe, 0x0d, 0x67, 0xc1, 0xd9, 0xe4,
|
|
0xe6, 0x24, 0xbc, 0x4a, 0x8a, 0xc9, 0xc5, 0x15, 0x15, 0x7c, 0xaa, 0x58, 0x28, 0x89, 0x0d, 0xa0,
|
|
0x53, 0x6e, 0xd9, 0xb8, 0xa9, 0xac, 0xe1, 0x17, 0x80, 0x12, 0x2d, 0xbe, 0x1c, 0xb9, 0xa9, 0x92,
|
|
0x05, 0x40, 0xf9, 0x32, 0x6f, 0x47, 0x41, 0xf0, 0x5b, 0x38, 0x50, 0x6d, 0xa8, 0xad, 0x18, 0x1e,
|
|
0x66, 0xc4, 0xcd, 0xe5, 0x39, 0x0c, 0xff, 0xd5, 0xa1, 0x5b, 0x08, 0x51, 0xcc, 0x7d, 0x2e, 0x58,
|
|
0x94, 0x22, 0x4d, 0x41, 0x79, 0xef, 0x8e, 0x93, 0x01, 0x35, 0x69, 0x3d, 0xa8, 0x4b, 0x0b, 0xf5,
|
|
0x61, 0x4f, 0xa2, 0x0a, 0xb9, 0x21, 0xc9, 0x45, 0x78, 0xc3, 0xb4, 0xb3, 0xa9, 0x9b, 0x0a, 0x33,
|
|
0x83, 0x91, 0x01, 0xdb, 0x62, 0x4e, 0x27, 0x6c, 0xe4, 0x1a, 0x2d, 0xc9, 0x48, 0x8f, 0xa8, 0x07,
|
|
0xbb, 0xd1, 0x53, 0x3b, 0xf9, 0x3e, 0xf7, 0x02, 0x26, 0x8c, 0xad, 0x9e, 0xde, 0x6f, 0x38, 0x2a,
|
|
0x84, 0xc7, 0x60, 0x56, 0x3d, 0xa0, 0x64, 0xf6, 0x67, 0xb0, 0x1d, 0x30, 0xb1, 0x98, 0x86, 0x71,
|
|
0x68, 0xbb, 0x83, 0x27, 0xa4, 0x92, 0xe8, 0xa4, 0x34, 0x6c, 0xc7, 0x31, 0x2a, 0x0f, 0x21, 0x91,
|
|
0xea, 0x40, 0xeb, 0xc2, 0x5f, 0x70, 0x37, 0x89, 0x30, 0x3e, 0x20, 0x04, 0xcd, 0xc8, 0x4d, 0x12,
|
|
0x98, 0xfc, 0xce, 0x59, 0x2a, 0xeb, 0xd4, 0x58, 0x2a, 0x11, 0x37, 0x96, 0x06, 0x3f, 0x9b, 0xd0,
|
|
0xb2, 0xf9, 0x92, 0x0b, 0x34, 0x84, 0xbd, 0x91, 0xc8, 0x0d, 0x80, 0xba, 0xa4, 0x6a, 0x75, 0xcc,
|
|
0x9a, 0x39, 0xb1, 0x86, 0x3e, 0x43, 0x47, 0xba, 0x2b, 0x0a, 0x99, 0xa4, 0x76, 0x11, 0xcd, 0x43,
|
|
0x52, 0x9f, 0x31, 0xd6, 0xd0, 0x7b, 0x78, 0xfc, 0x91, 0x85, 0xb9, 0x29, 0x12, 0x5f, 0xc5, 0x7d,
|
|
0x32, 0x6b, 0x86, 0xc5, 0x1a, 0x72, 0xa0, 0x2b, 0x2f, 0x29, 0x29, 0x29, 0xc6, 0x4a, 0x72, 0x87,
|
|
0xa4, 0x3e, 0x69, 0xac, 0xa1, 0x77, 0xf0, 0x28, 0x93, 0x8b, 0x36, 0x0a, 0xed, 0x93, 0xf2, 0x7e,
|
|
0xdd, 0x61, 0x6a, 0x0c, 0xfb, 0x05, 0x53, 0x52, 0xc5, 0x20, 0x35, 0xab, 0xfa, 0x3f, 0x43, 0x9f,
|
|
0xe0, 0xc0, 0x76, 0x67, 0x1e, 0x8f, 0xea, 0x0e, 0xbb, 0xf4, 0x44, 0xc8, 0x82, 0x33, 0xef, 0x92,
|
|
0x33, 0x17, 0x99, 0x44, 0x05, 0x13, 0xbd, 0xb8, 0x66, 0x22, 0x72, 0x3a, 0x67, 0x01, 0x0d, 0x3d,
|
|
0x9f, 0x67, 0x62, 0xc3, 0x57, 0xbf, 0x56, 0x96, 0x7e, 0xbb, 0xb2, 0xf4, 0x3f, 0x2b, 0x4b, 0xff,
|
|
0xb1, 0xb6, 0xb4, 0xdb, 0xb5, 0xa5, 0xfd, 0x5e, 0x5b, 0xda, 0x97, 0xa3, 0xbb, 0x7e, 0xc3, 0xcf,
|
|
0xb7, 0xe4, 0xbf, 0xe7, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x04, 0xfe, 0x4d, 0x21, 0x06,
|
|
0x00, 0x00,
|
|
}
|
|
|
|
func (m *NameAvailableRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *NameAvailableRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NameAvailableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.FullName) > 0 {
|
|
i -= len(m.FullName)
|
|
copy(dAtA[i:], m.FullName)
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.FullName)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BatchNameAvailableRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BatchNameAvailableRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BatchNameAvailableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.FullNames) > 0 {
|
|
for iNdEx := len(m.FullNames) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.FullNames[iNdEx])
|
|
copy(dAtA[i:], m.FullNames[iNdEx])
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.FullNames[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *NameByAddressRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *NameByAddressRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NameByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.OwnerScwEthAddress) > 0 {
|
|
i -= len(m.OwnerScwEthAddress)
|
|
copy(dAtA[i:], m.OwnerScwEthAddress)
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.OwnerScwEthAddress)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BatchNameByAddressRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BatchNameByAddressRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BatchNameByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.OwnerScwEthAddresses) > 0 {
|
|
for iNdEx := len(m.OwnerScwEthAddresses) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.OwnerScwEthAddresses[iNdEx])
|
|
copy(dAtA[i:], m.OwnerScwEthAddresses[iNdEx])
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.OwnerScwEthAddresses[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *NameByAnyIdRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *NameByAnyIdRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NameByAnyIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.AnyAddress) > 0 {
|
|
i -= len(m.AnyAddress)
|
|
copy(dAtA[i:], m.AnyAddress)
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.AnyAddress)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BatchNameByAnyIdRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BatchNameByAnyIdRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BatchNameByAnyIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.AnyAddresses) > 0 {
|
|
for iNdEx := len(m.AnyAddresses) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.AnyAddresses[iNdEx])
|
|
copy(dAtA[i:], m.AnyAddresses[iNdEx])
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.AnyAddresses[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *NameAvailableResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *NameAvailableResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NameAvailableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.NameExpires != 0 {
|
|
i = encodeVarintNameservice(dAtA, i, uint64(m.NameExpires))
|
|
i--
|
|
dAtA[i] = 0x30
|
|
}
|
|
if len(m.SpaceId) > 0 {
|
|
i -= len(m.SpaceId)
|
|
copy(dAtA[i:], m.SpaceId)
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.SpaceId)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if len(m.OwnerAnyAddress) > 0 {
|
|
i -= len(m.OwnerAnyAddress)
|
|
copy(dAtA[i:], m.OwnerAnyAddress)
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.OwnerAnyAddress)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
if len(m.OwnerEthAddress) > 0 {
|
|
i -= len(m.OwnerEthAddress)
|
|
copy(dAtA[i:], m.OwnerEthAddress)
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.OwnerEthAddress)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.OwnerScwEthAddress) > 0 {
|
|
i -= len(m.OwnerScwEthAddress)
|
|
copy(dAtA[i:], m.OwnerScwEthAddress)
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.OwnerScwEthAddress)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Available {
|
|
i--
|
|
if m.Available {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BatchNameAvailableResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BatchNameAvailableResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BatchNameAvailableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Results) > 0 {
|
|
for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintNameservice(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *NameByAddressResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *NameByAddressResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NameByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintNameservice(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Found {
|
|
i--
|
|
if m.Found {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BatchNameByAddressResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BatchNameByAddressResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BatchNameByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Results) > 0 {
|
|
for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintNameservice(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintNameservice(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovNameservice(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *NameAvailableRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.FullName)
|
|
if l > 0 {
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BatchNameAvailableRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.FullNames) > 0 {
|
|
for _, s := range m.FullNames {
|
|
l = len(s)
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *NameByAddressRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.OwnerScwEthAddress)
|
|
if l > 0 {
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BatchNameByAddressRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.OwnerScwEthAddresses) > 0 {
|
|
for _, s := range m.OwnerScwEthAddresses {
|
|
l = len(s)
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *NameByAnyIdRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.AnyAddress)
|
|
if l > 0 {
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BatchNameByAnyIdRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.AnyAddresses) > 0 {
|
|
for _, s := range m.AnyAddresses {
|
|
l = len(s)
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *NameAvailableResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Available {
|
|
n += 2
|
|
}
|
|
l = len(m.OwnerScwEthAddress)
|
|
if l > 0 {
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
l = len(m.OwnerEthAddress)
|
|
if l > 0 {
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
l = len(m.OwnerAnyAddress)
|
|
if l > 0 {
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
l = len(m.SpaceId)
|
|
if l > 0 {
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
if m.NameExpires != 0 {
|
|
n += 1 + sovNameservice(uint64(m.NameExpires))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BatchNameAvailableResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Results) > 0 {
|
|
for _, e := range m.Results {
|
|
l = e.Size()
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *NameByAddressResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Found {
|
|
n += 2
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BatchNameByAddressResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Results) > 0 {
|
|
for _, e := range m.Results {
|
|
l = e.Size()
|
|
n += 1 + l + sovNameservice(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovNameservice(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozNameservice(x uint64) (n int) {
|
|
return sovNameservice(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *NameAvailableRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 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 fmt.Errorf("proto: NameAvailableRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NameAvailableRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FullName", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.FullName = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipNameservice(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BatchNameAvailableRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 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 fmt.Errorf("proto: BatchNameAvailableRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BatchNameAvailableRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FullNames", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.FullNames = append(m.FullNames, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipNameservice(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *NameByAddressRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 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 fmt.Errorf("proto: NameByAddressRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NameByAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OwnerScwEthAddress", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.OwnerScwEthAddress = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipNameservice(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BatchNameByAddressRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 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 fmt.Errorf("proto: BatchNameByAddressRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BatchNameByAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OwnerScwEthAddresses", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.OwnerScwEthAddresses = append(m.OwnerScwEthAddresses, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipNameservice(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *NameByAnyIdRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 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 fmt.Errorf("proto: NameByAnyIdRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NameByAnyIdRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AnyAddress", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AnyAddress = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipNameservice(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BatchNameByAnyIdRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 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 fmt.Errorf("proto: BatchNameByAnyIdRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BatchNameByAnyIdRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AnyAddresses", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AnyAddresses = append(m.AnyAddresses, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipNameservice(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *NameAvailableResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 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 fmt.Errorf("proto: NameAvailableResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NameAvailableResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Available", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Available = bool(v != 0)
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OwnerScwEthAddress", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.OwnerScwEthAddress = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OwnerEthAddress", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.OwnerEthAddress = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OwnerAnyAddress", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.OwnerAnyAddress = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.SpaceId = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NameExpires", wireType)
|
|
}
|
|
m.NameExpires = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.NameExpires |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipNameservice(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BatchNameAvailableResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 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 fmt.Errorf("proto: BatchNameAvailableResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BatchNameAvailableResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Results = append(m.Results, &NameAvailableResponse{})
|
|
if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipNameservice(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *NameByAddressResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 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 fmt.Errorf("proto: NameByAddressResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NameByAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Found", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Found = bool(v != 0)
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipNameservice(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BatchNameByAddressResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 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 fmt.Errorf("proto: BatchNameByAddressResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BatchNameByAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Results = append(m.Results, &NameByAddressResponse{})
|
|
if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipNameservice(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthNameservice
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipNameservice(dAtA []byte) (n int, err error) {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
depth := 0
|
|
for iNdEx < l {
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
wireType := int(wire & 0x7)
|
|
switch wireType {
|
|
case 0:
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx++
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 1:
|
|
iNdEx += 8
|
|
case 2:
|
|
var length int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowNameservice
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
length |= (int(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if length < 0 {
|
|
return 0, ErrInvalidLengthNameservice
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupNameservice
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthNameservice
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthNameservice = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowNameservice = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupNameservice = fmt.Errorf("proto: unexpected end of group")
|
|
)
|