Class AcceleratorType.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AcceleratorType.Builder>
com.google.cloud.tpu.v2.AcceleratorType.Builder
All Implemented Interfaces:
AcceleratorTypeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AcceleratorType

public static final class AcceleratorType.Builder extends com.google.protobuf.GeneratedMessage.Builder<AcceleratorType.Builder> implements AcceleratorTypeOrBuilder
 A accelerator type that a Node can be configured with.
 
Protobuf type google.cloud.tpu.v2.AcceleratorType
  • 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<AcceleratorType.Builder>
    • clear

      public AcceleratorType.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<AcceleratorType.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<AcceleratorType.Builder>
    • getDefaultInstanceForType

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

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

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

      public AcceleratorType.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<AcceleratorType.Builder>
    • mergeFrom

      public AcceleratorType.Builder mergeFrom(AcceleratorType other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AcceleratorType.Builder>
    • mergeFrom

      public AcceleratorType.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<AcceleratorType.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The resource name.
       
      string name = 1;
      Specified by:
      getName in interface AcceleratorTypeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name.
       
      string name = 1;
      Specified by:
      getNameBytes in interface AcceleratorTypeOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AcceleratorType.Builder setName(String value)
       The resource name.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AcceleratorType.Builder clearName()
       The resource name.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public AcceleratorType.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       The accelerator type.
       
      string type = 2;
      Specified by:
      getType in interface AcceleratorTypeOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The accelerator type.
       
      string type = 2;
      Specified by:
      getTypeBytes in interface AcceleratorTypeOrBuilder
      Returns:
      The bytes for type.
    • setType

      public AcceleratorType.Builder setType(String value)
       The accelerator type.
       
      string type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public AcceleratorType.Builder clearType()
       The accelerator type.
       
      string type = 2;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public AcceleratorType.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The accelerator type.
       
      string type = 2;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getAcceleratorConfigsList

      public List<AcceleratorConfig> getAcceleratorConfigsList()
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
      Specified by:
      getAcceleratorConfigsList in interface AcceleratorTypeOrBuilder
    • getAcceleratorConfigsCount

      public int getAcceleratorConfigsCount()
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
      Specified by:
      getAcceleratorConfigsCount in interface AcceleratorTypeOrBuilder
    • getAcceleratorConfigs

      public AcceleratorConfig getAcceleratorConfigs(int index)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
      Specified by:
      getAcceleratorConfigs in interface AcceleratorTypeOrBuilder
    • setAcceleratorConfigs

      public AcceleratorType.Builder setAcceleratorConfigs(int index, AcceleratorConfig value)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • setAcceleratorConfigs

      public AcceleratorType.Builder setAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • addAcceleratorConfigs

      public AcceleratorType.Builder addAcceleratorConfigs(AcceleratorConfig value)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • addAcceleratorConfigs

      public AcceleratorType.Builder addAcceleratorConfigs(int index, AcceleratorConfig value)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • addAcceleratorConfigs

      public AcceleratorType.Builder addAcceleratorConfigs(AcceleratorConfig.Builder builderForValue)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • addAcceleratorConfigs

      public AcceleratorType.Builder addAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • addAllAcceleratorConfigs

      public AcceleratorType.Builder addAllAcceleratorConfigs(Iterable<? extends AcceleratorConfig> values)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • clearAcceleratorConfigs

      public AcceleratorType.Builder clearAcceleratorConfigs()
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • removeAcceleratorConfigs

      public AcceleratorType.Builder removeAcceleratorConfigs(int index)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • getAcceleratorConfigsBuilder

      public AcceleratorConfig.Builder getAcceleratorConfigsBuilder(int index)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • getAcceleratorConfigsOrBuilder

      public AcceleratorConfigOrBuilder getAcceleratorConfigsOrBuilder(int index)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
      Specified by:
      getAcceleratorConfigsOrBuilder in interface AcceleratorTypeOrBuilder
    • getAcceleratorConfigsOrBuilderList

      public List<? extends AcceleratorConfigOrBuilder> getAcceleratorConfigsOrBuilderList()
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
      Specified by:
      getAcceleratorConfigsOrBuilderList in interface AcceleratorTypeOrBuilder
    • addAcceleratorConfigsBuilder

      public AcceleratorConfig.Builder addAcceleratorConfigsBuilder()
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • addAcceleratorConfigsBuilder

      public AcceleratorConfig.Builder addAcceleratorConfigsBuilder(int index)
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
    • getAcceleratorConfigsBuilderList

      public List<AcceleratorConfig.Builder> getAcceleratorConfigsBuilderList()
       The accelerator config.
       
      repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;