All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.servicecontrol.v1.MetricValueSet Maven / Gradle / Ivy

There is a newer version: 1.0.14
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/api/servicecontrol/v1/metric_value.proto

package com.google.api.servicecontrol.v1;

/**
 * 
 * Represents a set of metric values in the same metric.
 * Each metric value in the set should have a unique combination of start time,
 * end time, and label values.
 * 
* * Protobuf type {@code google.api.servicecontrol.v1.MetricValueSet} */ public final class MetricValueSet extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.MetricValueSet) MetricValueSetOrBuilder { // Use MetricValueSet.newBuilder() to construct. private MetricValueSet(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MetricValueSet() { metricName_ = ""; metricValues_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MetricValueSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); metricName_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { metricValues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } metricValues_.add( input.readMessage(com.google.api.servicecontrol.v1.MetricValue.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { metricValues_ = java.util.Collections.unmodifiableList(metricValues_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValueSet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValueSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.MetricValueSet.class, com.google.api.servicecontrol.v1.MetricValueSet.Builder.class); } private int bitField0_; public static final int METRIC_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object metricName_; /** *
   * The metric name defined in the service configuration.
   * 
* * optional string metric_name = 1; */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; } } /** *
   * The metric name defined in the service configuration.
   * 
* * optional string metric_name = 1; */ public com.google.protobuf.ByteString getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); metricName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int METRIC_VALUES_FIELD_NUMBER = 2; private java.util.List metricValues_; /** *
   * The values in this metric.
   * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public java.util.List getMetricValuesList() { return metricValues_; } /** *
   * The values in this metric.
   * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public java.util.List getMetricValuesOrBuilderList() { return metricValues_; } /** *
   * The values in this metric.
   * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public int getMetricValuesCount() { return metricValues_.size(); } /** *
   * The values in this metric.
   * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public com.google.api.servicecontrol.v1.MetricValue getMetricValues(int index) { return metricValues_.get(index); } /** *
   * The values in this metric.
   * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public com.google.api.servicecontrol.v1.MetricValueOrBuilder getMetricValuesOrBuilder( int index) { return metricValues_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMetricNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 1, metricName_); } for (int i = 0; i < metricValues_.size(); i++) { output.writeMessage(2, metricValues_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMetricNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, metricName_); } for (int i = 0; i < metricValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, metricValues_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.servicecontrol.v1.MetricValueSet)) { return super.equals(obj); } com.google.api.servicecontrol.v1.MetricValueSet other = (com.google.api.servicecontrol.v1.MetricValueSet) obj; boolean result = true; result = result && getMetricName() .equals(other.getMetricName()); result = result && getMetricValuesList() .equals(other.getMetricValuesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; hash = (53 * hash) + getMetricName().hashCode(); if (getMetricValuesCount() > 0) { hash = (37 * hash) + METRIC_VALUES_FIELD_NUMBER; hash = (53 * hash) + getMetricValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.servicecontrol.v1.MetricValueSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.MetricValueSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.MetricValueSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.MetricValueSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.MetricValueSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.MetricValueSet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.MetricValueSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.MetricValueSet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.MetricValueSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.MetricValueSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.servicecontrol.v1.MetricValueSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Represents a set of metric values in the same metric.
   * Each metric value in the set should have a unique combination of start time,
   * end time, and label values.
   * 
* * Protobuf type {@code google.api.servicecontrol.v1.MetricValueSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.MetricValueSet) com.google.api.servicecontrol.v1.MetricValueSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValueSet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValueSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.MetricValueSet.class, com.google.api.servicecontrol.v1.MetricValueSet.Builder.class); } // Construct using com.google.api.servicecontrol.v1.MetricValueSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMetricValuesFieldBuilder(); } } public Builder clear() { super.clear(); metricName_ = ""; if (metricValuesBuilder_ == null) { metricValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { metricValuesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValueSet_descriptor; } public com.google.api.servicecontrol.v1.MetricValueSet getDefaultInstanceForType() { return com.google.api.servicecontrol.v1.MetricValueSet.getDefaultInstance(); } public com.google.api.servicecontrol.v1.MetricValueSet build() { com.google.api.servicecontrol.v1.MetricValueSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.api.servicecontrol.v1.MetricValueSet buildPartial() { com.google.api.servicecontrol.v1.MetricValueSet result = new com.google.api.servicecontrol.v1.MetricValueSet(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.metricName_ = metricName_; if (metricValuesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { metricValues_ = java.util.Collections.unmodifiableList(metricValues_); bitField0_ = (bitField0_ & ~0x00000002); } result.metricValues_ = metricValues_; } else { result.metricValues_ = metricValuesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.servicecontrol.v1.MetricValueSet) { return mergeFrom((com.google.api.servicecontrol.v1.MetricValueSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.servicecontrol.v1.MetricValueSet other) { if (other == com.google.api.servicecontrol.v1.MetricValueSet.getDefaultInstance()) return this; if (!other.getMetricName().isEmpty()) { metricName_ = other.metricName_; onChanged(); } if (metricValuesBuilder_ == null) { if (!other.metricValues_.isEmpty()) { if (metricValues_.isEmpty()) { metricValues_ = other.metricValues_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMetricValuesIsMutable(); metricValues_.addAll(other.metricValues_); } onChanged(); } } else { if (!other.metricValues_.isEmpty()) { if (metricValuesBuilder_.isEmpty()) { metricValuesBuilder_.dispose(); metricValuesBuilder_ = null; metricValues_ = other.metricValues_; bitField0_ = (bitField0_ & ~0x00000002); metricValuesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMetricValuesFieldBuilder() : null; } else { metricValuesBuilder_.addAllMessages(other.metricValues_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.servicecontrol.v1.MetricValueSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.servicecontrol.v1.MetricValueSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object metricName_ = ""; /** *
     * The metric name defined in the service configuration.
     * 
* * optional string metric_name = 1; */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The metric name defined in the service configuration.
     * 
