github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/refs/grpc/types.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.0
     4  // 	protoc        v3.21.9
     5  // source: refs/grpc/types.proto
     6  
     7  package refs
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  // Signature scheme describes digital signing scheme used for (key, signature) pair.
    24  type SignatureScheme int32
    25  
    26  const (
    27  	// ECDSA with SHA-512 hashing (FIPS 186-3)
    28  	SignatureScheme_ECDSA_SHA512 SignatureScheme = 0
    29  	// Deterministic ECDSA with SHA-256 hashing (RFC 6979)
    30  	SignatureScheme_ECDSA_RFC6979_SHA256 SignatureScheme = 1
    31  	// Deterministic ECDSA with SHA-256 hashing using WalletConnect API.
    32  	// Here the algorithm is the same, but the message format differs.
    33  	SignatureScheme_ECDSA_RFC6979_SHA256_WALLET_CONNECT SignatureScheme = 2
    34  )
    35  
    36  // Enum value maps for SignatureScheme.
    37  var (
    38  	SignatureScheme_name = map[int32]string{
    39  		0: "ECDSA_SHA512",
    40  		1: "ECDSA_RFC6979_SHA256",
    41  		2: "ECDSA_RFC6979_SHA256_WALLET_CONNECT",
    42  	}
    43  	SignatureScheme_value = map[string]int32{
    44  		"ECDSA_SHA512":                        0,
    45  		"ECDSA_RFC6979_SHA256":                1,
    46  		"ECDSA_RFC6979_SHA256_WALLET_CONNECT": 2,
    47  	}
    48  )
    49  
    50  func (x SignatureScheme) Enum() *SignatureScheme {
    51  	p := new(SignatureScheme)
    52  	*p = x
    53  	return p
    54  }
    55  
    56  func (x SignatureScheme) String() string {
    57  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    58  }
    59  
    60  func (SignatureScheme) Descriptor() protoreflect.EnumDescriptor {
    61  	return file_refs_grpc_types_proto_enumTypes[0].Descriptor()
    62  }
    63  
    64  func (SignatureScheme) Type() protoreflect.EnumType {
    65  	return &file_refs_grpc_types_proto_enumTypes[0]
    66  }
    67  
    68  func (x SignatureScheme) Number() protoreflect.EnumNumber {
    69  	return protoreflect.EnumNumber(x)
    70  }
    71  
    72  // Deprecated: Use SignatureScheme.Descriptor instead.
    73  func (SignatureScheme) EnumDescriptor() ([]byte, []int) {
    74  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{0}
    75  }
    76  
    77  // Checksum algorithm type.
    78  type ChecksumType int32
    79  
    80  const (
    81  	// Unknown. Not used
    82  	ChecksumType_CHECKSUM_TYPE_UNSPECIFIED ChecksumType = 0
    83  	// Tillich-Zemor homomorphic hash function
    84  	ChecksumType_TZ ChecksumType = 1
    85  	// SHA-256
    86  	ChecksumType_SHA256 ChecksumType = 2
    87  )
    88  
    89  // Enum value maps for ChecksumType.
    90  var (
    91  	ChecksumType_name = map[int32]string{
    92  		0: "CHECKSUM_TYPE_UNSPECIFIED",
    93  		1: "TZ",
    94  		2: "SHA256",
    95  	}
    96  	ChecksumType_value = map[string]int32{
    97  		"CHECKSUM_TYPE_UNSPECIFIED": 0,
    98  		"TZ":                        1,
    99  		"SHA256":                    2,
   100  	}
   101  )
   102  
   103  func (x ChecksumType) Enum() *ChecksumType {
   104  	p := new(ChecksumType)
   105  	*p = x
   106  	return p
   107  }
   108  
   109  func (x ChecksumType) String() string {
   110  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   111  }
   112  
   113  func (ChecksumType) Descriptor() protoreflect.EnumDescriptor {
   114  	return file_refs_grpc_types_proto_enumTypes[1].Descriptor()
   115  }
   116  
   117  func (ChecksumType) Type() protoreflect.EnumType {
   118  	return &file_refs_grpc_types_proto_enumTypes[1]
   119  }
   120  
   121  func (x ChecksumType) Number() protoreflect.EnumNumber {
   122  	return protoreflect.EnumNumber(x)
   123  }
   124  
   125  // Deprecated: Use ChecksumType.Descriptor instead.
   126  func (ChecksumType) EnumDescriptor() ([]byte, []int) {
   127  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{1}
   128  }
   129  
   130  // Objects in NeoFS are addressed by their ContainerID and ObjectID.
   131  //
   132  // String presentation of `Address` is a concatenation of string encoded
   133  // `ContainerID` and `ObjectID` delimited by '/' character.
   134  type Address struct {
   135  	state         protoimpl.MessageState
   136  	sizeCache     protoimpl.SizeCache
   137  	unknownFields protoimpl.UnknownFields
   138  
   139  	// Container identifier
   140  	ContainerId *ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerID,proto3" json:"container_id,omitempty"`
   141  	// Object identifier
   142  	ObjectId *ObjectID `protobuf:"bytes,2,opt,name=object_id,json=objectID,proto3" json:"object_id,omitempty"`
   143  }
   144  
   145  func (x *Address) Reset() {
   146  	*x = Address{}
   147  	if protoimpl.UnsafeEnabled {
   148  		mi := &file_refs_grpc_types_proto_msgTypes[0]
   149  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   150  		ms.StoreMessageInfo(mi)
   151  	}
   152  }
   153  
   154  func (x *Address) String() string {
   155  	return protoimpl.X.MessageStringOf(x)
   156  }
   157  
   158  func (*Address) ProtoMessage() {}
   159  
   160  func (x *Address) ProtoReflect() protoreflect.Message {
   161  	mi := &file_refs_grpc_types_proto_msgTypes[0]
   162  	if protoimpl.UnsafeEnabled && x != nil {
   163  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   164  		if ms.LoadMessageInfo() == nil {
   165  			ms.StoreMessageInfo(mi)
   166  		}
   167  		return ms
   168  	}
   169  	return mi.MessageOf(x)
   170  }
   171  
   172  // Deprecated: Use Address.ProtoReflect.Descriptor instead.
   173  func (*Address) Descriptor() ([]byte, []int) {
   174  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{0}
   175  }
   176  
   177  func (x *Address) GetContainerId() *ContainerID {
   178  	if x != nil {
   179  		return x.ContainerId
   180  	}
   181  	return nil
   182  }
   183  
   184  func (x *Address) GetObjectId() *ObjectID {
   185  	if x != nil {
   186  		return x.ObjectId
   187  	}
   188  	return nil
   189  }
   190  
   191  // NeoFS Object unique identifier. Objects are immutable and content-addressed.
   192  // It means `ObjectID` will change if the `header` or the `payload` changes.
   193  //
   194  // `ObjectID` is a 32 byte long
   195  // [SHA256](https://csrc.nist.gov/publications/detail/fips/180/4/final) hash of
   196  // the object's `header` field, which, in it's turn, contains the hash of the object's
   197  // payload.
   198  //
   199  // String presentation is a
   200  // [base58](https://tools.ietf.org/html/draft-msporny-base58-02) encoded string.
   201  //
   202  // JSON value will be data encoded as a string using standard base64
   203  // encoding with paddings. Either
   204  // [standard](https://tools.ietf.org/html/rfc4648#section-4) or
   205  // [URL-safe](https://tools.ietf.org/html/rfc4648#section-5) base64 encoding
   206  // with/without paddings are accepted.
   207  type ObjectID struct {
   208  	state         protoimpl.MessageState
   209  	sizeCache     protoimpl.SizeCache
   210  	unknownFields protoimpl.UnknownFields
   211  
   212  	// Object identifier in a binary format
   213  	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
   214  }
   215  
   216  func (x *ObjectID) Reset() {
   217  	*x = ObjectID{}
   218  	if protoimpl.UnsafeEnabled {
   219  		mi := &file_refs_grpc_types_proto_msgTypes[1]
   220  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   221  		ms.StoreMessageInfo(mi)
   222  	}
   223  }
   224  
   225  func (x *ObjectID) String() string {
   226  	return protoimpl.X.MessageStringOf(x)
   227  }
   228  
   229  func (*ObjectID) ProtoMessage() {}
   230  
   231  func (x *ObjectID) ProtoReflect() protoreflect.Message {
   232  	mi := &file_refs_grpc_types_proto_msgTypes[1]
   233  	if protoimpl.UnsafeEnabled && x != nil {
   234  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   235  		if ms.LoadMessageInfo() == nil {
   236  			ms.StoreMessageInfo(mi)
   237  		}
   238  		return ms
   239  	}
   240  	return mi.MessageOf(x)
   241  }
   242  
   243  // Deprecated: Use ObjectID.ProtoReflect.Descriptor instead.
   244  func (*ObjectID) Descriptor() ([]byte, []int) {
   245  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{1}
   246  }
   247  
   248  func (x *ObjectID) GetValue() []byte {
   249  	if x != nil {
   250  		return x.Value
   251  	}
   252  	return nil
   253  }
   254  
   255  // NeoFS container identifier. Container structures are immutable and
   256  // content-addressed.
   257  //
   258  // `ContainerID` is a 32 byte long
   259  // [SHA256](https://csrc.nist.gov/publications/detail/fips/180/4/final) hash of
   260  // stable-marshalled container message.
   261  //
   262  // String presentation is a
   263  // [base58](https://tools.ietf.org/html/draft-msporny-base58-02) encoded string.
   264  //
   265  // JSON value will be data encoded as a string using standard base64
   266  // encoding with paddings. Either
   267  // [standard](https://tools.ietf.org/html/rfc4648#section-4) or
   268  // [URL-safe](https://tools.ietf.org/html/rfc4648#section-5) base64 encoding
   269  // with/without paddings are accepted.
   270  type ContainerID struct {
   271  	state         protoimpl.MessageState
   272  	sizeCache     protoimpl.SizeCache
   273  	unknownFields protoimpl.UnknownFields
   274  
   275  	// Container identifier in a binary format.
   276  	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
   277  }
   278  
   279  func (x *ContainerID) Reset() {
   280  	*x = ContainerID{}
   281  	if protoimpl.UnsafeEnabled {
   282  		mi := &file_refs_grpc_types_proto_msgTypes[2]
   283  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   284  		ms.StoreMessageInfo(mi)
   285  	}
   286  }
   287  
   288  func (x *ContainerID) String() string {
   289  	return protoimpl.X.MessageStringOf(x)
   290  }
   291  
   292  func (*ContainerID) ProtoMessage() {}
   293  
   294  func (x *ContainerID) ProtoReflect() protoreflect.Message {
   295  	mi := &file_refs_grpc_types_proto_msgTypes[2]
   296  	if protoimpl.UnsafeEnabled && x != nil {
   297  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   298  		if ms.LoadMessageInfo() == nil {
   299  			ms.StoreMessageInfo(mi)
   300  		}
   301  		return ms
   302  	}
   303  	return mi.MessageOf(x)
   304  }
   305  
   306  // Deprecated: Use ContainerID.ProtoReflect.Descriptor instead.
   307  func (*ContainerID) Descriptor() ([]byte, []int) {
   308  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{2}
   309  }
   310  
   311  func (x *ContainerID) GetValue() []byte {
   312  	if x != nil {
   313  		return x.Value
   314  	}
   315  	return nil
   316  }
   317  
   318  // `OwnerID` is a derivative of a user's main public key. The transformation
   319  // algorithm is the same as for Neo3 wallet addresses. Neo3 wallet address can
   320  // be directly used as `OwnerID`.
   321  //
   322  // `OwnerID` is a 25 bytes sequence starting with Neo version prefix byte
   323  // followed by 20 bytes of ScrptHash and 4 bytes of checksum.
   324  //
   325  // String presentation is a [Base58
   326  // Check](https://en.bitcoin.it/wiki/Base58Check_encoding) Encoded string.
   327  //
   328  // JSON value will be data encoded as a string using standard base64
   329  // encoding with paddings. Either
   330  // [standard](https://tools.ietf.org/html/rfc4648#section-4) or
   331  // [URL-safe](https://tools.ietf.org/html/rfc4648#section-5) base64 encoding
   332  // with/without paddings are accepted.
   333  type OwnerID struct {
   334  	state         protoimpl.MessageState
   335  	sizeCache     protoimpl.SizeCache
   336  	unknownFields protoimpl.UnknownFields
   337  
   338  	// Identifier of the container owner in a binary format
   339  	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
   340  }
   341  
   342  func (x *OwnerID) Reset() {
   343  	*x = OwnerID{}
   344  	if protoimpl.UnsafeEnabled {
   345  		mi := &file_refs_grpc_types_proto_msgTypes[3]
   346  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   347  		ms.StoreMessageInfo(mi)
   348  	}
   349  }
   350  
   351  func (x *OwnerID) String() string {
   352  	return protoimpl.X.MessageStringOf(x)
   353  }
   354  
   355  func (*OwnerID) ProtoMessage() {}
   356  
   357  func (x *OwnerID) ProtoReflect() protoreflect.Message {
   358  	mi := &file_refs_grpc_types_proto_msgTypes[3]
   359  	if protoimpl.UnsafeEnabled && x != nil {
   360  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   361  		if ms.LoadMessageInfo() == nil {
   362  			ms.StoreMessageInfo(mi)
   363  		}
   364  		return ms
   365  	}
   366  	return mi.MessageOf(x)
   367  }
   368  
   369  // Deprecated: Use OwnerID.ProtoReflect.Descriptor instead.
   370  func (*OwnerID) Descriptor() ([]byte, []int) {
   371  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{3}
   372  }
   373  
   374  func (x *OwnerID) GetValue() []byte {
   375  	if x != nil {
   376  		return x.Value
   377  	}
   378  	return nil
   379  }
   380  
   381  // NeoFS subnetwork identifier.
   382  //
   383  // String representation of a value is base-10 integer.
   384  //
   385  // JSON representation is an object containing a single `value` number field.
   386  type SubnetID struct {
   387  	state         protoimpl.MessageState
   388  	sizeCache     protoimpl.SizeCache
   389  	unknownFields protoimpl.UnknownFields
   390  
   391  	// 4-byte integer subnetwork identifier.
   392  	Value uint32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
   393  }
   394  
   395  func (x *SubnetID) Reset() {
   396  	*x = SubnetID{}
   397  	if protoimpl.UnsafeEnabled {
   398  		mi := &file_refs_grpc_types_proto_msgTypes[4]
   399  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   400  		ms.StoreMessageInfo(mi)
   401  	}
   402  }
   403  
   404  func (x *SubnetID) String() string {
   405  	return protoimpl.X.MessageStringOf(x)
   406  }
   407  
   408  func (*SubnetID) ProtoMessage() {}
   409  
   410  func (x *SubnetID) ProtoReflect() protoreflect.Message {
   411  	mi := &file_refs_grpc_types_proto_msgTypes[4]
   412  	if protoimpl.UnsafeEnabled && x != nil {
   413  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   414  		if ms.LoadMessageInfo() == nil {
   415  			ms.StoreMessageInfo(mi)
   416  		}
   417  		return ms
   418  	}
   419  	return mi.MessageOf(x)
   420  }
   421  
   422  // Deprecated: Use SubnetID.ProtoReflect.Descriptor instead.
   423  func (*SubnetID) Descriptor() ([]byte, []int) {
   424  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{4}
   425  }
   426  
   427  func (x *SubnetID) GetValue() uint32 {
   428  	if x != nil {
   429  		return x.Value
   430  	}
   431  	return 0
   432  }
   433  
   434  // API version used by a node.
   435  //
   436  // String presentation is a Semantic Versioning 2.0.0 compatible version string
   437  // with 'v' prefix. i.e. `vX.Y`, where `X` is the major number, `Y` is the minor number.
   438  type Version struct {
   439  	state         protoimpl.MessageState
   440  	sizeCache     protoimpl.SizeCache
   441  	unknownFields protoimpl.UnknownFields
   442  
   443  	// Major API version
   444  	Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
   445  	// Minor API version
   446  	Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
   447  }
   448  
   449  func (x *Version) Reset() {
   450  	*x = Version{}
   451  	if protoimpl.UnsafeEnabled {
   452  		mi := &file_refs_grpc_types_proto_msgTypes[5]
   453  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   454  		ms.StoreMessageInfo(mi)
   455  	}
   456  }
   457  
   458  func (x *Version) String() string {
   459  	return protoimpl.X.MessageStringOf(x)
   460  }
   461  
   462  func (*Version) ProtoMessage() {}
   463  
   464  func (x *Version) ProtoReflect() protoreflect.Message {
   465  	mi := &file_refs_grpc_types_proto_msgTypes[5]
   466  	if protoimpl.UnsafeEnabled && x != nil {
   467  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   468  		if ms.LoadMessageInfo() == nil {
   469  			ms.StoreMessageInfo(mi)
   470  		}
   471  		return ms
   472  	}
   473  	return mi.MessageOf(x)
   474  }
   475  
   476  // Deprecated: Use Version.ProtoReflect.Descriptor instead.
   477  func (*Version) Descriptor() ([]byte, []int) {
   478  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{5}
   479  }
   480  
   481  func (x *Version) GetMajor() uint32 {
   482  	if x != nil {
   483  		return x.Major
   484  	}
   485  	return 0
   486  }
   487  
   488  func (x *Version) GetMinor() uint32 {
   489  	if x != nil {
   490  		return x.Minor
   491  	}
   492  	return 0
   493  }
   494  
   495  // Signature of something in NeoFS.
   496  type Signature struct {
   497  	state         protoimpl.MessageState
   498  	sizeCache     protoimpl.SizeCache
   499  	unknownFields protoimpl.UnknownFields
   500  
   501  	// Public key used for signing
   502  	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
   503  	// Signature
   504  	Sign []byte `protobuf:"bytes,2,opt,name=sign,json=signature,proto3" json:"sign,omitempty"`
   505  	// Scheme contains digital signature scheme identifier
   506  	Scheme SignatureScheme `protobuf:"varint,3,opt,name=scheme,proto3,enum=neo.fs.v2.refs.SignatureScheme" json:"scheme,omitempty"`
   507  }
   508  
   509  func (x *Signature) Reset() {
   510  	*x = Signature{}
   511  	if protoimpl.UnsafeEnabled {
   512  		mi := &file_refs_grpc_types_proto_msgTypes[6]
   513  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   514  		ms.StoreMessageInfo(mi)
   515  	}
   516  }
   517  
   518  func (x *Signature) String() string {
   519  	return protoimpl.X.MessageStringOf(x)
   520  }
   521  
   522  func (*Signature) ProtoMessage() {}
   523  
   524  func (x *Signature) ProtoReflect() protoreflect.Message {
   525  	mi := &file_refs_grpc_types_proto_msgTypes[6]
   526  	if protoimpl.UnsafeEnabled && x != nil {
   527  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   528  		if ms.LoadMessageInfo() == nil {
   529  			ms.StoreMessageInfo(mi)
   530  		}
   531  		return ms
   532  	}
   533  	return mi.MessageOf(x)
   534  }
   535  
   536  // Deprecated: Use Signature.ProtoReflect.Descriptor instead.
   537  func (*Signature) Descriptor() ([]byte, []int) {
   538  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{6}
   539  }
   540  
   541  func (x *Signature) GetKey() []byte {
   542  	if x != nil {
   543  		return x.Key
   544  	}
   545  	return nil
   546  }
   547  
   548  func (x *Signature) GetSign() []byte {
   549  	if x != nil {
   550  		return x.Sign
   551  	}
   552  	return nil
   553  }
   554  
   555  func (x *Signature) GetScheme() SignatureScheme {
   556  	if x != nil {
   557  		return x.Scheme
   558  	}
   559  	return SignatureScheme_ECDSA_SHA512
   560  }
   561  
   562  // RFC 6979 signature.
   563  type SignatureRFC6979 struct {
   564  	state         protoimpl.MessageState
   565  	sizeCache     protoimpl.SizeCache
   566  	unknownFields protoimpl.UnknownFields
   567  
   568  	// Public key used for signing
   569  	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
   570  	// Deterministic ECDSA with SHA-256 hashing
   571  	Sign []byte `protobuf:"bytes,2,opt,name=sign,json=signature,proto3" json:"sign,omitempty"`
   572  }
   573  
   574  func (x *SignatureRFC6979) Reset() {
   575  	*x = SignatureRFC6979{}
   576  	if protoimpl.UnsafeEnabled {
   577  		mi := &file_refs_grpc_types_proto_msgTypes[7]
   578  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   579  		ms.StoreMessageInfo(mi)
   580  	}
   581  }
   582  
   583  func (x *SignatureRFC6979) String() string {
   584  	return protoimpl.X.MessageStringOf(x)
   585  }
   586  
   587  func (*SignatureRFC6979) ProtoMessage() {}
   588  
   589  func (x *SignatureRFC6979) ProtoReflect() protoreflect.Message {
   590  	mi := &file_refs_grpc_types_proto_msgTypes[7]
   591  	if protoimpl.UnsafeEnabled && x != nil {
   592  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   593  		if ms.LoadMessageInfo() == nil {
   594  			ms.StoreMessageInfo(mi)
   595  		}
   596  		return ms
   597  	}
   598  	return mi.MessageOf(x)
   599  }
   600  
   601  // Deprecated: Use SignatureRFC6979.ProtoReflect.Descriptor instead.
   602  func (*SignatureRFC6979) Descriptor() ([]byte, []int) {
   603  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{7}
   604  }
   605  
   606  func (x *SignatureRFC6979) GetKey() []byte {
   607  	if x != nil {
   608  		return x.Key
   609  	}
   610  	return nil
   611  }
   612  
   613  func (x *SignatureRFC6979) GetSign() []byte {
   614  	if x != nil {
   615  		return x.Sign
   616  	}
   617  	return nil
   618  }
   619  
   620  // Checksum message.
   621  // Depending on checksum algorithm type, the string presentation may vary:
   622  //
   623  //   - TZ \
   624  //     Hex encoded string without `0x` prefix
   625  //   - SHA256 \
   626  //     Hex encoded string without `0x` prefix
   627  type Checksum struct {
   628  	state         protoimpl.MessageState
   629  	sizeCache     protoimpl.SizeCache
   630  	unknownFields protoimpl.UnknownFields
   631  
   632  	// Checksum algorithm type
   633  	Type ChecksumType `protobuf:"varint,1,opt,name=type,proto3,enum=neo.fs.v2.refs.ChecksumType" json:"type,omitempty"`
   634  	// Checksum itself
   635  	Sum []byte `protobuf:"bytes,2,opt,name=sum,proto3" json:"sum,omitempty"`
   636  }
   637  
   638  func (x *Checksum) Reset() {
   639  	*x = Checksum{}
   640  	if protoimpl.UnsafeEnabled {
   641  		mi := &file_refs_grpc_types_proto_msgTypes[8]
   642  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   643  		ms.StoreMessageInfo(mi)
   644  	}
   645  }
   646  
   647  func (x *Checksum) String() string {
   648  	return protoimpl.X.MessageStringOf(x)
   649  }
   650  
   651  func (*Checksum) ProtoMessage() {}
   652  
   653  func (x *Checksum) ProtoReflect() protoreflect.Message {
   654  	mi := &file_refs_grpc_types_proto_msgTypes[8]
   655  	if protoimpl.UnsafeEnabled && x != nil {
   656  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   657  		if ms.LoadMessageInfo() == nil {
   658  			ms.StoreMessageInfo(mi)
   659  		}
   660  		return ms
   661  	}
   662  	return mi.MessageOf(x)
   663  }
   664  
   665  // Deprecated: Use Checksum.ProtoReflect.Descriptor instead.
   666  func (*Checksum) Descriptor() ([]byte, []int) {
   667  	return file_refs_grpc_types_proto_rawDescGZIP(), []int{8}
   668  }
   669  
   670  func (x *Checksum) GetType() ChecksumType {
   671  	if x != nil {
   672  		return x.Type
   673  	}
   674  	return ChecksumType_CHECKSUM_TYPE_UNSPECIFIED
   675  }
   676  
   677  func (x *Checksum) GetSum() []byte {
   678  	if x != nil {
   679  		return x.Sum
   680  	}
   681  	return nil
   682  }
   683  
   684  var File_refs_grpc_types_proto protoreflect.FileDescriptor
   685  
   686  var file_refs_grpc_types_proto_rawDesc = []byte{
   687  	0x0a, 0x15, 0x72, 0x65, 0x66, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65,
   688  	0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e,
   689  	0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72,
   690  	0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
   691  	0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x65, 0x6f, 0x2e,
   692  	0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61,
   693  	0x69, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65,
   694  	0x72, 0x49, 0x44, 0x12, 0x35, 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64,
   695  	0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e,
   696  	0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x44,
   697  	0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x44, 0x22, 0x20, 0x0a, 0x08, 0x4f, 0x62,
   698  	0x6a, 0x65, 0x63, 0x74, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
   699  	0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x0b,
   700  	0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x76,
   701  	0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
   702  	0x65, 0x22, 0x1f, 0x0a, 0x07, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05,
   703  	0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c,
   704  	0x75, 0x65, 0x22, 0x20, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x44, 0x12, 0x14,
   705  	0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x07, 0x52, 0x05, 0x76,
   706  	0x61, 0x6c, 0x75, 0x65, 0x22, 0x35, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
   707  	0x14, 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05,
   708  	0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02,
   709  	0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x22, 0x6f, 0x0a, 0x09, 0x53,
   710  	0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
   711  	0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x73, 0x69,
   712  	0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74,
   713  	0x75, 0x72, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x18, 0x03, 0x20,
   714  	0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e,
   715  	0x72, 0x65, 0x66, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x63,
   716  	0x68, 0x65, 0x6d, 0x65, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x22, 0x3d, 0x0a, 0x10,
   717  	0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x46, 0x43, 0x36, 0x39, 0x37, 0x39,
   718  	0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b,
   719  	0x65, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
   720  	0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x4e, 0x0a, 0x08, 0x43,
   721  	0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
   722  	0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
   723  	0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x54,
   724  	0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x75, 0x6d,
   725  	0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x2a, 0x66, 0x0a, 0x0f, 0x53,
   726  	0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x12, 0x10,
   727  	0x0a, 0x0c, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x53, 0x48, 0x41, 0x35, 0x31, 0x32, 0x10, 0x00,
   728  	0x12, 0x18, 0x0a, 0x14, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x52, 0x46, 0x43, 0x36, 0x39, 0x37,
   729  	0x39, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x01, 0x12, 0x27, 0x0a, 0x23, 0x45, 0x43,
   730  	0x44, 0x53, 0x41, 0x5f, 0x52, 0x46, 0x43, 0x36, 0x39, 0x37, 0x39, 0x5f, 0x53, 0x48, 0x41, 0x32,
   731  	0x35, 0x36, 0x5f, 0x57, 0x41, 0x4c, 0x4c, 0x45, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43,
   732  	0x54, 0x10, 0x02, 0x2a, 0x41, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x54,
   733  	0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x5f,
   734  	0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
   735  	0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x54, 0x5a, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48,
   736  	0x41, 0x32, 0x35, 0x36, 0x10, 0x02, 0x42, 0x55, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
   737  	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x72, 0x75, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x4c, 0x61,
   738  	0x62, 0x2f, 0x66, 0x72, 0x6f, 0x73, 0x74, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x6f,
   739  	0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x66, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x72, 0x65,
   740  	0x66, 0x73, 0xaa, 0x02, 0x18, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x6f,
   741  	0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x52, 0x65, 0x66, 0x73, 0x62, 0x06, 0x70,
   742  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   743  }
   744  
   745  var (
   746  	file_refs_grpc_types_proto_rawDescOnce sync.Once
   747  	file_refs_grpc_types_proto_rawDescData = file_refs_grpc_types_proto_rawDesc
   748  )
   749  
   750  func file_refs_grpc_types_proto_rawDescGZIP() []byte {
   751  	file_refs_grpc_types_proto_rawDescOnce.Do(func() {
   752  		file_refs_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_refs_grpc_types_proto_rawDescData)
   753  	})
   754  	return file_refs_grpc_types_proto_rawDescData
   755  }
   756  
   757  var file_refs_grpc_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
   758  var file_refs_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
   759  var file_refs_grpc_types_proto_goTypes = []interface{}{
   760  	(SignatureScheme)(0),     // 0: neo.fs.v2.refs.SignatureScheme
   761  	(ChecksumType)(0),        // 1: neo.fs.v2.refs.ChecksumType
   762  	(*Address)(nil),          // 2: neo.fs.v2.refs.Address
   763  	(*ObjectID)(nil),         // 3: neo.fs.v2.refs.ObjectID
   764  	(*ContainerID)(nil),      // 4: neo.fs.v2.refs.ContainerID
   765  	(*OwnerID)(nil),          // 5: neo.fs.v2.refs.OwnerID
   766  	(*SubnetID)(nil),         // 6: neo.fs.v2.refs.SubnetID
   767  	(*Version)(nil),          // 7: neo.fs.v2.refs.Version
   768  	(*Signature)(nil),        // 8: neo.fs.v2.refs.Signature
   769  	(*SignatureRFC6979)(nil), // 9: neo.fs.v2.refs.SignatureRFC6979
   770  	(*Checksum)(nil),         // 10: neo.fs.v2.refs.Checksum
   771  }
   772  var file_refs_grpc_types_proto_depIdxs = []int32{
   773  	4, // 0: neo.fs.v2.refs.Address.container_id:type_name -> neo.fs.v2.refs.ContainerID
   774  	3, // 1: neo.fs.v2.refs.Address.object_id:type_name -> neo.fs.v2.refs.ObjectID
   775  	0, // 2: neo.fs.v2.refs.Signature.scheme:type_name -> neo.fs.v2.refs.SignatureScheme
   776  	1, // 3: neo.fs.v2.refs.Checksum.type:type_name -> neo.fs.v2.refs.ChecksumType
   777  	4, // [4:4] is the sub-list for method output_type
   778  	4, // [4:4] is the sub-list for method input_type
   779  	4, // [4:4] is the sub-list for extension type_name
   780  	4, // [4:4] is the sub-list for extension extendee
   781  	0, // [0:4] is the sub-list for field type_name
   782  }
   783  
   784  func init() { file_refs_grpc_types_proto_init() }
   785  func file_refs_grpc_types_proto_init() {
   786  	if File_refs_grpc_types_proto != nil {
   787  		return
   788  	}
   789  	if !protoimpl.UnsafeEnabled {
   790  		file_refs_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   791  			switch v := v.(*Address); i {
   792  			case 0:
   793  				return &v.state
   794  			case 1:
   795  				return &v.sizeCache
   796  			case 2:
   797  				return &v.unknownFields
   798  			default:
   799  				return nil
   800  			}
   801  		}
   802  		file_refs_grpc_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   803  			switch v := v.(*ObjectID); i {
   804  			case 0:
   805  				return &v.state
   806  			case 1:
   807  				return &v.sizeCache
   808  			case 2:
   809  				return &v.unknownFields
   810  			default:
   811  				return nil
   812  			}
   813  		}
   814  		file_refs_grpc_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   815  			switch v := v.(*ContainerID); i {
   816  			case 0:
   817  				return &v.state
   818  			case 1:
   819  				return &v.sizeCache
   820  			case 2:
   821  				return &v.unknownFields
   822  			default:
   823  				return nil
   824  			}
   825  		}
   826  		file_refs_grpc_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   827  			switch v := v.(*OwnerID); i {
   828  			case 0:
   829  				return &v.state
   830  			case 1:
   831  				return &v.sizeCache
   832  			case 2:
   833  				return &v.unknownFields
   834  			default:
   835  				return nil
   836  			}
   837  		}
   838  		file_refs_grpc_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   839  			switch v := v.(*SubnetID); i {
   840  			case 0:
   841  				return &v.state
   842  			case 1:
   843  				return &v.sizeCache
   844  			case 2:
   845  				return &v.unknownFields
   846  			default:
   847  				return nil
   848  			}
   849  		}
   850  		file_refs_grpc_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
   851  			switch v := v.(*Version); i {
   852  			case 0:
   853  				return &v.state
   854  			case 1:
   855  				return &v.sizeCache
   856  			case 2:
   857  				return &v.unknownFields
   858  			default:
   859  				return nil
   860  			}
   861  		}
   862  		file_refs_grpc_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
   863  			switch v := v.(*Signature); i {
   864  			case 0:
   865  				return &v.state
   866  			case 1:
   867  				return &v.sizeCache
   868  			case 2:
   869  				return &v.unknownFields
   870  			default:
   871  				return nil
   872  			}
   873  		}
   874  		file_refs_grpc_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
   875  			switch v := v.(*SignatureRFC6979); i {
   876  			case 0:
   877  				return &v.state
   878  			case 1:
   879  				return &v.sizeCache
   880  			case 2:
   881  				return &v.unknownFields
   882  			default:
   883  				return nil
   884  			}
   885  		}
   886  		file_refs_grpc_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
   887  			switch v := v.(*Checksum); i {
   888  			case 0:
   889  				return &v.state
   890  			case 1:
   891  				return &v.sizeCache
   892  			case 2:
   893  				return &v.unknownFields
   894  			default:
   895  				return nil
   896  			}
   897  		}
   898  	}
   899  	type x struct{}
   900  	out := protoimpl.TypeBuilder{
   901  		File: protoimpl.DescBuilder{
   902  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   903  			RawDescriptor: file_refs_grpc_types_proto_rawDesc,
   904  			NumEnums:      2,
   905  			NumMessages:   9,
   906  			NumExtensions: 0,
   907  			NumServices:   0,
   908  		},
   909  		GoTypes:           file_refs_grpc_types_proto_goTypes,
   910  		DependencyIndexes: file_refs_grpc_types_proto_depIdxs,
   911  		EnumInfos:         file_refs_grpc_types_proto_enumTypes,
   912  		MessageInfos:      file_refs_grpc_types_proto_msgTypes,
   913  	}.Build()
   914  	File_refs_grpc_types_proto = out.File
   915  	file_refs_grpc_types_proto_rawDesc = nil
   916  	file_refs_grpc_types_proto_goTypes = nil
   917  	file_refs_grpc_types_proto_depIdxs = nil
   918  }