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