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

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

There is a newer version: 3.2.3
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 single metric value.
 * 
* * Protobuf type {@code google.api.servicecontrol.v1.MetricValue} */ public final class MetricValue extends com.google.proto4pingcap.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.MetricValue) MetricValueOrBuilder { // Use MetricValue.newBuilder() to construct. private MetricValue(com.google.proto4pingcap.GeneratedMessageV3.Builder builder) { super(builder); } private MetricValue() { } @java.lang.Override public final com.google.proto4pingcap.UnknownFieldSet getUnknownFields() { return com.google.proto4pingcap.UnknownFieldSet.getDefaultInstance(); } private MetricValue( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { labels_ = com.google.proto4pingcap.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.proto4pingcap.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 18: { com.google.proto4pingcap.Timestamp.Builder subBuilder = null; if (startTime_ != null) { subBuilder = startTime_.toBuilder(); } startTime_ = input.readMessage(com.google.proto4pingcap.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startTime_); startTime_ = subBuilder.buildPartial(); } break; } case 26: { com.google.proto4pingcap.Timestamp.Builder subBuilder = null; if (endTime_ != null) { subBuilder = endTime_.toBuilder(); } endTime_ = input.readMessage(com.google.proto4pingcap.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(endTime_); endTime_ = subBuilder.buildPartial(); } break; } case 32: { valueCase_ = 4; value_ = input.readBool(); break; } case 40: { valueCase_ = 5; value_ = input.readInt64(); break; } case 49: { valueCase_ = 6; value_ = input.readDouble(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); valueCase_ = 7; value_ = s; break; } case 66: { com.google.api.servicecontrol.v1.Distribution.Builder subBuilder = null; if (valueCase_ == 8) { subBuilder = ((com.google.api.servicecontrol.v1.Distribution) value_).toBuilder(); } value_ = input.readMessage(com.google.api.servicecontrol.v1.Distribution.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.api.servicecontrol.v1.Distribution) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 8; break; } } } } catch (com.google.proto4pingcap.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.proto4pingcap.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.proto4pingcap.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValue_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.proto4pingcap.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.proto4pingcap.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.MetricValue.class, com.google.api.servicecontrol.v1.MetricValue.Builder.class); } private int bitField0_; private int valueCase_ = 0; private java.lang.Object value_; public enum ValueCase implements com.google.proto4pingcap.Internal.EnumLite { BOOL_VALUE(4), INT64_VALUE(5), DOUBLE_VALUE(6), STRING_VALUE(7), DISTRIBUTION_VALUE(8), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 4: return BOOL_VALUE; case 5: return INT64_VALUE; case 6: return DOUBLE_VALUE; case 7: return STRING_VALUE; case 8: return DISTRIBUTION_VALUE; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int LABELS_FIELD_NUMBER = 1; private static final class LabelsDefaultEntryHolder { static final com.google.proto4pingcap.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.proto4pingcap.MapEntry .newDefaultInstance( com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValue_LabelsEntry_descriptor, com.google.proto4pingcap.WireFormat.FieldType.STRING, "", com.google.proto4pingcap.WireFormat.FieldType.STRING, ""); } private com.google.proto4pingcap.MapField< java.lang.String, java.lang.String> labels_; private com.google.proto4pingcap.MapField internalGetLabels() { if (labels_ == null) { return com.google.proto4pingcap.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
   * The labels describing the metric value.
   * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
   * the overriding relationship.
   * 
* * map<string, string> labels = 1; */ public boolean containsLabels( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
   * The labels describing the metric value.
   * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
   * the overriding relationship.
   * 
* * map<string, string> labels = 1; */ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
   * The labels describing the metric value.
   * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
   * the overriding relationship.
   * 
* * map<string, string> labels = 1; */ public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * The labels describing the metric value.
   * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
   * the overriding relationship.
   * 
* * map<string, string> labels = 1; */ public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int START_TIME_FIELD_NUMBER = 2; private com.google.proto4pingcap.Timestamp startTime_; /** *
   * The start of the time period over which this metric value's measurement
   * applies. The time period has different semantics for different metric
   * types (cumulative, delta, and gauge). See the metric definition
   * documentation in the service configuration for details.
   * 
* * .google.protobuf.Timestamp start_time = 2; */ public boolean hasStartTime() { return startTime_ != null; } /** *
   * The start of the time period over which this metric value's measurement
   * applies. The time period has different semantics for different metric
   * types (cumulative, delta, and gauge). See the metric definition
   * documentation in the service configuration for details.
   * 
* * .google.protobuf.Timestamp start_time = 2; */ public com.google.proto4pingcap.Timestamp getStartTime() { return startTime_ == null ? com.google.proto4pingcap.Timestamp.getDefaultInstance() : startTime_; } /** *
   * The start of the time period over which this metric value's measurement
   * applies. The time period has different semantics for different metric
   * types (cumulative, delta, and gauge). See the metric definition
   * documentation in the service configuration for details.
   * 
* * .google.protobuf.Timestamp start_time = 2; */ public com.google.proto4pingcap.TimestampOrBuilder getStartTimeOrBuilder() { return getStartTime(); } public static final int END_TIME_FIELD_NUMBER = 3; private com.google.proto4pingcap.Timestamp endTime_; /** *
   * The end of the time period over which this metric value's measurement
   * applies.
   * 
* * .google.protobuf.Timestamp end_time = 3; */ public boolean hasEndTime() { return endTime_ != null; } /** *
   * The end of the time period over which this metric value's measurement
   * applies.
   * 
* * .google.protobuf.Timestamp end_time = 3; */ public com.google.proto4pingcap.Timestamp getEndTime() { return endTime_ == null ? com.google.proto4pingcap.Timestamp.getDefaultInstance() : endTime_; } /** *
   * The end of the time period over which this metric value's measurement
   * applies.
   * 
* * .google.protobuf.Timestamp end_time = 3; */ public com.google.proto4pingcap.TimestampOrBuilder getEndTimeOrBuilder() { return getEndTime(); } public static final int BOOL_VALUE_FIELD_NUMBER = 4; /** *
   * A boolean value.
   * 
* * bool bool_value = 4; */ public boolean getBoolValue() { if (valueCase_ == 4) { return (java.lang.Boolean) value_; } return false; } public static final int INT64_VALUE_FIELD_NUMBER = 5; /** *
   * A signed 64-bit integer value.
   * 
* * int64 int64_value = 5; */ public long getInt64Value() { if (valueCase_ == 5) { return (java.lang.Long) value_; } return 0L; } public static final int DOUBLE_VALUE_FIELD_NUMBER = 6; /** *
   * A double precision floating point value.
   * 
* * double double_value = 6; */ public double getDoubleValue() { if (valueCase_ == 6) { return (java.lang.Double) value_; } return 0D; } public static final int STRING_VALUE_FIELD_NUMBER = 7; /** *
   * A text string value.
   * 
* * string string_value = 7; */ public java.lang.String getStringValue() { java.lang.Object ref = ""; if (valueCase_ == 7) { ref = value_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 7) { value_ = s; } return s; } } /** *
   * A text string value.
   * 
* * string string_value = 7; */ public com.google.proto4pingcap.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 7) { ref = value_; } if (ref instanceof java.lang.String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 7) { value_ = b; } return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } public static final int DISTRIBUTION_VALUE_FIELD_NUMBER = 8; /** *
   * A distribution value.
   * 
* * .google.api.servicecontrol.v1.Distribution distribution_value = 8; */ public com.google.api.servicecontrol.v1.Distribution getDistributionValue() { if (valueCase_ == 8) { return (com.google.api.servicecontrol.v1.Distribution) value_; } return com.google.api.servicecontrol.v1.Distribution.getDefaultInstance(); } /** *
   * A distribution value.
   * 
* * .google.api.servicecontrol.v1.Distribution distribution_value = 8; */ public com.google.api.servicecontrol.v1.DistributionOrBuilder getDistributionValueOrBuilder() { if (valueCase_ == 8) { return (com.google.api.servicecontrol.v1.Distribution) value_; } return com.google.api.servicecontrol.v1.Distribution.getDefaultInstance(); } 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.proto4pingcap.CodedOutputStream output) throws java.io.IOException { com.google.proto4pingcap.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 1); if (startTime_ != null) { output.writeMessage(2, getStartTime()); } if (endTime_ != null) { output.writeMessage(3, getEndTime()); } if (valueCase_ == 4) { output.writeBool( 4, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 5) { output.writeInt64( 5, (long)((java.lang.Long) value_)); } if (valueCase_ == 6) { output.writeDouble( 6, (double)((java.lang.Double) value_)); } if (valueCase_ == 7) { com.google.proto4pingcap.GeneratedMessageV3.writeString(output, 7, value_); } if (valueCase_ == 8) { output.writeMessage(8, (com.google.api.servicecontrol.v1.Distribution) value_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.proto4pingcap.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(1, labels__); } if (startTime_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(2, getStartTime()); } if (endTime_ != null) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(3, getEndTime()); } if (valueCase_ == 4) { size += com.google.proto4pingcap.CodedOutputStream .computeBoolSize( 4, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 5) { size += com.google.proto4pingcap.CodedOutputStream .computeInt64Size( 5, (long)((java.lang.Long) value_)); } if (valueCase_ == 6) { size += com.google.proto4pingcap.CodedOutputStream .computeDoubleSize( 6, (double)((java.lang.Double) value_)); } if (valueCase_ == 7) { size += com.google.proto4pingcap.GeneratedMessageV3.computeStringSize(7, value_); } if (valueCase_ == 8) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(8, (com.google.api.servicecontrol.v1.Distribution) value_); } 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.MetricValue)) { return super.equals(obj); } com.google.api.servicecontrol.v1.MetricValue other = (com.google.api.servicecontrol.v1.MetricValue) obj; boolean result = true; result = result && internalGetLabels().equals( other.internalGetLabels()); result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime() .equals(other.getStartTime()); } result = result && (hasEndTime() == other.hasEndTime()); if (hasEndTime()) { result = result && getEndTime() .equals(other.getEndTime()); } result = result && getValueCase().equals( other.getValueCase()); if (!result) return false; switch (valueCase_) { case 4: result = result && (getBoolValue() == other.getBoolValue()); break; case 5: result = result && (getInt64Value() == other.getInt64Value()); break; case 6: result = result && ( java.lang.Double.doubleToLongBits(getDoubleValue()) == java.lang.Double.doubleToLongBits( other.getDoubleValue())); break; case 7: result = result && getStringValue() .equals(other.getStringValue()); break; case 8: result = result && getDistributionValue() .equals(other.getDistributionValue()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } switch (valueCase_) { case 4: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.proto4pingcap.Internal.hashBoolean( getBoolValue()); break; case 5: hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.proto4pingcap.Internal.hashLong( getInt64Value()); break; case 6: hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.proto4pingcap.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 7: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); break; case 8: hash = (37 * hash) + DISTRIBUTION_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDistributionValue().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.servicecontrol.v1.MetricValue parseFrom( com.google.proto4pingcap.ByteString data) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.MetricValue parseFrom( com.google.proto4pingcap.ByteString data, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.MetricValue parseFrom(byte[] data) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.MetricValue parseFrom( byte[] data, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.MetricValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.MetricValue parseFrom( java.io.InputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.MetricValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.MetricValue parseDelimitedFrom( java.io.InputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.MetricValue parseFrom( com.google.proto4pingcap.CodedInputStream input) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.MetricValue parseFrom( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .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.MetricValue 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.proto4pingcap.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Represents a single metric value.
   * 
* * Protobuf type {@code google.api.servicecontrol.v1.MetricValue} */ public static final class Builder extends com.google.proto4pingcap.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.MetricValue) com.google.api.servicecontrol.v1.MetricValueOrBuilder { public static final com.google.proto4pingcap.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValue_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.proto4pingcap.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.proto4pingcap.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.proto4pingcap.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.MetricValue.class, com.google.api.servicecontrol.v1.MetricValue.Builder.class); } // Construct using com.google.api.servicecontrol.v1.MetricValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.proto4pingcap.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.proto4pingcap.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); internalGetMutableLabels().clear(); if (startTimeBuilder_ == null) { startTime_ = null; } else { startTime_ = null; startTimeBuilder_ = null; } if (endTimeBuilder_ == null) { endTime_ = null; } else { endTime_ = null; endTimeBuilder_ = null; } valueCase_ = 0; value_ = null; return this; } public com.google.proto4pingcap.Descriptors.Descriptor getDescriptorForType() { return com.google.api.servicecontrol.v1.MetricValueSetProto.internal_static_google_api_servicecontrol_v1_MetricValue_descriptor; } public com.google.api.servicecontrol.v1.MetricValue getDefaultInstanceForType() { return com.google.api.servicecontrol.v1.MetricValue.getDefaultInstance(); } public com.google.api.servicecontrol.v1.MetricValue build() { com.google.api.servicecontrol.v1.MetricValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.api.servicecontrol.v1.MetricValue buildPartial() { com.google.api.servicecontrol.v1.MetricValue result = new com.google.api.servicecontrol.v1.MetricValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { result.startTime_ = startTimeBuilder_.build(); } if (endTimeBuilder_ == null) { result.endTime_ = endTime_; } else { result.endTime_ = endTimeBuilder_.build(); } if (valueCase_ == 4) { result.value_ = value_; } if (valueCase_ == 5) { result.value_ = value_; } if (valueCase_ == 6) { result.value_ = value_; } if (valueCase_ == 7) { result.value_ = value_; } if (valueCase_ == 8) { if (distributionValueBuilder_ == null) { result.value_ = value_; } else { result.value_ = distributionValueBuilder_.build(); } } result.bitField0_ = to_bitField0_; result.valueCase_ = valueCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.proto4pingcap.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.proto4pingcap.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.proto4pingcap.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.proto4pingcap.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.proto4pingcap.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.proto4pingcap.Message other) { if (other instanceof com.google.api.servicecontrol.v1.MetricValue) { return mergeFrom((com.google.api.servicecontrol.v1.MetricValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.servicecontrol.v1.MetricValue other) { if (other == com.google.api.servicecontrol.v1.MetricValue.getDefaultInstance()) return this; internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } switch (other.getValueCase()) { case BOOL_VALUE: { setBoolValue(other.getBoolValue()); break; } case INT64_VALUE: { setInt64Value(other.getInt64Value()); break; } case DOUBLE_VALUE: { setDoubleValue(other.getDoubleValue()); break; } case STRING_VALUE: { valueCase_ = 7; value_ = other.value_; onChanged(); break; } case DISTRIBUTION_VALUE: { mergeDistributionValue(other.getDistributionValue()); break; } case VALUE_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.servicecontrol.v1.MetricValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.proto4pingcap.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.servicecontrol.v1.MetricValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; private com.google.proto4pingcap.MapField< java.lang.String, java.lang.String> labels_; private com.google.proto4pingcap.MapField internalGetLabels() { if (labels_ == null) { return com.google.proto4pingcap.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.proto4pingcap.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.proto4pingcap.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * The labels describing the metric value.
     * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
     * the overriding relationship.
     * 
* * map<string, string> labels = 1; */ public boolean containsLabels( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * The labels describing the metric value.
     * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
     * the overriding relationship.
     * 
* * map<string, string> labels = 1; */ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * The labels describing the metric value.
     * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
     * the overriding relationship.
     * 
* * map<string, string> labels = 1; */ public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * The labels describing the metric value.
     * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
     * the overriding relationship.
     * 
* * map<string, string> labels = 1; */ public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
     * The labels describing the metric value.
     * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
     * the overriding relationship.
     * 
* * map<string, string> labels = 1; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
     * The labels describing the metric value.
     * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
     * the overriding relationship.
     * 
* * map<string, string> labels = 1; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
     * The labels describing the metric value.
     * See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
     * the overriding relationship.
     * 
* * map<string, string> labels = 1; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private com.google.proto4pingcap.Timestamp startTime_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.proto4pingcap.Timestamp, com.google.proto4pingcap.Timestamp.Builder, com.google.proto4pingcap.TimestampOrBuilder> startTimeBuilder_; /** *
     * The start of the time period over which this metric value's measurement
     * applies. The time period has different semantics for different metric
     * types (cumulative, delta, and gauge). See the metric definition
     * documentation in the service configuration for details.
     * 
* * .google.protobuf.Timestamp start_time = 2; */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** *
     * The start of the time period over which this metric value's measurement
     * applies. The time period has different semantics for different metric
     * types (cumulative, delta, and gauge). See the metric definition
     * documentation in the service configuration for details.
     * 
* * .google.protobuf.Timestamp start_time = 2; */ public com.google.proto4pingcap.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.proto4pingcap.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** *
     * The start of the time period over which this metric value's measurement
     * applies. The time period has different semantics for different metric
     * types (cumulative, delta, and gauge). See the metric definition
     * documentation in the service configuration for details.
     * 
* * .google.protobuf.Timestamp start_time = 2; */ public Builder setStartTime(com.google.proto4pingcap.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; onChanged(); } else { startTimeBuilder_.setMessage(value); } return this; } /** *
     * The start of the time period over which this metric value's measurement
     * applies. The time period has different semantics for different metric
     * types (cumulative, delta, and gauge). See the metric definition
     * documentation in the service configuration for details.
     * 
* * .google.protobuf.Timestamp start_time = 2; */ public Builder setStartTime( com.google.proto4pingcap.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The start of the time period over which this metric value's measurement
     * applies. The time period has different semantics for different metric
     * types (cumulative, delta, and gauge). See the metric definition
     * documentation in the service configuration for details.
     * 
* * .google.protobuf.Timestamp start_time = 2; */ public Builder mergeStartTime(com.google.proto4pingcap.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = com.google.proto4pingcap.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } onChanged(); } else { startTimeBuilder_.mergeFrom(value); } return this; } /** *
     * The start of the time period over which this metric value's measurement
     * applies. The time period has different semantics for different metric
     * types (cumulative, delta, and gauge). See the metric definition
     * documentation in the service configuration for details.
     * 
* * .google.protobuf.Timestamp start_time = 2; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { startTime_ = null; onChanged(); } else { startTime_ = null; startTimeBuilder_ = null; } return this; } /** *
     * The start of the time period over which this metric value's measurement
     * applies. The time period has different semantics for different metric
     * types (cumulative, delta, and gauge). See the metric definition
     * documentation in the service configuration for details.
     * 
* * .google.protobuf.Timestamp start_time = 2; */ public com.google.proto4pingcap.Timestamp.Builder getStartTimeBuilder() { onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** *
     * The start of the time period over which this metric value's measurement
     * applies. The time period has different semantics for different metric
     * types (cumulative, delta, and gauge). See the metric definition
     * documentation in the service configuration for details.
     * 
* * .google.protobuf.Timestamp start_time = 2; */ public com.google.proto4pingcap.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.proto4pingcap.Timestamp.getDefaultInstance() : startTime_; } } /** *
     * The start of the time period over which this metric value's measurement
     * applies. The time period has different semantics for different metric
     * types (cumulative, delta, and gauge). See the metric definition
     * documentation in the service configuration for details.
     * 
* * .google.protobuf.Timestamp start_time = 2; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.proto4pingcap.Timestamp, com.google.proto4pingcap.Timestamp.Builder, com.google.proto4pingcap.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.proto4pingcap.Timestamp, com.google.proto4pingcap.Timestamp.Builder, com.google.proto4pingcap.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.proto4pingcap.Timestamp endTime_ = null; private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.proto4pingcap.Timestamp, com.google.proto4pingcap.Timestamp.Builder, com.google.proto4pingcap.TimestampOrBuilder> endTimeBuilder_; /** *
     * The end of the time period over which this metric value's measurement
     * applies.
     * 
* * .google.protobuf.Timestamp end_time = 3; */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** *
     * The end of the time period over which this metric value's measurement
     * applies.
     * 
* * .google.protobuf.Timestamp end_time = 3; */ public com.google.proto4pingcap.Timestamp getEndTime() { if (endTimeBuilder_ == null) { return endTime_ == null ? com.google.proto4pingcap.Timestamp.getDefaultInstance() : endTime_; } else { return endTimeBuilder_.getMessage(); } } /** *
     * The end of the time period over which this metric value's measurement
     * applies.
     * 
* * .google.protobuf.Timestamp end_time = 3; */ public Builder setEndTime(com.google.proto4pingcap.Timestamp value) { if (endTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endTime_ = value; onChanged(); } else { endTimeBuilder_.setMessage(value); } return this; } /** *
     * The end of the time period over which this metric value's measurement
     * applies.
     * 
* * .google.protobuf.Timestamp end_time = 3; */ public Builder setEndTime( com.google.proto4pingcap.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The end of the time period over which this metric value's measurement
     * applies.
     * 
* * .google.protobuf.Timestamp end_time = 3; */ public Builder mergeEndTime(com.google.proto4pingcap.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = com.google.proto4pingcap.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } onChanged(); } else { endTimeBuilder_.mergeFrom(value); } return this; } /** *
     * The end of the time period over which this metric value's measurement
     * applies.
     * 
* * .google.protobuf.Timestamp end_time = 3; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { endTime_ = null; onChanged(); } else { endTime_ = null; endTimeBuilder_ = null; } return this; } /** *
     * The end of the time period over which this metric value's measurement
     * applies.
     * 
* * .google.protobuf.Timestamp end_time = 3; */ public com.google.proto4pingcap.Timestamp.Builder getEndTimeBuilder() { onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** *
     * The end of the time period over which this metric value's measurement
     * applies.
     * 
* * .google.protobuf.Timestamp end_time = 3; */ public com.google.proto4pingcap.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { return endTime_ == null ? com.google.proto4pingcap.Timestamp.getDefaultInstance() : endTime_; } } /** *
     * The end of the time period over which this metric value's measurement
     * applies.
     * 
* * .google.protobuf.Timestamp end_time = 3; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.proto4pingcap.Timestamp, com.google.proto4pingcap.Timestamp.Builder, com.google.proto4pingcap.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { endTimeBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.proto4pingcap.Timestamp, com.google.proto4pingcap.Timestamp.Builder, com.google.proto4pingcap.TimestampOrBuilder>( getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } /** *
     * A boolean value.
     * 
* * bool bool_value = 4; */ public boolean getBoolValue() { if (valueCase_ == 4) { return (java.lang.Boolean) value_; } return false; } /** *
     * A boolean value.
     * 
* * bool bool_value = 4; */ public Builder setBoolValue(boolean value) { valueCase_ = 4; value_ = value; onChanged(); return this; } /** *
     * A boolean value.
     * 
* * bool bool_value = 4; */ public Builder clearBoolValue() { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
     * A signed 64-bit integer value.
     * 
* * int64 int64_value = 5; */ public long getInt64Value() { if (valueCase_ == 5) { return (java.lang.Long) value_; } return 0L; } /** *
     * A signed 64-bit integer value.
     * 
* * int64 int64_value = 5; */ public Builder setInt64Value(long value) { valueCase_ = 5; value_ = value; onChanged(); return this; } /** *
     * A signed 64-bit integer value.
     * 
* * int64 int64_value = 5; */ public Builder clearInt64Value() { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
     * A double precision floating point value.
     * 
* * double double_value = 6; */ public double getDoubleValue() { if (valueCase_ == 6) { return (java.lang.Double) value_; } return 0D; } /** *
     * A double precision floating point value.
     * 
* * double double_value = 6; */ public Builder setDoubleValue(double value) { valueCase_ = 6; value_ = value; onChanged(); return this; } /** *
     * A double precision floating point value.
     * 
* * double double_value = 6; */ public Builder clearDoubleValue() { if (valueCase_ == 6) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
     * A text string value.
     * 
* * string string_value = 7; */ public java.lang.String getStringValue() { java.lang.Object ref = ""; if (valueCase_ == 7) { ref = value_; } if (!(ref instanceof java.lang.String)) { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 7) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * A text string value.
     * 
* * string string_value = 7; */ public com.google.proto4pingcap.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 7) { ref = value_; } if (ref instanceof String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 7) { value_ = b; } return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } /** *
     * A text string value.
     * 
* * string string_value = 7; */ public Builder setStringValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 7; value_ = value; onChanged(); return this; } /** *
     * A text string value.
     * 
* * string string_value = 7; */ public Builder clearStringValue() { if (valueCase_ == 7) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
     * A text string value.
     * 
* * string string_value = 7; */ public Builder setStringValueBytes( com.google.proto4pingcap.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 7; value_ = value; onChanged(); return this; } private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.servicecontrol.v1.Distribution, com.google.api.servicecontrol.v1.Distribution.Builder, com.google.api.servicecontrol.v1.DistributionOrBuilder> distributionValueBuilder_; /** *
     * A distribution value.
     * 
* * .google.api.servicecontrol.v1.Distribution distribution_value = 8; */ public com.google.api.servicecontrol.v1.Distribution getDistributionValue() { if (distributionValueBuilder_ == null) { if (valueCase_ == 8) { return (com.google.api.servicecontrol.v1.Distribution) value_; } return com.google.api.servicecontrol.v1.Distribution.getDefaultInstance(); } else { if (valueCase_ == 8) { return distributionValueBuilder_.getMessage(); } return com.google.api.servicecontrol.v1.Distribution.getDefaultInstance(); } } /** *
     * A distribution value.
     * 
* * .google.api.servicecontrol.v1.Distribution distribution_value = 8; */ public Builder setDistributionValue(com.google.api.servicecontrol.v1.Distribution value) { if (distributionValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { distributionValueBuilder_.setMessage(value); } valueCase_ = 8; return this; } /** *
     * A distribution value.
     * 
* * .google.api.servicecontrol.v1.Distribution distribution_value = 8; */ public Builder setDistributionValue( com.google.api.servicecontrol.v1.Distribution.Builder builderForValue) { if (distributionValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { distributionValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 8; return this; } /** *
     * A distribution value.
     * 
* * .google.api.servicecontrol.v1.Distribution distribution_value = 8; */ public Builder mergeDistributionValue(com.google.api.servicecontrol.v1.Distribution value) { if (distributionValueBuilder_ == null) { if (valueCase_ == 8 && value_ != com.google.api.servicecontrol.v1.Distribution.getDefaultInstance()) { value_ = com.google.api.servicecontrol.v1.Distribution.newBuilder((com.google.api.servicecontrol.v1.Distribution) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 8) { distributionValueBuilder_.mergeFrom(value); } distributionValueBuilder_.setMessage(value); } valueCase_ = 8; return this; } /** *
     * A distribution value.
     * 
* * .google.api.servicecontrol.v1.Distribution distribution_value = 8; */ public Builder clearDistributionValue() { if (distributionValueBuilder_ == null) { if (valueCase_ == 8) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 8) { valueCase_ = 0; value_ = null; } distributionValueBuilder_.clear(); } return this; } /** *
     * A distribution value.
     * 
* * .google.api.servicecontrol.v1.Distribution distribution_value = 8; */ public com.google.api.servicecontrol.v1.Distribution.Builder getDistributionValueBuilder() { return getDistributionValueFieldBuilder().getBuilder(); } /** *
     * A distribution value.
     * 
* * .google.api.servicecontrol.v1.Distribution distribution_value = 8; */ public com.google.api.servicecontrol.v1.DistributionOrBuilder getDistributionValueOrBuilder() { if ((valueCase_ == 8) && (distributionValueBuilder_ != null)) { return distributionValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 8) { return (com.google.api.servicecontrol.v1.Distribution) value_; } return com.google.api.servicecontrol.v1.Distribution.getDefaultInstance(); } } /** *
     * A distribution value.
     * 
* * .google.api.servicecontrol.v1.Distribution distribution_value = 8; */ private com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.servicecontrol.v1.Distribution, com.google.api.servicecontrol.v1.Distribution.Builder, com.google.api.servicecontrol.v1.DistributionOrBuilder> getDistributionValueFieldBuilder() { if (distributionValueBuilder_ == null) { if (!(valueCase_ == 8)) { value_ = com.google.api.servicecontrol.v1.Distribution.getDefaultInstance(); } distributionValueBuilder_ = new com.google.proto4pingcap.SingleFieldBuilderV3< com.google.api.servicecontrol.v1.Distribution, com.google.api.servicecontrol.v1.Distribution.Builder, com.google.api.servicecontrol.v1.DistributionOrBuilder>( (com.google.api.servicecontrol.v1.Distribution) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 8; onChanged();; return distributionValueBuilder_; } public final Builder setUnknownFields( final com.google.proto4pingcap.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.proto4pingcap.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.api.servicecontrol.v1.MetricValue) } // @@protoc_insertion_point(class_scope:google.api.servicecontrol.v1.MetricValue) private static final com.google.api.servicecontrol.v1.MetricValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.servicecontrol.v1.MetricValue(); } public static com.google.api.servicecontrol.v1.MetricValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.proto4pingcap.Parser PARSER = new com.google.proto4pingcap.AbstractParser() { public MetricValue parsePartialFrom( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { return new MetricValue(input, extensionRegistry); } }; public static com.google.proto4pingcap.Parser parser() { return PARSER; } @java.lang.Override public com.google.proto4pingcap.Parser getParserForType() { return PARSER; } public com.google.api.servicecontrol.v1.MetricValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy