Package com.google.appengine.v1
Class Network.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
- com.google.appengine.v1.Network.Builder
-
- All Implemented Interfaces:
NetworkOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Network
public static final class Network.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder> implements NetworkOrBuilder
Extra network settings. Only applicable in the App Engine flexible environment.
Protobuf typegoogle.appengine.v1.Network
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Network.Builder
addAllForwardedPorts(Iterable<String> values)
List of ports, or port pairs, to forward from the virtual machine to the application container.Network.Builder
addForwardedPorts(String value)
List of ports, or port pairs, to forward from the virtual machine to the application container.Network.Builder
addForwardedPortsBytes(com.google.protobuf.ByteString value)
List of ports, or port pairs, to forward from the virtual machine to the application container.Network.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Network
build()
Network
buildPartial()
Network.Builder
clear()
Network.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Network.Builder
clearForwardedPorts()
List of ports, or port pairs, to forward from the virtual machine to the application container.Network.Builder
clearInstanceTag()
Tag to apply to the instance during creation.Network.Builder
clearName()
Google Compute Engine network where the virtual machines are created.Network.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Network.Builder
clearSessionAffinity()
Enable session affinity.Network.Builder
clearSubnetworkName()
Google Cloud Platform sub-network where the virtual machines are created.Network.Builder
clone()
Network
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getForwardedPorts(int index)
List of ports, or port pairs, to forward from the virtual machine to the application container.com.google.protobuf.ByteString
getForwardedPortsBytes(int index)
List of ports, or port pairs, to forward from the virtual machine to the application container.int
getForwardedPortsCount()
List of ports, or port pairs, to forward from the virtual machine to the application container.com.google.protobuf.ProtocolStringList
getForwardedPortsList()
List of ports, or port pairs, to forward from the virtual machine to the application container.String
getInstanceTag()
Tag to apply to the instance during creation.com.google.protobuf.ByteString
getInstanceTagBytes()
Tag to apply to the instance during creation.String
getName()
Google Compute Engine network where the virtual machines are created.com.google.protobuf.ByteString
getNameBytes()
Google Compute Engine network where the virtual machines are created.boolean
getSessionAffinity()
Enable session affinity.String
getSubnetworkName()
Google Cloud Platform sub-network where the virtual machines are created.com.google.protobuf.ByteString
getSubnetworkNameBytes()
Google Cloud Platform sub-network where the virtual machines are created.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Network.Builder
mergeFrom(Network other)
Network.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Network.Builder
mergeFrom(com.google.protobuf.Message other)
Network.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Network.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Network.Builder
setForwardedPorts(int index, String value)
List of ports, or port pairs, to forward from the virtual machine to the application container.Network.Builder
setInstanceTag(String value)
Tag to apply to the instance during creation.Network.Builder
setInstanceTagBytes(com.google.protobuf.ByteString value)
Tag to apply to the instance during creation.Network.Builder
setName(String value)
Google Compute Engine network where the virtual machines are created.Network.Builder
setNameBytes(com.google.protobuf.ByteString value)
Google Compute Engine network where the virtual machines are created.Network.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Network.Builder
setSessionAffinity(boolean value)
Enable session affinity.Network.Builder
setSubnetworkName(String value)
Google Cloud Platform sub-network where the virtual machines are created.Network.Builder
setSubnetworkNameBytes(com.google.protobuf.ByteString value)
Google Cloud Platform sub-network where the virtual machines are created.Network.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clear
public Network.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDefaultInstanceForType
public Network getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Network build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Network buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Network.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setField
public Network.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearField
public Network.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearOneof
public Network.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setRepeatedField
public Network.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
addRepeatedField
public Network.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(Network other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Network.Builder>
- Throws:
IOException
-
getForwardedPortsList
public com.google.protobuf.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;
- Specified by:
getForwardedPortsList
in interfaceNetworkOrBuilder
- Returns:
- A list containing the forwardedPorts.
-
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;
- Specified by:
getForwardedPortsCount
in interfaceNetworkOrBuilder
- Returns:
- The count of forwardedPorts.
-
getForwardedPorts
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;
- Specified by:
getForwardedPorts
in interfaceNetworkOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The forwardedPorts at the given index.
-
getForwardedPortsBytes
public com.google.protobuf.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;
- Specified by:
getForwardedPortsBytes
in interfaceNetworkOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the forwardedPorts at the given index.
-
setForwardedPorts
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:
index
- The index to set the value at.value
- The forwardedPorts to set.- Returns:
- This builder for chaining.
-
addForwardedPorts
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;
- Parameters:
value
- The forwardedPorts to add.- Returns:
- This builder for chaining.
-
addAllForwardedPorts
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;
- Parameters:
values
- The forwardedPorts to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addForwardedPortsBytes
public Network.Builder addForwardedPortsBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes of the forwardedPorts to add.- Returns:
- This builder for chaining.
-
getInstanceTag
public String getInstanceTag()
Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
string instance_tag = 2;
- Specified by:
getInstanceTag
in interfaceNetworkOrBuilder
- Returns:
- The instanceTag.
-
getInstanceTagBytes
public com.google.protobuf.ByteString getInstanceTagBytes()
Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
string instance_tag = 2;
- Specified by:
getInstanceTagBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for instanceTag.
-
setInstanceTag
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;
- Parameters:
value
- The instanceTag to set.- Returns:
- 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:
- This builder for chaining.
-
setInstanceTagBytes
public Network.Builder setInstanceTagBytes(com.google.protobuf.ByteString value)
Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
string instance_tag = 2;
- Parameters:
value
- The bytes for instanceTag to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getName
in interfaceNetworkOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;
- Specified by:
getNameBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for name.
-
setName
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;
- Parameters:
value
- The name to set.- Returns:
- 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:
- This builder for chaining.
-
setNameBytes
public Network.Builder setNameBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getSubnetworkName
in interfaceNetworkOrBuilder
- Returns:
- The subnetworkName.
-
getSubnetworkNameBytes
public com.google.protobuf.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;
- Specified by:
getSubnetworkNameBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for subnetworkName.
-
setSubnetworkName
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;
- Parameters:
value
- The subnetworkName to set.- Returns:
- 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:
- This builder for chaining.
-
setSubnetworkNameBytes
public Network.Builder setSubnetworkNameBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for subnetworkName to set.- Returns:
- This builder for chaining.
-
getSessionAffinity
public boolean getSessionAffinity()
Enable session affinity. Only applicable in the App Engine flexible environment.
bool session_affinity = 5;
- Specified by:
getSessionAffinity
in interfaceNetworkOrBuilder
- Returns:
- The sessionAffinity.
-
setSessionAffinity
public Network.Builder setSessionAffinity(boolean value)
Enable session affinity. Only applicable in the App Engine flexible environment.
bool session_affinity = 5;
- Parameters:
value
- The sessionAffinity to set.- Returns:
- This builder for chaining.
-
clearSessionAffinity
public Network.Builder clearSessionAffinity()
Enable session affinity. Only applicable in the App Engine flexible environment.
bool session_affinity = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Network.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeUnknownFields
public final Network.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
-