Class DataDiskAssignment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataDiskAssignment.Builder>
com.google.dataflow.v1beta3.DataDiskAssignment.Builder
All Implemented Interfaces:
DataDiskAssignmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataDiskAssignment

public static final class DataDiskAssignment.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataDiskAssignment.Builder> implements DataDiskAssignmentOrBuilder
 Data disk assignment for a given VM instance.
 
Protobuf type google.dataflow.v1beta3.DataDiskAssignment
  • 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<DataDiskAssignment.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<DataDiskAssignment.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<DataDiskAssignment.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DataDiskAssignment.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<DataDiskAssignment.Builder>
      Throws:
      IOException
    • getVmInstance

      public String getVmInstance()
       VM instance name the data disks mounted to, for example
       "myproject-1014-104817-4c2-harness-0".
       
      string vm_instance = 1;
      Specified by:
      getVmInstance in interface DataDiskAssignmentOrBuilder
      Returns:
      The vmInstance.
    • getVmInstanceBytes

      public com.google.protobuf.ByteString getVmInstanceBytes()
       VM instance name the data disks mounted to, for example
       "myproject-1014-104817-4c2-harness-0".
       
      string vm_instance = 1;
      Specified by:
      getVmInstanceBytes in interface DataDiskAssignmentOrBuilder
      Returns:
      The bytes for vmInstance.
    • setVmInstance

      public DataDiskAssignment.Builder setVmInstance(String value)
       VM instance name the data disks mounted to, for example
       "myproject-1014-104817-4c2-harness-0".
       
      string vm_instance = 1;
      Parameters:
      value - The vmInstance to set.
      Returns:
      This builder for chaining.
    • clearVmInstance

      public DataDiskAssignment.Builder clearVmInstance()
       VM instance name the data disks mounted to, for example
       "myproject-1014-104817-4c2-harness-0".
       
      string vm_instance = 1;
      Returns:
      This builder for chaining.
    • setVmInstanceBytes

      public DataDiskAssignment.Builder setVmInstanceBytes(com.google.protobuf.ByteString value)
       VM instance name the data disks mounted to, for example
       "myproject-1014-104817-4c2-harness-0".
       
      string vm_instance = 1;
      Parameters:
      value - The bytes for vmInstance to set.
      Returns:
      This builder for chaining.
    • getDataDisksList

      public com.google.protobuf.ProtocolStringList getDataDisksList()
       Mounted data disks. The order is important a data disk's 0-based index in
       this list defines which persistent directory the disk is mounted to, for
       example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" },
       { "myproject-1014-104817-4c2-harness-0-disk-1" }.
       
      repeated string data_disks = 2;
      Specified by:
      getDataDisksList in interface DataDiskAssignmentOrBuilder
      Returns:
      A list containing the dataDisks.
    • getDataDisksCount

      public int getDataDisksCount()
       Mounted data disks. The order is important a data disk's 0-based index in
       this list defines which persistent directory the disk is mounted to, for
       example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" },
       { "myproject-1014-104817-4c2-harness-0-disk-1" }.
       
      repeated string data_disks = 2;
      Specified by:
      getDataDisksCount in interface DataDiskAssignmentOrBuilder
      Returns:
      The count of dataDisks.
    • getDataDisks

      public String getDataDisks(int index)
       Mounted data disks. The order is important a data disk's 0-based index in
       this list defines which persistent directory the disk is mounted to, for
       example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" },
       { "myproject-1014-104817-4c2-harness-0-disk-1" }.
       
      repeated string data_disks = 2;
      Specified by:
      getDataDisks in interface DataDiskAssignmentOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dataDisks at the given index.
    • getDataDisksBytes

      public com.google.protobuf.ByteString getDataDisksBytes(int index)
       Mounted data disks. The order is important a data disk's 0-based index in
       this list defines which persistent directory the disk is mounted to, for
       example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" },
       { "myproject-1014-104817-4c2-harness-0-disk-1" }.
       
      repeated string data_disks = 2;
      Specified by:
      getDataDisksBytes in interface DataDiskAssignmentOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dataDisks at the given index.
    • setDataDisks

      public DataDiskAssignment.Builder setDataDisks(int index, String value)
       Mounted data disks. The order is important a data disk's 0-based index in
       this list defines which persistent directory the disk is mounted to, for
       example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" },
       { "myproject-1014-104817-4c2-harness-0-disk-1" }.
       
      repeated string data_disks = 2;
      Parameters:
      index - The index to set the value at.
      value - The dataDisks to set.
      Returns:
      This builder for chaining.
    • addDataDisks

      public DataDiskAssignment.Builder addDataDisks(String value)
       Mounted data disks. The order is important a data disk's 0-based index in
       this list defines which persistent directory the disk is mounted to, for
       example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" },
       { "myproject-1014-104817-4c2-harness-0-disk-1" }.
       
      repeated string data_disks = 2;
      Parameters:
      value - The dataDisks to add.
      Returns:
      This builder for chaining.
    • addAllDataDisks

      public DataDiskAssignment.Builder addAllDataDisks(Iterable<String> values)
       Mounted data disks. The order is important a data disk's 0-based index in
       this list defines which persistent directory the disk is mounted to, for
       example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" },
       { "myproject-1014-104817-4c2-harness-0-disk-1" }.
       
      repeated string data_disks = 2;
      Parameters:
      values - The dataDisks to add.
      Returns:
      This builder for chaining.
    • clearDataDisks

      public DataDiskAssignment.Builder clearDataDisks()
       Mounted data disks. The order is important a data disk's 0-based index in
       this list defines which persistent directory the disk is mounted to, for
       example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" },
       { "myproject-1014-104817-4c2-harness-0-disk-1" }.
       
      repeated string data_disks = 2;
      Returns:
      This builder for chaining.
    • addDataDisksBytes

      public DataDiskAssignment.Builder addDataDisksBytes(com.google.protobuf.ByteString value)
       Mounted data disks. The order is important a data disk's 0-based index in
       this list defines which persistent directory the disk is mounted to, for
       example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" },
       { "myproject-1014-104817-4c2-harness-0-disk-1" }.
       
      repeated string data_disks = 2;
      Parameters:
      value - The bytes of the dataDisks to add.
      Returns:
      This builder for chaining.