* * optional string metric_name = 1; */ public com.google.protobuf.ByteString getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); metricName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The metric name defined in the service configuration.
     * 
* * optional string metric_name = 1; */ public Builder setMetricName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } metricName_ = value; onChanged(); return this; } /** *
     * The metric name defined in the service configuration.
     * 
* * optional string metric_name = 1; */ public Builder clearMetricName() { metricName_ = getDefaultInstance().getMetricName(); onChanged(); return this; } /** *
     * The metric name defined in the service configuration.
     * 
* * optional string metric_name = 1; */ public Builder setMetricNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); metricName_ = value; onChanged(); return this; } private java.util.List metricValues_ = java.util.Collections.emptyList(); private void ensureMetricValuesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { metricValues_ = new java.util.ArrayList(metricValues_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.MetricValue, com.google.api.servicecontrol.v1.MetricValue.Builder, com.google.api.servicecontrol.v1.MetricValueOrBuilder> metricValuesBuilder_; /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public java.util.List getMetricValuesList() { if (metricValuesBuilder_ == null) { return java.util.Collections.unmodifiableList(metricValues_); } else { return metricValuesBuilder_.getMessageList(); } } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public int getMetricValuesCount() { if (metricValuesBuilder_ == null) { return metricValues_.size(); } else { return metricValuesBuilder_.getCount(); } } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public com.google.api.servicecontrol.v1.MetricValue getMetricValues(int index) { if (metricValuesBuilder_ == null) { return metricValues_.get(index); } else { return metricValuesBuilder_.getMessage(index); } } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public Builder setMetricValues( int index, com.google.api.servicecontrol.v1.MetricValue value) { if (metricValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricValuesIsMutable(); metricValues_.set(index, value); onChanged(); } else { metricValuesBuilder_.setMessage(index, value); } return this; } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public Builder setMetricValues( int index, com.google.api.servicecontrol.v1.MetricValue.Builder builderForValue) { if (metricValuesBuilder_ == null) { ensureMetricValuesIsMutable(); metricValues_.set(index, builderForValue.build()); onChanged(); } else { metricValuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public Builder addMetricValues(com.google.api.servicecontrol.v1.MetricValue value) { if (metricValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricValuesIsMutable(); metricValues_.add(value); onChanged(); } else { metricValuesBuilder_.addMessage(value); } return this; } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public Builder addMetricValues( int index, com.google.api.servicecontrol.v1.MetricValue value) { if (metricValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricValuesIsMutable(); metricValues_.add(index, value); onChanged(); } else { metricValuesBuilder_.addMessage(index, value); } return this; } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public Builder addMetricValues( com.google.api.servicecontrol.v1.MetricValue.Builder builderForValue) { if (metricValuesBuilder_ == null) { ensureMetricValuesIsMutable(); metricValues_.add(builderForValue.build()); onChanged(); } else { metricValuesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public Builder addMetricValues( int index, com.google.api.servicecontrol.v1.MetricValue.Builder builderForValue) { if (metricValuesBuilder_ == null) { ensureMetricValuesIsMutable(); metricValues_.add(index, builderForValue.build()); onChanged(); } else { metricValuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public Builder addAllMetricValues( java.lang.Iterable values) { if (metricValuesBuilder_ == null) { ensureMetricValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metricValues_); onChanged(); } else { metricValuesBuilder_.addAllMessages(values); } return this; } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public Builder clearMetricValues() { if (metricValuesBuilder_ == null) { metricValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { metricValuesBuilder_.clear(); } return this; } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public Builder removeMetricValues(int index) { if (metricValuesBuilder_ == null) { ensureMetricValuesIsMutable(); metricValues_.remove(index); onChanged(); } else { metricValuesBuilder_.remove(index); } return this; } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public com.google.api.servicecontrol.v1.MetricValue.Builder getMetricValuesBuilder( int index) { return getMetricValuesFieldBuilder().getBuilder(index); } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public com.google.api.servicecontrol.v1.MetricValueOrBuilder getMetricValuesOrBuilder( int index) { if (metricValuesBuilder_ == null) { return metricValues_.get(index); } else { return metricValuesBuilder_.getMessageOrBuilder(index); } } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public java.util.List getMetricValuesOrBuilderList() { if (metricValuesBuilder_ != null) { return metricValuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metricValues_); } } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public com.google.api.servicecontrol.v1.MetricValue.Builder addMetricValuesBuilder() { return getMetricValuesFieldBuilder().addBuilder( com.google.api.servicecontrol.v1.MetricValue.getDefaultInstance()); } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public com.google.api.servicecontrol.v1.MetricValue.Builder addMetricValuesBuilder( int index) { return getMetricValuesFieldBuilder().addBuilder( index, com.google.api.servicecontrol.v1.MetricValue.getDefaultInstance()); } /** *
     * The values in this metric.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; */ public java.util.List getMetricValuesBuilderList() { return getMetricValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.MetricValue, com.google.api.servicecontrol.v1.MetricValue.Builder, com.google.api.servicecontrol.v1.MetricValueOrBuilder> getMetricValuesFieldBuilder() { if (metricValuesBuilder_ == null) { metricValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.MetricValue, com.google.api.servicecontrol.v1.MetricValue.Builder, com.google.api.servicecontrol.v1.MetricValueOrBuilder>( metricValues_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); metricValues_ = null; } return metricValuesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.api.servicecontrol.v1.MetricValueSet) } // @@protoc_insertion_point(class_scope:google.api.servicecontrol.v1.MetricValueSet) private static final com.google.api.servicecontrol.v1.MetricValueSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.servicecontrol.v1.MetricValueSet(); } public static com.google.api.servicecontrol.v1.MetricValueSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MetricValueSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MetricValueSet(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.api.servicecontrol.v1.MetricValueSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy