github.com/resonatecoop/user-api@v1.0.0-13.0.20220915120639-05dc9c04014a/proto/google/rpc/status/status.pb.go (about)

     1  // Copyright 2020 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.25.0-devel
    18  // 	protoc        v3.13.0
    19  // source: google/rpc/status.proto
    20  
    21  package status
    22  
    23  import (
    24  	any "github.com/golang/protobuf/ptypes/any"
    25  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    26  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    27  	reflect "reflect"
    28  	sync "sync"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // The `Status` type defines a logical error model that is suitable for
    39  // different programming environments, including REST APIs and RPC APIs. It is
    40  // used by [gRPC](https://github.com/grpc). Each `Status` message contains
    41  // three pieces of data: error code, error message, and error details.
    42  //
    43  // You can find out more about this error model and how to work with it in the
    44  // [API Design Guide](https://cloud.google.com/apis/design/errors).
    45  type Status struct {
    46  	state         protoimpl.MessageState
    47  	sizeCache     protoimpl.SizeCache
    48  	unknownFields protoimpl.UnknownFields
    49  
    50  	// The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
    51  	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
    52  	// A developer-facing error message, which should be in English. Any
    53  	// user-facing error message should be localized and sent in the
    54  	// [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
    55  	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
    56  	// A list of messages that carry the error details.  There is a common set of
    57  	// message types for APIs to use.
    58  	Details []*any.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
    59  }
    60  
    61  func (x *Status) Reset() {
    62  	*x = Status{}
    63  	if protoimpl.UnsafeEnabled {
    64  		mi := &file_google_rpc_status_proto_msgTypes[0]
    65  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    66  		ms.StoreMessageInfo(mi)
    67  	}
    68  }
    69  
    70  func (x *Status) String() string {
    71  	return protoimpl.X.MessageStringOf(x)
    72  }
    73  
    74  func (*Status) ProtoMessage() {}
    75  
    76  func (x *Status) ProtoReflect() protoreflect.Message {
    77  	mi := &file_google_rpc_status_proto_msgTypes[0]
    78  	if protoimpl.UnsafeEnabled && x != nil {
    79  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    80  		if ms.LoadMessageInfo() == nil {
    81  			ms.StoreMessageInfo(mi)
    82  		}
    83  		return ms
    84  	}
    85  	return mi.MessageOf(x)
    86  }
    87  
    88  // Deprecated: Use Status.ProtoReflect.Descriptor instead.
    89  func (*Status) Descriptor() ([]byte, []int) {
    90  	return file_google_rpc_status_proto_rawDescGZIP(), []int{0}
    91  }
    92  
    93  func (x *Status) GetCode() int32 {
    94  	if x != nil {
    95  		return x.Code
    96  	}
    97  	return 0
    98  }
    99  
   100  func (x *Status) GetMessage() string {
   101  	if x != nil {
   102  		return x.Message
   103  	}
   104  	return ""
   105  }
   106  
   107  func (x *Status) GetDetails() []*any.Any {
   108  	if x != nil {
   109  		return x.Details
   110  	}
   111  	return nil
   112  }
   113  
   114  var File_google_rpc_status_proto protoreflect.FileDescriptor
   115  
   116  var file_google_rpc_status_proto_rawDesc = []byte{
   117  	0x0a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61,
   118  	0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   119  	0x65, 0x2e, 0x72, 0x70, 0x63, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
   120  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   121  	0x22, 0x66, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
   122  	0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18,
   123  	0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   124  	0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61,
   125  	0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   126  	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52,
   127  	0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x61, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e,
   128  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x0b, 0x53, 0x74, 0x61, 0x74,
   129  	0x75, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   130  	0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
   131  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
   132  	0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x3b, 0x73, 0x74, 0x61, 0x74,
   133  	0x75, 0x73, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x52, 0x50, 0x43, 0x62, 0x06, 0x70, 0x72, 0x6f,
   134  	0x74, 0x6f, 0x33,
   135  }
   136  
   137  var (
   138  	file_google_rpc_status_proto_rawDescOnce sync.Once
   139  	file_google_rpc_status_proto_rawDescData = file_google_rpc_status_proto_rawDesc
   140  )
   141  
   142  func file_google_rpc_status_proto_rawDescGZIP() []byte {
   143  	file_google_rpc_status_proto_rawDescOnce.Do(func() {
   144  		file_google_rpc_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_rpc_status_proto_rawDescData)
   145  	})
   146  	return file_google_rpc_status_proto_rawDescData
   147  }
   148  
   149  var file_google_rpc_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   150  var file_google_rpc_status_proto_goTypes = []interface{}{
   151  	(*Status)(nil),  // 0: google.rpc.Status
   152  	(*any.Any)(nil), // 1: google.protobuf.Any
   153  }
   154  var file_google_rpc_status_proto_depIdxs = []int32{
   155  	1, // 0: google.rpc.Status.details:type_name -> google.protobuf.Any
   156  	1, // [1:1] is the sub-list for method output_type
   157  	1, // [1:1] is the sub-list for method input_type
   158  	1, // [1:1] is the sub-list for extension type_name
   159  	1, // [1:1] is the sub-list for extension extendee
   160  	0, // [0:1] is the sub-list for field type_name
   161  }
   162  
   163  func init() { file_google_rpc_status_proto_init() }
   164  func file_google_rpc_status_proto_init() {
   165  	if File_google_rpc_status_proto != nil {
   166  		return
   167  	}
   168  	if !protoimpl.UnsafeEnabled {
   169  		file_google_rpc_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   170  			switch v := v.(*Status); i {
   171  			case 0:
   172  				return &v.state
   173  			case 1:
   174  				return &v.sizeCache
   175  			case 2:
   176  				return &v.unknownFields
   177  			default:
   178  				return nil
   179  			}
   180  		}
   181  	}
   182  	type x struct{}
   183  	out := protoimpl.TypeBuilder{
   184  		File: protoimpl.DescBuilder{
   185  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   186  			RawDescriptor: file_google_rpc_status_proto_rawDesc,
   187  			NumEnums:      0,
   188  			NumMessages:   1,
   189  			NumExtensions: 0,
   190  			NumServices:   0,
   191  		},
   192  		GoTypes:           file_google_rpc_status_proto_goTypes,
   193  		DependencyIndexes: file_google_rpc_status_proto_depIdxs,
   194  		MessageInfos:      file_google_rpc_status_proto_msgTypes,
   195  	}.Build()
   196  	File_google_rpc_status_proto = out.File
   197  	file_google_rpc_status_proto_rawDesc = nil
   198  	file_google_rpc_status_proto_goTypes = nil
   199  	file_google_rpc_status_proto_depIdxs = nil
   200  }