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.cloud.memcache.v1beta2.ListInstancesResponse.Builder
-
- All Implemented Interfaces:
ListInstancesResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ListInstancesResponse
public static final class ListInstancesResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder> implements ListInstancesResponseOrBuilder
Response for [ListInstances][google.cloud.memcache.v1beta2.CloudMemcache.ListInstances].
Protobuf typegoogle.cloud.memcache.v1beta2.ListInstancesResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListInstancesResponse.Builder
addAllResources(Iterable<? extends Instance> values)
A list of Memcached instances in the project in the specified location, or across all locations.ListInstancesResponse.Builder
addAllUnreachable(Iterable<String> values)
Locations that could not be reached.ListInstancesResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListInstancesResponse.Builder
addResources(int index, Instance value)
A list of Memcached instances in the project in the specified location, or across all locations.ListInstancesResponse.Builder
addResources(int index, Instance.Builder builderForValue)
A list of Memcached instances in the project in the specified location, or across all locations.ListInstancesResponse.Builder
addResources(Instance value)
A list of Memcached instances in the project in the specified location, or across all locations.ListInstancesResponse.Builder
addResources(Instance.Builder builderForValue)
A list of Memcached instances in the project in the specified location, or across all locations.Instance.Builder
addResourcesBuilder()
A list of Memcached instances in the project in the specified location, or across all locations.Instance.Builder
addResourcesBuilder(int index)
A list of Memcached instances in the project in the specified location, or across all locations.ListInstancesResponse.Builder
addUnreachable(String value)
Locations that could not be reached.ListInstancesResponse.Builder
addUnreachableBytes(com.google.protobuf.ByteString value)
Locations that could not be reached.ListInstancesResponse
build()
ListInstancesResponse
buildPartial()
ListInstancesResponse.Builder
clear()
ListInstancesResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListInstancesResponse.Builder
clearNextPageToken()
Token to retrieve the next page of results, or empty if there are no more results in the list.ListInstancesResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListInstancesResponse.Builder
clearResources()
A list of Memcached instances in the project in the specified location, or across all locations.ListInstancesResponse.Builder
clearUnreachable()
Locations that could not be reached.ListInstancesResponse.Builder
clone()
ListInstancesResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNextPageToken()
Token to retrieve the next page of results, or empty if there are no more results in the list.com.google.protobuf.ByteString
getNextPageTokenBytes()
Token to retrieve the next page of results, or empty if there are no more results in the list.Instance
getResources(int index)
A list of Memcached instances in the project in the specified location, or across all locations.Instance.Builder
getResourcesBuilder(int index)
A list of Memcached instances in the project in the specified location, or across all locations.List<Instance.Builder>
getResourcesBuilderList()
A list of Memcached instances in the project in the specified location, or across all locations.int
getResourcesCount()
A list of Memcached instances in the project in the specified location, or across all locations.List<Instance>
getResourcesList()
A list of Memcached instances in the project in the specified location, or across all locations.InstanceOrBuilder
getResourcesOrBuilder(int index)
A list of Memcached instances in the project in the specified location, or across all locations.List<? extends InstanceOrBuilder>
getResourcesOrBuilderList()
A list of Memcached instances in the project in the specified location, or across all locations.String
getUnreachable(int index)
Locations that could not be reached.com.google.protobuf.ByteString
getUnreachableBytes(int index)
Locations that could not be reached.int
getUnreachableCount()
Locations that could not be reached.com.google.protobuf.ProtocolStringList
getUnreachableList()
Locations that could not be reached.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListInstancesResponse.Builder
mergeFrom(ListInstancesResponse other)
ListInstancesResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListInstancesResponse.Builder
mergeFrom(com.google.protobuf.Message other)
ListInstancesResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListInstancesResponse.Builder
removeResources(int index)
A list of Memcached instances in the project in the specified location, or across all locations.ListInstancesResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListInstancesResponse.Builder
setNextPageToken(String value)
Token to retrieve the next page of results, or empty if there are no more results in the list.ListInstancesResponse.Builder
setNextPageTokenBytes(com.google.protobuf.ByteString value)
Token to retrieve the next page of results, or empty if there are no more results in the list.ListInstancesResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ListInstancesResponse.Builder
setResources(int index, Instance value)
A list of Memcached instances in the project in the specified location, or across all locations.ListInstancesResponse.Builder
setResources(int index, Instance.Builder builderForValue)
A list of Memcached instances in the project in the specified location, or across all locations.ListInstancesResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListInstancesResponse.Builder
setUnreachable(int index, String value)
Locations that could not be reached.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
clear
public ListInstancesResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
getDefaultInstanceForType
public ListInstancesResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListInstancesResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListInstancesResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListInstancesResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
setField
public ListInstancesResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
clearField
public ListInstancesResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
clearOneof
public ListInstancesResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
setRepeatedField
public ListInstancesResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
addRepeatedField
public ListInstancesResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
mergeFrom
public ListInstancesResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListInstancesResponse.Builder>
-
mergeFrom
public ListInstancesResponse.Builder mergeFrom(ListInstancesResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListInstancesResponse.Builder>
- Throws:
IOException
-
getResourcesList
public List<Instance> getResourcesList()
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
- Specified by:
getResourcesList
in interfaceListInstancesResponseOrBuilder
-
getResourcesCount
public int getResourcesCount()
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
- Specified by:
getResourcesCount
in interfaceListInstancesResponseOrBuilder
-
getResources
public Instance getResources(int index)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
- Specified by:
getResources
in interfaceListInstancesResponseOrBuilder
-
setResources
public ListInstancesResponse.Builder setResources(int index, Instance value)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
setResources
public ListInstancesResponse.Builder setResources(int index, Instance.Builder builderForValue)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
addResources
public ListInstancesResponse.Builder addResources(Instance value)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
addResources
public ListInstancesResponse.Builder addResources(int index, Instance value)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
addResources
public ListInstancesResponse.Builder addResources(Instance.Builder builderForValue)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
addResources
public ListInstancesResponse.Builder addResources(int index, Instance.Builder builderForValue)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
addAllResources
public ListInstancesResponse.Builder addAllResources(Iterable<? extends Instance> values)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
clearResources
public ListInstancesResponse.Builder clearResources()
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
removeResources
public ListInstancesResponse.Builder removeResources(int index)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
getResourcesBuilder
public Instance.Builder getResourcesBuilder(int index)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
getResourcesOrBuilder
public InstanceOrBuilder getResourcesOrBuilder(int index)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
- Specified by:
getResourcesOrBuilder
in interfaceListInstancesResponseOrBuilder
-
getResourcesOrBuilderList
public List<? extends InstanceOrBuilder> getResourcesOrBuilderList()
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
- Specified by:
getResourcesOrBuilderList
in interfaceListInstancesResponseOrBuilder
-
addResourcesBuilder
public Instance.Builder addResourcesBuilder()
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
addResourcesBuilder
public Instance.Builder addResourcesBuilder(int index)
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
getResourcesBuilderList
public List<Instance.Builder> getResourcesBuilderList()
A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.
repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
-
getNextPageToken
public String getNextPageToken()
Token to retrieve the next page of results, or empty if there are no more results in the list.
string next_page_token = 2;
- Specified by:
getNextPageToken
in interfaceListInstancesResponseOrBuilder
- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()
Token to retrieve the next page of results, or empty if there are no more results in the list.
string next_page_token = 2;
- Specified by:
getNextPageTokenBytes
in interfaceListInstancesResponseOrBuilder
- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
public ListInstancesResponse.Builder setNextPageToken(String value)
Token to retrieve the next page of results, or empty if there are no more results in the list.
string next_page_token = 2;
- Parameters:
value
- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
public ListInstancesResponse.Builder clearNextPageToken()
Token to retrieve the next page of results, or empty if there are no more results in the list.
string next_page_token = 2;
- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
public ListInstancesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
Token to retrieve the next page of results, or empty if there are no more results in the list.
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()
Locations that could not be reached.
repeated string unreachable = 3;
- Specified by:
getUnreachableList
in interfaceListInstancesResponseOrBuilder
- Returns:
- A list containing the unreachable.
-
getUnreachableCount
public int getUnreachableCount()
Locations that could not be reached.
repeated string unreachable = 3;
- Specified by:
getUnreachableCount
in interfaceListInstancesResponseOrBuilder
- Returns:
- The count of unreachable.
-
getUnreachable
public String getUnreachable(int index)
Locations that could not be reached.
repeated string unreachable = 3;
- Specified by:
getUnreachable
in 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)
Locations that could not be reached.
repeated string unreachable = 3;
- Specified by:
getUnreachableBytes
in interfaceListInstancesResponseOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the unreachable at the given index.
-
setUnreachable
public ListInstancesResponse.Builder setUnreachable(int index, String value)
Locations that could not be reached.
repeated string unreachable = 3;
- Parameters:
index
- The index to set the value at.value
- The unreachable to set.- Returns:
- This builder for chaining.
-
addUnreachable
public ListInstancesResponse.Builder addUnreachable(String value)
Locations that could not be reached.
repeated string unreachable = 3;
- Parameters:
value
- The unreachable to add.- Returns:
- This builder for chaining.
-
addAllUnreachable
public ListInstancesResponse.Builder addAllUnreachable(Iterable<String> values)
Locations that could not be reached.
repeated string unreachable = 3;
- Parameters:
values
- The unreachable to add.- Returns:
- This builder for chaining.
-
clearUnreachable
public ListInstancesResponse.Builder clearUnreachable()
Locations that could not be reached.
repeated string unreachable = 3;
- Returns:
- This builder for chaining.
-
addUnreachableBytes
public ListInstancesResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
Locations that could not be reached.
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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
mergeUnknownFields
public final ListInstancesResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListInstancesResponse.Builder>
-
-