Class CloudInstanceResponse.Builder (6.72.0)

public static final class CloudInstanceResponse.Builder extends GeneratedMessageV3.Builder<CloudInstanceResponse.Builder> implements CloudInstanceResponseOrBuilder

CloudInstanceResponse contains results returned by cloud instance related actions.

Protobuf type google.spanner.executor.v1.CloudInstanceResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllListedInstances(Iterable<? extends Instance> values)

public CloudInstanceResponse.Builder addAllListedInstances(Iterable<? extends Instance> values)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameter
Name Description
values Iterable<? extends com.google.spanner.admin.instance.v1.Instance>
Returns
Type Description
CloudInstanceResponse.Builder

addListedInstances(Instance value)

public CloudInstanceResponse.Builder addListedInstances(Instance value)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameter
Name Description
value Instance
Returns
Type Description
CloudInstanceResponse.Builder

addListedInstances(Instance.Builder builderForValue)

public CloudInstanceResponse.Builder addListedInstances(Instance.Builder builderForValue)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameter
Name Description
builderForValue Instance.Builder
Returns
Type Description
CloudInstanceResponse.Builder

addListedInstances(int index, Instance value)

public CloudInstanceResponse.Builder addListedInstances(int index, Instance value)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameters
Name Description
index int
value Instance
Returns
Type Description
CloudInstanceResponse.Builder

addListedInstances(int index, Instance.Builder builderForValue)

public CloudInstanceResponse.Builder addListedInstances(int index, Instance.Builder builderForValue)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameters
Name Description
index int
builderForValue Instance.Builder
Returns
Type Description
CloudInstanceResponse.Builder

addListedInstancesBuilder()

public Instance.Builder addListedInstancesBuilder()

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Returns
Type Description
Instance.Builder

addListedInstancesBuilder(int index)

public Instance.Builder addListedInstancesBuilder(int index)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudInstanceResponse build()
Returns
Type Description
CloudInstanceResponse

buildPartial()

public CloudInstanceResponse buildPartial()
Returns
Type Description
CloudInstanceResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public CloudInstanceResponse.Builder clearInstance()

Instance returned by GetCloudInstanceAction

.google.spanner.admin.instance.v1.Instance instance = 3;

Returns
Type Description
CloudInstanceResponse.Builder

clearListedInstances()

public CloudInstanceResponse.Builder clearListedInstances()

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Returns
Type Description
CloudInstanceResponse.Builder

clearNextPageToken()

public CloudInstanceResponse.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
CloudInstanceResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CloudInstanceResponse getDefaultInstanceForType()
Returns
Type Description
CloudInstanceResponse

getDescriptorForType()

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

getInstance()

public Instance getInstance()

Instance returned by GetCloudInstanceAction

.google.spanner.admin.instance.v1.Instance instance = 3;

Returns
Type Description
Instance

The instance.

getInstanceBuilder()

public Instance.Builder getInstanceBuilder()

Instance returned by GetCloudInstanceAction

.google.spanner.admin.instance.v1.Instance instance = 3;

Returns
Type Description
Instance.Builder

getInstanceOrBuilder()

public InstanceOrBuilder getInstanceOrBuilder()

Instance returned by GetCloudInstanceAction

.google.spanner.admin.instance.v1.Instance instance = 3;

Returns
Type Description
InstanceOrBuilder

getListedInstances(int index)

public Instance getListedInstances(int index)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameter
Name Description
index int
Returns
Type Description
Instance

getListedInstancesBuilder(int index)

public Instance.Builder getListedInstancesBuilder(int index)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

getListedInstancesBuilderList()

public List<Instance.Builder> getListedInstancesBuilderList()

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Returns
Type Description
List<Builder>

getListedInstancesCount()

public int getListedInstancesCount()

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Returns
Type Description
int

getListedInstancesList()

public List<Instance> getListedInstancesList()

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Returns
Type Description
List<Instance>

getListedInstancesOrBuilder(int index)

public InstanceOrBuilder getListedInstancesOrBuilder(int index)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameter
Name Description
index int
Returns
Type Description
InstanceOrBuilder

getListedInstancesOrBuilderList()

public List<? extends InstanceOrBuilder> getListedInstancesOrBuilderList()

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Returns
Type Description
List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder>

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.

hasInstance()

public boolean hasInstance()

Instance returned by GetCloudInstanceAction

.google.spanner.admin.instance.v1.Instance instance = 3;

Returns
Type Description
boolean

Whether the instance 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 CloudInstanceResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudInstanceResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(CloudInstanceResponse other)

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

mergeInstance(Instance value)

public CloudInstanceResponse.Builder mergeInstance(Instance value)

Instance returned by GetCloudInstanceAction

.google.spanner.admin.instance.v1.Instance instance = 3;

Parameter
Name Description
value Instance
Returns
Type Description
CloudInstanceResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudInstanceResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudInstanceResponse.Builder
Overrides

removeListedInstances(int index)

public CloudInstanceResponse.Builder removeListedInstances(int index)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameter
Name Description
index int
Returns
Type Description
CloudInstanceResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(Instance value)

public CloudInstanceResponse.Builder setInstance(Instance value)

Instance returned by GetCloudInstanceAction

.google.spanner.admin.instance.v1.Instance instance = 3;

Parameter
Name Description
value Instance
Returns
Type Description
CloudInstanceResponse.Builder

setInstance(Instance.Builder builderForValue)

public CloudInstanceResponse.Builder setInstance(Instance.Builder builderForValue)

Instance returned by GetCloudInstanceAction

.google.spanner.admin.instance.v1.Instance instance = 3;

Parameter
Name Description
builderForValue Instance.Builder
Returns
Type Description
CloudInstanceResponse.Builder

setListedInstances(int index, Instance value)

public CloudInstanceResponse.Builder setListedInstances(int index, Instance value)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameters
Name Description
index int
value Instance
Returns
Type Description
CloudInstanceResponse.Builder

setListedInstances(int index, Instance.Builder builderForValue)

public CloudInstanceResponse.Builder setListedInstances(int index, Instance.Builder builderForValue)

List of instances returned by ListCloudInstancesAction.

repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;

Parameters
Name Description
index int
builderForValue Instance.Builder
Returns
Type Description
CloudInstanceResponse.Builder

setNextPageToken(String value)

public CloudInstanceResponse.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
CloudInstanceResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public CloudInstanceResponse.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
CloudInstanceResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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