Class ListInstancesResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
com.google.spanner.admin.instance.v1.ListInstancesResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ListInstancesResponseOrBuilder,Cloneable
- Enclosing class:
- ListInstancesResponse
public static final class ListInstancesResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
implements ListInstancesResponseOrBuilder
The response for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].Protobuf type
google.spanner.admin.instance.v1.ListInstancesResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllInstances(Iterable<? extends Instance> values) The list of requested instances.addAllUnreachable(Iterable<String> values) The list of unreachable instances.addInstances(int index, Instance value) The list of requested instances.addInstances(int index, Instance.Builder builderForValue) The list of requested instances.addInstances(Instance value) The list of requested instances.addInstances(Instance.Builder builderForValue) The list of requested instances.The list of requested instances.addInstancesBuilder(int index) The list of requested instances.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addUnreachable(String value) The list of unreachable instances.addUnreachableBytes(com.google.protobuf.ByteString value) The list of unreachable instances.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The list of requested instances.`next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The list of unreachable instances.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInstances(int index) The list of requested instances.getInstancesBuilder(int index) The list of requested instances.The list of requested instances.intThe list of requested instances.The list of requested instances.getInstancesOrBuilder(int index) The list of requested instances.List<? extends InstanceOrBuilder>The list of requested instances.`next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.com.google.protobuf.ByteString`next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.getUnreachable(int index) The list of unreachable instances.com.google.protobuf.ByteStringgetUnreachableBytes(int index) The list of unreachable instances.intThe list of unreachable instances.com.google.protobuf.ProtocolStringListThe list of unreachable instances.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ListInstancesResponse other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeInstances(int index) The list of requested instances.setInstances(int index, Instance value) The list of requested instances.setInstances(int index, Instance.Builder builderForValue) The list of requested instances.setNextPageToken(String value) `next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.setNextPageTokenBytes(com.google.protobuf.ByteString value) `next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUnreachable(int index, String value) The list of unreachable instances.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
setField
public ListInstancesResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
clearField
public ListInstancesResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
clearOneof
public ListInstancesResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
setRepeatedField
public ListInstancesResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
addRepeatedField
public ListInstancesResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListInstancesResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
mergeFrom
public ListInstancesResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListInstancesResponse.Builder>- Throws:
IOException
-
getInstancesList
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1;- Specified by:
getInstancesListin interfaceListInstancesResponseOrBuilder
-
getInstancesCount
public int getInstancesCount()The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1;- Specified by:
getInstancesCountin interfaceListInstancesResponseOrBuilder
-
getInstances
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1;- Specified by:
getInstancesin interfaceListInstancesResponseOrBuilder
-
setInstances
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
setInstances
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
addInstances
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
addInstances
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
addInstances
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
addInstances
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
addAllInstances
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
clearInstances
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
removeInstances
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
getInstancesBuilder
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
getInstancesOrBuilder
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1;- Specified by:
getInstancesOrBuilderin interfaceListInstancesResponseOrBuilder
-
getInstancesOrBuilderList
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1;- Specified by:
getInstancesOrBuilderListin interfaceListInstancesResponseOrBuilder
-
addInstancesBuilder
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
addInstancesBuilder
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
getInstancesBuilderList
The list of requested instances.
repeated .google.spanner.admin.instance.v1.Instance instances = 1; -
getNextPageToken
`next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.
string next_page_token = 2;- Specified by:
getNextPageTokenin interfaceListInstancesResponseOrBuilder- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()`next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.
string next_page_token = 2;- Specified by:
getNextPageTokenBytesin interfaceListInstancesResponseOrBuilder- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
`next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.
string next_page_token = 2;- Parameters:
value- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
`next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.
string next_page_token = 2;- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
`next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.
string next_page_token = 2;- Parameters:
value- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
getUnreachableList
public com.google.protobuf.ProtocolStringList getUnreachableList()The list of unreachable instances. It includes the names of instances whose metadata could not be retrieved within [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
repeated string unreachable = 3;- Specified by:
getUnreachableListin interfaceListInstancesResponseOrBuilder- Returns:
- A list containing the unreachable.
-
getUnreachableCount
public int getUnreachableCount()The list of unreachable instances. It includes the names of instances whose metadata could not be retrieved within [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
repeated string unreachable = 3;- Specified by:
getUnreachableCountin interfaceListInstancesResponseOrBuilder- Returns:
- The count of unreachable.
-
getUnreachable
The list of unreachable instances. It includes the names of instances whose metadata could not be retrieved within [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
repeated string unreachable = 3;- Specified by:
getUnreachablein interfaceListInstancesResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The unreachable at the given index.
-
getUnreachableBytes
public com.google.protobuf.ByteString getUnreachableBytes(int index) The list of unreachable instances. It includes the names of instances whose metadata could not be retrieved within [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
repeated string unreachable = 3;- Specified by:
getUnreachableBytesin interfaceListInstancesResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the unreachable at the given index.
-
setUnreachable
The list of unreachable instances. It includes the names of instances whose metadata could not be retrieved within [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
repeated string unreachable = 3;- Parameters:
index- The index to set the value at.value- The unreachable to set.- Returns:
- This builder for chaining.
-
addUnreachable
The list of unreachable instances. It includes the names of instances whose metadata could not be retrieved within [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
repeated string unreachable = 3;- Parameters:
value- The unreachable to add.- Returns:
- This builder for chaining.
-
addAllUnreachable
The list of unreachable instances. It includes the names of instances whose metadata could not be retrieved within [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
repeated string unreachable = 3;- Parameters:
values- The unreachable to add.- Returns:
- This builder for chaining.
-
clearUnreachable
The list of unreachable instances. It includes the names of instances whose metadata could not be retrieved within [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
repeated string unreachable = 3;- Returns:
- This builder for chaining.
-
addUnreachableBytes
The list of unreachable instances. It includes the names of instances whose metadata could not be retrieved within [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
repeated string unreachable = 3;- Parameters:
value- The bytes of the unreachable to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListInstancesResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
mergeUnknownFields
public final ListInstancesResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-