Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/servicecontrol/v1/operation.proto
package com.google.api.servicecontrol.v1;
/**
*
* Represents information regarding an operation.
*
*
* Protobuf type {@code google.api.servicecontrol.v1.Operation}
*/
public final class Operation extends
com.google.proto4pingcap.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.Operation)
OperationOrBuilder {
// Use Operation.newBuilder() to construct.
private Operation(com.google.proto4pingcap.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Operation() {
operationId_ = "";
operationName_ = "";
consumerId_ = "";
metricValueSets_ = java.util.Collections.emptyList();
logEntries_ = java.util.Collections.emptyList();
importance_ = 0;
}
@java.lang.Override
public final com.google.proto4pingcap.UnknownFieldSet
getUnknownFields() {
return com.google.proto4pingcap.UnknownFieldSet.getDefaultInstance();
}
private Operation(
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: {
java.lang.String s = input.readStringRequireUtf8();
operationId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
operationName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
consumerId_ = s;
break;
}
case 34: {
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 42: {
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 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
labels_ = com.google.proto4pingcap.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000020;
}
com.google.proto4pingcap.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
metricValueSets_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
metricValueSets_.add(
input.readMessage(com.google.api.servicecontrol.v1.MetricValueSet.parser(), extensionRegistry));
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
logEntries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
logEntries_.add(
input.readMessage(com.google.api.servicecontrol.v1.LogEntry.parser(), extensionRegistry));
break;
}
case 88: {
int rawValue = input.readEnum();
importance_ = rawValue;
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 {
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
metricValueSets_ = java.util.Collections.unmodifiableList(metricValueSets_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
logEntries_ = java.util.Collections.unmodifiableList(logEntries_);
}
makeExtensionsImmutable();
}
}
public static final com.google.proto4pingcap.Descriptors.Descriptor
getDescriptor() {
return com.google.api.servicecontrol.v1.OperationProto.internal_static_google_api_servicecontrol_v1_Operation_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.proto4pingcap.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.proto4pingcap.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.servicecontrol.v1.OperationProto.internal_static_google_api_servicecontrol_v1_Operation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.api.servicecontrol.v1.Operation.class, com.google.api.servicecontrol.v1.Operation.Builder.class);
}
/**
*
* Defines the importance of the data contained in the operation.
*
* The API implementation may cache and aggregate the data.
* The data may be lost when rare and unexpected system failures occur.
*
*
* LOW = 0;
*/
LOW(0),
/**
*
* The API implementation doesn't cache and aggregate the data.
* If the method returns successfully, it's guaranteed that the data has
* been persisted in durable storage.
*
* The API implementation may cache and aggregate the data.
* The data may be lost when rare and unexpected system failures occur.
*
*
* LOW = 0;
*/
public static final int LOW_VALUE = 0;
/**
*
* The API implementation doesn't cache and aggregate the data.
* If the method returns successfully, it's guaranteed that the data has
* been persisted in durable storage.
*
*
* HIGH = 1;
*/
public static final int HIGH_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Importance valueOf(int value) {
return forNumber(value);
}
public static Importance forNumber(int value) {
switch (value) {
case 0: return LOW;
case 1: return HIGH;
default: return null;
}
}
public static com.google.proto4pingcap.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.proto4pingcap.Internal.EnumLiteMap<
Importance> internalValueMap =
new com.google.proto4pingcap.Internal.EnumLiteMap() {
public Importance findValueByNumber(int number) {
return Importance.forNumber(number);
}
};
public final com.google.proto4pingcap.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.proto4pingcap.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.proto4pingcap.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.api.servicecontrol.v1.Operation.getDescriptor().getEnumTypes().get(0);
}
private static final Importance[] VALUES = values();
public static Importance valueOf(
com.google.proto4pingcap.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Importance(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.api.servicecontrol.v1.Operation.Importance)
}
private int bitField0_;
public static final int OPERATION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object operationId_;
/**
*
* Identity of the operation. This must be unique within the scope of the
* service that generated the operation. If the service calls
* Check() and Report() on the same operation, the two calls should carry
* the same id.
* UUID version 4 is recommended, though not required.
* In scenarios where an operation is computed from existing information
* and an idempotent id is desirable for deduplication purpose, UUID version 5
* is recommended. See RFC 4122 for details.
*
* Identity of the operation. This must be unique within the scope of the
* service that generated the operation. If the service calls
* Check() and Report() on the same operation, the two calls should carry
* the same id.
* UUID version 4 is recommended, though not required.
* In scenarios where an operation is computed from existing information
* and an idempotent id is desirable for deduplication purpose, UUID version 5
* is recommended. See RFC 4122 for details.
*
*
* string operation_id = 1;
*/
public com.google.proto4pingcap.ByteString
getOperationIdBytes() {
java.lang.Object ref = operationId_;
if (ref instanceof java.lang.String) {
com.google.proto4pingcap.ByteString b =
com.google.proto4pingcap.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationId_ = b;
return b;
} else {
return (com.google.proto4pingcap.ByteString) ref;
}
}
public static final int OPERATION_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object operationName_;
/**
*
* Fully qualified name of the operation. Reserved for future use.
*
* Fully qualified name of the operation. Reserved for future use.
*
*
* string operation_name = 2;
*/
public com.google.proto4pingcap.ByteString
getOperationNameBytes() {
java.lang.Object ref = operationName_;
if (ref instanceof java.lang.String) {
com.google.proto4pingcap.ByteString b =
com.google.proto4pingcap.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationName_ = b;
return b;
} else {
return (com.google.proto4pingcap.ByteString) ref;
}
}
public static final int CONSUMER_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object consumerId_;
/**
*
* Identity of the consumer who is using the service.
* This field should be filled in for the operations initiated by a
* consumer, but not for service-initiated operations that are
* not related to a specific consumer.
* This can be in one of the following formats:
* project:<project_id>,
* project_number:<project_number>,
* api_key:<api_key>.
*
* Identity of the consumer who is using the service.
* This field should be filled in for the operations initiated by a
* consumer, but not for service-initiated operations that are
* not related to a specific consumer.
* This can be in one of the following formats:
* project:<project_id>,
* project_number:<project_number>,
* api_key:<api_key>.
*
*
* string consumer_id = 3;
*/
public com.google.proto4pingcap.ByteString
getConsumerIdBytes() {
java.lang.Object ref = consumerId_;
if (ref instanceof java.lang.String) {
com.google.proto4pingcap.ByteString b =
com.google.proto4pingcap.ByteString.copyFromUtf8(
(java.lang.String) ref);
consumerId_ = b;
return b;
} else {
return (com.google.proto4pingcap.ByteString) ref;
}
}
public static final int START_TIME_FIELD_NUMBER = 4;
private com.google.proto4pingcap.Timestamp startTime_;
/**
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public com.google.proto4pingcap.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
public static final int END_TIME_FIELD_NUMBER = 5;
private com.google.proto4pingcap.Timestamp endTime_;
/**
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
*
* .google.protobuf.Timestamp end_time = 5;
*/
public com.google.proto4pingcap.TimestampOrBuilder getEndTimeOrBuilder() {
return getEndTime();
}
public static final int LABELS_FIELD_NUMBER = 6;
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.OperationProto.internal_static_google_api_servicecontrol_v1_Operation_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();
}
/**
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
*
* map<string, string> labels = 6;
*/
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();
}
/**
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
*
* map<string, string> labels = 6;
*/
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 METRIC_VALUE_SETS_FIELD_NUMBER = 7;
private java.util.List metricValueSets_;
/**
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
*
* repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7;
*/
public int getMetricValueSetsCount() {
return metricValueSets_.size();
}
/**
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
*
* repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7;
*/
public com.google.api.servicecontrol.v1.MetricValueSetOrBuilder getMetricValueSetsOrBuilder(
int index) {
return metricValueSets_.get(index);
}
public static final int LOG_ENTRIES_FIELD_NUMBER = 8;
private java.util.List logEntries_;
/**
*
*
* repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8;
*/
public com.google.api.servicecontrol.v1.LogEntryOrBuilder getLogEntriesOrBuilder(
int index) {
return logEntries_.get(index);
}
public static final int IMPORTANCE_FIELD_NUMBER = 11;
private int importance_;
/**
*
* DO NOT USE. This is an experimental field.
*
*
* .google.api.servicecontrol.v1.Operation.Importance importance = 11;
*/
public int getImportanceValue() {
return importance_;
}
/**
*
* DO NOT USE. This is an experimental field.
*
*
* .google.api.servicecontrol.v1.Operation.Importance importance = 11;
*/
public com.google.api.servicecontrol.v1.Operation.Importance getImportance() {
com.google.api.servicecontrol.v1.Operation.Importance result = com.google.api.servicecontrol.v1.Operation.Importance.valueOf(importance_);
return result == null ? com.google.api.servicecontrol.v1.Operation.Importance.UNRECOGNIZED : result;
}
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 {
if (!getOperationIdBytes().isEmpty()) {
com.google.proto4pingcap.GeneratedMessageV3.writeString(output, 1, operationId_);
}
if (!getOperationNameBytes().isEmpty()) {
com.google.proto4pingcap.GeneratedMessageV3.writeString(output, 2, operationName_);
}
if (!getConsumerIdBytes().isEmpty()) {
com.google.proto4pingcap.GeneratedMessageV3.writeString(output, 3, consumerId_);
}
if (startTime_ != null) {
output.writeMessage(4, getStartTime());
}
if (endTime_ != null) {
output.writeMessage(5, getEndTime());
}
com.google.proto4pingcap.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
6);
for (int i = 0; i < metricValueSets_.size(); i++) {
output.writeMessage(7, metricValueSets_.get(i));
}
for (int i = 0; i < logEntries_.size(); i++) {
output.writeMessage(8, logEntries_.get(i));
}
if (importance_ != com.google.api.servicecontrol.v1.Operation.Importance.LOW.getNumber()) {
output.writeEnum(11, importance_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getOperationIdBytes().isEmpty()) {
size += com.google.proto4pingcap.GeneratedMessageV3.computeStringSize(1, operationId_);
}
if (!getOperationNameBytes().isEmpty()) {
size += com.google.proto4pingcap.GeneratedMessageV3.computeStringSize(2, operationName_);
}
if (!getConsumerIdBytes().isEmpty()) {
size += com.google.proto4pingcap.GeneratedMessageV3.computeStringSize(3, consumerId_);
}
if (startTime_ != null) {
size += com.google.proto4pingcap.CodedOutputStream
.computeMessageSize(4, getStartTime());
}
if (endTime_ != null) {
size += com.google.proto4pingcap.CodedOutputStream
.computeMessageSize(5, getEndTime());
}
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(6, labels__);
}
for (int i = 0; i < metricValueSets_.size(); i++) {
size += com.google.proto4pingcap.CodedOutputStream
.computeMessageSize(7, metricValueSets_.get(i));
}
for (int i = 0; i < logEntries_.size(); i++) {
size += com.google.proto4pingcap.CodedOutputStream
.computeMessageSize(8, logEntries_.get(i));
}
if (importance_ != com.google.api.servicecontrol.v1.Operation.Importance.LOW.getNumber()) {
size += com.google.proto4pingcap.CodedOutputStream
.computeEnumSize(11, importance_);
}
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.Operation)) {
return super.equals(obj);
}
com.google.api.servicecontrol.v1.Operation other = (com.google.api.servicecontrol.v1.Operation) obj;
boolean result = true;
result = result && getOperationId()
.equals(other.getOperationId());
result = result && getOperationName()
.equals(other.getOperationName());
result = result && getConsumerId()
.equals(other.getConsumerId());
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 && internalGetLabels().equals(
other.internalGetLabels());
result = result && getMetricValueSetsList()
.equals(other.getMetricValueSetsList());
result = result && getLogEntriesList()
.equals(other.getLogEntriesList());
result = result && importance_ == other.importance_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getOperationId().hashCode();
hash = (37 * hash) + OPERATION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getOperationName().hashCode();
hash = (37 * hash) + CONSUMER_ID_FIELD_NUMBER;
hash = (53 * hash) + getConsumerId().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();
}
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
if (getMetricValueSetsCount() > 0) {
hash = (37 * hash) + METRIC_VALUE_SETS_FIELD_NUMBER;
hash = (53 * hash) + getMetricValueSetsList().hashCode();
}
if (getLogEntriesCount() > 0) {
hash = (37 * hash) + LOG_ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getLogEntriesList().hashCode();
}
hash = (37 * hash) + IMPORTANCE_FIELD_NUMBER;
hash = (53 * hash) + importance_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.api.servicecontrol.v1.Operation parseFrom(
com.google.proto4pingcap.ByteString data)
throws com.google.proto4pingcap.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.servicecontrol.v1.Operation 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.Operation parseFrom(byte[] data)
throws com.google.proto4pingcap.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.servicecontrol.v1.Operation 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.Operation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.proto4pingcap.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.api.servicecontrol.v1.Operation 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.Operation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.proto4pingcap.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.servicecontrol.v1.Operation 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.Operation 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.Operation 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.Operation 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 information regarding an operation.
*
* Identity of the operation. This must be unique within the scope of the
* service that generated the operation. If the service calls
* Check() and Report() on the same operation, the two calls should carry
* the same id.
* UUID version 4 is recommended, though not required.
* In scenarios where an operation is computed from existing information
* and an idempotent id is desirable for deduplication purpose, UUID version 5
* is recommended. See RFC 4122 for details.
*
* Identity of the operation. This must be unique within the scope of the
* service that generated the operation. If the service calls
* Check() and Report() on the same operation, the two calls should carry
* the same id.
* UUID version 4 is recommended, though not required.
* In scenarios where an operation is computed from existing information
* and an idempotent id is desirable for deduplication purpose, UUID version 5
* is recommended. See RFC 4122 for details.
*
* Identity of the operation. This must be unique within the scope of the
* service that generated the operation. If the service calls
* Check() and Report() on the same operation, the two calls should carry
* the same id.
* UUID version 4 is recommended, though not required.
* In scenarios where an operation is computed from existing information
* and an idempotent id is desirable for deduplication purpose, UUID version 5
* is recommended. See RFC 4122 for details.
*
* Identity of the operation. This must be unique within the scope of the
* service that generated the operation. If the service calls
* Check() and Report() on the same operation, the two calls should carry
* the same id.
* UUID version 4 is recommended, though not required.
* In scenarios where an operation is computed from existing information
* and an idempotent id is desirable for deduplication purpose, UUID version 5
* is recommended. See RFC 4122 for details.
*
* Identity of the operation. This must be unique within the scope of the
* service that generated the operation. If the service calls
* Check() and Report() on the same operation, the two calls should carry
* the same id.
* UUID version 4 is recommended, though not required.
* In scenarios where an operation is computed from existing information
* and an idempotent id is desirable for deduplication purpose, UUID version 5
* is recommended. See RFC 4122 for details.
*
* Identity of the consumer who is using the service.
* This field should be filled in for the operations initiated by a
* consumer, but not for service-initiated operations that are
* not related to a specific consumer.
* This can be in one of the following formats:
* project:<project_id>,
* project_number:<project_number>,
* api_key:<api_key>.
*
* Identity of the consumer who is using the service.
* This field should be filled in for the operations initiated by a
* consumer, but not for service-initiated operations that are
* not related to a specific consumer.
* This can be in one of the following formats:
* project:<project_id>,
* project_number:<project_number>,
* api_key:<api_key>.
*
* Identity of the consumer who is using the service.
* This field should be filled in for the operations initiated by a
* consumer, but not for service-initiated operations that are
* not related to a specific consumer.
* This can be in one of the following formats:
* project:<project_id>,
* project_number:<project_number>,
* api_key:<api_key>.
*
* Identity of the consumer who is using the service.
* This field should be filled in for the operations initiated by a
* consumer, but not for service-initiated operations that are
* not related to a specific consumer.
* This can be in one of the following formats:
* project:<project_id>,
* project_number:<project_number>,
* api_key:<api_key>.
*
* Identity of the consumer who is using the service.
* This field should be filled in for the operations initiated by a
* consumer, but not for service-initiated operations that are
* not related to a specific consumer.
* This can be in one of the following formats:
* project:<project_id>,
* project_number:<project_number>,
* api_key:<api_key>.
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
*
* .google.protobuf.Timestamp end_time = 5;
*/
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;
}
/**
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
* End time of the operation.
* Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
* but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
*
* map<string, string> labels = 6;
*/
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();
}
/**
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
*
* map<string, string> labels = 6;
*/
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;
}
/**
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
*
* map<string, string> labels = 6;
*/
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();
}
/**
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
*
* map<string, string> labels = 6;
*/
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;
}
/**
*
* Labels describing the operation. Only the following labels are allowed:
* - Labels describing monitored resources as defined in
* the service configuration.
* - Default labels of metric values. When specified, labels defined in the
* metric value override these default.
* - The following labels defined by Google Cloud Platform:
* - `cloud.googleapis.com/location` describing the location where the
* operation happened,
* - `servicecontrol.googleapis.com/user_agent` describing the user agent
* of the API request,
* - `servicecontrol.googleapis.com/service_agent` describing the service
* used to handle the API request (e.g. ESP),
* - `servicecontrol.googleapis.com/platform` describing the platform
* where the API is served (e.g. GAE, GCE, GKE).
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
*
* repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7;
*/
public int getMetricValueSetsCount() {
if (metricValueSetsBuilder_ == null) {
return metricValueSets_.size();
} else {
return metricValueSetsBuilder_.getCount();
}
}
/**
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
*
* repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7;
*/
public Builder setMetricValueSets(
int index, com.google.api.servicecontrol.v1.MetricValueSet value) {
if (metricValueSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetricValueSetsIsMutable();
metricValueSets_.set(index, value);
onChanged();
} else {
metricValueSetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
*
* repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7;
*/
public Builder addMetricValueSets(com.google.api.servicecontrol.v1.MetricValueSet value) {
if (metricValueSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetricValueSetsIsMutable();
metricValueSets_.add(value);
onChanged();
} else {
metricValueSetsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
*
* repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7;
*/
public Builder addMetricValueSets(
int index, com.google.api.servicecontrol.v1.MetricValueSet value) {
if (metricValueSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetricValueSetsIsMutable();
metricValueSets_.add(index, value);
onChanged();
} else {
metricValueSetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
*
* repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7;
*/
public com.google.api.servicecontrol.v1.MetricValueSet.Builder getMetricValueSetsBuilder(
int index) {
return getMetricValueSetsFieldBuilder().getBuilder(index);
}
/**
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
*
* repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7;
*/
public com.google.api.servicecontrol.v1.MetricValueSetOrBuilder getMetricValueSetsOrBuilder(
int index) {
if (metricValueSetsBuilder_ == null) {
return metricValueSets_.get(index); } else {
return metricValueSetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*
* Represents information about this operation. Each MetricValueSet
* corresponds to a metric defined in the service configuration.
* The data type used in the MetricValueSet must agree with
* the data type specified in the metric definition.
* Within a single operation, it is not allowed to have more than one
* MetricValue instances that have the same metric names and identical
* label value combinations. If a request has such duplicated MetricValue
* instances, the entire request is rejected with
* an invalid argument error.
*