resource.pb.go 7.9 KB

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