Class AllocationPolicy.NetworkInterface

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

public static final class AllocationPolicy.NetworkInterface extends com.google.protobuf.GeneratedMessage implements AllocationPolicy.NetworkInterfaceOrBuilder
 A network interface.
 
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface
See Also:
  • Field Details

    • NETWORK_FIELD_NUMBER

      public static final int NETWORK_FIELD_NUMBER
      See Also:
    • SUBNETWORK_FIELD_NUMBER

      public static final int SUBNETWORK_FIELD_NUMBER
      See Also:
    • NO_EXTERNAL_IP_ADDRESS_FIELD_NUMBER

      public static final int NO_EXTERNAL_IP_ADDRESS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AllocationPolicy.NetworkInterface parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.NetworkInterface parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.NetworkInterface parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.NetworkInterface parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.NetworkInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.NetworkInterface parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.NetworkInterface parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AllocationPolicy.NetworkInterface parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AllocationPolicy.NetworkInterface parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AllocationPolicy.NetworkInterface parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AllocationPolicy.NetworkInterface parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AllocationPolicy.NetworkInterface parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AllocationPolicy.NetworkInterface.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AllocationPolicy.NetworkInterface.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AllocationPolicy.NetworkInterface.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AllocationPolicy.NetworkInterface getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AllocationPolicy.NetworkInterface> parser()
    • getParserForType

      public com.google.protobuf.Parser<AllocationPolicy.NetworkInterface> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AllocationPolicy.NetworkInterface getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder