resource.pb.go 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. // Copyright 2018, OpenCensus Authors
  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. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.25.0
  17. // protoc v3.12.3
  18. // source: opencensus/proto/resource/v1/resource.proto
  19. package v1
  20. import (
  21. proto "github.com/golang/protobuf/proto"
  22. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  23. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  24. reflect "reflect"
  25. sync "sync"
  26. )
  27. const (
  28. // Verify that this generated code is sufficiently up-to-date.
  29. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  30. // Verify that runtime/protoimpl is sufficiently up-to-date.
  31. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  32. )
  33. // This is a compile-time assertion that a sufficiently up-to-date version
  34. // of the legacy proto package is being used.
  35. const _ = proto.ProtoPackageIsVersion4
  36. // Resource information.
  37. type Resource struct {
  38. state protoimpl.MessageState
  39. sizeCache protoimpl.SizeCache
  40. unknownFields protoimpl.UnknownFields
  41. // Type identifier for the resource.
  42. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  43. // Set of labels that describe the resource.
  44. Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  45. }
  46. func (x *Resource) Reset() {
  47. *x = Resource{}
  48. if protoimpl.UnsafeEnabled {
  49. mi := &file_opencensus_proto_resource_v1_resource_proto_msgTypes[0]
  50. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  51. ms.StoreMessageInfo(mi)
  52. }
  53. }
  54. func (x *Resource) String() string {
  55. return protoimpl.X.MessageStringOf(x)
  56. }
  57. func (*Resource) ProtoMessage() {}
  58. func (x *Resource) ProtoReflect() protoreflect.Message {
  59. mi := &file_opencensus_proto_resource_v1_resource_proto_msgTypes[0]
  60. if protoimpl.UnsafeEnabled && x != nil {
  61. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  62. if ms.LoadMessageInfo() == nil {
  63. ms.StoreMessageInfo(mi)
  64. }
  65. return ms
  66. }
  67. return mi.MessageOf(x)
  68. }
  69. // Deprecated: Use Resource.ProtoReflect.Descriptor instead.
  70. func (*Resource) Descriptor() ([]byte, []int) {
  71. return file_opencensus_proto_resource_v1_resource_proto_rawDescGZIP(), []int{0}
  72. }
  73. func (x *Resource) GetType() string {
  74. if x != nil {
  75. return x.Type
  76. }
  77. return ""
  78. }
  79. func (x *Resource) GetLabels() map[string]string {
  80. if x != nil {
  81. return x.Labels
  82. }
  83. return nil
  84. }
  85. var File_opencensus_proto_resource_v1_resource_proto protoreflect.FileDescriptor
  86. var file_opencensus_proto_resource_v1_resource_proto_rawDesc = []byte{
  87. 0x0a, 0x2b, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f,
  88. 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72,
  89. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x6f,
  90. 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  91. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x22, 0xa5, 0x01, 0x0a, 0x08,
  92. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
  93. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4a, 0x0a, 0x06,
  94. 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6f,
  95. 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  96. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f,
  97. 0x75, 0x72, 0x63, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
  98. 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65,
  99. 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
  100. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
  101. 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
  102. 0x02, 0x38, 0x01, 0x42, 0x98, 0x01, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63,
  103. 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f,
  104. 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  105. 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  106. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2d, 0x69, 0x6e, 0x73, 0x74,
  107. 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6f, 0x70, 0x65, 0x6e,
  108. 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e,
  109. 0x2d, 0x67, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0xea,
  110. 0x02, 0x1c, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x50, 0x72, 0x6f,
  111. 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x06,
  112. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  113. }
  114. var (
  115. file_opencensus_proto_resource_v1_resource_proto_rawDescOnce sync.Once
  116. file_opencensus_proto_resource_v1_resource_proto_rawDescData = file_opencensus_proto_resource_v1_resource_proto_rawDesc
  117. )
  118. func file_opencensus_proto_resource_v1_resource_proto_rawDescGZIP() []byte {
  119. file_opencensus_proto_resource_v1_resource_proto_rawDescOnce.Do(func() {
  120. file_opencensus_proto_resource_v1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_opencensus_proto_resource_v1_resource_proto_rawDescData)
  121. })
  122. return file_opencensus_proto_resource_v1_resource_proto_rawDescData
  123. }
  124. var file_opencensus_proto_resource_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  125. var file_opencensus_proto_resource_v1_resource_proto_goTypes = []interface{}{
  126. (*Resource)(nil), // 0: opencensus.proto.resource.v1.Resource
  127. nil, // 1: opencensus.proto.resource.v1.Resource.LabelsEntry
  128. }
  129. var file_opencensus_proto_resource_v1_resource_proto_depIdxs = []int32{
  130. 1, // 0: opencensus.proto.resource.v1.Resource.labels:type_name -> opencensus.proto.resource.v1.Resource.LabelsEntry
  131. 1, // [1:1] is the sub-list for method output_type
  132. 1, // [1:1] is the sub-list for method input_type
  133. 1, // [1:1] is the sub-list for extension type_name
  134. 1, // [1:1] is the sub-list for extension extendee
  135. 0, // [0:1] is the sub-list for field type_name
  136. }
  137. func init() { file_opencensus_proto_resource_v1_resource_proto_init() }
  138. func file_opencensus_proto_resource_v1_resource_proto_init() {
  139. if File_opencensus_proto_resource_v1_resource_proto != nil {
  140. return
  141. }
  142. if !protoimpl.UnsafeEnabled {
  143. file_opencensus_proto_resource_v1_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  144. switch v := v.(*Resource); i {
  145. case 0:
  146. return &v.state
  147. case 1:
  148. return &v.sizeCache
  149. case 2:
  150. return &v.unknownFields
  151. default:
  152. return nil
  153. }
  154. }
  155. }
  156. type x struct{}
  157. out := protoimpl.TypeBuilder{
  158. File: protoimpl.DescBuilder{
  159. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  160. RawDescriptor: file_opencensus_proto_resource_v1_resource_proto_rawDesc,
  161. NumEnums: 0,
  162. NumMessages: 2,
  163. NumExtensions: 0,
  164. NumServices: 0,
  165. },
  166. GoTypes: file_opencensus_proto_resource_v1_resource_proto_goTypes,
  167. DependencyIndexes: file_opencensus_proto_resource_v1_resource_proto_depIdxs,
  168. MessageInfos: file_opencensus_proto_resource_v1_resource_proto_msgTypes,
  169. }.Build()
  170. File_opencensus_proto_resource_v1_resource_proto = out.File
  171. file_opencensus_proto_resource_v1_resource_proto_rawDesc = nil
  172. file_opencensus_proto_resource_v1_resource_proto_goTypes = nil
  173. file_opencensus_proto_resource_v1_resource_proto_depIdxs = nil
  174. }