Package com.google.cloud.tpu.v2
Class ListAcceleratorTypesResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListAcceleratorTypesResponse.Builder>
com.google.cloud.tpu.v2.ListAcceleratorTypesResponse.Builder
- All Implemented Interfaces:
ListAcceleratorTypesResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ListAcceleratorTypesResponse
public static final class ListAcceleratorTypesResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ListAcceleratorTypesResponse.Builder>
implements ListAcceleratorTypesResponseOrBuilder
Response for [ListAcceleratorTypes][google.cloud.tpu.v2.Tpu.ListAcceleratorTypes].Protobuf type
google.cloud.tpu.v2.ListAcceleratorTypesResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAcceleratorTypes(int index, AcceleratorType value) The listed nodes.addAcceleratorTypes(int index, AcceleratorType.Builder builderForValue) The listed nodes.The listed nodes.addAcceleratorTypes(AcceleratorType.Builder builderForValue) The listed nodes.The listed nodes.addAcceleratorTypesBuilder(int index) The listed nodes.addAllAcceleratorTypes(Iterable<? extends AcceleratorType> values) The listed nodes.addAllUnreachable(Iterable<String> values) Locations that could not be reached.addUnreachable(String value) Locations that could not be reached.addUnreachableBytes(com.google.protobuf.ByteString value) Locations that could not be reached.build()clear()The listed nodes.The next page token or empty if none.Locations that could not be reached.getAcceleratorTypes(int index) The listed nodes.getAcceleratorTypesBuilder(int index) The listed nodes.The listed nodes.intThe listed nodes.The listed nodes.getAcceleratorTypesOrBuilder(int index) The listed nodes.List<? extends AcceleratorTypeOrBuilder>The listed nodes.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe next page token or empty if none.com.google.protobuf.ByteStringThe next page token or empty if none.getUnreachable(int index) Locations that could not be reached.com.google.protobuf.ByteStringgetUnreachableBytes(int index) Locations that could not be reached.intLocations that could not be reached.com.google.protobuf.ProtocolStringListLocations that could not be reached.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAcceleratorTypes(int index) The listed nodes.setAcceleratorTypes(int index, AcceleratorType value) The listed nodes.setAcceleratorTypes(int index, AcceleratorType.Builder builderForValue) The listed nodes.setNextPageToken(String value) The next page token or empty if none.setNextPageTokenBytes(com.google.protobuf.ByteString value) The next page token or empty if none.setUnreachable(int index, String value) Locations that could not be reached.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ListAcceleratorTypesResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ListAcceleratorTypesResponse.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.GeneratedMessage.Builder<ListAcceleratorTypesResponse.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListAcceleratorTypesResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ListAcceleratorTypesResponse.Builder>
-
mergeFrom
public ListAcceleratorTypesResponse.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<ListAcceleratorTypesResponse.Builder>- Throws:
IOException
-
getAcceleratorTypesList
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;- Specified by:
getAcceleratorTypesListin interfaceListAcceleratorTypesResponseOrBuilder
-
getAcceleratorTypesCount
public int getAcceleratorTypesCount()The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;- Specified by:
getAcceleratorTypesCountin interfaceListAcceleratorTypesResponseOrBuilder
-
getAcceleratorTypes
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;- Specified by:
getAcceleratorTypesin interfaceListAcceleratorTypesResponseOrBuilder
-
setAcceleratorTypes
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
setAcceleratorTypes
public ListAcceleratorTypesResponse.Builder setAcceleratorTypes(int index, AcceleratorType.Builder builderForValue) The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
addAcceleratorTypes
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
addAcceleratorTypes
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
addAcceleratorTypes
public ListAcceleratorTypesResponse.Builder addAcceleratorTypes(AcceleratorType.Builder builderForValue) The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
addAcceleratorTypes
public ListAcceleratorTypesResponse.Builder addAcceleratorTypes(int index, AcceleratorType.Builder builderForValue) The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
addAllAcceleratorTypes
public ListAcceleratorTypesResponse.Builder addAllAcceleratorTypes(Iterable<? extends AcceleratorType> values) The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
clearAcceleratorTypes
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
removeAcceleratorTypes
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
getAcceleratorTypesBuilder
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
getAcceleratorTypesOrBuilder
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;- Specified by:
getAcceleratorTypesOrBuilderin interfaceListAcceleratorTypesResponseOrBuilder
-
getAcceleratorTypesOrBuilderList
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;- Specified by:
getAcceleratorTypesOrBuilderListin interfaceListAcceleratorTypesResponseOrBuilder
-
addAcceleratorTypesBuilder
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
addAcceleratorTypesBuilder
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
getAcceleratorTypesBuilderList
The listed nodes.
repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1; -
getNextPageToken
The next page token or empty if none.
string next_page_token = 2;- Specified by:
getNextPageTokenin interfaceListAcceleratorTypesResponseOrBuilder- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()The next page token or empty if none.
string next_page_token = 2;- Specified by:
getNextPageTokenBytesin interfaceListAcceleratorTypesResponseOrBuilder- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
The next page token or empty if none.
string next_page_token = 2;- Parameters:
value- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
The next page token or empty if none.
string next_page_token = 2;- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
public ListAcceleratorTypesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) The next page token or empty if none.
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:
getUnreachableListin interfaceListAcceleratorTypesResponseOrBuilder- Returns:
- A list containing the unreachable.
-
getUnreachableCount
public int getUnreachableCount()Locations that could not be reached.
repeated string unreachable = 3;- Specified by:
getUnreachableCountin interfaceListAcceleratorTypesResponseOrBuilder- Returns:
- The count of unreachable.
-
getUnreachable
Locations that could not be reached.
repeated string unreachable = 3;- Specified by:
getUnreachablein interfaceListAcceleratorTypesResponseOrBuilder- 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:
getUnreachableBytesin interfaceListAcceleratorTypesResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the unreachable at the given index.
-
setUnreachable
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
Locations that could not be reached.
repeated string unreachable = 3;- Parameters:
value- The unreachable to add.- Returns:
- This builder for chaining.
-
addAllUnreachable
Locations that could not be reached.
repeated string unreachable = 3;- Parameters:
values- The unreachable to add.- Returns:
- This builder for chaining.
-
clearUnreachable
Locations that could not be reached.
repeated string unreachable = 3;- Returns:
- This builder for chaining.
-
addUnreachableBytes
public ListAcceleratorTypesResponse.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.
-