2020-10-19 18:51:59 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
2023-04-17 12:44:35 +00:00
|
|
|
// protoc-gen-go v1.28.1
|
2022-12-09 11:16:24 +00:00
|
|
|
// protoc v3.21.9
|
2021-11-17 09:35:56 +00:00
|
|
|
// source: netmap/grpc/types.proto
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-08-13 12:43:47 +00:00
|
|
|
package netmap
|
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
|
|
|
|
2020-09-04 08:47:15 +00:00
|
|
|
// Operations on filters
|
|
|
|
type Operation int32
|
2020-08-12 09:57:28 +00:00
|
|
|
|
|
|
|
const (
|
2020-08-14 06:49:05 +00:00
|
|
|
// No Operation defined
|
2020-09-04 08:47:15 +00:00
|
|
|
Operation_OPERATION_UNSPECIFIED Operation = 0
|
2020-08-14 06:49:05 +00:00
|
|
|
// Equal
|
2020-09-04 08:47:15 +00:00
|
|
|
Operation_EQ Operation = 1
|
2020-08-14 06:49:05 +00:00
|
|
|
// Not Equal
|
2020-09-04 08:47:15 +00:00
|
|
|
Operation_NE Operation = 2
|
2020-08-14 06:49:05 +00:00
|
|
|
// Greater then
|
2020-09-04 08:47:15 +00:00
|
|
|
Operation_GT Operation = 3
|
2020-08-14 06:49:05 +00:00
|
|
|
// Greater or equal
|
2020-09-04 08:47:15 +00:00
|
|
|
Operation_GE Operation = 4
|
2020-08-14 06:49:05 +00:00
|
|
|
// Less then
|
2020-09-04 08:47:15 +00:00
|
|
|
Operation_LT Operation = 5
|
2020-08-14 06:49:05 +00:00
|
|
|
// Less or equal
|
2020-09-04 08:47:15 +00:00
|
|
|
Operation_LE Operation = 6
|
2020-08-14 06:49:05 +00:00
|
|
|
// Logical OR
|
2020-09-04 08:47:15 +00:00
|
|
|
Operation_OR Operation = 7
|
2020-08-14 06:49:05 +00:00
|
|
|
// Logical AND
|
2020-09-04 08:47:15 +00:00
|
|
|
Operation_AND Operation = 8
|
2020-08-12 09:57:28 +00:00
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Enum value maps for Operation.
|
|
|
|
var (
|
|
|
|
Operation_name = map[int32]string{
|
|
|
|
0: "OPERATION_UNSPECIFIED",
|
|
|
|
1: "EQ",
|
|
|
|
2: "NE",
|
|
|
|
3: "GT",
|
|
|
|
4: "GE",
|
|
|
|
5: "LT",
|
|
|
|
6: "LE",
|
|
|
|
7: "OR",
|
|
|
|
8: "AND",
|
|
|
|
}
|
|
|
|
Operation_value = map[string]int32{
|
|
|
|
"OPERATION_UNSPECIFIED": 0,
|
|
|
|
"EQ": 1,
|
|
|
|
"NE": 2,
|
|
|
|
"GT": 3,
|
|
|
|
"GE": 4,
|
|
|
|
"LT": 5,
|
|
|
|
"LE": 6,
|
|
|
|
"OR": 7,
|
|
|
|
"AND": 8,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x Operation) Enum() *Operation {
|
|
|
|
p := new(Operation)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-09-04 08:47:15 +00:00
|
|
|
func (x Operation) String() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Operation) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_grpc_types_proto_enumTypes[0].Descriptor()
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (Operation) Type() protoreflect.EnumType {
|
2021-11-17 09:35:56 +00:00
|
|
|
return &file_netmap_grpc_types_proto_enumTypes[0]
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x Operation) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Operation.Descriptor instead.
|
2020-09-04 08:47:15 +00:00
|
|
|
func (Operation) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{0}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Selector modifier shows how the node set will be formed. By default selector
|
|
|
|
// just groups nodes into a bucket by attribute, selecting nodes only by their
|
|
|
|
// hash distance.
|
2020-09-08 10:19:22 +00:00
|
|
|
type Clause int32
|
|
|
|
|
|
|
|
const (
|
2022-06-15 17:30:22 +00:00
|
|
|
// No modifier defined. Nodes will be selected from the bucket randomly
|
2020-09-08 10:19:22 +00:00
|
|
|
Clause_CLAUSE_UNSPECIFIED Clause = 0
|
|
|
|
// SAME will select only nodes having the same value of bucket attribute
|
|
|
|
Clause_SAME Clause = 1
|
|
|
|
// DISTINCT will select nodes having different values of bucket attribute
|
|
|
|
Clause_DISTINCT Clause = 2
|
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Enum value maps for Clause.
|
|
|
|
var (
|
|
|
|
Clause_name = map[int32]string{
|
|
|
|
0: "CLAUSE_UNSPECIFIED",
|
|
|
|
1: "SAME",
|
|
|
|
2: "DISTINCT",
|
|
|
|
}
|
|
|
|
Clause_value = map[string]int32{
|
|
|
|
"CLAUSE_UNSPECIFIED": 0,
|
|
|
|
"SAME": 1,
|
|
|
|
"DISTINCT": 2,
|
|
|
|
}
|
|
|
|
)
|
2020-09-08 10:19:22 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x Clause) Enum() *Clause {
|
|
|
|
p := new(Clause)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-09-08 10:19:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x Clause) String() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Clause) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_grpc_types_proto_enumTypes[1].Descriptor()
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (Clause) Type() protoreflect.EnumType {
|
2021-11-17 09:35:56 +00:00
|
|
|
return &file_netmap_grpc_types_proto_enumTypes[1]
|
2020-09-08 10:19:22 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x Clause) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Clause.Descriptor instead.
|
2020-09-08 10:19:22 +00:00
|
|
|
func (Clause) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{1}
|
2020-09-08 10:19:22 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 09:57:28 +00:00
|
|
|
// Represents the enumeration of various states of the NeoFS node.
|
|
|
|
type NodeInfo_State int32
|
|
|
|
|
|
|
|
const (
|
2022-01-13 11:56:02 +00:00
|
|
|
// Unknown state
|
2020-08-14 06:49:05 +00:00
|
|
|
NodeInfo_UNSPECIFIED NodeInfo_State = 0
|
2022-01-13 11:56:02 +00:00
|
|
|
// Active state in the network
|
2020-08-12 09:57:28 +00:00
|
|
|
NodeInfo_ONLINE NodeInfo_State = 1
|
2022-01-13 11:56:02 +00:00
|
|
|
// Network unavailable state
|
2020-08-12 09:57:28 +00:00
|
|
|
NodeInfo_OFFLINE NodeInfo_State = 2
|
2022-09-15 05:21:44 +00:00
|
|
|
// Maintenance state
|
|
|
|
NodeInfo_MAINTENANCE NodeInfo_State = 3
|
2020-08-12 09:57:28 +00:00
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Enum value maps for NodeInfo_State.
|
|
|
|
var (
|
|
|
|
NodeInfo_State_name = map[int32]string{
|
|
|
|
0: "UNSPECIFIED",
|
|
|
|
1: "ONLINE",
|
|
|
|
2: "OFFLINE",
|
2022-09-15 05:21:44 +00:00
|
|
|
3: "MAINTENANCE",
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
NodeInfo_State_value = map[string]int32{
|
|
|
|
"UNSPECIFIED": 0,
|
|
|
|
"ONLINE": 1,
|
|
|
|
"OFFLINE": 2,
|
2022-09-15 05:21:44 +00:00
|
|
|
"MAINTENANCE": 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 NodeInfo_State) Enum() *NodeInfo_State {
|
|
|
|
p := new(NodeInfo_State)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x NodeInfo_State) String() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (NodeInfo_State) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_grpc_types_proto_enumTypes[2].Descriptor()
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (NodeInfo_State) Type() protoreflect.EnumType {
|
2021-11-17 09:35:56 +00:00
|
|
|
return &file_netmap_grpc_types_proto_enumTypes[2]
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x NodeInfo_State) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use NodeInfo_State.Descriptor instead.
|
2020-08-12 09:57:28 +00:00
|
|
|
func (NodeInfo_State) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{4, 0}
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
|
2022-06-15 17:30:22 +00:00
|
|
|
// This filter will return the subset of nodes from `NetworkMap` or another filter's
|
|
|
|
// results that will satisfy filter's conditions.
|
2020-09-04 08:47:15 +00:00
|
|
|
type Filter struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-06-15 17:30:22 +00:00
|
|
|
// Name of the filter or a reference to a named filter. '*' means
|
2020-10-19 12:34:51 +00:00
|
|
|
// application to the whole unfiltered NetworkMap. At top level it's used as a
|
|
|
|
// filter name. At lower levels it's considered to be a reference to another
|
|
|
|
// named filter
|
2020-09-04 08:47:15 +00:00
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
// Key to filter
|
|
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
// Filtering operation
|
|
|
|
Op Operation `protobuf:"varint,3,opt,name=op,proto3,enum=neo.fs.v2.netmap.Operation" json:"op,omitempty"`
|
|
|
|
// Value to match
|
|
|
|
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
|
2020-10-19 12:34:51 +00:00
|
|
|
// List of inner filters. Top level operation will be applied to the whole
|
|
|
|
// list.
|
2020-10-19 18:51:59 +00:00
|
|
|
Filters []*Filter `protobuf:"bytes,5,rep,name=filters,proto3" json:"filters,omitempty"`
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Filter) Reset() {
|
|
|
|
*x = Filter{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_netmap_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 *Filter) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*Filter) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Filter) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_netmap_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)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use Filter.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Filter) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_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 *Filter) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
return ""
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Filter) GetKey() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
return ""
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Filter) GetOp() Operation {
|
|
|
|
if x != nil {
|
|
|
|
return x.Op
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
return Operation_OPERATION_UNSPECIFIED
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Filter) GetValue() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
return ""
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Filter) GetFilters() []*Filter {
|
|
|
|
if x != nil {
|
|
|
|
return x.Filters
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Selector chooses a number of nodes from the bucket taking the nearest nodes
|
|
|
|
// to the provided `ContainerID` by hash distance.
|
2020-09-04 08:47:15 +00:00
|
|
|
type Selector struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-09-04 08:47:15 +00:00
|
|
|
// Selector name to reference in object placement section
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
2020-10-19 12:34:51 +00:00
|
|
|
// How many nodes to select from the bucket
|
2020-09-04 08:47:15 +00:00
|
|
|
Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
|
2020-09-08 10:19:22 +00:00
|
|
|
// Selector modifier showing how to form a bucket
|
|
|
|
Clause Clause `protobuf:"varint,3,opt,name=clause,proto3,enum=neo.fs.v2.netmap.Clause" json:"clause,omitempty"`
|
2022-06-15 17:30:22 +00:00
|
|
|
// Bucket attribute to select from
|
2020-09-08 10:19:22 +00:00
|
|
|
Attribute string `protobuf:"bytes,4,opt,name=attribute,proto3" json:"attribute,omitempty"`
|
2020-09-04 08:47:15 +00:00
|
|
|
// Filter reference to select from
|
2020-10-19 18:51:59 +00:00
|
|
|
Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Selector) Reset() {
|
|
|
|
*x = Selector{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_netmap_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 *Selector) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*Selector) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Selector) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_netmap_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)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use Selector.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Selector) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_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 *Selector) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Selector) GetCount() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Count
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
return 0
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Selector) GetClause() Clause {
|
|
|
|
if x != nil {
|
|
|
|
return x.Clause
|
2020-09-08 10:19:22 +00:00
|
|
|
}
|
|
|
|
return Clause_CLAUSE_UNSPECIFIED
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Selector) GetAttribute() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Attribute
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
return ""
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Selector) GetFilter() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Filter
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
return ""
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Number of object replicas in a set of nodes from the defined selector. If no
|
2022-06-15 17:30:22 +00:00
|
|
|
// selector set, the root bucket containing all possible nodes will be used by
|
2020-10-19 12:34:51 +00:00
|
|
|
// default.
|
2020-09-04 08:47:15 +00:00
|
|
|
type Replica struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-09-04 08:47:15 +00:00
|
|
|
// How many object replicas to put
|
|
|
|
Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
2020-10-19 12:34:51 +00:00
|
|
|
// Named selector bucket to put replicas
|
2020-10-19 18:51:59 +00:00
|
|
|
Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Replica) Reset() {
|
|
|
|
*x = Replica{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_netmap_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 *Replica) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*Replica) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Replica) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_netmap_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)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use Replica.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Replica) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_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 *Replica) GetCount() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Count
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
return 0
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *Replica) GetSelector() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Selector
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Set of rules to select a subset of nodes from `NetworkMap` able to store
|
|
|
|
// container's objects. The format is simple enough to transpile from different
|
|
|
|
// storage policy definition languages.
|
2020-09-04 08:47:15 +00:00
|
|
|
type PlacementPolicy 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
|
|
|
// Rules to set number of object replicas and place each one into a named
|
|
|
|
// bucket
|
2020-09-04 08:47:15 +00:00
|
|
|
Replicas []*Replica `protobuf:"bytes,1,rep,name=replicas,proto3" json:"replicas,omitempty"`
|
|
|
|
// Container backup factor controls how deep NeoFS will search for nodes
|
2020-10-19 12:34:51 +00:00
|
|
|
// alternatives to include into container's nodes subset
|
2020-09-04 08:47:15 +00:00
|
|
|
ContainerBackupFactor uint32 `protobuf:"varint,2,opt,name=container_backup_factor,json=containerBackupFactor,proto3" json:"container_backup_factor,omitempty"`
|
|
|
|
// Set of Selectors to form the container's nodes subset
|
|
|
|
Selectors []*Selector `protobuf:"bytes,3,rep,name=selectors,proto3" json:"selectors,omitempty"`
|
|
|
|
// List of named filters to reference in selectors
|
2020-10-19 18:51:59 +00:00
|
|
|
Filters []*Filter `protobuf:"bytes,4,rep,name=filters,proto3" json:"filters,omitempty"`
|
2020-08-14 06:49:05 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *PlacementPolicy) Reset() {
|
|
|
|
*x = PlacementPolicy{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_netmap_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-14 06:49:05 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *PlacementPolicy) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-14 06:49:05 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*PlacementPolicy) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PlacementPolicy) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_netmap_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)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-08-14 06:49:05 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use PlacementPolicy.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PlacementPolicy) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{3}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *PlacementPolicy) GetReplicas() []*Replica {
|
|
|
|
if x != nil {
|
|
|
|
return x.Replicas
|
2020-08-14 06:49:05 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *PlacementPolicy) GetContainerBackupFactor() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ContainerBackupFactor
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
return 0
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *PlacementPolicy) GetSelectors() []*Selector {
|
|
|
|
if x != nil {
|
|
|
|
return x.Selectors
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *PlacementPolicy) GetFilters() []*Filter {
|
|
|
|
if x != nil {
|
|
|
|
return x.Filters
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-04 08:47:15 +00:00
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-14 06:49:05 +00:00
|
|
|
// NeoFS node description
|
2020-08-12 09:57:28 +00:00
|
|
|
type NodeInfo struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-01-13 11:56:02 +00:00
|
|
|
// Public key of the NeoFS node in a binary format
|
2020-09-01 07:45:51 +00:00
|
|
|
PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
|
|
// Ways to connect to a node
|
2021-06-18 16:08:55 +00:00
|
|
|
Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
|
2020-12-18 13:00:50 +00:00
|
|
|
// Carries list of the NeoFS node attributes in a key-value form. Key name
|
|
|
|
// must be a node-unique valid UTF-8 string. Value can't be empty. NodeInfo
|
|
|
|
// structures with duplicated attribute names or attributes with empty values
|
|
|
|
// will be considered invalid.
|
2020-08-12 09:57:28 +00:00
|
|
|
Attributes []*NodeInfo_Attribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"`
|
2022-01-13 11:56:02 +00:00
|
|
|
// Carries state of the NeoFS node
|
2020-10-19 18:51:59 +00:00
|
|
|
State NodeInfo_State `protobuf:"varint,4,opt,name=state,proto3,enum=neo.fs.v2.netmap.NodeInfo_State" json:"state,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *NodeInfo) Reset() {
|
|
|
|
*x = NodeInfo{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_netmap_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-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *NodeInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*NodeInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *NodeInfo) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_netmap_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)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*NodeInfo) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{4}
|
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 *NodeInfo) GetPublicKey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.PublicKey
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-09-01 07:45:51 +00:00
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2021-06-18 16:08:55 +00:00
|
|
|
func (x *NodeInfo) GetAddresses() []string {
|
2020-10-19 18:51:59 +00:00
|
|
|
if x != nil {
|
2021-06-18 16:08:55 +00:00
|
|
|
return x.Addresses
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2021-06-18 16:08:55 +00:00
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *NodeInfo) GetAttributes() []*NodeInfo_Attribute {
|
|
|
|
if x != nil {
|
|
|
|
return x.Attributes
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *NodeInfo) GetState() NodeInfo_State {
|
|
|
|
if x != nil {
|
|
|
|
return x.State
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
return NodeInfo_UNSPECIFIED
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2022-09-17 09:59:54 +00:00
|
|
|
// Network map structure
|
|
|
|
type Netmap struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// Network map revision number.
|
|
|
|
Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
|
|
|
|
// Nodes presented in network.
|
|
|
|
Nodes []*NodeInfo `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Netmap) Reset() {
|
|
|
|
*x = Netmap{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_netmap_grpc_types_proto_msgTypes[5]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Netmap) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Netmap) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Netmap) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_netmap_grpc_types_proto_msgTypes[5]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Netmap.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Netmap) Descriptor() ([]byte, []int) {
|
|
|
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Netmap) GetEpoch() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Epoch
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Netmap) GetNodes() []*NodeInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.Nodes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-09-28 08:10:20 +00:00
|
|
|
// NeoFS network configuration
|
|
|
|
type NetworkConfig struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-01-13 11:56:02 +00:00
|
|
|
// List of parameter values
|
2021-09-28 08:10:20 +00:00
|
|
|
Parameters []*NetworkConfig_Parameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkConfig) Reset() {
|
|
|
|
*x = NetworkConfig{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-09-17 09:59:54 +00:00
|
|
|
mi := &file_netmap_grpc_types_proto_msgTypes[6]
|
2021-09-28 08:10:20 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkConfig) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*NetworkConfig) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *NetworkConfig) ProtoReflect() protoreflect.Message {
|
2022-09-17 09:59:54 +00:00
|
|
|
mi := &file_netmap_grpc_types_proto_msgTypes[6]
|
2021-09-28 08:10:20 +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 NetworkConfig.ProtoReflect.Descriptor instead.
|
|
|
|
func (*NetworkConfig) Descriptor() ([]byte, []int) {
|
2022-09-17 09:59:54 +00:00
|
|
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{6}
|
2021-09-28 08:10:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkConfig) GetParameters() []*NetworkConfig_Parameter {
|
|
|
|
if x != nil {
|
|
|
|
return x.Parameters
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-02-17 16:33:44 +00:00
|
|
|
// Information about NeoFS network
|
|
|
|
type NetworkInfo struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-01-13 11:56:02 +00:00
|
|
|
// Number of the current epoch in the NeoFS network
|
2021-02-17 16:33:44 +00:00
|
|
|
CurrentEpoch uint64 `protobuf:"varint,1,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"`
|
2022-01-13 11:56:02 +00:00
|
|
|
// Magic number of the sidechain of the NeoFS network
|
2021-02-17 16:33:44 +00:00
|
|
|
MagicNumber uint64 `protobuf:"varint,2,opt,name=magic_number,json=magicNumber,proto3" json:"magic_number,omitempty"`
|
2022-01-13 11:56:02 +00:00
|
|
|
// MillisecondsPerBlock network parameter of the sidechain of the NeoFS network
|
2021-09-28 08:10:20 +00:00
|
|
|
MsPerBlock int64 `protobuf:"varint,3,opt,name=ms_per_block,json=msPerBlock,proto3" json:"ms_per_block,omitempty"`
|
2022-01-13 11:56:02 +00:00
|
|
|
// NeoFS network configuration
|
2021-09-28 08:10:20 +00:00
|
|
|
NetworkConfig *NetworkConfig `protobuf:"bytes,4,opt,name=network_config,json=networkConfig,proto3" json:"network_config,omitempty"`
|
2021-02-17 16:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkInfo) Reset() {
|
|
|
|
*x = NetworkInfo{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-09-17 09:59:54 +00:00
|
|
|
mi := &file_netmap_grpc_types_proto_msgTypes[7]
|
2021-02-17 16:33:44 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*NetworkInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *NetworkInfo) ProtoReflect() protoreflect.Message {
|
2022-09-17 09:59:54 +00:00
|
|
|
mi := &file_netmap_grpc_types_proto_msgTypes[7]
|
2021-02-17 16:33:44 +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 NetworkInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*NetworkInfo) Descriptor() ([]byte, []int) {
|
2022-09-17 09:59:54 +00:00
|
|
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{7}
|
2021-02-17 16:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkInfo) GetCurrentEpoch() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.CurrentEpoch
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkInfo) GetMagicNumber() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.MagicNumber
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-09-28 08:10:20 +00:00
|
|
|
func (x *NetworkInfo) GetMsPerBlock() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.MsPerBlock
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkInfo) GetNetworkConfig() *NetworkConfig {
|
|
|
|
if x != nil {
|
|
|
|
return x.NetworkConfig
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Administrator-defined Attributes of the NeoFS Storage Node.
|
|
|
|
//
|
2020-12-10 07:48:09 +00:00
|
|
|
// `Attribute` is a Key-Value metadata pair. Key name must be a valid UTF-8
|
|
|
|
// string. Value can't be empty.
|
|
|
|
//
|
2021-08-16 11:40:48 +00:00
|
|
|
// Attributes can be constructed into a chain of attributes: any attribute can
|
|
|
|
// have a parent attribute and a child attribute (except the first and the last
|
|
|
|
// one). A string representation of the chain of attributes in NeoFS Storage
|
|
|
|
// Node configuration uses ":" and "/" symbols, e.g.:
|
|
|
|
//
|
2022-09-15 05:21:44 +00:00
|
|
|
// `NEOFS_NODE_ATTRIBUTE_1=key1:val1/key2:val2`
|
2021-08-16 11:40:48 +00:00
|
|
|
//
|
|
|
|
// Therefore the string attribute representation in the Node configuration must
|
|
|
|
// use "\:", "\/" and "\\" escaped symbols if any of them appears in an attribute's
|
|
|
|
// key or value.
|
|
|
|
//
|
2020-10-19 12:34:51 +00:00
|
|
|
// Node's attributes are mostly used during Storage Policy evaluation to
|
|
|
|
// calculate object's placement and find a set of nodes satisfying policy
|
|
|
|
// requirements. There are some "well-known" node attributes common to all the
|
|
|
|
// Storage Nodes in the network and used implicitly with default values if not
|
|
|
|
// explicitly set:
|
|
|
|
//
|
2022-09-15 05:21:44 +00:00
|
|
|
// - Capacity \
|
|
|
|
// Total available disk space in Gigabytes.
|
|
|
|
// - Price \
|
|
|
|
// Price in GAS tokens for storing one GB of data during one Epoch. In node
|
|
|
|
// 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.
|
|
|
|
// - UN-LOCODE \
|
|
|
|
// Node's geographic location in
|
|
|
|
// [UN/LOCODE](https://www.unece.org/cefact/codesfortrade/codes_index.html)
|
|
|
|
// format approximated to the nearest point defined in the standard.
|
|
|
|
// - CountryCode \
|
|
|
|
// Country code in
|
|
|
|
// [ISO 3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
|
|
|
// format. Calculated automatically from `UN-LOCODE` attribute.
|
|
|
|
// - Country \
|
|
|
|
// Country short name in English, as defined in
|
|
|
|
// [ISO-3166](https://www.iso.org/obp/ui/#search). Calculated automatically
|
|
|
|
// from `UN-LOCODE` attribute.
|
|
|
|
// - Location \
|
|
|
|
// Place names are given, whenever possible, in their national language
|
|
|
|
// versions as expressed in the Roman alphabet using the 26 characters of
|
|
|
|
// the character set adopted for international trade data interchange,
|
|
|
|
// written without diacritics . Calculated automatically from `UN-LOCODE`
|
|
|
|
// attribute.
|
|
|
|
// - SubDivCode \
|
|
|
|
// Country's administrative subdivision where node is located. Calculated
|
|
|
|
// automatically from `UN-LOCODE` attribute based on `SubDiv` field.
|
|
|
|
// Presented in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)
|
|
|
|
// format.
|
|
|
|
// - SubDiv \
|
|
|
|
// Country's administrative subdivision name, as defined in
|
|
|
|
// [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). Calculated
|
|
|
|
// automatically from `UN-LOCODE` attribute.
|
|
|
|
// - Continent \
|
|
|
|
// Node's continent name according to the [Seven-Continent model]
|
|
|
|
// (https://en.wikipedia.org/wiki/Continent#Number). Calculated
|
|
|
|
// automatically from `UN-LOCODE` attribute.
|
2022-09-16 15:09:25 +00:00
|
|
|
// - ExternalAddr
|
|
|
|
// Node's preferred way for communications with external clients.
|
|
|
|
// Clients SHOULD use these addresses if possible.
|
|
|
|
// Must contain a comma-separated list of multi-addresses.
|
2020-10-19 12:34:51 +00:00
|
|
|
//
|
|
|
|
// For detailed description of each well-known attribute please see the
|
2022-06-15 17:30:22 +00:00
|
|
|
// corresponding section in NeoFS Technical Specification.
|
2020-08-12 09:57:28 +00:00
|
|
|
type NodeInfo_Attribute struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-01-13 11:56:02 +00:00
|
|
|
// Key of the node attribute
|
2020-08-12 09:57:28 +00:00
|
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
2022-01-13 11:56:02 +00:00
|
|
|
// Value of the node attribute
|
2020-09-04 08:47:15 +00:00
|
|
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
2020-10-19 12:34:51 +00:00
|
|
|
// Parent keys, if any. For example for `City` it could be `Region` and
|
|
|
|
// `Country`.
|
2020-10-19 18:51:59 +00:00
|
|
|
Parents []string `protobuf:"bytes,3,rep,name=parents,proto3" json:"parents,omitempty"`
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *NodeInfo_Attribute) Reset() {
|
|
|
|
*x = NodeInfo_Attribute{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-09-17 09:59:54 +00:00
|
|
|
mi := &file_netmap_grpc_types_proto_msgTypes[8]
|
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-08-14 06:49:05 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *NodeInfo_Attribute) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (*NodeInfo_Attribute) ProtoMessage() {}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *NodeInfo_Attribute) ProtoReflect() protoreflect.Message {
|
2022-09-17 09:59:54 +00:00
|
|
|
mi := &file_netmap_grpc_types_proto_msgTypes[8]
|
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 NodeInfo_Attribute.ProtoReflect.Descriptor instead.
|
|
|
|
func (*NodeInfo_Attribute) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{4, 0}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *NodeInfo_Attribute) GetKey() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ""
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *NodeInfo_Attribute) GetValue() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ""
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *NodeInfo_Attribute) GetParents() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Parents
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-12-09 11:16:24 +00:00
|
|
|
// Single configuration parameter. Key MUST be network-unique.
|
|
|
|
//
|
|
|
|
// System parameters:
|
|
|
|
// - **AuditFee** \
|
|
|
|
// Fee paid by the storage group owner to the Inner Ring member.
|
|
|
|
// Value: little-endian integer. Default: 0.
|
|
|
|
// - **BasicIncomeRate** \
|
|
|
|
// Cost of storing one gigabyte of data for a period of one epoch. Paid by
|
|
|
|
// container owner to container nodes.
|
|
|
|
// Value: little-endian integer. Default: 0.
|
|
|
|
// - **ContainerAliasFee** \
|
|
|
|
// Fee paid for named container's creation by the container owner.
|
|
|
|
// Value: little-endian integer. Default: 0.
|
|
|
|
// - **ContainerFee** \
|
|
|
|
// Fee paid for container creation by the container owner.
|
|
|
|
// Value: little-endian integer. Default: 0.
|
|
|
|
// - **EpochDuration** \
|
|
|
|
// NeoFS epoch duration measured in Sidechain blocks.
|
|
|
|
// Value: little-endian integer. Default: 0.
|
|
|
|
// - **HomomorphicHashingDisabled** \
|
|
|
|
// Flag of disabling the homomorphic hashing of objects' payload.
|
|
|
|
// Value: true if any byte != 0. Default: false.
|
|
|
|
// - **InnerRingCandidateFee** \
|
|
|
|
// Fee for entrance to the Inner Ring paid by the candidate.
|
|
|
|
// Value: little-endian integer. Default: 0.
|
|
|
|
// - **MaintenanceModeAllowed** \
|
|
|
|
// Flag allowing setting the MAINTENANCE state to storage nodes.
|
|
|
|
// Value: true if any byte != 0. Default: false.
|
|
|
|
// - **MaxObjectSize** \
|
|
|
|
// Maximum size of physically stored NeoFS object measured in bytes.
|
|
|
|
// Value: little-endian integer. Default: 0.
|
|
|
|
// - **WithdrawFee** \
|
|
|
|
// Fee paid for withdrawal of funds paid by the account owner.
|
|
|
|
// Value: little-endian integer. Default: 0.
|
2021-09-28 08:10:20 +00:00
|
|
|
type NetworkConfig_Parameter struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-01-13 11:56:02 +00:00
|
|
|
// Parameter key. UTF-8 encoded string
|
2021-09-28 08:10:20 +00:00
|
|
|
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
2022-01-13 11:56:02 +00:00
|
|
|
// Parameter value
|
2021-09-28 08:10:20 +00:00
|
|
|
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkConfig_Parameter) Reset() {
|
|
|
|
*x = NetworkConfig_Parameter{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-09-17 09:59:54 +00:00
|
|
|
mi := &file_netmap_grpc_types_proto_msgTypes[9]
|
2021-09-28 08:10:20 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkConfig_Parameter) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*NetworkConfig_Parameter) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *NetworkConfig_Parameter) ProtoReflect() protoreflect.Message {
|
2022-09-17 09:59:54 +00:00
|
|
|
mi := &file_netmap_grpc_types_proto_msgTypes[9]
|
2021-09-28 08:10:20 +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 NetworkConfig_Parameter.ProtoReflect.Descriptor instead.
|
|
|
|
func (*NetworkConfig_Parameter) Descriptor() ([]byte, []int) {
|
2022-09-17 09:59:54 +00:00
|
|
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{6, 0}
|
2021-09-28 08:10:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkConfig_Parameter) GetKey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NetworkConfig_Parameter) GetValue() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-11-17 09:35:56 +00:00
|
|
|
var File_netmap_grpc_types_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_netmap_grpc_types_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x17, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79,
|
|
|
|
0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6e, 0x65, 0x6f, 0x2e, 0x66,
|
2023-04-18 05:40:42 +00:00
|
|
|
0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x22, 0xa5, 0x01, 0x0a, 0x06,
|
|
|
|
0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
|
|
|
|
0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x02,
|
|
|
|
0x6f, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66,
|
|
|
|
0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72,
|
|
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x6f, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
|
|
|
|
0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12,
|
|
|
|
0x32, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
|
|
|
|
0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74,
|
|
|
|
0x6d, 0x61, 0x70, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74,
|
|
|
|
0x65, 0x72, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x08, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72,
|
|
|
|
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
|
|
|
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20,
|
|
|
|
0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x63, 0x6c,
|
|
|
|
0x61, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f,
|
|
|
|
0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x43, 0x6c,
|
|
|
|
0x61, 0x75, 0x73, 0x65, 0x52, 0x06, 0x63, 0x6c, 0x61, 0x75, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09,
|
|
|
|
0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69,
|
|
|
|
0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74,
|
|
|
|
0x65, 0x72, 0x22, 0x3b, 0x0a, 0x07, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x12, 0x14, 0x0a,
|
|
|
|
0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f,
|
|
|
|
0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18,
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22,
|
|
|
|
0xee, 0x01, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c,
|
|
|
|
0x69, 0x63, 0x79, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18,
|
|
|
|
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
|
|
|
|
0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61,
|
|
|
|
0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x6f,
|
|
|
|
0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x66,
|
|
|
|
0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x15, 0x63, 0x6f, 0x6e,
|
|
|
|
0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x46, 0x61, 0x63, 0x74,
|
|
|
|
0x6f, 0x72, 0x12, 0x38, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18,
|
|
|
|
0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
|
|
|
|
0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f,
|
|
|
|
0x72, 0x52, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x32, 0x0a, 0x07,
|
|
|
|
0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e,
|
2021-11-17 09:35:56 +00:00
|
|
|
0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70,
|
2023-04-18 05:40:42 +00:00
|
|
|
0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73,
|
|
|
|
0x22, 0xd8, 0x02, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a,
|
|
|
|
0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09,
|
|
|
|
0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52,
|
|
|
|
0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x0a, 0x61, 0x74,
|
|
|
|
0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24,
|
|
|
|
0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61,
|
|
|
|
0x70, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69,
|
|
|
|
0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73,
|
|
|
|
0x12, 0x36, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32,
|
|
|
|
0x20, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d,
|
|
|
|
0x61, 0x70, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74,
|
|
|
|
0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x4d, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72,
|
|
|
|
0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a,
|
|
|
|
0x07, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07,
|
|
|
|
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x42, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65,
|
|
|
|
0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
|
|
|
|
0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a,
|
|
|
|
0x07, 0x4f, 0x46, 0x46, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x41,
|
|
|
|
0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x22, 0x50, 0x0a, 0x06, 0x4e,
|
|
|
|
0x65, 0x74, 0x6d, 0x61, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x30, 0x0a, 0x05, 0x6e,
|
|
|
|
0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6e, 0x65, 0x6f,
|
|
|
|
0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x6f,
|
|
|
|
0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x8f, 0x01,
|
|
|
|
0x0a, 0x0d, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
|
|
|
|
0x49, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20,
|
|
|
|
0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e,
|
|
|
|
0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f,
|
|
|
|
0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a,
|
|
|
|
0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x33, 0x0a, 0x09, 0x50, 0x61,
|
|
|
|
0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
|
|
|
|
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
|
|
|
|
0xbf, 0x01, 0x0a, 0x0b, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12,
|
|
|
|
0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45,
|
|
|
|
0x70, 0x6f, 0x63, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x5f, 0x6e, 0x75,
|
|
|
|
0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x67, 0x69,
|
|
|
|
0x63, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x73, 0x5f, 0x70, 0x65,
|
|
|
|
0x72, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d,
|
|
|
|
0x73, 0x50, 0x65, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x46, 0x0a, 0x0e, 0x6e, 0x65, 0x74,
|
|
|
|
0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
|
0x0b, 0x32, 0x1f, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65,
|
2022-09-17 09:59:54 +00:00
|
|
|
0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66,
|
2023-04-18 05:40:42 +00:00
|
|
|
0x69, 0x67, 0x52, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
|
|
|
0x67, 0x2a, 0x67, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19,
|
|
|
|
0x0a, 0x15, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50,
|
|
|
|
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x45, 0x51, 0x10,
|
|
|
|
0x01, 0x12, 0x06, 0x0a, 0x02, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x47, 0x54, 0x10,
|
|
|
|
0x03, 0x12, 0x06, 0x0a, 0x02, 0x47, 0x45, 0x10, 0x04, 0x12, 0x06, 0x0a, 0x02, 0x4c, 0x54, 0x10,
|
|
|
|
0x05, 0x12, 0x06, 0x0a, 0x02, 0x4c, 0x45, 0x10, 0x06, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x52, 0x10,
|
|
|
|
0x07, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x44, 0x10, 0x08, 0x2a, 0x38, 0x0a, 0x06, 0x43, 0x6c,
|
|
|
|
0x61, 0x75, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x55,
|
|
|
|
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04,
|
|
|
|
0x53, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x54, 0x49, 0x4e,
|
|
|
|
0x43, 0x54, 0x10, 0x02, 0x42, 0x61, 0x5a, 0x42, 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, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x67,
|
|
|
|
0x72, 0x70, 0x63, 0x3b, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0xaa, 0x02, 0x1a, 0x4e, 0x65, 0x6f,
|
|
|
|
0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49,
|
|
|
|
0x2e, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70, 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_netmap_grpc_types_proto_rawDescOnce sync.Once
|
|
|
|
file_netmap_grpc_types_proto_rawDescData = file_netmap_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_netmap_grpc_types_proto_rawDescGZIP() []byte {
|
|
|
|
file_netmap_grpc_types_proto_rawDescOnce.Do(func() {
|
|
|
|
file_netmap_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_netmap_grpc_types_proto_rawDescData)
|
2020-10-19 18:51:59 +00:00
|
|
|
})
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_netmap_grpc_types_proto_rawDescData
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
2021-11-17 09:35:56 +00:00
|
|
|
var file_netmap_grpc_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
2022-09-17 09:59:54 +00:00
|
|
|
var file_netmap_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
2021-11-17 09:35:56 +00:00
|
|
|
var file_netmap_grpc_types_proto_goTypes = []interface{}{
|
2021-09-28 08:10:20 +00:00
|
|
|
(Operation)(0), // 0: neo.fs.v2.netmap.Operation
|
|
|
|
(Clause)(0), // 1: neo.fs.v2.netmap.Clause
|
|
|
|
(NodeInfo_State)(0), // 2: neo.fs.v2.netmap.NodeInfo.State
|
|
|
|
(*Filter)(nil), // 3: neo.fs.v2.netmap.Filter
|
|
|
|
(*Selector)(nil), // 4: neo.fs.v2.netmap.Selector
|
|
|
|
(*Replica)(nil), // 5: neo.fs.v2.netmap.Replica
|
|
|
|
(*PlacementPolicy)(nil), // 6: neo.fs.v2.netmap.PlacementPolicy
|
|
|
|
(*NodeInfo)(nil), // 7: neo.fs.v2.netmap.NodeInfo
|
2022-09-17 09:59:54 +00:00
|
|
|
(*Netmap)(nil), // 8: neo.fs.v2.netmap.Netmap
|
|
|
|
(*NetworkConfig)(nil), // 9: neo.fs.v2.netmap.NetworkConfig
|
|
|
|
(*NetworkInfo)(nil), // 10: neo.fs.v2.netmap.NetworkInfo
|
|
|
|
(*NodeInfo_Attribute)(nil), // 11: neo.fs.v2.netmap.NodeInfo.Attribute
|
|
|
|
(*NetworkConfig_Parameter)(nil), // 12: neo.fs.v2.netmap.NetworkConfig.Parameter
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
var file_netmap_grpc_types_proto_depIdxs = []int32{
|
2021-09-28 08:10:20 +00:00
|
|
|
0, // 0: neo.fs.v2.netmap.Filter.op:type_name -> neo.fs.v2.netmap.Operation
|
|
|
|
3, // 1: neo.fs.v2.netmap.Filter.filters:type_name -> neo.fs.v2.netmap.Filter
|
|
|
|
1, // 2: neo.fs.v2.netmap.Selector.clause:type_name -> neo.fs.v2.netmap.Clause
|
|
|
|
5, // 3: neo.fs.v2.netmap.PlacementPolicy.replicas:type_name -> neo.fs.v2.netmap.Replica
|
|
|
|
4, // 4: neo.fs.v2.netmap.PlacementPolicy.selectors:type_name -> neo.fs.v2.netmap.Selector
|
|
|
|
3, // 5: neo.fs.v2.netmap.PlacementPolicy.filters:type_name -> neo.fs.v2.netmap.Filter
|
2023-04-18 05:40:42 +00:00
|
|
|
11, // 6: neo.fs.v2.netmap.NodeInfo.attributes:type_name -> neo.fs.v2.netmap.NodeInfo.Attribute
|
|
|
|
2, // 7: neo.fs.v2.netmap.NodeInfo.state:type_name -> neo.fs.v2.netmap.NodeInfo.State
|
|
|
|
7, // 8: neo.fs.v2.netmap.Netmap.nodes:type_name -> neo.fs.v2.netmap.NodeInfo
|
|
|
|
12, // 9: neo.fs.v2.netmap.NetworkConfig.parameters:type_name -> neo.fs.v2.netmap.NetworkConfig.Parameter
|
|
|
|
9, // 10: neo.fs.v2.netmap.NetworkInfo.network_config:type_name -> neo.fs.v2.netmap.NetworkConfig
|
|
|
|
11, // [11:11] is the sub-list for method output_type
|
|
|
|
11, // [11:11] is the sub-list for method input_type
|
|
|
|
11, // [11:11] is the sub-list for extension type_name
|
|
|
|
11, // [11:11] is the sub-list for extension extendee
|
|
|
|
0, // [0:11] 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_netmap_grpc_types_proto_init() }
|
|
|
|
func file_netmap_grpc_types_proto_init() {
|
|
|
|
if File_netmap_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_netmap_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*Filter); 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_netmap_grpc_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*Selector); 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_netmap_grpc_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*Replica); 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_netmap_grpc_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*PlacementPolicy); 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_netmap_grpc_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*NodeInfo); 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_netmap_grpc_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2022-09-17 09:59:54 +00:00
|
|
|
switch v := v.(*Netmap); i {
|
2021-02-17 16:33:44 +00:00
|
|
|
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_netmap_grpc_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2022-09-17 09:59:54 +00:00
|
|
|
switch v := v.(*NetworkConfig); i {
|
2021-09-28 08:10:20 +00:00
|
|
|
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_netmap_grpc_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2022-09-17 09:59:54 +00:00
|
|
|
switch v := v.(*NetworkInfo); 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
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_netmap_grpc_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
2022-09-17 09:59:54 +00:00
|
|
|
switch v := v.(*NodeInfo_Attribute); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_netmap_grpc_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
2021-09-28 08:10:20 +00:00
|
|
|
switch v := v.(*NetworkConfig_Parameter); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
2021-11-17 09:35:56 +00:00
|
|
|
RawDescriptor: file_netmap_grpc_types_proto_rawDesc,
|
2020-10-19 18:51:59 +00:00
|
|
|
NumEnums: 3,
|
2022-09-17 09:59:54 +00:00
|
|
|
NumMessages: 10,
|
2020-10-19 18:51:59 +00:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
2021-11-17 09:35:56 +00:00
|
|
|
GoTypes: file_netmap_grpc_types_proto_goTypes,
|
|
|
|
DependencyIndexes: file_netmap_grpc_types_proto_depIdxs,
|
|
|
|
EnumInfos: file_netmap_grpc_types_proto_enumTypes,
|
|
|
|
MessageInfos: file_netmap_grpc_types_proto_msgTypes,
|
2020-10-19 18:51:59 +00:00
|
|
|
}.Build()
|
2021-11-17 09:35:56 +00:00
|
|
|
File_netmap_grpc_types_proto = out.File
|
|
|
|
file_netmap_grpc_types_proto_rawDesc = nil
|
|
|
|
file_netmap_grpc_types_proto_goTypes = nil
|
|
|
|
file_netmap_grpc_types_proto_depIdxs = nil
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|