2020-10-19 18:51:59 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
2024-03-19 06:55:23 +00:00
|
|
|
// protoc-gen-go v1.33.0
|
|
|
|
// protoc v4.25.3
|
2021-11-17 09:35:56 +00:00
|
|
|
// source: refs/grpc/types.proto
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-08-13 12:43:47 +00:00
|
|
|
package refs
|
2020-08-12 09:57:28 +00:00
|
|
|
|
|
|
|
import (
|
2020-10-19 18:51:59 +00:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2020-08-12 09:57:28 +00:00
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2024-03-19 06:55:23 +00:00
|
|
|
// Signature scheme describes digital signing scheme used for (key, signature)
|
|
|
|
// pair.
|
2022-02-22 11:25:43 +00:00
|
|
|
type SignatureScheme int32
|
|
|
|
|
|
|
|
const (
|
2022-03-02 10:15:36 +00:00
|
|
|
// ECDSA with SHA-512 hashing (FIPS 186-3)
|
|
|
|
SignatureScheme_ECDSA_SHA512 SignatureScheme = 0
|
2022-02-22 11:25:43 +00:00
|
|
|
// Deterministic ECDSA with SHA-256 hashing (RFC 6979)
|
2022-03-02 10:15:36 +00:00
|
|
|
SignatureScheme_ECDSA_RFC6979_SHA256 SignatureScheme = 1
|
2022-03-15 13:54:47 +00:00
|
|
|
// Deterministic ECDSA with SHA-256 hashing using WalletConnect API.
|
2022-06-28 13:39:17 +00:00
|
|
|
// Here the algorithm is the same, but the message format differs.
|
2022-03-15 13:54:47 +00:00
|
|
|
SignatureScheme_ECDSA_RFC6979_SHA256_WALLET_CONNECT SignatureScheme = 2
|
2022-02-22 11:25:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for SignatureScheme.
|
|
|
|
var (
|
|
|
|
SignatureScheme_name = map[int32]string{
|
2022-03-02 10:15:36 +00:00
|
|
|
0: "ECDSA_SHA512",
|
|
|
|
1: "ECDSA_RFC6979_SHA256",
|
2022-03-15 13:54:47 +00:00
|
|
|
2: "ECDSA_RFC6979_SHA256_WALLET_CONNECT",
|
2022-02-22 11:25:43 +00:00
|
|
|
}
|
|
|
|
SignatureScheme_value = map[string]int32{
|
2022-03-15 13:54:47 +00:00
|
|
|
"ECDSA_SHA512": 0,
|
|
|
|
"ECDSA_RFC6979_SHA256": 1,
|
|
|
|
"ECDSA_RFC6979_SHA256_WALLET_CONNECT": 2,
|
2022-02-22 11:25:43 +00:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x SignatureScheme) Enum() *SignatureScheme {
|
|
|
|
p := new(SignatureScheme)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x SignatureScheme) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (SignatureScheme) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_refs_grpc_types_proto_enumTypes[0].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (SignatureScheme) Type() protoreflect.EnumType {
|
|
|
|
return &file_refs_grpc_types_proto_enumTypes[0]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x SignatureScheme) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use SignatureScheme.Descriptor instead.
|
|
|
|
func (SignatureScheme) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_refs_grpc_types_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Checksum algorithm type.
|
2020-08-20 07:49:12 +00:00
|
|
|
type ChecksumType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Unknown. Not used
|
|
|
|
ChecksumType_CHECKSUM_TYPE_UNSPECIFIED ChecksumType = 0
|
2020-10-19 12:34:51 +00:00
|
|
|
// Tillich-Zemor homomorphic hash function
|
2020-08-20 07:49:12 +00:00
|
|
|
ChecksumType_TZ ChecksumType = 1
|
|
|
|
// SHA-256
|
|
|
|
ChecksumType_SHA256 ChecksumType = 2
|
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Enum value maps for ChecksumType.
|
|
|
|
var (
|
|
|
|
ChecksumType_name = map[int32]string{
|
|
|
|
0: "CHECKSUM_TYPE_UNSPECIFIED",
|
|
|
|
1: "TZ",
|
|
|
|
2: "SHA256",
|
|
|
|
}
|
|
|
|
ChecksumType_value = map[string]int32{
|
|
|
|
"CHECKSUM_TYPE_UNSPECIFIED": 0,
|
|
|
|
"TZ": 1,
|
|
|
|
"SHA256": 2,
|
|
|
|
}
|
|
|
|
)
|
2020-08-20 07:49:12 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x ChecksumType) Enum() *ChecksumType {
|
|
|
|
p := new(ChecksumType)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x ChecksumType) String() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ChecksumType) Descriptor() protoreflect.EnumDescriptor {
|
2022-02-22 11:25:43 +00:00
|
|
|
return file_refs_grpc_types_proto_enumTypes[1].Descriptor()
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (ChecksumType) Type() protoreflect.EnumType {
|
2022-02-22 11:25:43 +00:00
|
|
|
return &file_refs_grpc_types_proto_enumTypes[1]
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x ChecksumType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use ChecksumType.Descriptor instead.
|
2020-08-20 07:49:12 +00:00
|
|
|
func (ChecksumType) EnumDescriptor() ([]byte, []int) {
|
2022-02-22 11:25:43 +00:00
|
|
|
return file_refs_grpc_types_proto_rawDescGZIP(), []int{1}
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-12-10 07:48:09 +00:00
|
|
|
// Objects in NeoFS are addressed by their ContainerID and ObjectID.
|
|
|
|
//
|
2022-06-15 17:30:22 +00:00
|
|
|
// String presentation of `Address` is a concatenation of string encoded
|
2020-12-10 07:48:09 +00:00
|
|
|
// `ContainerID` and `ObjectID` delimited by '/' character.
|
2020-08-12 09:57:28 +00:00
|
|
|
type Address struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Container identifier
|
|
|
|
ContainerId *ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerID,proto3" json:"container_id,omitempty"`
|
|
|
|
// Object identifier
|
2020-10-19 18:51:59 +00:00
|
|
|
ObjectId *ObjectID `protobuf:"bytes,2,opt,name=object_id,json=objectID,proto3" json:"object_id,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Address) Reset() {
|
|
|
|
*x = Address{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[0]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *Address) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*Address) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Address) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[0]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ms
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use Address.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Address) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_refs_grpc_types_proto_rawDescGZIP(), []int{0}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Address) GetContainerId() *ContainerID {
|
|
|
|
if x != nil {
|
|
|
|
return x.ContainerId
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Address) GetObjectId() *ObjectID {
|
|
|
|
if x != nil {
|
|
|
|
return x.ObjectId
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// NeoFS Object unique identifier. Objects are immutable and content-addressed.
|
2022-06-15 17:30:22 +00:00
|
|
|
// It means `ObjectID` will change if the `header` or the `payload` changes.
|
2020-12-10 07:48:09 +00:00
|
|
|
//
|
2020-12-18 13:00:50 +00:00
|
|
|
// `ObjectID` is a 32 byte long
|
|
|
|
// [SHA256](https://csrc.nist.gov/publications/detail/fips/180/4/final) hash of
|
2024-03-19 06:55:23 +00:00
|
|
|
// the object's `header` field, which, in it's turn, contains the hash of the
|
|
|
|
// object's payload.
|
2020-12-10 07:48:09 +00:00
|
|
|
//
|
2022-06-15 17:30:22 +00:00
|
|
|
// String presentation is a
|
2020-12-18 13:00:50 +00:00
|
|
|
// [base58](https://tools.ietf.org/html/draft-msporny-base58-02) encoded string.
|
|
|
|
//
|
2022-06-15 17:30:22 +00:00
|
|
|
// JSON value will be data encoded as a string using standard base64
|
2020-12-18 13:00:50 +00:00
|
|
|
// encoding with paddings. Either
|
|
|
|
// [standard](https://tools.ietf.org/html/rfc4648#section-4) or
|
|
|
|
// [URL-safe](https://tools.ietf.org/html/rfc4648#section-5) base64 encoding
|
|
|
|
// with/without paddings are accepted.
|
2020-08-12 09:57:28 +00:00
|
|
|
type ObjectID struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Object identifier in a binary format
|
2020-10-19 18:51:59 +00:00
|
|
|
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *ObjectID) Reset() {
|
|
|
|
*x = ObjectID{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[1]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *ObjectID) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*ObjectID) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ObjectID) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[1]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ms
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use ObjectID.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ObjectID) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_refs_grpc_types_proto_rawDescGZIP(), []int{1}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *ObjectID) GetValue() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// NeoFS container identifier. Container structures are immutable and
|
2020-12-10 07:48:09 +00:00
|
|
|
// content-addressed.
|
|
|
|
//
|
2020-12-18 13:00:50 +00:00
|
|
|
// `ContainerID` is a 32 byte long
|
|
|
|
// [SHA256](https://csrc.nist.gov/publications/detail/fips/180/4/final) hash of
|
|
|
|
// stable-marshalled container message.
|
|
|
|
//
|
2022-06-15 17:30:22 +00:00
|
|
|
// String presentation is a
|
2020-12-18 13:00:50 +00:00
|
|
|
// [base58](https://tools.ietf.org/html/draft-msporny-base58-02) encoded string.
|
2020-12-10 07:48:09 +00:00
|
|
|
//
|
2022-06-15 17:30:22 +00:00
|
|
|
// JSON value will be data encoded as a string using standard base64
|
2020-12-18 13:00:50 +00:00
|
|
|
// encoding with paddings. Either
|
|
|
|
// [standard](https://tools.ietf.org/html/rfc4648#section-4) or
|
|
|
|
// [URL-safe](https://tools.ietf.org/html/rfc4648#section-5) base64 encoding
|
|
|
|
// with/without paddings are accepted.
|
2020-08-12 09:57:28 +00:00
|
|
|
type ContainerID struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Container identifier in a binary format.
|
2020-10-19 18:51:59 +00:00
|
|
|
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *ContainerID) Reset() {
|
|
|
|
*x = ContainerID{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[2]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *ContainerID) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*ContainerID) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ContainerID) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[2]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ms
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use ContainerID.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ContainerID) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_refs_grpc_types_proto_rawDescGZIP(), []int{2}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *ContainerID) GetValue() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-12-10 07:48:09 +00:00
|
|
|
// `OwnerID` is a derivative of a user's main public key. The transformation
|
2020-10-19 12:34:51 +00:00
|
|
|
// algorithm is the same as for Neo3 wallet addresses. Neo3 wallet address can
|
|
|
|
// be directly used as `OwnerID`.
|
2020-12-10 07:48:09 +00:00
|
|
|
//
|
|
|
|
// `OwnerID` is a 25 bytes sequence starting with Neo version prefix byte
|
|
|
|
// followed by 20 bytes of ScrptHash and 4 bytes of checksum.
|
|
|
|
//
|
2022-06-15 17:30:22 +00:00
|
|
|
// String presentation is a [Base58
|
2020-12-18 13:00:50 +00:00
|
|
|
// Check](https://en.bitcoin.it/wiki/Base58Check_encoding) Encoded string.
|
|
|
|
//
|
2022-06-15 17:30:22 +00:00
|
|
|
// JSON value will be data encoded as a string using standard base64
|
2020-12-18 13:00:50 +00:00
|
|
|
// encoding with paddings. Either
|
|
|
|
// [standard](https://tools.ietf.org/html/rfc4648#section-4) or
|
|
|
|
// [URL-safe](https://tools.ietf.org/html/rfc4648#section-5) base64 encoding
|
|
|
|
// with/without paddings are accepted.
|
2020-08-12 09:57:28 +00:00
|
|
|
type OwnerID struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Identifier of the container owner in a binary format
|
2020-10-19 18:51:59 +00:00
|
|
|
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *OwnerID) Reset() {
|
|
|
|
*x = OwnerID{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[3]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *OwnerID) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*OwnerID) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *OwnerID) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[3]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ms
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use OwnerID.ProtoReflect.Descriptor instead.
|
|
|
|
func (*OwnerID) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_refs_grpc_types_proto_rawDescGZIP(), []int{3}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *OwnerID) GetValue() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// API version used by a node.
|
2020-12-10 07:48:09 +00:00
|
|
|
//
|
|
|
|
// String presentation is a Semantic Versioning 2.0.0 compatible version string
|
2024-03-19 06:55:23 +00:00
|
|
|
// with 'v' prefix. i.e. `vX.Y`, where `X` is the major number, `Y` is the minor
|
|
|
|
// number.
|
2020-08-20 07:49:12 +00:00
|
|
|
type Version struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Major API version
|
2020-08-20 07:49:12 +00:00
|
|
|
Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
|
2020-10-19 12:34:51 +00:00
|
|
|
// Minor API version
|
2020-10-19 18:51:59 +00:00
|
|
|
Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Version) Reset() {
|
|
|
|
*x = Version{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-04-18 05:40:42 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[4]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *Version) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*Version) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Version) ProtoReflect() protoreflect.Message {
|
2023-04-18 05:40:42 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[4]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ms
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return mi.MessageOf(x)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use Version.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Version) Descriptor() ([]byte, []int) {
|
2023-04-18 05:40:42 +00:00
|
|
|
return file_refs_grpc_types_proto_rawDescGZIP(), []int{4}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2020-08-20 07:49:12 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Version) GetMajor() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Major
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Version) GetMinor() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Minor
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Signature of something in NeoFS.
|
2020-08-20 07:49:12 +00:00
|
|
|
type Signature struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Public key used for signing
|
2020-08-20 07:49:12 +00:00
|
|
|
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
// Signature
|
2020-10-19 18:51:59 +00:00
|
|
|
Sign []byte `protobuf:"bytes,2,opt,name=sign,json=signature,proto3" json:"sign,omitempty"`
|
2022-03-02 10:15:36 +00:00
|
|
|
// Scheme contains digital signature scheme identifier
|
2022-02-22 11:25:43 +00:00
|
|
|
Scheme SignatureScheme `protobuf:"varint,3,opt,name=scheme,proto3,enum=neo.fs.v2.refs.SignatureScheme" json:"scheme,omitempty"`
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Signature) Reset() {
|
|
|
|
*x = Signature{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-04-18 05:40:42 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[5]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Signature) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (*Signature) ProtoMessage() {}
|
2020-08-20 07:49:12 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Signature) ProtoReflect() protoreflect.Message {
|
2023-04-18 05:40:42 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[5]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ms
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return mi.MessageOf(x)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use Signature.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Signature) Descriptor() ([]byte, []int) {
|
2023-04-18 05:40:42 +00:00
|
|
|
return file_refs_grpc_types_proto_rawDescGZIP(), []int{5}
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Signature) GetKey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Signature) GetSign() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Sign
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2022-02-22 11:25:43 +00:00
|
|
|
func (x *Signature) GetScheme() SignatureScheme {
|
|
|
|
if x != nil {
|
|
|
|
return x.Scheme
|
|
|
|
}
|
2022-03-02 10:15:36 +00:00
|
|
|
return SignatureScheme_ECDSA_SHA512
|
|
|
|
}
|
|
|
|
|
|
|
|
// RFC 6979 signature.
|
|
|
|
type SignatureRFC6979 struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// Public key used for signing
|
|
|
|
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
// Deterministic ECDSA with SHA-256 hashing
|
|
|
|
Sign []byte `protobuf:"bytes,2,opt,name=sign,json=signature,proto3" json:"sign,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SignatureRFC6979) Reset() {
|
|
|
|
*x = SignatureRFC6979{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-04-18 05:40:42 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[6]
|
2022-03-02 10:15:36 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SignatureRFC6979) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*SignatureRFC6979) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SignatureRFC6979) ProtoReflect() protoreflect.Message {
|
2023-04-18 05:40:42 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[6]
|
2022-03-02 10:15:36 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use SignatureRFC6979.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SignatureRFC6979) Descriptor() ([]byte, []int) {
|
2023-04-18 05:40:42 +00:00
|
|
|
return file_refs_grpc_types_proto_rawDescGZIP(), []int{6}
|
2022-03-02 10:15:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SignatureRFC6979) GetKey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SignatureRFC6979) GetSign() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Sign
|
|
|
|
}
|
|
|
|
return nil
|
2022-02-22 11:25:43 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Checksum message.
|
2022-06-15 17:30:22 +00:00
|
|
|
// Depending on checksum algorithm type, the string presentation may vary:
|
2020-12-10 07:48:09 +00:00
|
|
|
//
|
2022-09-15 05:21:44 +00:00
|
|
|
// - TZ \
|
|
|
|
// Hex encoded string without `0x` prefix
|
|
|
|
// - SHA256 \
|
|
|
|
// Hex encoded string without `0x` prefix
|
2020-10-19 18:51:59 +00:00
|
|
|
type Checksum struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-08-20 07:49:12 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Checksum algorithm type
|
|
|
|
Type ChecksumType `protobuf:"varint,1,opt,name=type,proto3,enum=neo.fs.v2.refs.ChecksumType" json:"type,omitempty"`
|
|
|
|
// Checksum itself
|
|
|
|
Sum []byte `protobuf:"bytes,2,opt,name=sum,proto3" json:"sum,omitempty"`
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Checksum) Reset() {
|
|
|
|
*x = Checksum{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-04-18 05:40:42 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[7]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Checksum) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (*Checksum) ProtoMessage() {}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Checksum) ProtoReflect() protoreflect.Message {
|
2023-04-18 05:40:42 +00:00
|
|
|
mi := &file_refs_grpc_types_proto_msgTypes[7]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ms
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-08-20 07:49:12 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use Checksum.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Checksum) Descriptor() ([]byte, []int) {
|
2023-04-18 05:40:42 +00:00
|
|
|
return file_refs_grpc_types_proto_rawDescGZIP(), []int{7}
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Checksum) GetType() ChecksumType {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ChecksumType_CHECKSUM_TYPE_UNSPECIFIED
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Checksum) GetSum() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Sum
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2021-11-17 09:35:56 +00:00
|
|
|
var File_refs_grpc_types_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_refs_grpc_types_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x15, 0x72, 0x65, 0x66, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65,
|
|
|
|
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e,
|
|
|
|
0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72,
|
|
|
|
0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
|
|
|
|
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x65, 0x6f, 0x2e,
|
|
|
|
0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61,
|
|
|
|
0x69, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65,
|
|
|
|
0x72, 0x49, 0x44, 0x12, 0x35, 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e,
|
|
|
|
0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x44,
|
|
|
|
0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x44, 0x22, 0x20, 0x0a, 0x08, 0x4f, 0x62,
|
|
|
|
0x6a, 0x65, 0x63, 0x74, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x0b,
|
|
|
|
0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x76,
|
|
|
|
0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
|
|
|
0x65, 0x22, 0x1f, 0x0a, 0x07, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05,
|
|
|
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c,
|
2023-04-18 05:40:42 +00:00
|
|
|
0x75, 0x65, 0x22, 0x35, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a,
|
|
|
|
0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6d, 0x61,
|
|
|
|
0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x0d, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x22, 0x6f, 0x0a, 0x09, 0x53, 0x69, 0x67,
|
|
|
|
0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x73, 0x69, 0x67, 0x6e,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
|
|
|
|
0x65, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
|
|
0x0e, 0x32, 0x1f, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65,
|
|
|
|
0x66, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x63, 0x68, 0x65,
|
|
|
|
0x6d, 0x65, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x22, 0x3d, 0x0a, 0x10, 0x53, 0x69,
|
|
|
|
0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x46, 0x43, 0x36, 0x39, 0x37, 0x39, 0x12, 0x10,
|
|
|
|
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
|
|
|
0x12, 0x17, 0x0a, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09,
|
|
|
|
0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x4e, 0x0a, 0x08, 0x43, 0x68, 0x65,
|
|
|
|
0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e,
|
|
|
|
0x72, 0x65, 0x66, 0x73, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x54, 0x79, 0x70,
|
|
|
|
0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, 0x02,
|
|
|
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x2a, 0x66, 0x0a, 0x0f, 0x53, 0x69, 0x67,
|
|
|
|
0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x0c,
|
|
|
|
0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x53, 0x48, 0x41, 0x35, 0x31, 0x32, 0x10, 0x00, 0x12, 0x18,
|
|
|
|
0x0a, 0x14, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x52, 0x46, 0x43, 0x36, 0x39, 0x37, 0x39, 0x5f,
|
|
|
|
0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x01, 0x12, 0x27, 0x0a, 0x23, 0x45, 0x43, 0x44, 0x53,
|
|
|
|
0x41, 0x5f, 0x52, 0x46, 0x43, 0x36, 0x39, 0x37, 0x39, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36,
|
|
|
|
0x5f, 0x57, 0x41, 0x4c, 0x4c, 0x45, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x10,
|
|
|
|
0x02, 0x2a, 0x41, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x54, 0x79, 0x70,
|
|
|
|
0x65, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x5f, 0x54, 0x59,
|
|
|
|
0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
|
|
|
|
0x12, 0x06, 0x0a, 0x02, 0x54, 0x5a, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, 0x41, 0x32,
|
|
|
|
0x35, 0x36, 0x10, 0x02, 0x42, 0x5b, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x2e, 0x66, 0x72, 0x6f, 0x73,
|
|
|
|
0x74, 0x66, 0x73, 0x2e, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x54, 0x72, 0x75, 0x65, 0x43, 0x6c, 0x6f,
|
|
|
|
0x75, 0x64, 0x4c, 0x61, 0x62, 0x2f, 0x66, 0x72, 0x6f, 0x73, 0x74, 0x66, 0x73, 0x2d, 0x61, 0x70,
|
|
|
|
0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x66, 0x73, 0x2f, 0x67, 0x72, 0x70,
|
|
|
|
0x63, 0x3b, 0x72, 0x65, 0x66, 0x73, 0xaa, 0x02, 0x18, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c,
|
|
|
|
0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x52, 0x65, 0x66,
|
|
|
|
0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2021-11-17 09:35:56 +00:00
|
|
|
file_refs_grpc_types_proto_rawDescOnce sync.Once
|
|
|
|
file_refs_grpc_types_proto_rawDescData = file_refs_grpc_types_proto_rawDesc
|
2020-08-12 09:57:28 +00:00
|
|
|
)
|
2020-10-19 18:51:59 +00:00
|
|
|
|
2021-11-17 09:35:56 +00:00
|
|
|
func file_refs_grpc_types_proto_rawDescGZIP() []byte {
|
|
|
|
file_refs_grpc_types_proto_rawDescOnce.Do(func() {
|
|
|
|
file_refs_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_refs_grpc_types_proto_rawDescData)
|
2020-10-19 18:51:59 +00:00
|
|
|
})
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_refs_grpc_types_proto_rawDescData
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
2022-02-22 11:25:43 +00:00
|
|
|
var file_refs_grpc_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
2023-04-18 05:40:42 +00:00
|
|
|
var file_refs_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
2021-11-17 09:35:56 +00:00
|
|
|
var file_refs_grpc_types_proto_goTypes = []interface{}{
|
2022-03-02 10:15:36 +00:00
|
|
|
(SignatureScheme)(0), // 0: neo.fs.v2.refs.SignatureScheme
|
|
|
|
(ChecksumType)(0), // 1: neo.fs.v2.refs.ChecksumType
|
|
|
|
(*Address)(nil), // 2: neo.fs.v2.refs.Address
|
|
|
|
(*ObjectID)(nil), // 3: neo.fs.v2.refs.ObjectID
|
|
|
|
(*ContainerID)(nil), // 4: neo.fs.v2.refs.ContainerID
|
|
|
|
(*OwnerID)(nil), // 5: neo.fs.v2.refs.OwnerID
|
2023-04-18 05:40:42 +00:00
|
|
|
(*Version)(nil), // 6: neo.fs.v2.refs.Version
|
|
|
|
(*Signature)(nil), // 7: neo.fs.v2.refs.Signature
|
|
|
|
(*SignatureRFC6979)(nil), // 8: neo.fs.v2.refs.SignatureRFC6979
|
|
|
|
(*Checksum)(nil), // 9: neo.fs.v2.refs.Checksum
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
var file_refs_grpc_types_proto_depIdxs = []int32{
|
2022-02-22 11:25:43 +00:00
|
|
|
4, // 0: neo.fs.v2.refs.Address.container_id:type_name -> neo.fs.v2.refs.ContainerID
|
|
|
|
3, // 1: neo.fs.v2.refs.Address.object_id:type_name -> neo.fs.v2.refs.ObjectID
|
|
|
|
0, // 2: neo.fs.v2.refs.Signature.scheme:type_name -> neo.fs.v2.refs.SignatureScheme
|
|
|
|
1, // 3: neo.fs.v2.refs.Checksum.type:type_name -> neo.fs.v2.refs.ChecksumType
|
|
|
|
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
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
2021-11-17 09:35:56 +00:00
|
|
|
func init() { file_refs_grpc_types_proto_init() }
|
|
|
|
func file_refs_grpc_types_proto_init() {
|
|
|
|
if File_refs_grpc_types_proto != nil {
|
2020-10-19 18:51:59 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
file_refs_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*Address); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_refs_grpc_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*ObjectID); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_refs_grpc_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*ContainerID); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_refs_grpc_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*OwnerID); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_refs_grpc_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2021-11-17 13:58:38 +00:00
|
|
|
switch v := v.(*Version); i {
|
2020-10-19 18:51:59 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-04-18 05:40:42 +00:00
|
|
|
file_refs_grpc_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2021-11-17 13:58:38 +00:00
|
|
|
switch v := v.(*Signature); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-04-18 05:40:42 +00:00
|
|
|
file_refs_grpc_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2022-03-02 10:15:36 +00:00
|
|
|
switch v := v.(*SignatureRFC6979); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-04-18 05:40:42 +00:00
|
|
|
file_refs_grpc_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*Checksum); 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(),
|
2021-11-17 09:35:56 +00:00
|
|
|
RawDescriptor: file_refs_grpc_types_proto_rawDesc,
|
2022-02-22 11:25:43 +00:00
|
|
|
NumEnums: 2,
|
2023-04-18 05:40:42 +00:00
|
|
|
NumMessages: 8,
|
2020-10-19 18:51:59 +00:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
2021-11-17 09:35:56 +00:00
|
|
|
GoTypes: file_refs_grpc_types_proto_goTypes,
|
|
|
|
DependencyIndexes: file_refs_grpc_types_proto_depIdxs,
|
|
|
|
EnumInfos: file_refs_grpc_types_proto_enumTypes,
|
|
|
|
MessageInfos: file_refs_grpc_types_proto_msgTypes,
|
2020-10-19 18:51:59 +00:00
|
|
|
}.Build()
|
2021-11-17 09:35:56 +00:00
|
|
|
File_refs_grpc_types_proto = out.File
|
|
|
|
file_refs_grpc_types_proto_rawDesc = nil
|
|
|
|
file_refs_grpc_types_proto_goTypes = nil
|
|
|
|
file_refs_grpc_types_proto_depIdxs = nil
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|