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

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

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

package com.google.api.servicecontrol.v1;

/**
 * 
 * Request message for the Report method.
 * 
* * Protobuf type {@code google.api.servicecontrol.v1.ReportRequest} */ public final class ReportRequest extends com.google.proto4pingcap.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.ReportRequest) ReportRequestOrBuilder { // Use ReportRequest.newBuilder() to construct. private ReportRequest(com.google.proto4pingcap.GeneratedMessageV3.Builder builder) { super(builder); } private ReportRequest() { serviceName_ = ""; operations_ = java.util.Collections.emptyList(); serviceConfigId_ = ""; } @java.lang.Override public final com.google.proto4pingcap.UnknownFieldSet getUnknownFields() { return com.google.proto4pingcap.UnknownFieldSet.getDefaultInstance(); } private ReportRequest( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); serviceName_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { operations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } operations_.add( input.readMessage(com.google.api.servicecontrol.v1.Operation.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); serviceConfigId_ = s; break; } } } } catch (com.google.proto4pingcap.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.proto4pingcap.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { operations_ = java.util.Collections.unmodifiableList(operations_); } makeExtensionsImmutable(); } } public static final com.google.proto4pingcap.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_ReportRequest_descriptor; } protected com.google.proto4pingcap.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_ReportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.ReportRequest.class, com.google.api.servicecontrol.v1.ReportRequest.Builder.class); } private int bitField0_; public static final int SERVICE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object serviceName_; /** *
   * The service name as specified in its service configuration. For example,
   * `"pubsub.googleapis.com"`.
   * See [google.api.Service][google.api.Service] for the definition of a service name.
   * 
* * string service_name = 1; */ public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } } /** *
   * The service name as specified in its service configuration. For example,
   * `"pubsub.googleapis.com"`.
   * See [google.api.Service][google.api.Service] for the definition of a service name.
   * 
* * string service_name = 1; */ public com.google.proto4pingcap.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof java.lang.String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); serviceName_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } public static final int OPERATIONS_FIELD_NUMBER = 2; private java.util.List operations_; /** *
   * Operations to be reported.
   * Typically the service should report one operation per request.
   * Putting multiple operations into a single request is allowed, but should
   * be used only when multiple operations are natually available at the time
   * of the report.
   * If multiple operations are in a single request, the total request size
   * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
   * partial failure behavior.
   * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public java.util.List getOperationsList() { return operations_; } /** *
   * Operations to be reported.
   * Typically the service should report one operation per request.
   * Putting multiple operations into a single request is allowed, but should
   * be used only when multiple operations are natually available at the time
   * of the report.
   * If multiple operations are in a single request, the total request size
   * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
   * partial failure behavior.
   * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public java.util.List getOperationsOrBuilderList() { return operations_; } /** *
   * Operations to be reported.
   * Typically the service should report one operation per request.
   * Putting multiple operations into a single request is allowed, but should
   * be used only when multiple operations are natually available at the time
   * of the report.
   * If multiple operations are in a single request, the total request size
   * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
   * partial failure behavior.
   * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public int getOperationsCount() { return operations_.size(); } /** *
   * Operations to be reported.
   * Typically the service should report one operation per request.
   * Putting multiple operations into a single request is allowed, but should
   * be used only when multiple operations are natually available at the time
   * of the report.
   * If multiple operations are in a single request, the total request size
   * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
   * partial failure behavior.
   * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public com.google.api.servicecontrol.v1.Operation getOperations(int index) { return operations_.get(index); } /** *
   * Operations to be reported.
   * Typically the service should report one operation per request.
   * Putting multiple operations into a single request is allowed, but should
   * be used only when multiple operations are natually available at the time
   * of the report.
   * If multiple operations are in a single request, the total request size
   * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
   * partial failure behavior.
   * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public com.google.api.servicecontrol.v1.OperationOrBuilder getOperationsOrBuilder( int index) { return operations_.get(index); } public static final int SERVICE_CONFIG_ID_FIELD_NUMBER = 3; private volatile java.lang.Object serviceConfigId_; /** *
   * Specifies which version of service config should be used to process the
   * request.
   * If unspecified or no matching version can be found, the
   * latest one will be used.
   * 
* * string service_config_id = 3; */ public java.lang.String getServiceConfigId() { java.lang.Object ref = serviceConfigId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceConfigId_ = s; return s; } } /** *
   * Specifies which version of service config should be used to process the
   * request.
   * If unspecified or no matching version can be found, the
   * latest one will be used.
   * 
* * string service_config_id = 3; */ public com.google.proto4pingcap.ByteString getServiceConfigIdBytes() { java.lang.Object ref = serviceConfigId_; if (ref instanceof java.lang.String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); serviceConfigId_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.proto4pingcap.CodedOutputStream output) throws java.io.IOException { if (!getServiceNameBytes().isEmpty()) { com.google.proto4pingcap.GeneratedMessageV3.writeString(output, 1, serviceName_); } for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } if (!getServiceConfigIdBytes().isEmpty()) { com.google.proto4pingcap.GeneratedMessageV3.writeString(output, 3, serviceConfigId_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getServiceNameBytes().isEmpty()) { size += com.google.proto4pingcap.GeneratedMessageV3.computeStringSize(1, serviceName_); } for (int i = 0; i < operations_.size(); i++) { size += com.google.proto4pingcap.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } if (!getServiceConfigIdBytes().isEmpty()) { size += com.google.proto4pingcap.GeneratedMessageV3.computeStringSize(3, serviceConfigId_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.servicecontrol.v1.ReportRequest)) { return super.equals(obj); } com.google.api.servicecontrol.v1.ReportRequest other = (com.google.api.servicecontrol.v1.ReportRequest) obj; boolean result = true; result = result && getServiceName() .equals(other.getServiceName()); result = result && getOperationsList() .equals(other.getOperationsList()); result = result && getServiceConfigId() .equals(other.getServiceConfigId()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SERVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getServiceName().hashCode(); if (getOperationsCount() > 0) { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } hash = (37 * hash) + SERVICE_CONFIG_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceConfigId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.servicecontrol.v1.ReportRequest parseFrom( com.google.proto4pingcap.ByteString data) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.ReportRequest parseFrom( com.google.proto4pingcap.ByteString data, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.ReportRequest parseFrom(byte[] data) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.ReportRequest parseFrom( byte[] data, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.ReportRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.ReportRequest parseFrom( java.io.InputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.ReportRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.ReportRequest parseDelimitedFrom( java.io.InputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.ReportRequest parseFrom( com.google.proto4pingcap.CodedInputStream input) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.ReportRequest parseFrom( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.proto4pingcap.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.servicecontrol.v1.ReportRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.proto4pingcap.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Request message for the Report method.
   * 
* * Protobuf type {@code google.api.servicecontrol.v1.ReportRequest} */ public static final class Builder extends com.google.proto4pingcap.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.ReportRequest) com.google.api.servicecontrol.v1.ReportRequestOrBuilder { public static final com.google.proto4pingcap.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_ReportRequest_descriptor; } protected com.google.proto4pingcap.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_ReportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.ReportRequest.class, com.google.api.servicecontrol.v1.ReportRequest.Builder.class); } // Construct using com.google.api.servicecontrol.v1.ReportRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.proto4pingcap.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.proto4pingcap.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationsFieldBuilder(); } } public Builder clear() { super.clear(); serviceName_ = ""; if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { operationsBuilder_.clear(); } serviceConfigId_ = ""; return this; } public com.google.proto4pingcap.Descriptors.Descriptor getDescriptorForType() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_ReportRequest_descriptor; } public com.google.api.servicecontrol.v1.ReportRequest getDefaultInstanceForType() { return com.google.api.servicecontrol.v1.ReportRequest.getDefaultInstance(); } public com.google.api.servicecontrol.v1.ReportRequest build() { com.google.api.servicecontrol.v1.ReportRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.api.servicecontrol.v1.ReportRequest buildPartial() { com.google.api.servicecontrol.v1.ReportRequest result = new com.google.api.servicecontrol.v1.ReportRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.serviceName_ = serviceName_; if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { operations_ = java.util.Collections.unmodifiableList(operations_); bitField0_ = (bitField0_ & ~0x00000002); } result.operations_ = operations_; } else { result.operations_ = operationsBuilder_.build(); } result.serviceConfigId_ = serviceConfigId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.proto4pingcap.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.proto4pingcap.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.proto4pingcap.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.proto4pingcap.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.proto4pingcap.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.proto4pingcap.Message other) { if (other instanceof com.google.api.servicecontrol.v1.ReportRequest) { return mergeFrom((com.google.api.servicecontrol.v1.ReportRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.servicecontrol.v1.ReportRequest other) { if (other == com.google.api.servicecontrol.v1.ReportRequest.getDefaultInstance()) return this; if (!other.getServiceName().isEmpty()) { serviceName_ = other.serviceName_; onChanged(); } if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOperationsIsMutable(); operations_.addAll(other.operations_); } onChanged(); } } else { if (!other.operations_.isEmpty()) { if (operationsBuilder_.isEmpty()) { operationsBuilder_.dispose(); operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000002); operationsBuilder_ = com.google.proto4pingcap.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationsFieldBuilder() : null; } else { operationsBuilder_.addAllMessages(other.operations_); } } } if (!other.getServiceConfigId().isEmpty()) { serviceConfigId_ = other.serviceConfigId_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.servicecontrol.v1.ReportRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.proto4pingcap.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.servicecontrol.v1.ReportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object serviceName_ = ""; /** *
     * The service name as specified in its service configuration. For example,
     * `"pubsub.googleapis.com"`.
     * See [google.api.Service][google.api.Service] for the definition of a service name.
     * 
* * string service_name = 1; */ public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; if (!(ref instanceof java.lang.String)) { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The service name as specified in its service configuration. For example,
     * `"pubsub.googleapis.com"`.
     * See [google.api.Service][google.api.Service] for the definition of a service name.
     * 
* * string service_name = 1; */ public com.google.proto4pingcap.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); serviceName_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } /** *
     * The service name as specified in its service configuration. For example,
     * `"pubsub.googleapis.com"`.
     * See [google.api.Service][google.api.Service] for the definition of a service name.
     * 
* * string service_name = 1; */ public Builder setServiceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceName_ = value; onChanged(); return this; } /** *
     * The service name as specified in its service configuration. For example,
     * `"pubsub.googleapis.com"`.
     * See [google.api.Service][google.api.Service] for the definition of a service name.
     * 
* * string service_name = 1; */ public Builder clearServiceName() { serviceName_ = getDefaultInstance().getServiceName(); onChanged(); return this; } /** *
     * The service name as specified in its service configuration. For example,
     * `"pubsub.googleapis.com"`.
     * See [google.api.Service][google.api.Service] for the definition of a service name.
     * 
* * string service_name = 1; */ public Builder setServiceNameBytes( com.google.proto4pingcap.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceName_ = value; onChanged(); return this; } private java.util.List operations_ = java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { operations_ = new java.util.ArrayList(operations_); bitField0_ |= 0x00000002; } } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.Operation, com.google.api.servicecontrol.v1.Operation.Builder, com.google.api.servicecontrol.v1.OperationOrBuilder> operationsBuilder_; /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public java.util.List getOperationsList() { if (operationsBuilder_ == null) { return java.util.Collections.unmodifiableList(operations_); } else { return operationsBuilder_.getMessageList(); } } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public int getOperationsCount() { if (operationsBuilder_ == null) { return operations_.size(); } else { return operationsBuilder_.getCount(); } } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public com.google.api.servicecontrol.v1.Operation getOperations(int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessage(index); } } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public Builder setOperations( int index, com.google.api.servicecontrol.v1.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.set(index, value); onChanged(); } else { operationsBuilder_.setMessage(index, value); } return this; } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public Builder setOperations( int index, com.google.api.servicecontrol.v1.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.set(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public Builder addOperations(com.google.api.servicecontrol.v1.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(value); onChanged(); } else { operationsBuilder_.addMessage(value); } return this; } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public Builder addOperations( int index, com.google.api.servicecontrol.v1.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(index, value); onChanged(); } else { operationsBuilder_.addMessage(index, value); } return this; } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public Builder addOperations( com.google.api.servicecontrol.v1.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public Builder addOperations( int index, com.google.api.servicecontrol.v1.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public Builder addAllOperations( java.lang.Iterable values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); com.google.proto4pingcap.AbstractMessageLite.Builder.addAll( values, operations_); onChanged(); } else { operationsBuilder_.addAllMessages(values); } return this; } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public Builder clearOperations() { if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { operationsBuilder_.clear(); } return this; } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public Builder removeOperations(int index) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.remove(index); onChanged(); } else { operationsBuilder_.remove(index); } return this; } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public com.google.api.servicecontrol.v1.Operation.Builder getOperationsBuilder( int index) { return getOperationsFieldBuilder().getBuilder(index); } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public com.google.api.servicecontrol.v1.OperationOrBuilder getOperationsOrBuilder( int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessageOrBuilder(index); } } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public java.util.List getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(operations_); } } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public com.google.api.servicecontrol.v1.Operation.Builder addOperationsBuilder() { return getOperationsFieldBuilder().addBuilder( com.google.api.servicecontrol.v1.Operation.getDefaultInstance()); } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public com.google.api.servicecontrol.v1.Operation.Builder addOperationsBuilder( int index) { return getOperationsFieldBuilder().addBuilder( index, com.google.api.servicecontrol.v1.Operation.getDefaultInstance()); } /** *
     * Operations to be reported.
     * Typically the service should report one operation per request.
     * Putting multiple operations into a single request is allowed, but should
     * be used only when multiple operations are natually available at the time
     * of the report.
     * If multiple operations are in a single request, the total request size
     * should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
     * partial failure behavior.
     * 
* * repeated .google.api.servicecontrol.v1.Operation operations = 2; */ public java.util.List getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } private com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.Operation, com.google.api.servicecontrol.v1.Operation.Builder, com.google.api.servicecontrol.v1.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { operationsBuilder_ = new com.google.proto4pingcap.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.Operation, com.google.api.servicecontrol.v1.Operation.Builder, com.google.api.servicecontrol.v1.OperationOrBuilder>( operations_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); operations_ = null; } return operationsBuilder_; } private java.lang.Object serviceConfigId_ = ""; /** *
     * Specifies which version of service config should be used to process the
     * request.
     * If unspecified or no matching version can be found, the
     * latest one will be used.
     * 
* * string service_config_id = 3; */ public java.lang.String getServiceConfigId() { java.lang.Object ref = serviceConfigId_; if (!(ref instanceof java.lang.String)) { com.google.proto4pingcap.ByteString bs = (com.google.proto4pingcap.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceConfigId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Specifies which version of service config should be used to process the
     * request.
     * If unspecified or no matching version can be found, the
     * latest one will be used.
     * 
* * string service_config_id = 3; */ public com.google.proto4pingcap.ByteString getServiceConfigIdBytes() { java.lang.Object ref = serviceConfigId_; if (ref instanceof String) { com.google.proto4pingcap.ByteString b = com.google.proto4pingcap.ByteString.copyFromUtf8( (java.lang.String) ref); serviceConfigId_ = b; return b; } else { return (com.google.proto4pingcap.ByteString) ref; } } /** *
     * Specifies which version of service config should be used to process the
     * request.
     * If unspecified or no matching version can be found, the
     * latest one will be used.
     * 
* * string service_config_id = 3; */ public Builder setServiceConfigId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceConfigId_ = value; onChanged(); return this; } /** *
     * Specifies which version of service config should be used to process the
     * request.
     * If unspecified or no matching version can be found, the
     * latest one will be used.
     * 
* * string service_config_id = 3; */ public Builder clearServiceConfigId() { serviceConfigId_ = getDefaultInstance().getServiceConfigId(); onChanged(); return this; } /** *
     * Specifies which version of service config should be used to process the
     * request.
     * If unspecified or no matching version can be found, the
     * latest one will be used.
     * 
* * string service_config_id = 3; */ public Builder setServiceConfigIdBytes( com.google.proto4pingcap.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceConfigId_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.proto4pingcap.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.proto4pingcap.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.api.servicecontrol.v1.ReportRequest) } // @@protoc_insertion_point(class_scope:google.api.servicecontrol.v1.ReportRequest) private static final com.google.api.servicecontrol.v1.ReportRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.servicecontrol.v1.ReportRequest(); } public static com.google.api.servicecontrol.v1.ReportRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.proto4pingcap.Parser PARSER = new com.google.proto4pingcap.AbstractParser() { public ReportRequest parsePartialFrom( com.google.proto4pingcap.CodedInputStream input, com.google.proto4pingcap.ExtensionRegistryLite extensionRegistry) throws com.google.proto4pingcap.InvalidProtocolBufferException { return new ReportRequest(input, extensionRegistry); } }; public static com.google.proto4pingcap.Parser parser() { return PARSER; } @java.lang.Override public com.google.proto4pingcap.Parser getParserForType() { return PARSER; } public com.google.api.servicecontrol.v1.ReportRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy