com.google.api.servicecontrol.v1.ReportRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of endpoints-management-protos Show documentation
Show all versions of endpoints-management-protos Show documentation
Contains the generated protocol buffer surface used by Endpoints
// 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.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.ReportRequest)
ReportRequestOrBuilder {
// Use ReportRequest.newBuilder() to construct.
private ReportRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ReportRequest() {
serviceName_ = "";
operations_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ReportRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
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;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_ReportRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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.
*
*
* optional 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.protobuf.ByteString bs =
(com.google.protobuf.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.
*
*
* optional string service_name = 1;
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.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 extends com.google.api.servicecontrol.v1.OperationOrBuilder>
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);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getServiceNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, serviceName_);
}
for (int i = 0; i < operations_.size(); i++) {
output.writeMessage(2, operations_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getServiceNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, serviceName_);
}
for (int i = 0; i < operations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, operations_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.api.servicecontrol.v1.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());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.api.servicecontrol.v1.ReportRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.servicecontrol.v1.ReportRequest 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.ReportRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.servicecontrol.v1.ReportRequest 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.ReportRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static com.google.api.servicecontrol.v1.ReportRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.servicecontrol.v1.ReportRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.servicecontrol.v1.ReportRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.servicecontrol.v1.ReportRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static com.google.api.servicecontrol.v1.ReportRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.api.servicecontrol.v1.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.protobuf.GeneratedMessage.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.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.ReportRequest)
com.google.api.servicecontrol.v1.ReportRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_ReportRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getOperationsFieldBuilder();
}
}
public Builder clear() {
super.clear();
serviceName_ = "";
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
operationsBuilder_.clear();
}
return this;
}
public com.google.protobuf.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.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.api.servicecontrol.v1.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.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getOperationsFieldBuilder() : null;
} else {
operationsBuilder_.addAllMessages(other.operations_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.api.servicecontrol.v1.ReportRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.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.
*
*
* optional string service_name = 1;
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.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.
*
*
* optional string service_name = 1;
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.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.
*
*
* optional 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.
*
*
* optional 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.
*
*
* optional string service_name = 1;
*/
public Builder setServiceNameBytes(
com.google.protobuf.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.protobuf.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 extends com.google.api.servicecontrol.v1.Operation> values) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
com.google.protobuf.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 extends com.google.api.servicecontrol.v1.OperationOrBuilder>
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.protobuf.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.protobuf.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_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:google.api.servicecontrol.v1.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.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ReportRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReportRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.google.api.servicecontrol.v1.ReportRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}