2021-10-04 12:32:16 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
2024-03-19 06:55:23 +00:00
|
|
|
// protoc-gen-go v1.33.0
|
|
|
|
// protoc v4.25.3
|
2021-11-17 13:58:38 +00:00
|
|
|
// source: status/grpc/types.proto
|
2021-10-04 12:32:16 +00:00
|
|
|
|
|
|
|
package status
|
|
|
|
|
|
|
|
import (
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
|
|
|
)
|
|
|
|
|
|
|
|
// Section identifiers.
|
|
|
|
type Section int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Successful return codes.
|
|
|
|
Section_SECTION_SUCCESS Section = 0
|
|
|
|
// Failure codes regardless of the operation.
|
|
|
|
Section_SECTION_FAILURE_COMMON Section = 1
|
2022-02-21 17:57:27 +00:00
|
|
|
// Object service-specific errors.
|
|
|
|
Section_SECTION_OBJECT Section = 2
|
|
|
|
// Container service-specific errors.
|
|
|
|
Section_SECTION_CONTAINER Section = 3
|
|
|
|
// Session service-specific errors.
|
|
|
|
Section_SECTION_SESSION Section = 4
|
2024-04-24 13:00:37 +00:00
|
|
|
// Session service-specific errors.
|
|
|
|
Section_SECTION_APE_MANAGER Section = 5
|
2021-10-04 12:32:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for Section.
|
|
|
|
var (
|
|
|
|
Section_name = map[int32]string{
|
|
|
|
0: "SECTION_SUCCESS",
|
|
|
|
1: "SECTION_FAILURE_COMMON",
|
2022-02-21 17:57:27 +00:00
|
|
|
2: "SECTION_OBJECT",
|
|
|
|
3: "SECTION_CONTAINER",
|
|
|
|
4: "SECTION_SESSION",
|
2024-04-24 13:00:37 +00:00
|
|
|
5: "SECTION_APE_MANAGER",
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
Section_value = map[string]int32{
|
|
|
|
"SECTION_SUCCESS": 0,
|
|
|
|
"SECTION_FAILURE_COMMON": 1,
|
2022-02-21 17:57:27 +00:00
|
|
|
"SECTION_OBJECT": 2,
|
|
|
|
"SECTION_CONTAINER": 3,
|
|
|
|
"SECTION_SESSION": 4,
|
2024-04-24 13:00:37 +00:00
|
|
|
"SECTION_APE_MANAGER": 5,
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x Section) Enum() *Section {
|
|
|
|
p := new(Section)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Section) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Section) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 13:58:38 +00:00
|
|
|
return file_status_grpc_types_proto_enumTypes[0].Descriptor()
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (Section) Type() protoreflect.EnumType {
|
2021-11-17 13:58:38 +00:00
|
|
|
return &file_status_grpc_types_proto_enumTypes[0]
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x Section) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Section.Descriptor instead.
|
|
|
|
func (Section) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 13:58:38 +00:00
|
|
|
return file_status_grpc_types_proto_rawDescGZIP(), []int{0}
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Section of NeoFS successful return codes.
|
|
|
|
type Success int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// [**0**] Default success. Not detailed.
|
|
|
|
// If the server cannot match successful outcome to the code, it should
|
|
|
|
// use this code.
|
|
|
|
Success_OK Success = 0
|
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for Success.
|
|
|
|
var (
|
|
|
|
Success_name = map[int32]string{
|
|
|
|
0: "OK",
|
|
|
|
}
|
|
|
|
Success_value = map[string]int32{
|
|
|
|
"OK": 0,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x Success) Enum() *Success {
|
|
|
|
p := new(Success)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Success) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Success) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 13:58:38 +00:00
|
|
|
return file_status_grpc_types_proto_enumTypes[1].Descriptor()
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (Success) Type() protoreflect.EnumType {
|
2021-11-17 13:58:38 +00:00
|
|
|
return &file_status_grpc_types_proto_enumTypes[1]
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x Success) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Success.Descriptor instead.
|
|
|
|
func (Success) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 13:58:38 +00:00
|
|
|
return file_status_grpc_types_proto_rawDescGZIP(), []int{1}
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Section of failed statuses independent of the operation.
|
|
|
|
type CommonFail int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// [**1024**] Internal server error, default failure. Not detailed.
|
|
|
|
// If the server cannot match failed outcome to the code, it should
|
|
|
|
// use this code.
|
|
|
|
CommonFail_INTERNAL CommonFail = 0
|
2022-01-24 17:29:32 +00:00
|
|
|
// [**1025**] Wrong magic of the NeoFS network.
|
|
|
|
// Details:
|
2022-09-15 05:21:44 +00:00
|
|
|
// - [**0**] Magic number of the served NeoFS network (big-endian 64-bit
|
|
|
|
// unsigned integer).
|
2022-01-13 11:56:02 +00:00
|
|
|
CommonFail_WRONG_MAGIC_NUMBER CommonFail = 1
|
2022-06-28 13:39:17 +00:00
|
|
|
// [**1026**] Signature verification failure.
|
|
|
|
CommonFail_SIGNATURE_VERIFICATION_FAIL CommonFail = 2
|
2022-09-15 05:21:44 +00:00
|
|
|
// [**1027**] Node is under maintenance.
|
|
|
|
CommonFail_NODE_UNDER_MAINTENANCE CommonFail = 3
|
2024-06-24 08:53:26 +00:00
|
|
|
// [**1028**] Invalid argument error. If the server fails on validation of a
|
|
|
|
// request parameter as the client sent it incorrectly, then this code should be used.
|
|
|
|
CommonFail_INVALID_ARGUMENT CommonFail = 4
|
2021-10-04 12:32:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for CommonFail.
|
|
|
|
var (
|
|
|
|
CommonFail_name = map[int32]string{
|
|
|
|
0: "INTERNAL",
|
2022-01-13 11:56:02 +00:00
|
|
|
1: "WRONG_MAGIC_NUMBER",
|
2022-06-28 13:39:17 +00:00
|
|
|
2: "SIGNATURE_VERIFICATION_FAIL",
|
2022-09-15 05:21:44 +00:00
|
|
|
3: "NODE_UNDER_MAINTENANCE",
|
2024-06-24 08:53:26 +00:00
|
|
|
4: "INVALID_ARGUMENT",
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
CommonFail_value = map[string]int32{
|
2022-06-28 13:39:17 +00:00
|
|
|
"INTERNAL": 0,
|
|
|
|
"WRONG_MAGIC_NUMBER": 1,
|
|
|
|
"SIGNATURE_VERIFICATION_FAIL": 2,
|
2022-09-15 05:21:44 +00:00
|
|
|
"NODE_UNDER_MAINTENANCE": 3,
|
2024-06-24 08:53:26 +00:00
|
|
|
"INVALID_ARGUMENT": 4,
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x CommonFail) Enum() *CommonFail {
|
|
|
|
p := new(CommonFail)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x CommonFail) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (CommonFail) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 13:58:38 +00:00
|
|
|
return file_status_grpc_types_proto_enumTypes[2].Descriptor()
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (CommonFail) Type() protoreflect.EnumType {
|
2021-11-17 13:58:38 +00:00
|
|
|
return &file_status_grpc_types_proto_enumTypes[2]
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x CommonFail) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use CommonFail.Descriptor instead.
|
|
|
|
func (CommonFail) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 13:58:38 +00:00
|
|
|
return file_status_grpc_types_proto_rawDescGZIP(), []int{2}
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 17:57:27 +00:00
|
|
|
// Section of statuses for object-related operations.
|
|
|
|
type Object int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// [**2048**] Access denied by ACL.
|
|
|
|
// Details:
|
|
|
|
// - [**0**] Human-readable description (UTF-8 encoded string).
|
|
|
|
Object_ACCESS_DENIED Object = 0
|
|
|
|
// [**2049**] Object not found.
|
|
|
|
Object_OBJECT_NOT_FOUND Object = 1
|
|
|
|
// [**2050**] Operation rejected by the object lock.
|
|
|
|
Object_LOCKED Object = 2
|
|
|
|
// [**2051**] Locking an object with a non-REGULAR type rejected.
|
|
|
|
Object_LOCK_NON_REGULAR_OBJECT Object = 3
|
|
|
|
// [**2052**] Object has been marked deleted.
|
|
|
|
Object_OBJECT_ALREADY_REMOVED Object = 4
|
2022-06-15 17:30:22 +00:00
|
|
|
// [**2053**] Invalid range has been requested for an object.
|
|
|
|
Object_OUT_OF_RANGE Object = 5
|
2022-02-21 17:57:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for Object.
|
|
|
|
var (
|
|
|
|
Object_name = map[int32]string{
|
|
|
|
0: "ACCESS_DENIED",
|
|
|
|
1: "OBJECT_NOT_FOUND",
|
|
|
|
2: "LOCKED",
|
|
|
|
3: "LOCK_NON_REGULAR_OBJECT",
|
|
|
|
4: "OBJECT_ALREADY_REMOVED",
|
2022-06-15 17:30:22 +00:00
|
|
|
5: "OUT_OF_RANGE",
|
2022-02-21 17:57:27 +00:00
|
|
|
}
|
|
|
|
Object_value = map[string]int32{
|
|
|
|
"ACCESS_DENIED": 0,
|
|
|
|
"OBJECT_NOT_FOUND": 1,
|
|
|
|
"LOCKED": 2,
|
|
|
|
"LOCK_NON_REGULAR_OBJECT": 3,
|
|
|
|
"OBJECT_ALREADY_REMOVED": 4,
|
2022-06-15 17:30:22 +00:00
|
|
|
"OUT_OF_RANGE": 5,
|
2022-02-21 17:57:27 +00:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x Object) Enum() *Object {
|
|
|
|
p := new(Object)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Object) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Object) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_status_grpc_types_proto_enumTypes[3].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Object) Type() protoreflect.EnumType {
|
|
|
|
return &file_status_grpc_types_proto_enumTypes[3]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Object) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Object.Descriptor instead.
|
|
|
|
func (Object) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_status_grpc_types_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Section of statuses for container-related operations.
|
|
|
|
type Container int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// [**3072**] Container not found.
|
|
|
|
Container_CONTAINER_NOT_FOUND Container = 0
|
2022-09-17 09:59:54 +00:00
|
|
|
// [**3073**] eACL table not found.
|
|
|
|
Container_EACL_NOT_FOUND Container = 1
|
2024-03-26 15:52:20 +00:00
|
|
|
// [**3074**] Container access denied.
|
|
|
|
Container_CONTAINER_ACCESS_DENIED Container = 2
|
2022-02-21 17:57:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for Container.
|
|
|
|
var (
|
|
|
|
Container_name = map[int32]string{
|
|
|
|
0: "CONTAINER_NOT_FOUND",
|
2022-09-17 09:59:54 +00:00
|
|
|
1: "EACL_NOT_FOUND",
|
2024-03-26 15:52:20 +00:00
|
|
|
2: "CONTAINER_ACCESS_DENIED",
|
2022-02-21 17:57:27 +00:00
|
|
|
}
|
|
|
|
Container_value = map[string]int32{
|
2024-03-26 15:52:20 +00:00
|
|
|
"CONTAINER_NOT_FOUND": 0,
|
|
|
|
"EACL_NOT_FOUND": 1,
|
|
|
|
"CONTAINER_ACCESS_DENIED": 2,
|
2022-02-21 17:57:27 +00:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x Container) Enum() *Container {
|
|
|
|
p := new(Container)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Container) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Container) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_status_grpc_types_proto_enumTypes[4].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Container) Type() protoreflect.EnumType {
|
|
|
|
return &file_status_grpc_types_proto_enumTypes[4]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Container) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Container.Descriptor instead.
|
|
|
|
func (Container) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_status_grpc_types_proto_rawDescGZIP(), []int{4}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Section of statuses for session-related operations.
|
|
|
|
type Session int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// [**4096**] Token not found.
|
|
|
|
Session_TOKEN_NOT_FOUND Session = 0
|
|
|
|
// [**4097**] Token has expired.
|
|
|
|
Session_TOKEN_EXPIRED Session = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for Session.
|
|
|
|
var (
|
|
|
|
Session_name = map[int32]string{
|
|
|
|
0: "TOKEN_NOT_FOUND",
|
|
|
|
1: "TOKEN_EXPIRED",
|
|
|
|
}
|
|
|
|
Session_value = map[string]int32{
|
|
|
|
"TOKEN_NOT_FOUND": 0,
|
|
|
|
"TOKEN_EXPIRED": 1,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x Session) Enum() *Session {
|
|
|
|
p := new(Session)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Session) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Session) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_status_grpc_types_proto_enumTypes[5].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Session) Type() protoreflect.EnumType {
|
|
|
|
return &file_status_grpc_types_proto_enumTypes[5]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Session) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Session.Descriptor instead.
|
|
|
|
func (Session) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_status_grpc_types_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
|
|
|
|
2024-04-24 13:00:37 +00:00
|
|
|
// Section of status for APE manager related operations.
|
|
|
|
type APEManager int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// [**5120**] The operation is denied by APE manager.
|
|
|
|
APEManager_APE_MANAGER_ACCESS_DENIED APEManager = 0
|
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for APEManager.
|
|
|
|
var (
|
|
|
|
APEManager_name = map[int32]string{
|
|
|
|
0: "APE_MANAGER_ACCESS_DENIED",
|
|
|
|
}
|
|
|
|
APEManager_value = map[string]int32{
|
|
|
|
"APE_MANAGER_ACCESS_DENIED": 0,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x APEManager) Enum() *APEManager {
|
|
|
|
p := new(APEManager)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x APEManager) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (APEManager) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_status_grpc_types_proto_enumTypes[6].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (APEManager) Type() protoreflect.EnumType {
|
|
|
|
return &file_status_grpc_types_proto_enumTypes[6]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x APEManager) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use APEManager.Descriptor instead.
|
|
|
|
func (APEManager) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_status_grpc_types_proto_rawDescGZIP(), []int{6}
|
|
|
|
}
|
|
|
|
|
2021-10-04 12:32:16 +00:00
|
|
|
// Declares the general format of the status returns of the NeoFS RPC protocol.
|
|
|
|
// Status is present in all response messages. Each RPC of NeoFS protocol
|
|
|
|
// describes the possible outcomes and details of the operation.
|
|
|
|
//
|
|
|
|
// Each status is assigned a one-to-one numeric code. Any unique result of an
|
|
|
|
// operation in NeoFS is unambiguously associated with the code value.
|
|
|
|
//
|
|
|
|
// Numerical set of codes is split into 1024-element sections. An enumeration
|
|
|
|
// is defined for each section. Values can be referred to in the following ways:
|
|
|
|
//
|
|
|
|
// * numerical value ranging from 0 to 4,294,967,295 (global code);
|
|
|
|
//
|
2022-09-15 05:21:44 +00:00
|
|
|
// - values from enumeration (local code). The formula for the ratio of the
|
|
|
|
// local code (`L`) of a defined section (`S`) to the global one (`G`):
|
|
|
|
// `G = 1024 * S + L`.
|
2021-10-04 12:32:16 +00:00
|
|
|
//
|
|
|
|
// All outcomes are divided into successful and failed, which corresponds
|
|
|
|
// to the success or failure of the operation. The definition of success
|
2022-06-15 17:30:22 +00:00
|
|
|
// follows the semantics of RPC and the description of its purpose.
|
|
|
|
// The server must not attach code that is the opposite of the outcome type.
|
2021-10-04 12:32:16 +00:00
|
|
|
//
|
|
|
|
// See the set of return codes in the description for calls.
|
|
|
|
//
|
2022-06-15 17:30:22 +00:00
|
|
|
// Each status can carry a developer-facing error message. It should be a human
|
2021-10-04 12:32:16 +00:00
|
|
|
// readable text in English. The server should not transmit (and the client
|
|
|
|
// should not expect) useful information in the message. Field `details`
|
|
|
|
// should make the return more detailed.
|
|
|
|
type Status struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// The status code
|
|
|
|
Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
|
// Developer-facing error message
|
|
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
|
|
// Data detailing the outcome of the operation. Must be unique by ID.
|
|
|
|
Details []*Status_Detail `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Status) Reset() {
|
|
|
|
*x = Status{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 13:58:38 +00:00
|
|
|
mi := &file_status_grpc_types_proto_msgTypes[0]
|
2021-10-04 12:32:16 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Status) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Status) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Status) ProtoReflect() protoreflect.Message {
|
2021-11-17 13:58:38 +00:00
|
|
|
mi := &file_status_grpc_types_proto_msgTypes[0]
|
2021-10-04 12:32:16 +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 Status.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Status) Descriptor() ([]byte, []int) {
|
2021-11-17 13:58:38 +00:00
|
|
|
return file_status_grpc_types_proto_rawDescGZIP(), []int{0}
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Status) GetCode() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Code
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Status) GetMessage() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Message
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Status) GetDetails() []*Status_Detail {
|
|
|
|
if x != nil {
|
|
|
|
return x.Details
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return detail. It contains additional information that can be used to
|
|
|
|
// analyze the response. Each code defines a set of details that can be
|
|
|
|
// attached to a status. Client should not handle details that are not
|
|
|
|
// covered by the code.
|
|
|
|
type Status_Detail struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// Detail ID. The identifier is required to determine the binary format
|
|
|
|
// of the detail and how to decode it.
|
|
|
|
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
// Binary status detail. Must follow the format associated with ID.
|
|
|
|
// The possibility of missing a value must be explicitly allowed.
|
|
|
|
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Status_Detail) Reset() {
|
|
|
|
*x = Status_Detail{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 13:58:38 +00:00
|
|
|
mi := &file_status_grpc_types_proto_msgTypes[1]
|
2021-10-04 12:32:16 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Status_Detail) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Status_Detail) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Status_Detail) ProtoReflect() protoreflect.Message {
|
2021-11-17 13:58:38 +00:00
|
|
|
mi := &file_status_grpc_types_proto_msgTypes[1]
|
2021-10-04 12:32:16 +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 Status_Detail.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Status_Detail) Descriptor() ([]byte, []int) {
|
2021-11-17 13:58:38 +00:00
|
|
|
return file_status_grpc_types_proto_rawDescGZIP(), []int{0, 0}
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Status_Detail) GetId() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Status_Detail) GetValue() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-11-17 13:58:38 +00:00
|
|
|
var File_status_grpc_types_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
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,
|
2024-04-24 13:00:37 +00:00
|
|
|
0x93, 0x01, 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, 0x12, 0x12, 0x0a, 0x0e,
|
|
|
|
0x53, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x02,
|
|
|
|
0x12, 0x15, 0x0a, 0x11, 0x53, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x54,
|
|
|
|
0x41, 0x49, 0x4e, 0x45, 0x52, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45, 0x43, 0x54, 0x49,
|
|
|
|
0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13,
|
|
|
|
0x53, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x4e, 0x41,
|
|
|
|
0x47, 0x45, 0x52, 0x10, 0x05, 0x2a, 0x11, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
2024-06-24 08:53:26 +00:00
|
|
|
0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00, 0x2a, 0x85, 0x01, 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, 0x12, 0x16, 0x0a, 0x12, 0x57, 0x52, 0x4f, 0x4e, 0x47, 0x5f, 0x4d,
|
|
|
|
0x41, 0x47, 0x49, 0x43, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x01, 0x12, 0x1f, 0x0a,
|
|
|
|
0x1b, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46,
|
|
|
|
0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x02, 0x12, 0x1a,
|
|
|
|
0x0a, 0x16, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x49,
|
|
|
|
0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e,
|
|
|
|
0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x04,
|
|
|
|
0x2a, 0x88, 0x01, 0x0a, 0x06, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x11, 0x0a, 0x0d, 0x41,
|
|
|
|
0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14,
|
|
|
|
0x0a, 0x10, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55,
|
|
|
|
0x4e, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x02,
|
|
|
|
0x12, 0x1b, 0x0a, 0x17, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47,
|
|
|
|
0x55, 0x4c, 0x41, 0x52, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x1a, 0x0a,
|
|
|
|
0x16, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f,
|
|
|
|
0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x55, 0x54,
|
|
|
|
0x5f, 0x4f, 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x55, 0x0a, 0x09, 0x43,
|
|
|
|
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4e, 0x54,
|
|
|
|
0x41, 0x49, 0x4e, 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10,
|
|
|
|
0x00, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x41, 0x43, 0x4c, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f,
|
|
|
|
0x55, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e,
|
|
|
|
0x45, 0x52, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44,
|
|
|
|
0x10, 0x02, 0x2a, 0x31, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a,
|
|
|
|
0x0f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44,
|
|
|
|
0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x45, 0x58, 0x50, 0x49,
|
|
|
|
0x52, 0x45, 0x44, 0x10, 0x01, 0x2a, 0x2b, 0x0a, 0x0a, 0x41, 0x50, 0x45, 0x4d, 0x61, 0x6e, 0x61,
|
|
|
|
0x67, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x19, 0x41, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x4e, 0x41, 0x47,
|
|
|
|
0x45, 0x52, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44,
|
|
|
|
0x10, 0x00, 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, 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,
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2021-11-17 13:58:38 +00:00
|
|
|
file_status_grpc_types_proto_rawDescOnce sync.Once
|
|
|
|
file_status_grpc_types_proto_rawDescData = file_status_grpc_types_proto_rawDesc
|
2021-10-04 12:32:16 +00:00
|
|
|
)
|
|
|
|
|
2021-11-17 13:58:38 +00:00
|
|
|
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)
|
2021-10-04 12:32:16 +00:00
|
|
|
})
|
2021-11-17 13:58:38 +00:00
|
|
|
return file_status_grpc_types_proto_rawDescData
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
|
|
|
|
2024-04-24 13:00:37 +00:00
|
|
|
var file_status_grpc_types_proto_enumTypes = make([]protoimpl.EnumInfo, 7)
|
2021-11-17 13:58:38 +00:00
|
|
|
var file_status_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
|
|
var file_status_grpc_types_proto_goTypes = []interface{}{
|
2021-10-04 12:32:16 +00:00
|
|
|
(Section)(0), // 0: neo.fs.v2.status.Section
|
|
|
|
(Success)(0), // 1: neo.fs.v2.status.Success
|
|
|
|
(CommonFail)(0), // 2: neo.fs.v2.status.CommonFail
|
2022-02-21 17:57:27 +00:00
|
|
|
(Object)(0), // 3: neo.fs.v2.status.Object
|
|
|
|
(Container)(0), // 4: neo.fs.v2.status.Container
|
|
|
|
(Session)(0), // 5: neo.fs.v2.status.Session
|
2024-04-24 13:00:37 +00:00
|
|
|
(APEManager)(0), // 6: neo.fs.v2.status.APEManager
|
|
|
|
(*Status)(nil), // 7: neo.fs.v2.status.Status
|
|
|
|
(*Status_Detail)(nil), // 8: neo.fs.v2.status.Status.Detail
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|
2021-11-17 13:58:38 +00:00
|
|
|
var file_status_grpc_types_proto_depIdxs = []int32{
|
2024-04-24 13:00:37 +00:00
|
|
|
8, // 0: neo.fs.v2.status.Status.details:type_name -> neo.fs.v2.status.Status.Detail
|
2021-10-04 12:32:16 +00:00
|
|
|
1, // [1:1] is the sub-list for method output_type
|
|
|
|
1, // [1:1] is the sub-list for method input_type
|
|
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
|
|
0, // [0:1] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
2021-11-17 13:58:38 +00:00
|
|
|
func init() { file_status_grpc_types_proto_init() }
|
|
|
|
func file_status_grpc_types_proto_init() {
|
|
|
|
if File_status_grpc_types_proto != nil {
|
2021-10-04 12:32:16 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
2021-11-17 13:58:38 +00:00
|
|
|
file_status_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2021-10-04 12:32:16 +00:00
|
|
|
switch v := v.(*Status); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 13:58:38 +00:00
|
|
|
file_status_grpc_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2021-10-04 12:32:16 +00:00
|
|
|
switch v := v.(*Status_Detail); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
2021-11-17 13:58:38 +00:00
|
|
|
RawDescriptor: file_status_grpc_types_proto_rawDesc,
|
2024-04-24 13:00:37 +00:00
|
|
|
NumEnums: 7,
|
2021-10-04 12:32:16 +00:00
|
|
|
NumMessages: 2,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
2021-11-17 13:58:38 +00:00
|
|
|
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,
|
2021-10-04 12:32:16 +00:00
|
|
|
}.Build()
|
2021-11-17 13:58:38 +00:00
|
|
|
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
|
2021-10-04 12:32:16 +00:00
|
|
|
}
|