Class OperationResponse.Builder (6.62.0)

public static final class OperationResponse.Builder extends GeneratedMessageV3.Builder<OperationResponse.Builder> implements OperationResponseOrBuilder

OperationResponse contains results returned by operation related actions.

Protobuf type google.spanner.executor.v1.OperationResponse

Static Methods

getDescriptor()

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

Methods

addAllListedOperations(Iterable<? extends Operation> values)

public OperationResponse.Builder addAllListedOperations(Iterable<? extends Operation> values)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.longrunning.Operation>
Returns
TypeDescription
OperationResponse.Builder

addListedOperations(Operation value)

public OperationResponse.Builder addListedOperations(Operation value)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
NameDescription
valueOperation
Returns
TypeDescription
OperationResponse.Builder

addListedOperations(Operation.Builder builderForValue)

public OperationResponse.Builder addListedOperations(Operation.Builder builderForValue)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
OperationResponse.Builder

addListedOperations(int index, Operation value)

public OperationResponse.Builder addListedOperations(int index, Operation value)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameters
NameDescription
indexint
valueOperation
Returns
TypeDescription
OperationResponse.Builder

addListedOperations(int index, Operation.Builder builderForValue)

public OperationResponse.Builder addListedOperations(int index, Operation.Builder builderForValue)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
OperationResponse.Builder

addListedOperationsBuilder()

public Operation.Builder addListedOperationsBuilder()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
TypeDescription
Builder

addListedOperationsBuilder(int index)

public Operation.Builder addListedOperationsBuilder(int index)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OperationResponse build()
Returns
TypeDescription
OperationResponse

buildPartial()

public OperationResponse buildPartial()
Returns
TypeDescription
OperationResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearListedOperations()

public OperationResponse.Builder clearListedOperations()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
TypeDescription
OperationResponse.Builder

clearNextPageToken()

public OperationResponse.Builder clearNextPageToken()

"next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

string next_page_token = 2;

Returns
TypeDescription
OperationResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperation()

public OperationResponse.Builder clearOperation()

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Returns
TypeDescription
OperationResponse.Builder

clone()

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

getDefaultInstanceForType()

public OperationResponse getDefaultInstanceForType()
Returns
TypeDescription
OperationResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getListedOperations(int index)

public Operation getListedOperations(int index)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Operation

getListedOperationsBuilder(int index)

public Operation.Builder getListedOperationsBuilder(int index)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

getListedOperationsBuilderList()

public List<Operation.Builder> getListedOperationsBuilderList()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
TypeDescription
List<Builder>

getListedOperationsCount()

public int getListedOperationsCount()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
TypeDescription
int

getListedOperationsList()

public List<Operation> getListedOperationsList()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
TypeDescription
List<Operation>

getListedOperationsOrBuilder(int index)

public OperationOrBuilder getListedOperationsOrBuilder(int index)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationOrBuilder

getListedOperationsOrBuilderList()

public List<? extends OperationOrBuilder> getListedOperationsOrBuilderList()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
TypeDescription
List<? extends com.google.longrunning.OperationOrBuilder>

getNextPageToken()

public String getNextPageToken()

"next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

"next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getOperation()

public Operation getOperation()

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Returns
TypeDescription
Operation

The operation.

getOperationBuilder()

public Operation.Builder getOperationBuilder()

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Returns
TypeDescription
Builder

getOperationOrBuilder()

public OperationOrBuilder getOperationOrBuilder()

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Returns
TypeDescription
OperationOrBuilder

hasOperation()

public boolean hasOperation()

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Returns
TypeDescription
boolean

Whether the operation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(OperationResponse other)

public OperationResponse.Builder mergeFrom(OperationResponse other)
Parameter
NameDescription
otherOperationResponse
Returns
TypeDescription
OperationResponse.Builder

mergeOperation(Operation value)

public OperationResponse.Builder mergeOperation(Operation value)

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Parameter
NameDescription
valueOperation
Returns
TypeDescription
OperationResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeListedOperations(int index)

public OperationResponse.Builder removeListedOperations(int index)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setListedOperations(int index, Operation value)

public OperationResponse.Builder setListedOperations(int index, Operation value)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameters
NameDescription
indexint
valueOperation
Returns
TypeDescription
OperationResponse.Builder

setListedOperations(int index, Operation.Builder builderForValue)

public OperationResponse.Builder setListedOperations(int index, Operation.Builder builderForValue)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
OperationResponse.Builder

setNextPageToken(String value)

public OperationResponse.Builder setNextPageToken(String value)

"next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
OperationResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public OperationResponse.Builder setNextPageTokenBytes(ByteString value)

"next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
OperationResponse.Builder

This builder for chaining.

setOperation(Operation value)

public OperationResponse.Builder setOperation(Operation value)

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Parameter
NameDescription
valueOperation
Returns
TypeDescription
OperationResponse.Builder

setOperation(Operation.Builder builderForValue)

public OperationResponse.Builder setOperation(Operation.Builder builderForValue)

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
OperationResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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