Class Network (2.39.0)

public final class Network extends GeneratedMessageV3 implements NetworkOrBuilder

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

Protobuf type google.appengine.v1.Network

Implements

NetworkOrBuilder

Static Fields

FORWARDED_PORTS_FIELD_NUMBER

public static final int FORWARDED_PORTS_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCE_TAG_FIELD_NUMBER

public static final int INSTANCE_TAG_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SESSION_AFFINITY_FIELD_NUMBER

public static final int SESSION_AFFINITY_FIELD_NUMBER
Field Value
TypeDescription
int

SUBNETWORK_NAME_FIELD_NUMBER

public static final int SUBNETWORK_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Network getDefaultInstance()
Returns
TypeDescription
Network

getDescriptor()

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

newBuilder()

public static Network.Builder newBuilder()
Returns
TypeDescription
Network.Builder

newBuilder(Network prototype)

public static Network.Builder newBuilder(Network prototype)
Parameter
NameDescription
prototypeNetwork
Returns
TypeDescription
Network.Builder

parseDelimitedFrom(InputStream input)

public static Network parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Network parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Network parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Network parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Network parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Network parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Network> parser()
Returns
TypeDescription
Parser<Network>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Network getDefaultInstanceForType()
Returns
TypeDescription
Network

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.

getParserForType()

public Parser<Network> getParserForType()
Returns
TypeDescription
Parser<Network>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Network.Builder newBuilderForType()
Returns
TypeDescription
Network.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Network.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Network.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Network.Builder toBuilder()
Returns
TypeDescription
Network.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException