// Copyright 2019, OpenTelemetry Authors//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of the License at//// http://www.apache.org/licenses/LICENSE-2.0//// Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an "AS IS" BASIS,// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.// See the License for the specific language governing permissions and// limitations under the License.// Code generated by protoc-gen-go. DO NOT EDIT.// versions:// protoc-gen-go v1.26.0// protoc v3.21.6// source: opentelemetry/proto/resource/v1/resource.protopackage v1import (v1protoreflectprotoimplreflectsync)const (// Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)// Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))// Resource information.typeResourcestruct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields// Set of attributes that describe the resource. // Attribute keys MUST be unique (it is not allowed to have more than one // attribute with the same key). // The behavior of software that receives duplicated keys can be unpredictable. Attributes []*v1.KeyValue`protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`// The number of dropped attributes. If the value is 0, then // no attributes were dropped. DroppedAttributesCount uint32`protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`// Set of entities that participate in this Resource. // // Note: keys in the references MUST exist in attributes of this message. // // Status: [Development] EntityRefs []*v1.EntityRef`protobuf:"bytes,3,rep,name=entity_refs,json=entityRefs,proto3" json:"entity_refs,omitempty"`}func ( *Resource) () { * = Resource{}ifprotoimpl.UnsafeEnabled { := &file_opentelemetry_proto_resource_v1_resource_proto_msgTypes[0] := protoimpl.X.MessageStateOf(protoimpl.Pointer()) .StoreMessageInfo() }}func ( *Resource) () string {returnprotoimpl.X.MessageStringOf()}func (*Resource) () {}func ( *Resource) () protoreflect.Message { := &file_opentelemetry_proto_resource_v1_resource_proto_msgTypes[0]ifprotoimpl.UnsafeEnabled && != nil { := protoimpl.X.MessageStateOf(protoimpl.Pointer())if .LoadMessageInfo() == nil { .StoreMessageInfo() }return }return .MessageOf()}// Deprecated: Use Resource.ProtoReflect.Descriptor instead.func (*Resource) () ([]byte, []int) {returnfile_opentelemetry_proto_resource_v1_resource_proto_rawDescGZIP(), []int{0}}func ( *Resource) () []*v1.KeyValue {if != nil {return .Attributes }returnnil}func ( *Resource) () uint32 {if != nil {return .DroppedAttributesCount }return0}func ( *Resource) () []*v1.EntityRef {if != nil {return .EntityRefs }returnnil}varFile_opentelemetry_proto_resource_v1_resource_protoprotoreflect.FileDescriptorvar file_opentelemetry_proto_resource_v1_resource_proto_rawDesc = []byte{0x0a, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f,0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76,0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,0x12, 0x1f, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e,0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76,0x31, 0x1a, 0x2a, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31,0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x01,0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74,0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27,0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70,0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4b,0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,0x74, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x61,0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x16, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x41, 0x74,0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x49, 0x0a,0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x03, 0x20, 0x03,0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74,0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x66, 0x52, 0x0a, 0x65, 0x6e,0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x66, 0x73, 0x42, 0x83, 0x01, 0x0a, 0x22, 0x69, 0x6f, 0x2e,0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72,0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42,0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,0x5a, 0x2a, 0x67, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74,0x72, 0x79, 0x2e, 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6f, 0x74, 0x6c, 0x70,0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0xaa, 0x02, 0x1f, 0x4f,0x70, 0x65, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f,0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x06,0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var ( file_opentelemetry_proto_resource_v1_resource_proto_rawDescOnce sync.Once file_opentelemetry_proto_resource_v1_resource_proto_rawDescData = file_opentelemetry_proto_resource_v1_resource_proto_rawDesc)func file_opentelemetry_proto_resource_v1_resource_proto_rawDescGZIP() []byte {file_opentelemetry_proto_resource_v1_resource_proto_rawDescOnce.Do(func() {file_opentelemetry_proto_resource_v1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_opentelemetry_proto_resource_v1_resource_proto_rawDescData) })returnfile_opentelemetry_proto_resource_v1_resource_proto_rawDescData}var file_opentelemetry_proto_resource_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1)var file_opentelemetry_proto_resource_v1_resource_proto_goTypes = []interface{}{ (*Resource)(nil), // 0: opentelemetry.proto.resource.v1.Resource (*v1.KeyValue)(nil), // 1: opentelemetry.proto.common.v1.KeyValue (*v1.EntityRef)(nil), // 2: opentelemetry.proto.common.v1.EntityRef}var file_opentelemetry_proto_resource_v1_resource_proto_depIdxs = []int32{1, // 0: opentelemetry.proto.resource.v1.Resource.attributes:type_name -> opentelemetry.proto.common.v1.KeyValue2, // 1: opentelemetry.proto.resource.v1.Resource.entity_refs:type_name -> opentelemetry.proto.common.v1.EntityRef2, // [2:2] is the sub-list for method output_type2, // [2:2] is the sub-list for method input_type2, // [2:2] is the sub-list for extension type_name2, // [2:2] is the sub-list for extension extendee0, // [0:2] is the sub-list for field type_name}func init() { file_opentelemetry_proto_resource_v1_resource_proto_init() }func file_opentelemetry_proto_resource_v1_resource_proto_init() {ifFile_opentelemetry_proto_resource_v1_resource_proto != nil {return }if !protoimpl.UnsafeEnabled {file_opentelemetry_proto_resource_v1_resource_proto_msgTypes[0].Exporter = func( interface{}, int) interface{} {switch := .(*Resource); {case0:return &.statecase1:return &.sizeCachecase2:return &.unknownFieldsdefault:returnnil } } }typestruct{} := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf({}).PkgPath(),RawDescriptor: file_opentelemetry_proto_resource_v1_resource_proto_rawDesc,NumEnums: 0,NumMessages: 1,NumExtensions: 0,NumServices: 0, },GoTypes: file_opentelemetry_proto_resource_v1_resource_proto_goTypes,DependencyIndexes: file_opentelemetry_proto_resource_v1_resource_proto_depIdxs,MessageInfos: file_opentelemetry_proto_resource_v1_resource_proto_msgTypes, }.Build()File_opentelemetry_proto_resource_v1_resource_proto = .Filefile_opentelemetry_proto_resource_v1_resource_proto_rawDesc = nilfile_opentelemetry_proto_resource_v1_resource_proto_goTypes = nilfile_opentelemetry_proto_resource_v1_resource_proto_depIdxs = nil}
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.