Class Network.Builder (2.13.0)

public static final class Network.Builder extends GeneratedMessageV3.Builder<Network.Builder> implements NetworkOrBuilder

Extra network settings. Only applicable in the App Engine flexible environment.

Protobuf type google.appengine.v1.Network

Implements

NetworkOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllForwardedPorts(Iterable<String> values)

public Network.Builder addAllForwardedPorts(Iterable<String> values)

List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.

repeated string forwarded_ports = 1;

Parameter
NameDescription
valuesIterable<String>

The forwardedPorts to add.

Returns
TypeDescription
Network.Builder

This builder for chaining.

addForwardedPorts(String value)

public Network.Builder addForwardedPorts(String value)

List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.

repeated string forwarded_ports = 1;

Parameter
NameDescription
valueString

The forwardedPorts to add.

Returns
TypeDescription
Network.Builder

This builder for chaining.

addForwardedPortsBytes(ByteString value)

public Network.Builder addForwardedPortsBytes(ByteString value)

List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.

repeated string forwarded_ports = 1;

Parameter
NameDescription
valueByteString

The bytes of the forwardedPorts to add.

Returns
TypeDescription
Network.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Network.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Network.Builder
Overrides

build()

public Network build()
Returns
TypeDescription
Network

buildPartial()

public Network buildPartial()
Returns
TypeDescription
Network

clear()

public Network.Builder clear()
Returns
TypeDescription
Network.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Network.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Network.Builder
Overrides

clearForwardedPorts()

public Network.Builder clearForwardedPorts()

List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.

repeated string forwarded_ports = 1;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearInstanceTag()

public Network.Builder clearInstanceTag()

Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.

string instance_tag = 2;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearName()

public Network.Builder clearName()

Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path. Defaults to default.

string name = 3;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Network.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Network.Builder
Overrides

clearSessionAffinity()

public Network.Builder clearSessionAffinity()

Enable session affinity. Only applicable in the App Engine flexible environment.

bool session_affinity = 5;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearSubnetworkName()

public Network.Builder clearSubnetworkName()

Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path. If a subnetwork name is specified, a network name will also be required unless it is for the default network.

  • If the network that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
  • If the network that the instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
  • If the network that the instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork. If specified, the subnetwork must exist in the same region as the App Engine flexible environment application.

string subnetwork_name = 4;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clone()

public Network.Builder clone()
Returns
TypeDescription
Network.Builder
Overrides

getDefaultInstanceForType()

public Network getDefaultInstanceForType()
Returns
TypeDescription
Network

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getForwardedPorts(int index)

public String getForwardedPorts(int index)

List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.

repeated string forwarded_ports = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The forwardedPorts at the given index.

getForwardedPortsBytes(int index)

public ByteString getForwardedPortsBytes(int index)

List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.

repeated string forwarded_ports = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the forwardedPorts at the given index.

getForwardedPortsCount()

public int getForwardedPortsCount()

List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.

repeated string forwarded_ports = 1;

Returns
TypeDescription
int

The count of forwardedPorts.

getForwardedPortsList()

public ProtocolStringList getForwardedPortsList()

List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.

repeated string forwarded_ports = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the forwardedPorts.

getInstanceTag()

public String getInstanceTag()

Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.

string instance_tag = 2;

Returns
TypeDescription
String

The instanceTag.

getInstanceTagBytes()

public ByteString getInstanceTagBytes()

Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.

string instance_tag = 2;

Returns
TypeDescription
ByteString

The bytes for instanceTag.

getName()

public String getName()

Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path. Defaults to default.

string name = 3;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path. Defaults to default.

string name = 3;

Returns
TypeDescription
ByteString

The bytes for name.

getSessionAffinity()

public boolean getSessionAffinity()

Enable session affinity. Only applicable in the App Engine flexible environment.

bool session_affinity = 5;

Returns
TypeDescription
boolean

The sessionAffinity.

getSubnetworkName()

public String getSubnetworkName()

Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path. If a subnetwork name is specified, a network name will also be required unless it is for the default network.

  • If the network that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
  • If the network that the instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
  • If the network that the instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork. If specified, the subnetwork must exist in the same region as the App Engine flexible environment application.

string subnetwork_name = 4;

Returns
TypeDescription
String

The subnetworkName.

getSubnetworkNameBytes()

public ByteString getSubnetworkNameBytes()

Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path. If a subnetwork name is specified, a network name will also be required unless it is for the default network.

  • If the network that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
  • If the network that the instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
  • If the network that the instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork. If specified, the subnetwork must exist in the same region as the App Engine flexible environment application.

string subnetwork_name = 4;

Returns
TypeDescription
ByteString

The bytes for subnetworkName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Network other)

public Network.Builder mergeFrom(Network other)
Parameter
NameDescription
otherNetwork
Returns
TypeDescription
Network.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Network.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Network.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Network.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Network.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Network.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Network.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Network.Builder
Overrides

setForwardedPorts(int index, String value)

public Network.Builder setForwardedPorts(int index, String value)

List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.

repeated string forwarded_ports = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The forwardedPorts to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setInstanceTag(String value)

public Network.Builder setInstanceTag(String value)

Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.

string instance_tag = 2;

Parameter
NameDescription
valueString

The instanceTag to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setInstanceTagBytes(ByteString value)

public Network.Builder setInstanceTagBytes(ByteString value)

Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.

string instance_tag = 2;

Parameter
NameDescription
valueByteString

The bytes for instanceTag to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setName(String value)

public Network.Builder setName(String value)

Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path. Defaults to default.

string name = 3;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Network.Builder setNameBytes(ByteString value)

Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path. Defaults to default.

string name = 3;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Network.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Network.Builder
Overrides

setSessionAffinity(boolean value)

public Network.Builder setSessionAffinity(boolean value)

Enable session affinity. Only applicable in the App Engine flexible environment.

bool session_affinity = 5;

Parameter
NameDescription
valueboolean

The sessionAffinity to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setSubnetworkName(String value)

public Network.Builder setSubnetworkName(String value)

Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path. If a subnetwork name is specified, a network name will also be required unless it is for the default network.

  • If the network that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
  • If the network that the instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
  • If the network that the instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork. If specified, the subnetwork must exist in the same region as the App Engine flexible environment application.

string subnetwork_name = 4;

Parameter
NameDescription
valueString

The subnetworkName to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setSubnetworkNameBytes(ByteString value)

public Network.Builder setSubnetworkNameBytes(ByteString value)

Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path. If a subnetwork name is specified, a network name will also be required unless it is for the default network.

  • If the network that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
  • If the network that the instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
  • If the network that the instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork. If specified, the subnetwork must exist in the same region as the App Engine flexible environment application.

string subnetwork_name = 4;

Parameter
NameDescription
valueByteString

The bytes for subnetworkName to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Network.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Network.Builder
Overrides