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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ListAcceleratorTypesResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ListAcceleratorTypesResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ListAcceleratorTypesResponse.Builder>
    • getDefaultInstanceForType

      public ListAcceleratorTypesResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ListAcceleratorTypesResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ListAcceleratorTypesResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListAcceleratorTypesResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListAcceleratorTypesResponse.Builder>
      Throws:
      IOException
    • getAcceleratorTypesList

      public List<AcceleratorType> getAcceleratorTypesList()
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
      Specified by:
      getAcceleratorTypesList in interface ListAcceleratorTypesResponseOrBuilder
    • getAcceleratorTypesCount

      public int getAcceleratorTypesCount()
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
      Specified by:
      getAcceleratorTypesCount in interface ListAcceleratorTypesResponseOrBuilder
    • getAcceleratorTypes

      public AcceleratorType getAcceleratorTypes(int index)
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
      Specified by:
      getAcceleratorTypes in interface ListAcceleratorTypesResponseOrBuilder
    • setAcceleratorTypes

      public ListAcceleratorTypesResponse.Builder setAcceleratorTypes(int index, AcceleratorType value)
       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

      public ListAcceleratorTypesResponse.Builder addAcceleratorTypes(AcceleratorType value)
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
    • addAcceleratorTypes

      public ListAcceleratorTypesResponse.Builder addAcceleratorTypes(int index, AcceleratorType value)
       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

      public ListAcceleratorTypesResponse.Builder clearAcceleratorTypes()
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
    • removeAcceleratorTypes

      public ListAcceleratorTypesResponse.Builder removeAcceleratorTypes(int index)
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
    • getAcceleratorTypesBuilder

      public AcceleratorType.Builder getAcceleratorTypesBuilder(int index)
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
    • getAcceleratorTypesOrBuilder

      public AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder(int index)
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
      Specified by:
      getAcceleratorTypesOrBuilder in interface ListAcceleratorTypesResponseOrBuilder
    • getAcceleratorTypesOrBuilderList

      public List<? extends AcceleratorTypeOrBuilder> getAcceleratorTypesOrBuilderList()
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
      Specified by:
      getAcceleratorTypesOrBuilderList in interface ListAcceleratorTypesResponseOrBuilder
    • addAcceleratorTypesBuilder

      public AcceleratorType.Builder addAcceleratorTypesBuilder()
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
    • addAcceleratorTypesBuilder

      public AcceleratorType.Builder addAcceleratorTypesBuilder(int index)
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
    • getAcceleratorTypesBuilderList

      public List<AcceleratorType.Builder> getAcceleratorTypesBuilderList()
       The listed nodes.
       
      repeated .google.cloud.tpu.v2.AcceleratorType accelerator_types = 1;
    • getNextPageToken

      public String getNextPageToken()
       The next page token or empty if none.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListAcceleratorTypesResponseOrBuilder
      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:
      getNextPageTokenBytes in interface ListAcceleratorTypesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListAcceleratorTypesResponse.Builder setNextPageToken(String value)
       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

      public ListAcceleratorTypesResponse.Builder 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:
      getUnreachableList in interface ListAcceleratorTypesResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableCount in interface ListAcceleratorTypesResponseOrBuilder
      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 interface ListAcceleratorTypesResponseOrBuilder
      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 interface ListAcceleratorTypesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

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