Class CloudInstanceResponse.Builder (6.60.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.admin.instance.v1.Instance>
Returns
TypeDescription
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
NameDescription
valueInstance
Returns
TypeDescription
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
NameDescription
builderForValueInstance.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInstance
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstance.Builder
Returns
TypeDescription
CloudInstanceResponse.Builder

addListedInstancesBuilder()

public Instance.Builder addListedInstancesBuilder()

List of instances returned by ListCloudInstancesAction.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Instance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudInstanceResponse build()
Returns
TypeDescription
CloudInstanceResponse

buildPartial()

public CloudInstanceResponse buildPartial()
Returns
TypeDescription
CloudInstanceResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public CloudInstanceResponse.Builder clearInstance()

Instance returned by GetCloudInstanceAction

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

Returns
TypeDescription
CloudInstanceResponse.Builder

clearListedInstances()

public CloudInstanceResponse.Builder clearListedInstances()

List of instances returned by ListCloudInstancesAction.

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

Returns
TypeDescription
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
TypeDescription
CloudInstanceResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CloudInstanceResponse getDefaultInstanceForType()
Returns
TypeDescription
CloudInstanceResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public Instance getInstance()

Instance returned by GetCloudInstanceAction

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

Returns
TypeDescription
Instance

The instance.

getInstanceBuilder()

public Instance.Builder getInstanceBuilder()

Instance returned by GetCloudInstanceAction

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

Returns
TypeDescription
Instance.Builder

getInstanceOrBuilder()

public InstanceOrBuilder getInstanceOrBuilder()

Instance returned by GetCloudInstanceAction

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getListedInstancesCount()

public int getListedInstancesCount()

List of instances returned by ListCloudInstancesAction.

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

Returns
TypeDescription
int

getListedInstancesList()

public List<Instance> getListedInstancesList()

List of instances returned by ListCloudInstancesAction.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InstanceOrBuilder

getListedInstancesOrBuilderList()

public List<? extends InstanceOrBuilder> getListedInstancesOrBuilderList()

List of instances returned by ListCloudInstancesAction.

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

Returns
TypeDescription
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
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.

hasInstance()

public boolean hasInstance()

Instance returned by GetCloudInstanceAction

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

Returns
TypeDescription
boolean

Whether the instance 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 CloudInstanceResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudInstanceResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(CloudInstanceResponse other)

public CloudInstanceResponse.Builder mergeFrom(CloudInstanceResponse other)
Parameter
NameDescription
otherCloudInstanceResponse
Returns
TypeDescription
CloudInstanceResponse.Builder

mergeInstance(Instance value)

public CloudInstanceResponse.Builder mergeInstance(Instance value)

Instance returned by GetCloudInstanceAction

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

Parameter
NameDescription
valueInstance
Returns
TypeDescription
CloudInstanceResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudInstanceResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CloudInstanceResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CloudInstanceResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInstance
Returns
TypeDescription
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
NameDescription
builderForValueInstance.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInstance
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstance.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloudInstanceResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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