Interface AllocationPolicy.NetworkInterfaceOrBuilder (0.95.0)

public static interface AllocationPolicy.NetworkInterfaceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getNetwork()

public abstract 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;

Returns
Type Description
String

The network.

getNetworkBytes()

public abstract 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;

Returns
Type Description
ByteString

The bytes for network.

getNicType()

public abstract AllocationPolicy.NetworkInterface.NicType getNicType()

Optional. The NIC type of the network interface.

optional .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AllocationPolicy.NetworkInterface.NicType

The nicType.

getNicTypeValue()

public abstract int getNicTypeValue()

Optional. The NIC type of the network interface.

optional .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for nicType.

getNoExternalIpAddress()

public abstract 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;

Returns
Type Description
boolean

The noExternalIpAddress.

getSubnetwork()

public abstract 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;

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public abstract 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;

Returns
Type Description
ByteString

The bytes for subnetwork.

hasNicType()

public abstract boolean hasNicType()

Optional. The NIC type of the network interface.

optional .google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the nicType field is set.