1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/api/metric.proto 18 19 package com.google.api; 20 21 public final class MetricProto { MetricProto()22 private MetricProto() {} 23 registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)24 public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} 25 registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)26 public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { 27 registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); 28 } 29 30 static final com.google.protobuf.Descriptors.Descriptor 31 internal_static_google_api_MetricDescriptor_descriptor; 32 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 33 internal_static_google_api_MetricDescriptor_fieldAccessorTable; 34 static final com.google.protobuf.Descriptors.Descriptor 35 internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor; 36 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 37 internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_fieldAccessorTable; 38 static final com.google.protobuf.Descriptors.Descriptor 39 internal_static_google_api_Metric_descriptor; 40 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 41 internal_static_google_api_Metric_fieldAccessorTable; 42 static final com.google.protobuf.Descriptors.Descriptor 43 internal_static_google_api_Metric_LabelsEntry_descriptor; 44 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 45 internal_static_google_api_Metric_LabelsEntry_fieldAccessorTable; 46 getDescriptor()47 public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 48 return descriptor; 49 } 50 51 private static com.google.protobuf.Descriptors.FileDescriptor descriptor; 52 53 static { 54 java.lang.String[] descriptorData = { 55 "\n\027google/api/metric.proto\022\ngoogle.api\032\026g" 56 + "oogle/api/label.proto\032\035google/api/launch" 57 + "_stage.proto\032\036google/protobuf/duration.p" 58 + "roto\"\237\006\n\020MetricDescriptor\022\014\n\004name\030\001 \001(\t\022" 59 + "\014\n\004type\030\010 \001(\t\022+\n\006labels\030\002 \003(\0132\033.google.a" 60 + "pi.LabelDescriptor\022<\n\013metric_kind\030\003 \001(\0162" 61 + "\'.google.api.MetricDescriptor.MetricKind" 62 + "\022:\n\nvalue_type\030\004 \001(\0162&.google.api.Metric" 63 + "Descriptor.ValueType\022\014\n\004unit\030\005 \001(\t\022\023\n\013de" 64 + "scription\030\006 \001(\t\022\024\n\014display_name\030\007 \001(\t\022G\n" 65 + "\010metadata\030\n \001(\01325.google.api.MetricDescr" 66 + "iptor.MetricDescriptorMetadata\022-\n\014launch" 67 + "_stage\030\014 \001(\0162\027.google.api.LaunchStage\022 \n" 68 + "\030monitored_resource_types\030\r \003(\t\032\260\001\n\030Metr" 69 + "icDescriptorMetadata\0221\n\014launch_stage\030\001 \001" 70 + "(\0162\027.google.api.LaunchStageB\002\030\001\0220\n\rsampl" 71 + "e_period\030\002 \001(\0132\031.google.protobuf.Duratio" 72 + "n\022/\n\014ingest_delay\030\003 \001(\0132\031.google.protobu" 73 + "f.Duration\"O\n\nMetricKind\022\033\n\027METRIC_KIND_" 74 + "UNSPECIFIED\020\000\022\t\n\005GAUGE\020\001\022\t\n\005DELTA\020\002\022\016\n\nC" 75 + "UMULATIVE\020\003\"q\n\tValueType\022\032\n\026VALUE_TYPE_U" 76 + "NSPECIFIED\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT64\020\002\022\n\n\006DOU" 77 + "BLE\020\003\022\n\n\006STRING\020\004\022\020\n\014DISTRIBUTION\020\005\022\t\n\005M" 78 + "ONEY\020\006\"u\n\006Metric\022\014\n\004type\030\003 \001(\t\022.\n\006labels" 79 + "\030\002 \003(\0132\036.google.api.Metric.LabelsEntry\032-" 80 + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" 81 + "\t:\0028\001B_\n\016com.google.apiB\013MetricProtoP\001Z7" 82 + "google.golang.org/genproto/googleapis/ap" 83 + "i/metric;metric\242\002\004GAPIb\006proto3" 84 }; 85 descriptor = 86 com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( 87 descriptorData, 88 new com.google.protobuf.Descriptors.FileDescriptor[] { 89 com.google.api.LabelProto.getDescriptor(), 90 com.google.api.LaunchStageProto.getDescriptor(), 91 com.google.protobuf.DurationProto.getDescriptor(), 92 }); 93 internal_static_google_api_MetricDescriptor_descriptor = 94 getDescriptor().getMessageTypes().get(0); 95 internal_static_google_api_MetricDescriptor_fieldAccessorTable = 96 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 97 internal_static_google_api_MetricDescriptor_descriptor, 98 new java.lang.String[] { 99 "Name", 100 "Type", 101 "Labels", 102 "MetricKind", 103 "ValueType", 104 "Unit", 105 "Description", 106 "DisplayName", 107 "Metadata", 108 "LaunchStage", 109 "MonitoredResourceTypes", 110 }); 111 internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor = 112 internal_static_google_api_MetricDescriptor_descriptor.getNestedTypes().get(0); 113 internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_fieldAccessorTable = 114 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 115 internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor, 116 new java.lang.String[] { 117 "LaunchStage", "SamplePeriod", "IngestDelay", 118 }); 119 internal_static_google_api_Metric_descriptor = getDescriptor().getMessageTypes().get(1); 120 internal_static_google_api_Metric_fieldAccessorTable = 121 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 122 internal_static_google_api_Metric_descriptor, 123 new java.lang.String[] { 124 "Type", "Labels", 125 }); 126 internal_static_google_api_Metric_LabelsEntry_descriptor = 127 internal_static_google_api_Metric_descriptor.getNestedTypes().get(0); 128 internal_static_google_api_Metric_LabelsEntry_fieldAccessorTable = 129 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 130 internal_static_google_api_Metric_LabelsEntry_descriptor, 131 new java.lang.String[] { 132 "Key", "Value", 133 }); com.google.api.LabelProto.getDescriptor()134 com.google.api.LabelProto.getDescriptor(); com.google.api.LaunchStageProto.getDescriptor()135 com.google.api.LaunchStageProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor()136 com.google.protobuf.DurationProto.getDescriptor(); 137 } 138 139 // @@protoc_insertion_point(outer_class_scope) 140 } 141