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

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

The newest version!
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/api/servicecontrol/v1/operation.proto

// Protobuf Java Version: 3.25.5
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.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.Operation) OperationOrBuilder { private static final long serialVersionUID = 0L; // Use Operation.newBuilder() to construct. private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Operation() { operationId_ = ""; operationName_ = ""; consumerId_ = ""; metricValueSets_ = java.util.Collections.emptyList(); logEntries_ = java.util.Collections.emptyList(); importance_ = 0; extensions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Operation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.OperationProto .internal_static_google_api_servicecontrol_v1_Operation_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.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.
   * 
* * Protobuf enum {@code google.api.servicecontrol.v1.Operation.Importance} */ public enum Importance implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Allows data caching, batching, and aggregation. It provides
     * higher performance with higher data loss risk.
     * 
* * LOW = 0; */ LOW(0), /** * * *
     * Disables data aggregation to minimize data loss. It is for operations
     * that contains significant monetary value or audit trail. This feature
     * only applies to the client libraries.
     * 
* * HIGH = 1; */ HIGH(1), UNRECOGNIZED(-1), ; /** * * *
     * Allows data caching, batching, and aggregation. It provides
     * higher performance with higher data loss risk.
     * 
* * LOW = 0; */ public static final int LOW_VALUE = 0; /** * * *
     * Disables data aggregation to minimize data loss. It is for operations
     * that contains significant monetary value or audit trail. This feature
     * only applies to the client libraries.
     * 
* * 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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Importance valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Importance forNumber(int value) { switch (value) { case 0: return LOW; case 1: return HIGH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Importance findValueByNumber(int number) { return Importance.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.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.protobuf.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; @SuppressWarnings("serial") 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.
   * 
* * string operation_id = 1; * * @return The operationId. */ @java.lang.Override public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } } /** * * *
   * 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; * * @return The bytes for operationId. */ @java.lang.Override public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPERATION_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object operationName_ = ""; /** * * *
   * Fully qualified name of the operation. Reserved for future use.
   * 
* * string operation_name = 2; * * @return The operationName. */ @java.lang.Override public java.lang.String getOperationName() { java.lang.Object ref = operationName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationName_ = s; return s; } } /** * * *
   * Fully qualified name of the operation. Reserved for future use.
   * 
* * string operation_name = 2; * * @return The bytes for operationName. */ @java.lang.Override public com.google.protobuf.ByteString getOperationNameBytes() { java.lang.Object ref = operationName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONSUMER_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") 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,
   *     - projects/PROJECT_ID or PROJECT_NUMBER,
   *     - folders/FOLDER_NUMBER,
   *     - organizations/ORGANIZATION_NUMBER,
   *     - api`_`key:API_KEY.
   * 
* * string consumer_id = 3; * * @return The consumerId. */ @java.lang.Override public java.lang.String getConsumerId() { java.lang.Object ref = consumerId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consumerId_ = s; return s; } } /** * * *
   * 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,
   *     - projects/PROJECT_ID or PROJECT_NUMBER,
   *     - folders/FOLDER_NUMBER,
   *     - organizations/ORGANIZATION_NUMBER,
   *     - api`_`key:API_KEY.
   * 
* * string consumer_id = 3; * * @return The bytes for consumerId. */ @java.lang.Override public com.google.protobuf.ByteString getConsumerIdBytes() { java.lang.Object ref = consumerId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); consumerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** * * *
   * Required. Start time of the operation.
   * 
* * .google.protobuf.Timestamp start_time = 4; * * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Required. Start time of the operation.
   * 
* * .google.protobuf.Timestamp start_time = 4; * * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** * * *
   * Required. Start time of the operation.
   * 
* * .google.protobuf.Timestamp start_time = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.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].
   * 
* * .google.protobuf.Timestamp end_time = 5; * * @return Whether the endTime field is set. */ @java.lang.Override public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * 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; * * @return The endTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : 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].
   * 
* * .google.protobuf.Timestamp end_time = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int LABELS_FIELD_NUMBER = 6; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.api.servicecontrol.v1.OperationProto .internal_static_google_api_servicecontrol_v1_Operation_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.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, such as App Engine, Compute Engine, or
   *        Kubernetes Engine.
   * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @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, such as App Engine, Compute Engine, or
   *        Kubernetes Engine.
   * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * 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, such as App Engine, Compute Engine, or
   *        Kubernetes Engine.
   * 
