github.com/kaydxh/golang@v0.0.131/pkg/middleware/api/trivial/v2/api.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.13.0
     5  // source: pkg/middleware/api/trivial/v2/api.proto
     6  
     7  package v2
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  // ErrorResponse
    24  type ErrorResponse struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	RequestId string       `protobuf:"bytes,1,opt,name=request_id,json=RequestId,proto3" json:"request_id,omitempty"`
    30  	Error     *TCloudError `protobuf:"bytes,1000,opt,name=error,json=Error,proto3" json:"error,omitempty"`
    31  }
    32  
    33  func (x *ErrorResponse) Reset() {
    34  	*x = ErrorResponse{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_pkg_middleware_api_trivial_v2_api_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *ErrorResponse) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*ErrorResponse) ProtoMessage() {}
    47  
    48  func (x *ErrorResponse) ProtoReflect() protoreflect.Message {
    49  	mi := &file_pkg_middleware_api_trivial_v2_api_proto_msgTypes[0]
    50  	if protoimpl.UnsafeEnabled && x != nil {
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		if ms.LoadMessageInfo() == nil {
    53  			ms.StoreMessageInfo(mi)
    54  		}
    55  		return ms
    56  	}
    57  	return mi.MessageOf(x)
    58  }
    59  
    60  // Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.
    61  func (*ErrorResponse) Descriptor() ([]byte, []int) {
    62  	return file_pkg_middleware_api_trivial_v2_api_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  func (x *ErrorResponse) GetRequestId() string {
    66  	if x != nil {
    67  		return x.RequestId
    68  	}
    69  	return ""
    70  }
    71  
    72  func (x *ErrorResponse) GetError() *TCloudError {
    73  	if x != nil {
    74  		return x.Error
    75  	}
    76  	return nil
    77  }
    78  
    79  type TCloudError struct {
    80  	state         protoimpl.MessageState
    81  	sizeCache     protoimpl.SizeCache
    82  	unknownFields protoimpl.UnknownFields
    83  
    84  	Code    string `protobuf:"bytes,1,opt,name=code,json=Code,proto3" json:"code,omitempty"`
    85  	Message string `protobuf:"bytes,2,opt,name=message,json=Message,proto3" json:"message,omitempty"`
    86  }
    87  
    88  func (x *TCloudError) Reset() {
    89  	*x = TCloudError{}
    90  	if protoimpl.UnsafeEnabled {
    91  		mi := &file_pkg_middleware_api_trivial_v2_api_proto_msgTypes[1]
    92  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    93  		ms.StoreMessageInfo(mi)
    94  	}
    95  }
    96  
    97  func (x *TCloudError) String() string {
    98  	return protoimpl.X.MessageStringOf(x)
    99  }
   100  
   101  func (*TCloudError) ProtoMessage() {}
   102  
   103  func (x *TCloudError) ProtoReflect() protoreflect.Message {
   104  	mi := &file_pkg_middleware_api_trivial_v2_api_proto_msgTypes[1]
   105  	if protoimpl.UnsafeEnabled && x != nil {
   106  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   107  		if ms.LoadMessageInfo() == nil {
   108  			ms.StoreMessageInfo(mi)
   109  		}
   110  		return ms
   111  	}
   112  	return mi.MessageOf(x)
   113  }
   114  
   115  // Deprecated: Use TCloudError.ProtoReflect.Descriptor instead.
   116  func (*TCloudError) Descriptor() ([]byte, []int) {
   117  	return file_pkg_middleware_api_trivial_v2_api_proto_rawDescGZIP(), []int{1}
   118  }
   119  
   120  func (x *TCloudError) GetCode() string {
   121  	if x != nil {
   122  		return x.Code
   123  	}
   124  	return ""
   125  }
   126  
   127  func (x *TCloudError) GetMessage() string {
   128  	if x != nil {
   129  		return x.Message
   130  	}
   131  	return ""
   132  }
   133  
   134  var File_pkg_middleware_api_trivial_v2_api_proto protoreflect.FileDescriptor
   135  
   136  var file_pkg_middleware_api_trivial_v2_api_proto_rawDesc = []byte{
   137  	0x0a, 0x27, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65,
   138  	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x72, 0x69, 0x76, 0x69, 0x61, 0x6c, 0x2f, 0x76, 0x32, 0x2f,
   139  	0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x61, 0x70, 0x69, 0x2e, 0x74,
   140  	0x72, 0x69, 0x76, 0x69, 0x61, 0x6c, 0x2e, 0x76, 0x32, 0x22, 0x62, 0x0a, 0x0d, 0x45, 0x72, 0x72,
   141  	0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65,
   142  	0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
   143  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x05, 0x65, 0x72, 0x72,
   144  	0x6f, 0x72, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e,
   145  	0x74, 0x72, 0x69, 0x76, 0x69, 0x61, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x43, 0x6c, 0x6f, 0x75,
   146  	0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x3b, 0x0a,
   147  	0x0b, 0x54, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04,
   148  	0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65,
   149  	0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
   150  	0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69,
   151  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78, 0x68, 0x2f,
   152  	0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x69, 0x64, 0x64, 0x6c,
   153  	0x65, 0x77, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x72, 0x69, 0x76, 0x69, 0x61,
   154  	0x6c, 0x2f, 0x76, 0x32, 0x3b, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   155  }
   156  
   157  var (
   158  	file_pkg_middleware_api_trivial_v2_api_proto_rawDescOnce sync.Once
   159  	file_pkg_middleware_api_trivial_v2_api_proto_rawDescData = file_pkg_middleware_api_trivial_v2_api_proto_rawDesc
   160  )
   161  
   162  func file_pkg_middleware_api_trivial_v2_api_proto_rawDescGZIP() []byte {
   163  	file_pkg_middleware_api_trivial_v2_api_proto_rawDescOnce.Do(func() {
   164  		file_pkg_middleware_api_trivial_v2_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_middleware_api_trivial_v2_api_proto_rawDescData)
   165  	})
   166  	return file_pkg_middleware_api_trivial_v2_api_proto_rawDescData
   167  }
   168  
   169  var file_pkg_middleware_api_trivial_v2_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   170  var file_pkg_middleware_api_trivial_v2_api_proto_goTypes = []interface{}{
   171  	(*ErrorResponse)(nil), // 0: api.trivial.v2.ErrorResponse
   172  	(*TCloudError)(nil),   // 1: api.trivial.v2.TCloudError
   173  }
   174  var file_pkg_middleware_api_trivial_v2_api_proto_depIdxs = []int32{
   175  	1, // 0: api.trivial.v2.ErrorResponse.error:type_name -> api.trivial.v2.TCloudError
   176  	1, // [1:1] is the sub-list for method output_type
   177  	1, // [1:1] is the sub-list for method input_type
   178  	1, // [1:1] is the sub-list for extension type_name
   179  	1, // [1:1] is the sub-list for extension extendee
   180  	0, // [0:1] is the sub-list for field type_name
   181  }
   182  
   183  func init() { file_pkg_middleware_api_trivial_v2_api_proto_init() }
   184  func file_pkg_middleware_api_trivial_v2_api_proto_init() {
   185  	if File_pkg_middleware_api_trivial_v2_api_proto != nil {
   186  		return
   187  	}
   188  	if !protoimpl.UnsafeEnabled {
   189  		file_pkg_middleware_api_trivial_v2_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   190  			switch v := v.(*ErrorResponse); i {
   191  			case 0:
   192  				return &v.state
   193  			case 1:
   194  				return &v.sizeCache
   195  			case 2:
   196  				return &v.unknownFields
   197  			default:
   198  				return nil
   199  			}
   200  		}
   201  		file_pkg_middleware_api_trivial_v2_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   202  			switch v := v.(*TCloudError); i {
   203  			case 0:
   204  				return &v.state
   205  			case 1:
   206  				return &v.sizeCache
   207  			case 2:
   208  				return &v.unknownFields
   209  			default:
   210  				return nil
   211  			}
   212  		}
   213  	}
   214  	type x struct{}
   215  	out := protoimpl.TypeBuilder{
   216  		File: protoimpl.DescBuilder{
   217  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   218  			RawDescriptor: file_pkg_middleware_api_trivial_v2_api_proto_rawDesc,
   219  			NumEnums:      0,
   220  			NumMessages:   2,
   221  			NumExtensions: 0,
   222  			NumServices:   0,
   223  		},
   224  		GoTypes:           file_pkg_middleware_api_trivial_v2_api_proto_goTypes,
   225  		DependencyIndexes: file_pkg_middleware_api_trivial_v2_api_proto_depIdxs,
   226  		MessageInfos:      file_pkg_middleware_api_trivial_v2_api_proto_msgTypes,
   227  	}.Build()
   228  	File_pkg_middleware_api_trivial_v2_api_proto = out.File
   229  	file_pkg_middleware_api_trivial_v2_api_proto_rawDesc = nil
   230  	file_pkg_middleware_api_trivial_v2_api_proto_goTypes = nil
   231  	file_pkg_middleware_api_trivial_v2_api_proto_depIdxs = nil
   232  }