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.BuilderaddAllForwardedPorts(Iterable<String> values)List of ports, or port pairs, to forward from the virtual machine to the application container.Network.BuilderaddForwardedPorts(String value)List of ports, or port pairs, to forward from the virtual machine to the application container.Network.BuilderaddForwardedPortsBytes(com.google.protobuf.ByteString value)List of ports, or port pairs, to forward from the virtual machine to the application container.Network.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Networkbuild()NetworkbuildPartial()Network.Builderclear()Network.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Network.BuilderclearForwardedPorts()List of ports, or port pairs, to forward from the virtual machine to the application container.Network.BuilderclearInstanceTag()Tag to apply to the instance during creation.Network.BuilderclearName()Google Compute Engine network where the virtual machines are created.Network.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Network.BuilderclearSessionAffinity()Enable session affinity.Network.BuilderclearSubnetworkName()Google Cloud Platform sub-network where the virtual machines are created.Network.Builderclone()NetworkgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetForwardedPorts(int index)List of ports, or port pairs, to forward from the virtual machine to the application container.com.google.protobuf.ByteStringgetForwardedPortsBytes(int index)List of ports, or port pairs, to forward from the virtual machine to the application container.intgetForwardedPortsCount()List of ports, or port pairs, to forward from the virtual machine to the application container.com.google.protobuf.ProtocolStringListgetForwardedPortsList()List of ports, or port pairs, to forward from the virtual machine to the application container.StringgetInstanceTag()Tag to apply to the instance during creation.com.google.protobuf.ByteStringgetInstanceTagBytes()Tag to apply to the instance during creation.StringgetName()Google Compute Engine network where the virtual machines are created.com.google.protobuf.ByteStringgetNameBytes()Google Compute Engine network where the virtual machines are created.booleangetSessionAffinity()Enable session affinity.StringgetSubnetworkName()Google Cloud Platform sub-network where the virtual machines are created.com.google.protobuf.ByteStringgetSubnetworkNameBytes()Google Cloud Platform sub-network where the virtual machines are created.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Network.BuildermergeFrom(Network other)Network.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Network.BuildermergeFrom(com.google.protobuf.Message other)Network.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Network.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Network.BuildersetForwardedPorts(int index, String value)List of ports, or port pairs, to forward from the virtual machine to the application container.Network.BuildersetInstanceTag(String value)Tag to apply to the instance during creation.Network.BuildersetInstanceTagBytes(com.google.protobuf.ByteString value)Tag to apply to the instance during creation.Network.BuildersetName(String value)Google Compute Engine network where the virtual machines are created.Network.BuildersetNameBytes(com.google.protobuf.ByteString value)Google Compute Engine network where the virtual machines are created.Network.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Network.BuildersetSessionAffinity(boolean value)Enable session affinity.Network.BuildersetSubnetworkName(String value)Google Cloud Platform sub-network where the virtual machines are created.Network.BuildersetSubnetworkNameBytes(com.google.protobuf.ByteString value)Google Cloud Platform sub-network where the virtual machines are created.Network.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clear
public Network.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDefaultInstanceForType
public Network getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Network build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Network buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Network.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setField
public Network.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearField
public Network.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearOneof
public Network.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setRepeatedField
public Network.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
addRepeatedField
public Network.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(Network other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getForwardedPortsListin 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:
getForwardedPortsCountin 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:
getForwardedPortsin 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:
getForwardedPortsBytesin 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:
getInstanceTagin 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:
getInstanceTagBytesin 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:
getNamein 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:
getNameBytesin 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:
getSubnetworkNamein 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:
getSubnetworkNameBytesin 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:
getSessionAffinityin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeUnknownFields
public final Network.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
-