* * map<string, string> labels = 6; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * 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, such as App Engine, Compute Engine, or
   *        Kubernetes Engine.
   * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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; @SuppressWarnings("serial") 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.
   * 
* * repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7; */ @java.lang.Override public java.util.List getMetricValueSetsList() { return 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.
   * 
* * repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7; */ @java.lang.Override public java.util.List getMetricValueSetsOrBuilderList() { return 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.
   * 
* * repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7; */ @java.lang.Override 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.
   * 
* * repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7; */ @java.lang.Override public com.google.api.servicecontrol.v1.MetricValueSet getMetricValueSets(int index) { return metricValueSets_.get(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; */ @java.lang.Override public com.google.api.servicecontrol.v1.MetricValueSetOrBuilder getMetricValueSetsOrBuilder( int index) { return metricValueSets_.get(index); } public static final int LOG_ENTRIES_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List logEntries_; /** * * *
   * Represents information to be logged.
   * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ @java.lang.Override public java.util.List getLogEntriesList() { return logEntries_; } /** * * *
   * Represents information to be logged.
   * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ @java.lang.Override public java.util.List getLogEntriesOrBuilderList() { return logEntries_; } /** * * *
   * Represents information to be logged.
   * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ @java.lang.Override public int getLogEntriesCount() { return logEntries_.size(); } /** * * *
   * Represents information to be logged.
   * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ @java.lang.Override public com.google.api.servicecontrol.v1.LogEntry getLogEntries(int index) { return logEntries_.get(index); } /** * * *
   * Represents information to be logged.
   * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ @java.lang.Override 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_ = 0; /** * * *
   * DO NOT USE. This is an experimental field.
   * 
* * .google.api.servicecontrol.v1.Operation.Importance importance = 11; * * @return The enum numeric value on the wire for importance. */ @java.lang.Override public int getImportanceValue() { return importance_; } /** * * *
   * DO NOT USE. This is an experimental field.
   * 
* * .google.api.servicecontrol.v1.Operation.Importance importance = 11; * * @return The importance. */ @java.lang.Override public com.google.api.servicecontrol.v1.Operation.Importance getImportance() { com.google.api.servicecontrol.v1.Operation.Importance result = com.google.api.servicecontrol.v1.Operation.Importance.forNumber(importance_); return result == null ? com.google.api.servicecontrol.v1.Operation.Importance.UNRECOGNIZED : result; } public static final int EXTENSIONS_FIELD_NUMBER = 16; @SuppressWarnings("serial") private java.util.List extensions_; /** * * *
   * Unimplemented.
   * 
* * repeated .google.protobuf.Any extensions = 16; */ @java.lang.Override public java.util.List getExtensionsList() { return extensions_; } /** * * *
   * Unimplemented.
   * 
* * repeated .google.protobuf.Any extensions = 16; */ @java.lang.Override public java.util.List getExtensionsOrBuilderList() { return extensions_; } /** * * *
   * Unimplemented.
   * 
* * repeated .google.protobuf.Any extensions = 16; */ @java.lang.Override public int getExtensionsCount() { return extensions_.size(); } /** * * *
   * Unimplemented.
   * 
* * repeated .google.protobuf.Any extensions = 16; */ @java.lang.Override public com.google.protobuf.Any getExtensions(int index) { return extensions_.get(index); } /** * * *
   * Unimplemented.
   * 
* * repeated .google.protobuf.Any extensions = 16; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(int index) { return extensions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operationName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, consumerId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getEndTime()); } com.google.protobuf.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_); } for (int i = 0; i < extensions_.size(); i++) { output.writeMessage(16, extensions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operationName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, consumerId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } for (int i = 0; i < metricValueSets_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, metricValueSets_.get(i)); } for (int i = 0; i < logEntries_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, logEntries_.get(i)); } if (importance_ != com.google.api.servicecontrol.v1.Operation.Importance.LOW.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, importance_); } for (int i = 0; i < extensions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, extensions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getOperationId().equals(other.getOperationId())) return false; if (!getOperationName().equals(other.getOperationName())) return false; if (!getConsumerId().equals(other.getConsumerId())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getMetricValueSetsList().equals(other.getMetricValueSetsList())) return false; if (!getLogEntriesList().equals(other.getLogEntriesList())) return false; if (importance_ != other.importance_) return false; if (!getExtensionsList().equals(other.getExtensionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @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_; if (getExtensionsCount() > 0) { hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + getExtensionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.servicecontrol.v1.Operation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.Operation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.Operation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.Operation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.Operation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.Operation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.Operation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.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.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.Operation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.Operation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.Operation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Represents information regarding an operation.
   * 
* * Protobuf type {@code google.api.servicecontrol.v1.Operation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.Operation) com.google.api.servicecontrol.v1.OperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.OperationProto .internal_static_google_api_servicecontrol_v1_Operation_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 6: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.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); } // Construct using com.google.api.servicecontrol.v1.Operation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); getMetricValueSetsFieldBuilder(); getLogEntriesFieldBuilder(); getExtensionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationId_ = ""; operationName_ = ""; consumerId_ = ""; startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } internalGetMutableLabels().clear(); if (metricValueSetsBuilder_ == null) { metricValueSets_ = java.util.Collections.emptyList(); } else { metricValueSets_ = null; metricValueSetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (logEntriesBuilder_ == null) { logEntries_ = java.util.Collections.emptyList(); } else { logEntries_ = null; logEntriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); importance_ = 0; if (extensionsBuilder_ == null) { extensions_ = java.util.Collections.emptyList(); } else { extensions_ = null; extensionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.servicecontrol.v1.OperationProto .internal_static_google_api_servicecontrol_v1_Operation_descriptor; } @java.lang.Override public com.google.api.servicecontrol.v1.Operation getDefaultInstanceForType() { return com.google.api.servicecontrol.v1.Operation.getDefaultInstance(); } @java.lang.Override public com.google.api.servicecontrol.v1.Operation build() { com.google.api.servicecontrol.v1.Operation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.servicecontrol.v1.Operation buildPartial() { com.google.api.servicecontrol.v1.Operation result = new com.google.api.servicecontrol.v1.Operation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.api.servicecontrol.v1.Operation result) { if (metricValueSetsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { metricValueSets_ = java.util.Collections.unmodifiableList(metricValueSets_); bitField0_ = (bitField0_ & ~0x00000040); } result.metricValueSets_ = metricValueSets_; } else { result.metricValueSets_ = metricValueSetsBuilder_.build(); } if (logEntriesBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { logEntries_ = java.util.Collections.unmodifiableList(logEntries_); bitField0_ = (bitField0_ & ~0x00000080); } result.logEntries_ = logEntries_; } else { result.logEntries_ = logEntriesBuilder_.build(); } if (extensionsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { extensions_ = java.util.Collections.unmodifiableList(extensions_); bitField0_ = (bitField0_ & ~0x00000200); } result.extensions_ = extensions_; } else { result.extensions_ = extensionsBuilder_.build(); } } private void buildPartial0(com.google.api.servicecontrol.v1.Operation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationId_ = operationId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.operationName_ = operationName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.consumerId_ = consumerId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.importance_ = importance_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.servicecontrol.v1.Operation) { return mergeFrom((com.google.api.servicecontrol.v1.Operation) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.servicecontrol.v1.Operation other) { if (other == com.google.api.servicecontrol.v1.Operation.getDefaultInstance()) return this; if (!other.getOperationId().isEmpty()) { operationId_ = other.operationId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getOperationName().isEmpty()) { operationName_ = other.operationName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getConsumerId().isEmpty()) { consumerId_ = other.consumerId_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000020; if (metricValueSetsBuilder_ == null) { if (!other.metricValueSets_.isEmpty()) { if (metricValueSets_.isEmpty()) { metricValueSets_ = other.metricValueSets_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureMetricValueSetsIsMutable(); metricValueSets_.addAll(other.metricValueSets_); } onChanged(); } } else { if (!other.metricValueSets_.isEmpty()) { if (metricValueSetsBuilder_.isEmpty()) { metricValueSetsBuilder_.dispose(); metricValueSetsBuilder_ = null; metricValueSets_ = other.metricValueSets_; bitField0_ = (bitField0_ & ~0x00000040); metricValueSetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricValueSetsFieldBuilder() : null; } else { metricValueSetsBuilder_.addAllMessages(other.metricValueSets_); } } } if (logEntriesBuilder_ == null) { if (!other.logEntries_.isEmpty()) { if (logEntries_.isEmpty()) { logEntries_ = other.logEntries_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureLogEntriesIsMutable(); logEntries_.addAll(other.logEntries_); } onChanged(); } } else { if (!other.logEntries_.isEmpty()) { if (logEntriesBuilder_.isEmpty()) { logEntriesBuilder_.dispose(); logEntriesBuilder_ = null; logEntries_ = other.logEntries_; bitField0_ = (bitField0_ & ~0x00000080); logEntriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogEntriesFieldBuilder() : null; } else { logEntriesBuilder_.addAllMessages(other.logEntries_); } } } if (other.importance_ != 0) { setImportanceValue(other.getImportanceValue()); } if (extensionsBuilder_ == null) { if (!other.extensions_.isEmpty()) { if (extensions_.isEmpty()) { extensions_ = other.extensions_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureExtensionsIsMutable(); extensions_.addAll(other.extensions_); } onChanged(); } } else { if (!other.extensions_.isEmpty()) { if (extensionsBuilder_.isEmpty()) { extensionsBuilder_.dispose(); extensionsBuilder_ = null; extensions_ = other.extensions_; bitField0_ = (bitField0_ & ~0x00000200); extensionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExtensionsFieldBuilder() : null; } else { extensionsBuilder_.addAllMessages(other.extensions_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { operationId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { operationName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { consumerId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 58: { com.google.api.servicecontrol.v1.MetricValueSet m = input.readMessage( com.google.api.servicecontrol.v1.MetricValueSet.parser(), extensionRegistry); if (metricValueSetsBuilder_ == null) { ensureMetricValueSetsIsMutable(); metricValueSets_.add(m); } else { metricValueSetsBuilder_.addMessage(m); } break; } // case 58 case 66: { com.google.api.servicecontrol.v1.LogEntry m = input.readMessage( com.google.api.servicecontrol.v1.LogEntry.parser(), extensionRegistry); if (logEntriesBuilder_ == null) { ensureLogEntriesIsMutable(); logEntries_.add(m); } else { logEntriesBuilder_.addMessage(m); } break; } // case 66 case 88: { importance_ = input.readEnum(); bitField0_ |= 0x00000100; break; } // case 88 case 130: { com.google.protobuf.Any m = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); extensions_.add(m); } else { extensionsBuilder_.addMessage(m); } break; } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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.
     * 
* * string operation_id = 1; * * @return The operationId. */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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; * * @return The bytes for operationId. */ public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * 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; * * @param value The operationId to set. * @return This builder for chaining. */ public Builder setOperationId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } operationId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearOperationId() { operationId_ = getDefaultInstance().getOperationId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * 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; * * @param value The bytes for operationId to set. * @return This builder for chaining. */ public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operationId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object operationName_ = ""; /** * * *
     * Fully qualified name of the operation. Reserved for future use.
     * 
* * string operation_name = 2; * * @return The operationName. */ public java.lang.String getOperationName() { java.lang.Object ref = operationName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Fully qualified name of the operation. Reserved for future use.
     * 
* * string operation_name = 2; * * @return The bytes for operationName. */ public com.google.protobuf.ByteString getOperationNameBytes() { java.lang.Object ref = operationName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Fully qualified name of the operation. Reserved for future use.
     * 
* * string operation_name = 2; * * @param value The operationName to set. * @return This builder for chaining. */ public Builder setOperationName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } operationName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Fully qualified name of the operation. Reserved for future use.
     * 
* * string operation_name = 2; * * @return This builder for chaining. */ public Builder clearOperationName() { operationName_ = getDefaultInstance().getOperationName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Fully qualified name of the operation. Reserved for future use.
     * 
* * string operation_name = 2; * * @param value The bytes for operationName to set. * @return This builder for chaining. */ public Builder setOperationNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operationName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private 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,
     *     - projects/PROJECT_ID or PROJECT_NUMBER,
     *     - folders/FOLDER_NUMBER,
     *     - organizations/ORGANIZATION_NUMBER,
     *     - api`_`key:API_KEY.
     * 
* * string consumer_id = 3; * * @return The consumerId. */ public java.lang.String getConsumerId() { java.lang.Object ref = consumerId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consumerId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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,
     *     - projects/PROJECT_ID or PROJECT_NUMBER,
     *     - folders/FOLDER_NUMBER,
     *     - organizations/ORGANIZATION_NUMBER,
     *     - api`_`key:API_KEY.
     * 
* * string consumer_id = 3; * * @return The bytes for consumerId. */ public com.google.protobuf.ByteString getConsumerIdBytes() { java.lang.Object ref = consumerId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); consumerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * 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,
     *     - projects/PROJECT_ID or PROJECT_NUMBER,
     *     - folders/FOLDER_NUMBER,
     *     - organizations/ORGANIZATION_NUMBER,
     *     - api`_`key:API_KEY.
     * 
* * string consumer_id = 3; * * @param value The consumerId to set. * @return This builder for chaining. */ public Builder setConsumerId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } consumerId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * 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,
     *     - projects/PROJECT_ID or PROJECT_NUMBER,
     *     - folders/FOLDER_NUMBER,
     *     - organizations/ORGANIZATION_NUMBER,
     *     - api`_`key:API_KEY.
     * 
* * string consumer_id = 3; * * @return This builder for chaining. */ public Builder clearConsumerId() { consumerId_ = getDefaultInstance().getConsumerId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * 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,
     *     - projects/PROJECT_ID or PROJECT_NUMBER,
     *     - folders/FOLDER_NUMBER,
     *     - organizations/ORGANIZATION_NUMBER,
     *     - api`_`key:API_KEY.
     * 
* * string consumer_id = 3; * * @param value The bytes for consumerId to set. * @return This builder for chaining. */ public Builder setConsumerIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); consumerId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** * * *
     * Required. Start time of the operation.
     * 
* * .google.protobuf.Timestamp start_time = 4; * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Required. Start time of the operation.
     * 
* * .google.protobuf.Timestamp start_time = 4; * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** * * *
     * Required. Start time of the operation.
     * 
* * .google.protobuf.Timestamp start_time = 4; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Required. Start time of the operation.
     * 
* * .google.protobuf.Timestamp start_time = 4; */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Required. Start time of the operation.
     * 
* * .google.protobuf.Timestamp start_time = 4; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } } else { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Required. Start time of the operation.
     * 
* * .google.protobuf.Timestamp start_time = 4; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000008); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required. Start time of the operation.
     * 
* * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** * * *
     * Required. Start time of the operation.
     * 
* * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** * * *
     * Required. Start time of the operation.
     * 
* * .google.protobuf.Timestamp start_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** * * *
     * 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; * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * 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; * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { if (endTimeBuilder_ == null) { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } else { return endTimeBuilder_.getMessage(); } } /** * * *
     * 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.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endTime_ = value; } else { endTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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].
     * 
* * .google.protobuf.Timestamp end_time = 5; */ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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].
     * 
* * .google.protobuf.Timestamp end_time = 5; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } } else { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { bitField0_ |= 0x00000010; onChanged(); } 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].
     * 
* * .google.protobuf.Timestamp end_time = 5; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000010); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } onChanged(); 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].
     * 
