Class AllocationPolicy.NetworkInterface.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.NetworkInterface.Builder>
com.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.Builder
All Implemented Interfaces:
AllocationPolicy.NetworkInterfaceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AllocationPolicy.NetworkInterface

public static final class AllocationPolicy.NetworkInterface.Builder extends com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.NetworkInterface.Builder> implements AllocationPolicy.NetworkInterfaceOrBuilder
 A network interface.
 
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface
  • 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<AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
    • getDefaultInstanceForType

      public AllocationPolicy.NetworkInterface 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 AllocationPolicy.NetworkInterface buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
      Throws:
      IOException
    • getNetwork

      public String getNetwork()
       The URL of an existing network resource.
       You can specify the network as a full or partial URL.
      
       For example, the following are all valid URLs:
      
       * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
       * projects/{project}/global/networks/{network}
       * global/networks/{network}
       
      string network = 1;
      Specified by:
      getNetwork in interface AllocationPolicy.NetworkInterfaceOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       The URL of an existing network resource.
       You can specify the network as a full or partial URL.
      
       For example, the following are all valid URLs:
      
       * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
       * projects/{project}/global/networks/{network}
       * global/networks/{network}
       
      string network = 1;
      Specified by:
      getNetworkBytes in interface AllocationPolicy.NetworkInterfaceOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

       The URL of an existing network resource.
       You can specify the network as a full or partial URL.
      
       For example, the following are all valid URLs:
      
       * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
       * projects/{project}/global/networks/{network}
       * global/networks/{network}
       
      string network = 1;
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

       The URL of an existing network resource.
       You can specify the network as a full or partial URL.
      
       For example, the following are all valid URLs:
      
       * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
       * projects/{project}/global/networks/{network}
       * global/networks/{network}
       
      string network = 1;
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public AllocationPolicy.NetworkInterface.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       The URL of an existing network resource.
       You can specify the network as a full or partial URL.
      
       For example, the following are all valid URLs:
      
       * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
       * projects/{project}/global/networks/{network}
       * global/networks/{network}
       
      string network = 1;
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • getSubnetwork

      public String getSubnetwork()
       The URL of an existing subnetwork resource in the network.
       You can specify the subnetwork as a full or partial URL.
      
       For example, the following are all valid URLs:
      
       * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
       * projects/{project}/regions/{region}/subnetworks/{subnetwork}
       * regions/{region}/subnetworks/{subnetwork}
       
      string subnetwork = 2;
      Specified by:
      getSubnetwork in interface AllocationPolicy.NetworkInterfaceOrBuilder
      Returns:
      The subnetwork.
    • getSubnetworkBytes

      public com.google.protobuf.ByteString getSubnetworkBytes()
       The URL of an existing subnetwork resource in the network.
       You can specify the subnetwork as a full or partial URL.
      
       For example, the following are all valid URLs:
      
       * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
       * projects/{project}/regions/{region}/subnetworks/{subnetwork}
       * regions/{region}/subnetworks/{subnetwork}
       
      string subnetwork = 2;
      Specified by:
      getSubnetworkBytes in interface AllocationPolicy.NetworkInterfaceOrBuilder
      Returns:
      The bytes for subnetwork.
    • setSubnetwork

      public AllocationPolicy.NetworkInterface.Builder setSubnetwork(String value)
       The URL of an existing subnetwork resource in the network.
       You can specify the subnetwork as a full or partial URL.
      
       For example, the following are all valid URLs:
      
       * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
       * projects/{project}/regions/{region}/subnetworks/{subnetwork}
       * regions/{region}/subnetworks/{subnetwork}
       
      string subnetwork = 2;
      Parameters:
      value - The subnetwork to set.
      Returns:
      This builder for chaining.
    • clearSubnetwork

       The URL of an existing subnetwork resource in the network.
       You can specify the subnetwork as a full or partial URL.
      
       For example, the following are all valid URLs:
      
       * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
       * projects/{project}/regions/{region}/subnetworks/{subnetwork}
       * regions/{region}/subnetworks/{subnetwork}
       
      string subnetwork = 2;
      Returns:
      This builder for chaining.
    • setSubnetworkBytes

      public AllocationPolicy.NetworkInterface.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
       The URL of an existing subnetwork resource in the network.
       You can specify the subnetwork as a full or partial URL.
      
       For example, the following are all valid URLs:
      
       * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
       * projects/{project}/regions/{region}/subnetworks/{subnetwork}
       * regions/{region}/subnetworks/{subnetwork}
       
      string subnetwork = 2;
      Parameters:
      value - The bytes for subnetwork to set.
      Returns:
      This builder for chaining.
    • getNoExternalIpAddress

      public boolean getNoExternalIpAddress()
       Default is false (with an external IP address). Required if
       no external public IP address is attached to the VM. If no external
       public IP address, additional configuration is required to allow the VM
       to access Google Services. See
       https://cloud.google.com/vpc/docs/configure-private-google-access and
       https://cloud.google.com/nat/docs/gce-example#create-nat for more
       information.
       
      bool no_external_ip_address = 3;
      Specified by:
      getNoExternalIpAddress in interface AllocationPolicy.NetworkInterfaceOrBuilder
      Returns:
      The noExternalIpAddress.
    • setNoExternalIpAddress

      public AllocationPolicy.NetworkInterface.Builder setNoExternalIpAddress(boolean value)
       Default is false (with an external IP address). Required if
       no external public IP address is attached to the VM. If no external
       public IP address, additional configuration is required to allow the VM
       to access Google Services. See
       https://cloud.google.com/vpc/docs/configure-private-google-access and
       https://cloud.google.com/nat/docs/gce-example#create-nat for more
       information.
       
      bool no_external_ip_address = 3;
      Parameters:
      value - The noExternalIpAddress to set.
      Returns:
      This builder for chaining.
    • clearNoExternalIpAddress

      public AllocationPolicy.NetworkInterface.Builder clearNoExternalIpAddress()
       Default is false (with an external IP address). Required if
       no external public IP address is attached to the VM. If no external
       public IP address, additional configuration is required to allow the VM
       to access Google Services. See
       https://cloud.google.com/vpc/docs/configure-private-google-access and
       https://cloud.google.com/nat/docs/gce-example#create-nat for more
       information.
       
      bool no_external_ip_address = 3;
      Returns:
      This builder for chaining.