Class ReportRequest.Builder (1.39.0)

public static final class ReportRequest.Builder extends GeneratedMessageV3.Builder<ReportRequest.Builder> implements ReportRequestOrBuilder

Request message for the Report method.

Protobuf type google.api.servicecontrol.v1.ReportRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllOperations(Iterable<? extends Operation> values)

public ReportRequest.Builder addAllOperations(Iterable<? extends Operation> values)

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.api.servicecontrol.v1.Operation>
Returns
TypeDescription
ReportRequest.Builder

addOperations(Operation value)

public ReportRequest.Builder addOperations(Operation value)

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameter
NameDescription
valueOperation
Returns
TypeDescription
ReportRequest.Builder

addOperations(Operation.Builder builderForValue)

public ReportRequest.Builder addOperations(Operation.Builder builderForValue)

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameter
NameDescription
builderForValueOperation.Builder
Returns
TypeDescription
ReportRequest.Builder

addOperations(int index, Operation value)

public ReportRequest.Builder addOperations(int index, Operation value)

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameters
NameDescription
indexint
valueOperation
Returns
TypeDescription
ReportRequest.Builder

addOperations(int index, Operation.Builder builderForValue)

public ReportRequest.Builder addOperations(int index, Operation.Builder builderForValue)

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameters
NameDescription
indexint
builderForValueOperation.Builder
Returns
TypeDescription
ReportRequest.Builder

addOperationsBuilder()

public Operation.Builder addOperationsBuilder()

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Returns
TypeDescription
Operation.Builder

addOperationsBuilder(int index)

public Operation.Builder addOperationsBuilder(int 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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Operation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReportRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReportRequest.Builder
Overrides

build()

public ReportRequest build()
Returns
TypeDescription
ReportRequest

buildPartial()

public ReportRequest buildPartial()
Returns
TypeDescription
ReportRequest

clear()

public ReportRequest.Builder clear()
Returns
TypeDescription
ReportRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ReportRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReportRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ReportRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ReportRequest.Builder
Overrides

clearOperations()

public ReportRequest.Builder clearOperations()

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Returns
TypeDescription
ReportRequest.Builder

clearServiceConfigId()

public ReportRequest.Builder clearServiceConfigId()

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;

Returns
TypeDescription
ReportRequest.Builder

This builder for chaining.

clearServiceName()

public ReportRequest.Builder clearServiceName()

The service name as specified in its service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Returns
TypeDescription
ReportRequest.Builder

This builder for chaining.

clone()

public ReportRequest.Builder clone()
Returns
TypeDescription
ReportRequest.Builder
Overrides

getDefaultInstanceForType()

public ReportRequest getDefaultInstanceForType()
Returns
TypeDescription
ReportRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOperations(int index)

public Operation getOperations(int 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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Operation

getOperationsBuilder(int index)

public Operation.Builder getOperationsBuilder(int 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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Operation.Builder

getOperationsBuilderList()

public List<Operation.Builder> getOperationsBuilderList()

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Returns
TypeDescription
List<Builder>

getOperationsCount()

public int getOperationsCount()

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Returns
TypeDescription
int

getOperationsList()

public List<Operation> getOperationsList()

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Returns
TypeDescription
List<Operation>

getOperationsOrBuilder(int index)

public OperationOrBuilder getOperationsOrBuilder(int 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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationOrBuilder

getOperationsOrBuilderList()

public List<? extends OperationOrBuilder> getOperationsOrBuilderList()

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Returns
TypeDescription
List<? extends com.google.api.servicecontrol.v1.OperationOrBuilder>

getServiceConfigId()

public String getServiceConfigId()

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;

Returns
TypeDescription
String

The serviceConfigId.

getServiceConfigIdBytes()

public ByteString getServiceConfigIdBytes()

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;

Returns
TypeDescription
ByteString

The bytes for serviceConfigId.

getServiceName()

public String getServiceName()

The service name as specified in its service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Returns
TypeDescription
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

The service name as specified in its service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Returns
TypeDescription
ByteString

The bytes for serviceName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReportRequest other)

public ReportRequest.Builder mergeFrom(ReportRequest other)
Parameter
NameDescription
otherReportRequest
Returns
TypeDescription
ReportRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReportRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReportRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReportRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReportRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReportRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReportRequest.Builder
Overrides

removeOperations(int index)

public ReportRequest.Builder removeOperations(int 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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ReportRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReportRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReportRequest.Builder
Overrides

setOperations(int index, Operation value)

public ReportRequest.Builder setOperations(int index, Operation value)

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameters
NameDescription
indexint
valueOperation
Returns
TypeDescription
ReportRequest.Builder

setOperations(int index, Operation.Builder builderForValue)

public ReportRequest.Builder setOperations(int index, Operation.Builder builderForValue)

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.

There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.

repeated .google.api.servicecontrol.v1.Operation operations = 2;

Parameters
NameDescription
indexint
builderForValueOperation.Builder
Returns
TypeDescription
ReportRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReportRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReportRequest.Builder
Overrides

setServiceConfigId(String value)

public ReportRequest.Builder setServiceConfigId(String value)

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;

Parameter
NameDescription
valueString

The serviceConfigId to set.

Returns
TypeDescription
ReportRequest.Builder

This builder for chaining.

setServiceConfigIdBytes(ByteString value)

public ReportRequest.Builder setServiceConfigIdBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for serviceConfigId to set.

Returns
TypeDescription
ReportRequest.Builder

This builder for chaining.

setServiceName(String value)

public ReportRequest.Builder setServiceName(String value)

The service name as specified in its service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Parameter
NameDescription
valueString

The serviceName to set.

Returns
TypeDescription
ReportRequest.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public ReportRequest.Builder setServiceNameBytes(ByteString value)

The service name as specified in its service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Parameter
NameDescription
valueByteString

The bytes for serviceName to set.

Returns
TypeDescription
ReportRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ReportRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReportRequest.Builder
Overrides