* * .google.protobuf.Timestamp end_time = 5; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** * * *
     * 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.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : 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].
     * 
* * .google.protobuf.Timestamp end_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000020; onChanged(); 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, such as App Engine, Compute Engine, or
     *        Kubernetes Engine.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @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, such as App Engine, Compute Engine, or
     *        Kubernetes Engine.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * 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, such as App Engine, Compute Engine, or
     *        Kubernetes Engine.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * 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, such as App Engine, Compute Engine, or
     *        Kubernetes Engine.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000020); 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, such as App Engine, Compute Engine, or
     *        Kubernetes Engine.
     * 
* * map<string, string> labels = 6; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000020; 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, such as App Engine, Compute Engine, or
     *        Kubernetes Engine.
     * 
* * map<string, string> labels = 6; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000020; 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, such as App Engine, Compute Engine, or
     *        Kubernetes Engine.
     * 
* * map<string, string> labels = 6; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000020; return this; } private java.util.List metricValueSets_ = java.util.Collections.emptyList(); private void ensureMetricValueSetsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { metricValueSets_ = new java.util.ArrayList( metricValueSets_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.MetricValueSet, com.google.api.servicecontrol.v1.MetricValueSet.Builder, com.google.api.servicecontrol.v1.MetricValueSetOrBuilder> metricValueSetsBuilder_; /** * * *
     * 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 java.util.List getMetricValueSetsList() { if (metricValueSetsBuilder_ == null) { return java.util.Collections.unmodifiableList(metricValueSets_); } else { return metricValueSetsBuilder_.getMessageList(); } } /** * * *
     * 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.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7; */ public com.google.api.servicecontrol.v1.MetricValueSet getMetricValueSets(int index) { if (metricValueSetsBuilder_ == null) { return metricValueSets_.get(index); } else { return metricValueSetsBuilder_.getMessage(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 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.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7; */ public Builder setMetricValueSets( int index, com.google.api.servicecontrol.v1.MetricValueSet.Builder builderForValue) { if (metricValueSetsBuilder_ == null) { ensureMetricValueSetsIsMutable(); metricValueSets_.set(index, builderForValue.build()); onChanged(); } else { metricValueSetsBuilder_.setMessage(index, builderForValue.build()); } 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(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.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7; */ public Builder addMetricValueSets( com.google.api.servicecontrol.v1.MetricValueSet.Builder builderForValue) { if (metricValueSetsBuilder_ == null) { ensureMetricValueSetsIsMutable(); metricValueSets_.add(builderForValue.build()); onChanged(); } else { metricValueSetsBuilder_.addMessage(builderForValue.build()); } 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.Builder builderForValue) { if (metricValueSetsBuilder_ == null) { ensureMetricValueSetsIsMutable(); metricValueSets_.add(index, builderForValue.build()); onChanged(); } else { metricValueSetsBuilder_.addMessage(index, builderForValue.build()); } 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 addAllMetricValueSets( java.lang.Iterable values) { if (metricValueSetsBuilder_ == null) { ensureMetricValueSetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricValueSets_); onChanged(); } else { metricValueSetsBuilder_.addAllMessages(values); } 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 clearMetricValueSets() { if (metricValueSetsBuilder_ == null) { metricValueSets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { metricValueSetsBuilder_.clear(); } 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 removeMetricValueSets(int index) { if (metricValueSetsBuilder_ == null) { ensureMetricValueSetsIsMutable(); metricValueSets_.remove(index); onChanged(); } else { metricValueSetsBuilder_.remove(index); } 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 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.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7; */ public java.util.List getMetricValueSetsOrBuilderList() { if (metricValueSetsBuilder_ != null) { return metricValueSetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(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.
     * 
* * repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7; */ public com.google.api.servicecontrol.v1.MetricValueSet.Builder addMetricValueSetsBuilder() { return getMetricValueSetsFieldBuilder() .addBuilder(com.google.api.servicecontrol.v1.MetricValueSet.getDefaultInstance()); } /** * * *
     * 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 addMetricValueSetsBuilder( int index) { return getMetricValueSetsFieldBuilder() .addBuilder(index, com.google.api.servicecontrol.v1.MetricValueSet.getDefaultInstance()); } /** * * *
     * 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 java.util.List getMetricValueSetsBuilderList() { return getMetricValueSetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.MetricValueSet, com.google.api.servicecontrol.v1.MetricValueSet.Builder, com.google.api.servicecontrol.v1.MetricValueSetOrBuilder> getMetricValueSetsFieldBuilder() { if (metricValueSetsBuilder_ == null) { metricValueSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.MetricValueSet, com.google.api.servicecontrol.v1.MetricValueSet.Builder, com.google.api.servicecontrol.v1.MetricValueSetOrBuilder>( metricValueSets_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); metricValueSets_ = null; } return metricValueSetsBuilder_; } private java.util.List logEntries_ = java.util.Collections.emptyList(); private void ensureLogEntriesIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { logEntries_ = new java.util.ArrayList(logEntries_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.LogEntry, com.google.api.servicecontrol.v1.LogEntry.Builder, com.google.api.servicecontrol.v1.LogEntryOrBuilder> logEntriesBuilder_; /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public java.util.List getLogEntriesList() { if (logEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(logEntries_); } else { return logEntriesBuilder_.getMessageList(); } } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public int getLogEntriesCount() { if (logEntriesBuilder_ == null) { return logEntries_.size(); } else { return logEntriesBuilder_.getCount(); } } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public com.google.api.servicecontrol.v1.LogEntry getLogEntries(int index) { if (logEntriesBuilder_ == null) { return logEntries_.get(index); } else { return logEntriesBuilder_.getMessage(index); } } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public Builder setLogEntries(int index, com.google.api.servicecontrol.v1.LogEntry value) { if (logEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogEntriesIsMutable(); logEntries_.set(index, value); onChanged(); } else { logEntriesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public Builder setLogEntries( int index, com.google.api.servicecontrol.v1.LogEntry.Builder builderForValue) { if (logEntriesBuilder_ == null) { ensureLogEntriesIsMutable(); logEntries_.set(index, builderForValue.build()); onChanged(); } else { logEntriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public Builder addLogEntries(com.google.api.servicecontrol.v1.LogEntry value) { if (logEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogEntriesIsMutable(); logEntries_.add(value); onChanged(); } else { logEntriesBuilder_.addMessage(value); } return this; } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public Builder addLogEntries(int index, com.google.api.servicecontrol.v1.LogEntry value) { if (logEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogEntriesIsMutable(); logEntries_.add(index, value); onChanged(); } else { logEntriesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public Builder addLogEntries( com.google.api.servicecontrol.v1.LogEntry.Builder builderForValue) { if (logEntriesBuilder_ == null) { ensureLogEntriesIsMutable(); logEntries_.add(builderForValue.build()); onChanged(); } else { logEntriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public Builder addLogEntries( int index, com.google.api.servicecontrol.v1.LogEntry.Builder builderForValue) { if (logEntriesBuilder_ == null) { ensureLogEntriesIsMutable(); logEntries_.add(index, builderForValue.build()); onChanged(); } else { logEntriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public Builder addAllLogEntries( java.lang.Iterable values) { if (logEntriesBuilder_ == null) { ensureLogEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logEntries_); onChanged(); } else { logEntriesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public Builder clearLogEntries() { if (logEntriesBuilder_ == null) { logEntries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { logEntriesBuilder_.clear(); } return this; } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public Builder removeLogEntries(int index) { if (logEntriesBuilder_ == null) { ensureLogEntriesIsMutable(); logEntries_.remove(index); onChanged(); } else { logEntriesBuilder_.remove(index); } return this; } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public com.google.api.servicecontrol.v1.LogEntry.Builder getLogEntriesBuilder(int index) { return getLogEntriesFieldBuilder().getBuilder(index); } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public com.google.api.servicecontrol.v1.LogEntryOrBuilder getLogEntriesOrBuilder(int index) { if (logEntriesBuilder_ == null) { return logEntries_.get(index); } else { return logEntriesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public java.util.List getLogEntriesOrBuilderList() { if (logEntriesBuilder_ != null) { return logEntriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(logEntries_); } } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public com.google.api.servicecontrol.v1.LogEntry.Builder addLogEntriesBuilder() { return getLogEntriesFieldBuilder() .addBuilder(com.google.api.servicecontrol.v1.LogEntry.getDefaultInstance()); } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public com.google.api.servicecontrol.v1.LogEntry.Builder addLogEntriesBuilder(int index) { return getLogEntriesFieldBuilder() .addBuilder(index, com.google.api.servicecontrol.v1.LogEntry.getDefaultInstance()); } /** * * *
     * Represents information to be logged.
     * 
* * repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; */ public java.util.List getLogEntriesBuilderList() { return getLogEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.LogEntry, com.google.api.servicecontrol.v1.LogEntry.Builder, com.google.api.servicecontrol.v1.LogEntryOrBuilder> getLogEntriesFieldBuilder() { if (logEntriesBuilder_ == null) { logEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.LogEntry, com.google.api.servicecontrol.v1.LogEntry.Builder, com.google.api.servicecontrol.v1.LogEntryOrBuilder>( logEntries_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); logEntries_ = null; } return logEntriesBuilder_; } private int importance_ = 0; /** * * *
     * DO NOT USE. This is an experimental field.
     * 
* * .google.api.servicecontrol.v1.Operation.Importance importance = 11; * * @return The enum numeric value on the wire for importance. */ @java.lang.Override public int getImportanceValue() { return importance_; } /** * * *
     * DO NOT USE. This is an experimental field.
     * 
* * .google.api.servicecontrol.v1.Operation.Importance importance = 11; * * @param value The enum numeric value on the wire for importance to set. * @return This builder for chaining. */ public Builder setImportanceValue(int value) { importance_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * DO NOT USE. This is an experimental field.
     * 
* * .google.api.servicecontrol.v1.Operation.Importance importance = 11; * * @return The importance. */ @java.lang.Override public com.google.api.servicecontrol.v1.Operation.Importance getImportance() { com.google.api.servicecontrol.v1.Operation.Importance result = com.google.api.servicecontrol.v1.Operation.Importance.forNumber(importance_); return result == null ? com.google.api.servicecontrol.v1.Operation.Importance.UNRECOGNIZED : result; } /** * * *
     * DO NOT USE. This is an experimental field.
     * 
* * .google.api.servicecontrol.v1.Operation.Importance importance = 11; * * @param value The importance to set. * @return This builder for chaining. */ public Builder setImportance(com.google.api.servicecontrol.v1.Operation.Importance value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; importance_ = value.getNumber(); onChanged(); return this; } /** * * *
     * DO NOT USE. This is an experimental field.
     * 
* * .google.api.servicecontrol.v1.Operation.Importance importance = 11; * * @return This builder for chaining. */ public Builder clearImportance() { bitField0_ = (bitField0_ & ~0x00000100); importance_ = 0; onChanged(); return this; } private java.util.List extensions_ = java.util.Collections.emptyList(); private void ensureExtensionsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { extensions_ = new java.util.ArrayList(extensions_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> extensionsBuilder_; /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public java.util.List getExtensionsList() { if (extensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(extensions_); } else { return extensionsBuilder_.getMessageList(); } } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public int getExtensionsCount() { if (extensionsBuilder_ == null) { return extensions_.size(); } else { return extensionsBuilder_.getCount(); } } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public com.google.protobuf.Any getExtensions(int index) { if (extensionsBuilder_ == null) { return extensions_.get(index); } else { return extensionsBuilder_.getMessage(index); } } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public Builder setExtensions(int index, com.google.protobuf.Any value) { if (extensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionsIsMutable(); extensions_.set(index, value); onChanged(); } else { extensionsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public Builder setExtensions(int index, com.google.protobuf.Any.Builder builderForValue) { if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); extensions_.set(index, builderForValue.build()); onChanged(); } else { extensionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public Builder addExtensions(com.google.protobuf.Any value) { if (extensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionsIsMutable(); extensions_.add(value); onChanged(); } else { extensionsBuilder_.addMessage(value); } return this; } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public Builder addExtensions(int index, com.google.protobuf.Any value) { if (extensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionsIsMutable(); extensions_.add(index, value); onChanged(); } else { extensionsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public Builder addExtensions(com.google.protobuf.Any.Builder builderForValue) { if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); extensions_.add(builderForValue.build()); onChanged(); } else { extensionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public Builder addExtensions(int index, com.google.protobuf.Any.Builder builderForValue) { if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); extensions_.add(index, builderForValue.build()); onChanged(); } else { extensionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public Builder addAllExtensions(java.lang.Iterable values) { if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extensions_); onChanged(); } else { extensionsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public Builder clearExtensions() { if (extensionsBuilder_ == null) { extensions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { extensionsBuilder_.clear(); } return this; } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public Builder removeExtensions(int index) { if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); extensions_.remove(index); onChanged(); } else { extensionsBuilder_.remove(index); } return this; } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public com.google.protobuf.Any.Builder getExtensionsBuilder(int index) { return getExtensionsFieldBuilder().getBuilder(index); } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(int index) { if (extensionsBuilder_ == null) { return extensions_.get(index); } else { return extensionsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public java.util.List getExtensionsOrBuilderList() { if (extensionsBuilder_ != null) { return extensionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(extensions_); } } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public com.google.protobuf.Any.Builder addExtensionsBuilder() { return getExtensionsFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance()); } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public com.google.protobuf.Any.Builder addExtensionsBuilder(int index) { return getExtensionsFieldBuilder() .addBuilder(index, com.google.protobuf.Any.getDefaultInstance()); } /** * * *
     * Unimplemented.
     * 
* * repeated .google.protobuf.Any extensions = 16; */ public java.util.List getExtensionsBuilderList() { return getExtensionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getExtensionsFieldBuilder() { if (extensionsBuilder_ == null) { extensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( extensions_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); extensions_ = null; } return extensionsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.servicecontrol.v1.Operation) } // @@protoc_insertion_point(class_scope:google.api.servicecontrol.v1.Operation) private static final com.google.api.servicecontrol.v1.Operation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.servicecontrol.v1.Operation(); } public static com.google.api.servicecontrol.v1.Operation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Operation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.servicecontrol.v1.Operation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy