Class OperationResponse.Builder (6.74.1)

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
Type Description
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
Name Description
values Iterable<? extends com.google.longrunning.Operation>
Returns
Type Description
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
Name Description
value Operation
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
index int
value Operation
Returns
Type Description
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
Name Description
index int
builderForValue Builder
Returns
Type Description
OperationResponse.Builder

addListedOperationsBuilder()

public Operation.Builder addListedOperationsBuilder()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
Type Description
Builder

addListedOperationsBuilder(int index)

public Operation.Builder addListedOperationsBuilder(int index)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
Name Description
index int
Returns
Type Description
Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OperationResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OperationResponse.Builder
Overrides

build()

public OperationResponse build()
Returns
Type Description
OperationResponse

buildPartial()

public OperationResponse buildPartial()
Returns
Type Description
OperationResponse

clear()

public OperationResponse.Builder clear()
Returns
Type Description
OperationResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OperationResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OperationResponse.Builder
Overrides

clearListedOperations()

public OperationResponse.Builder clearListedOperations()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
Type Description
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
Type Description
OperationResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OperationResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OperationResponse.Builder
Overrides

clearOperation()

public OperationResponse.Builder clearOperation()

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Returns
Type Description
OperationResponse.Builder

clone()

public OperationResponse.Builder clone()
Returns
Type Description
OperationResponse.Builder
Overrides

getDefaultInstanceForType()

public OperationResponse getDefaultInstanceForType()
Returns
Type Description
OperationResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getListedOperations(int index)

public Operation getListedOperations(int index)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
Name Description
index int
Returns
Type Description
Operation

getListedOperationsBuilder(int index)

public Operation.Builder getListedOperationsBuilder(int index)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
Name Description
index int
Returns
Type Description
Builder

getListedOperationsBuilderList()

public List<Operation.Builder> getListedOperationsBuilderList()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
Type Description
List<Builder>

getListedOperationsCount()

public int getListedOperationsCount()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
Type Description
int

getListedOperationsList()

public List<Operation> getListedOperationsList()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
Type Description
List<Operation>

getListedOperationsOrBuilder(int index)

public OperationOrBuilder getListedOperationsOrBuilder(int index)

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Parameter
Name Description
index int
Returns
Type Description
OperationOrBuilder

getListedOperationsOrBuilderList()

public List<? extends OperationOrBuilder> getListedOperationsOrBuilderList()

List of operations returned by ListOperationsAction.

repeated .google.longrunning.Operation listed_operations = 1;

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for nextPageToken.

getOperation()

public Operation getOperation()

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Returns
Type Description
Operation

The operation.

getOperationBuilder()

public Operation.Builder getOperationBuilder()

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Returns
Type Description
Builder

getOperationOrBuilder()

public OperationOrBuilder getOperationOrBuilder()

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Returns
Type Description
OperationOrBuilder

hasOperation()

public boolean hasOperation()

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Returns
Type Description
boolean

Whether the operation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OperationResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OperationResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OperationResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OperationResponse.Builder
Overrides

mergeFrom(OperationResponse other)

public OperationResponse.Builder mergeFrom(OperationResponse other)
Parameter
Name Description
other OperationResponse
Returns
Type Description
OperationResponse.Builder

mergeOperation(Operation value)

public OperationResponse.Builder mergeOperation(Operation value)

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Parameter
Name Description
value Operation
Returns
Type Description
OperationResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OperationResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
OperationResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OperationResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value Operation
Returns
Type Description
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
Name Description
index int
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
value Operation
Returns
Type Description
OperationResponse.Builder

setOperation(Operation.Builder builderForValue)

public OperationResponse.Builder setOperation(Operation.Builder builderForValue)

Operation returned by GetOperationAction.

.google.longrunning.Operation operation = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
OperationResponse.Builder

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

public OperationResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OperationResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OperationResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OperationResponse.Builder
Overrides