[#367] *: Re-compile proto files of NeoFS API protocol
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f04051c96c
commit
e9a8451fb7
20 changed files with 131 additions and 109 deletions
42
netmap/grpc/types.pb.go
generated
42
netmap/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.27.1
|
||||
// protoc v3.18.0
|
||||
// protoc v3.19.1
|
||||
// source: netmap/grpc/types.proto
|
||||
|
||||
package netmap
|
||||
|
@ -157,11 +157,11 @@ func (Clause) EnumDescriptor() ([]byte, []int) {
|
|||
type NodeInfo_State int32
|
||||
|
||||
const (
|
||||
// Unknown state.
|
||||
// Unknown state
|
||||
NodeInfo_UNSPECIFIED NodeInfo_State = 0
|
||||
// Active state in the network.
|
||||
// Active state in the network
|
||||
NodeInfo_ONLINE NodeInfo_State = 1
|
||||
// Network unavailable state.
|
||||
// Network unavailable state
|
||||
NodeInfo_OFFLINE NodeInfo_State = 2
|
||||
)
|
||||
|
||||
|
@ -538,7 +538,7 @@ type NodeInfo struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Public key of the NeoFS node in a binary format.
|
||||
// Public key of the NeoFS node in a binary format
|
||||
PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
||||
// Ways to connect to a node
|
||||
Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
|
||||
|
@ -547,7 +547,7 @@ type NodeInfo struct {
|
|||
// structures with duplicated attribute names or attributes with empty values
|
||||
// will be considered invalid.
|
||||
Attributes []*NodeInfo_Attribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"`
|
||||
// Carries state of the NeoFS node.
|
||||
// Carries state of the NeoFS node
|
||||
State NodeInfo_State `protobuf:"varint,4,opt,name=state,proto3,enum=neo.fs.v2.netmap.NodeInfo_State" json:"state,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -617,7 +617,7 @@ type NetworkConfig struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// List of parameter values.
|
||||
// List of parameter values
|
||||
Parameters []*NetworkConfig_Parameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -666,13 +666,13 @@ type NetworkInfo struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Number of the current epoch in the NeoFS network.
|
||||
// Number of the current epoch in the NeoFS network
|
||||
CurrentEpoch uint64 `protobuf:"varint,1,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"`
|
||||
// Magic number of the sidechain of the NeoFS network.
|
||||
// Magic number of the sidechain of the NeoFS network
|
||||
MagicNumber uint64 `protobuf:"varint,2,opt,name=magic_number,json=magicNumber,proto3" json:"magic_number,omitempty"`
|
||||
// MillisecondsPerBlock network parameter of the sidechain of the NeoFS network.
|
||||
// MillisecondsPerBlock network parameter of the sidechain of the NeoFS network
|
||||
MsPerBlock int64 `protobuf:"varint,3,opt,name=ms_per_block,json=msPerBlock,proto3" json:"ms_per_block,omitempty"`
|
||||
// NeoFS network configuration.
|
||||
// NeoFS network configuration
|
||||
NetworkConfig *NetworkConfig `protobuf:"bytes,4,opt,name=network_config,json=networkConfig,proto3" json:"network_config,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -765,9 +765,13 @@ func (x *NetworkInfo) GetNetworkConfig() *NetworkConfig {
|
|||
// attributes it's a string presenting floating point number with comma or
|
||||
// point delimiter for decimal part. In the Network Map it will be saved as
|
||||
// 64-bit unsigned integer representing number of minimal token fractions.
|
||||
// * Subnet \
|
||||
// String ID of Node's storage subnet. There can be only one subnet served
|
||||
// by the Storage Node.
|
||||
// * __NEOFS__SUBNET_%s \
|
||||
// `True` or `False`. Defines if the node is included in the `%s` subnetwork
|
||||
// or not. `%s` must be an existing subnetwork's ID (non-negative integer number).
|
||||
// A node can be included in more than one subnetwork and, therefore, can contain
|
||||
// more than one subnet attribute. A missing attribute is equivalent to the
|
||||
// presence of the attribute with `False` value (except default zero subnetwork
|
||||
// (with `%s` == 0) for which missing attribute means inclusion in that network).
|
||||
// * UN-LOCODE \
|
||||
// Node's geographic location in
|
||||
// [UN/LOCODE](https://www.unece.org/cefact/codesfortrade/codes_index.html)
|
||||
|
@ -807,9 +811,9 @@ type NodeInfo_Attribute struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Key of the node attribute.
|
||||
// Key of the node attribute
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
// Value of the node attribute.
|
||||
// Value of the node attribute
|
||||
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||
// Parent keys, if any. For example for `City` it could be `Region` and
|
||||
// `Country`.
|
||||
|
@ -869,15 +873,15 @@ func (x *NodeInfo_Attribute) GetParents() []string {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Single configuration parameter.
|
||||
// Single configuration parameter
|
||||
type NetworkConfig_Parameter struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Parameter key. UTF-8 encoded string.
|
||||
// Parameter key. UTF-8 encoded string
|
||||
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
// Parameter value.
|
||||
// Parameter value
|
||||
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue