Class Network (2.62.0)

publicfinalclass NetworkextendsGeneratedMessageV3implementsNetworkOrBuilder

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

Protobuf type google.appengine.v1.Network

Implements

NetworkOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

FORWARDED_PORTS_FIELD_NUMBER

publicstaticfinalintFORWARDED_PORTS_FIELD_NUMBER
Field Value
Type Description
int

INSTANCE_TAG_FIELD_NUMBER

publicstaticfinalintINSTANCE_TAG_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

SESSION_AFFINITY_FIELD_NUMBER

publicstaticfinalintSESSION_AFFINITY_FIELD_NUMBER
Field Value
Type Description
int

SUBNETWORK_NAME_FIELD_NUMBER

publicstaticfinalintSUBNETWORK_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticNetworkgetDefaultInstance()
Returns
Type Description
Network

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticNetwork.BuildernewBuilder()
Returns
Type Description
Network.Builder

newBuilder(Network prototype)

publicstaticNetwork.BuildernewBuilder(Networkprototype)
Parameter
Name Description
prototype Network
Returns
Type Description
Network.Builder

parseDelimitedFrom(InputStream input)

publicstaticNetworkparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticNetworkparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticNetworkparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticNetworkparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticNetworkparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticNetworkparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Network>parser()
Returns
Type Description
Parser<Network>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicNetworkgetDefaultInstanceForType()
Returns
Type Description
Network

getForwardedPorts(int index)

publicStringgetForwardedPorts(intindex)

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
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The forwardedPorts at the given index.

getForwardedPortsBytes(int index)

publicByteStringgetForwardedPortsBytes(intindex)

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
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the forwardedPorts at the given index.

getForwardedPortsCount()

publicintgetForwardedPortsCount()

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
Type Description
int

The count of forwardedPorts.

getForwardedPortsList()

publicProtocolStringListgetForwardedPortsList()

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
Type Description
ProtocolStringList

A list containing the forwardedPorts.

getInstanceTag()

publicStringgetInstanceTag()

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

string instance_tag = 2;

Returns
Type Description
String

The instanceTag.

getInstanceTagBytes()

publicByteStringgetInstanceTagBytes()

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

string instance_tag = 2;

Returns
Type Description
ByteString

The bytes for instanceTag.

getName()

publicStringgetName()

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
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

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
Type Description
ByteString

The bytes for name.

getParserForType()

publicParser<Network>getParserForType()
Returns
Type Description
Parser<Network>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSessionAffinity()

publicbooleangetSessionAffinity()

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

bool session_affinity = 5;

Returns
Type Description
boolean

The sessionAffinity.

getSubnetworkName()

publicStringgetSubnetworkName()

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
Type Description
String

The subnetworkName.

getSubnetworkNameBytes()

publicByteStringgetSubnetworkNameBytes()

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
Type Description
ByteString

The bytes for subnetworkName.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicNetwork.BuildernewBuilderForType()
Returns
Type Description
Network.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedNetwork.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Network.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicNetwork.BuildertoBuilder()
Returns
Type Description
Network.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.