[#355] *: regenerate proto files

Add subnetwork ID to placement policy.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-11-17 16:58:38 +03:00 committed by LeL
parent 0f09f0dfc6
commit ad6a7999cd
3 changed files with 297 additions and 212 deletions

136
status/grpc/types.pb.go generated
View file

@ -2,7 +2,7 @@
// versions:
// protoc-gen-go v1.27.1
// protoc v3.18.0
// source: v2/status/grpc/types.proto
// source: status/grpc/types.proto
package status
@ -53,11 +53,11 @@ func (x Section) String() string {
}
func (Section) Descriptor() protoreflect.EnumDescriptor {
return file_v2_status_grpc_types_proto_enumTypes[0].Descriptor()
return file_status_grpc_types_proto_enumTypes[0].Descriptor()
}
func (Section) Type() protoreflect.EnumType {
return &file_v2_status_grpc_types_proto_enumTypes[0]
return &file_status_grpc_types_proto_enumTypes[0]
}
func (x Section) Number() protoreflect.EnumNumber {
@ -66,7 +66,7 @@ func (x Section) Number() protoreflect.EnumNumber {
// Deprecated: Use Section.Descriptor instead.
func (Section) EnumDescriptor() ([]byte, []int) {
return file_v2_status_grpc_types_proto_rawDescGZIP(), []int{0}
return file_status_grpc_types_proto_rawDescGZIP(), []int{0}
}
// Section of NeoFS successful return codes.
@ -100,11 +100,11 @@ func (x Success) String() string {
}
func (Success) Descriptor() protoreflect.EnumDescriptor {
return file_v2_status_grpc_types_proto_enumTypes[1].Descriptor()
return file_status_grpc_types_proto_enumTypes[1].Descriptor()
}
func (Success) Type() protoreflect.EnumType {
return &file_v2_status_grpc_types_proto_enumTypes[1]
return &file_status_grpc_types_proto_enumTypes[1]
}
func (x Success) Number() protoreflect.EnumNumber {
@ -113,7 +113,7 @@ func (x Success) Number() protoreflect.EnumNumber {
// Deprecated: Use Success.Descriptor instead.
func (Success) EnumDescriptor() ([]byte, []int) {
return file_v2_status_grpc_types_proto_rawDescGZIP(), []int{1}
return file_status_grpc_types_proto_rawDescGZIP(), []int{1}
}
// Section of failed statuses independent of the operation.
@ -147,11 +147,11 @@ func (x CommonFail) String() string {
}
func (CommonFail) Descriptor() protoreflect.EnumDescriptor {
return file_v2_status_grpc_types_proto_enumTypes[2].Descriptor()
return file_status_grpc_types_proto_enumTypes[2].Descriptor()
}
func (CommonFail) Type() protoreflect.EnumType {
return &file_v2_status_grpc_types_proto_enumTypes[2]
return &file_status_grpc_types_proto_enumTypes[2]
}
func (x CommonFail) Number() protoreflect.EnumNumber {
@ -160,7 +160,7 @@ func (x CommonFail) Number() protoreflect.EnumNumber {
// Deprecated: Use CommonFail.Descriptor instead.
func (CommonFail) EnumDescriptor() ([]byte, []int) {
return file_v2_status_grpc_types_proto_rawDescGZIP(), []int{2}
return file_status_grpc_types_proto_rawDescGZIP(), []int{2}
}
// Declares the general format of the status returns of the NeoFS RPC protocol.
@ -206,7 +206,7 @@ type Status struct {
func (x *Status) Reset() {
*x = Status{}
if protoimpl.UnsafeEnabled {
mi := &file_v2_status_grpc_types_proto_msgTypes[0]
mi := &file_status_grpc_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -219,7 +219,7 @@ func (x *Status) String() string {
func (*Status) ProtoMessage() {}
func (x *Status) ProtoReflect() protoreflect.Message {
mi := &file_v2_status_grpc_types_proto_msgTypes[0]
mi := &file_status_grpc_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -232,7 +232,7 @@ func (x *Status) ProtoReflect() protoreflect.Message {
// Deprecated: Use Status.ProtoReflect.Descriptor instead.
func (*Status) Descriptor() ([]byte, []int) {
return file_v2_status_grpc_types_proto_rawDescGZIP(), []int{0}
return file_status_grpc_types_proto_rawDescGZIP(), []int{0}
}
func (x *Status) GetCode() uint32 {
@ -276,7 +276,7 @@ type Status_Detail struct {
func (x *Status_Detail) Reset() {
*x = Status_Detail{}
if protoimpl.UnsafeEnabled {
mi := &file_v2_status_grpc_types_proto_msgTypes[1]
mi := &file_status_grpc_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -289,7 +289,7 @@ func (x *Status_Detail) String() string {
func (*Status_Detail) ProtoMessage() {}
func (x *Status_Detail) ProtoReflect() protoreflect.Message {
mi := &file_v2_status_grpc_types_proto_msgTypes[1]
mi := &file_status_grpc_types_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -302,7 +302,7 @@ func (x *Status_Detail) ProtoReflect() protoreflect.Message {
// Deprecated: Use Status_Detail.ProtoReflect.Descriptor instead.
func (*Status_Detail) Descriptor() ([]byte, []int) {
return file_v2_status_grpc_types_proto_rawDescGZIP(), []int{0, 0}
return file_status_grpc_types_proto_rawDescGZIP(), []int{0, 0}
}
func (x *Status_Detail) GetId() uint32 {
@ -319,59 +319,59 @@ func (x *Status_Detail) GetValue() []byte {
return nil
}
var File_v2_status_grpc_types_proto protoreflect.FileDescriptor
var File_status_grpc_types_proto protoreflect.FileDescriptor
var file_v2_status_grpc_types_proto_rawDesc = []byte{
0x0a, 0x1a, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6e, 0x65,
0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xa1,
0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a,
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69,
0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66,
0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69,
0x6c, 0x73, 0x1a, 0x2e, 0x0a, 0x06, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x2a, 0x3a, 0x0a, 0x07, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a,
0x0f, 0x53, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53,
0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41,
0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x4f, 0x4e, 0x10, 0x01, 0x2a, 0x11,
0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10,
0x00, 0x2a, 0x1a, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x12,
0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x00, 0x42, 0x56, 0x5a,
0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x73, 0x70, 0x63,
0x63, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d,
0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2f, 0x67, 0x72, 0x70,
0x63, 0x3b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0xaa, 0x02, 0x1a, 0x4e, 0x65, 0x6f, 0x2e, 0x46,
0x69, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
var file_status_grpc_types_proto_rawDesc = []byte{
0x0a, 0x17, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79,
0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6e, 0x65, 0x6f, 0x2e, 0x66,
0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x06,
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18,
0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
0x32, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e,
0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a,
0x2e, 0x0a, 0x06, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a,
0x3a, 0x0a, 0x07, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45,
0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12,
0x1a, 0x0a, 0x16, 0x53, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55,
0x52, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x4f, 0x4e, 0x10, 0x01, 0x2a, 0x11, 0x0a, 0x07, 0x53,
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00, 0x2a, 0x1a,
0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x12, 0x0c, 0x0a, 0x08,
0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x00, 0x42, 0x56, 0x5a, 0x37, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x73, 0x70, 0x63, 0x63, 0x2d, 0x64,
0x65, 0x76, 0x2f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x6f, 0x2f,
0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x73,
0x74, 0x61, 0x74, 0x75, 0x73, 0xaa, 0x02, 0x1a, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65,
0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_v2_status_grpc_types_proto_rawDescOnce sync.Once
file_v2_status_grpc_types_proto_rawDescData = file_v2_status_grpc_types_proto_rawDesc
file_status_grpc_types_proto_rawDescOnce sync.Once
file_status_grpc_types_proto_rawDescData = file_status_grpc_types_proto_rawDesc
)
func file_v2_status_grpc_types_proto_rawDescGZIP() []byte {
file_v2_status_grpc_types_proto_rawDescOnce.Do(func() {
file_v2_status_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2_status_grpc_types_proto_rawDescData)
func file_status_grpc_types_proto_rawDescGZIP() []byte {
file_status_grpc_types_proto_rawDescOnce.Do(func() {
file_status_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_status_grpc_types_proto_rawDescData)
})
return file_v2_status_grpc_types_proto_rawDescData
return file_status_grpc_types_proto_rawDescData
}
var file_v2_status_grpc_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_v2_status_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_v2_status_grpc_types_proto_goTypes = []interface{}{
var file_status_grpc_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_status_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_status_grpc_types_proto_goTypes = []interface{}{
(Section)(0), // 0: neo.fs.v2.status.Section
(Success)(0), // 1: neo.fs.v2.status.Success
(CommonFail)(0), // 2: neo.fs.v2.status.CommonFail
(*Status)(nil), // 3: neo.fs.v2.status.Status
(*Status_Detail)(nil), // 4: neo.fs.v2.status.Status.Detail
}
var file_v2_status_grpc_types_proto_depIdxs = []int32{
var file_status_grpc_types_proto_depIdxs = []int32{
4, // 0: neo.fs.v2.status.Status.details:type_name -> neo.fs.v2.status.Status.Detail
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
@ -380,13 +380,13 @@ var file_v2_status_grpc_types_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name
}
func init() { file_v2_status_grpc_types_proto_init() }
func file_v2_status_grpc_types_proto_init() {
if File_v2_status_grpc_types_proto != nil {
func init() { file_status_grpc_types_proto_init() }
func file_status_grpc_types_proto_init() {
if File_status_grpc_types_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_v2_status_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_status_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Status); i {
case 0:
return &v.state
@ -398,7 +398,7 @@ func file_v2_status_grpc_types_proto_init() {
return nil
}
}
file_v2_status_grpc_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_status_grpc_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Status_Detail); i {
case 0:
return &v.state
@ -415,19 +415,19 @@ func file_v2_status_grpc_types_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_v2_status_grpc_types_proto_rawDesc,
RawDescriptor: file_status_grpc_types_proto_rawDesc,
NumEnums: 3,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_v2_status_grpc_types_proto_goTypes,
DependencyIndexes: file_v2_status_grpc_types_proto_depIdxs,
EnumInfos: file_v2_status_grpc_types_proto_enumTypes,
MessageInfos: file_v2_status_grpc_types_proto_msgTypes,
GoTypes: file_status_grpc_types_proto_goTypes,
DependencyIndexes: file_status_grpc_types_proto_depIdxs,
EnumInfos: file_status_grpc_types_proto_enumTypes,
MessageInfos: file_status_grpc_types_proto_msgTypes,
}.Build()
File_v2_status_grpc_types_proto = out.File
file_v2_status_grpc_types_proto_rawDesc = nil
file_v2_status_grpc_types_proto_goTypes = nil
file_v2_status_grpc_types_proto_depIdxs = nil
File_status_grpc_types_proto = out.File
file_status_grpc_types_proto_rawDesc = nil
file_status_grpc_types_proto_goTypes = nil
file_status_grpc_types_proto_depIdxs = nil
}