Class 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 type google.appengine.v1.Network
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
      • clear

        public Network.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
      • getDefaultInstanceForType

        public Network getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Network build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Network buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Network.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
      • setField

        public Network.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
      • clearField

        public Network.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
      • clearOneof

        public Network.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
      • addRepeatedField

        public Network.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
      • mergeFrom

        public Network.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Network.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface NetworkOrBuilder
        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 interface NetworkOrBuilder
        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 interface NetworkOrBuilder
        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 interface NetworkOrBuilder
        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 interface NetworkOrBuilder
        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 interface NetworkOrBuilder
        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 interface NetworkOrBuilder
        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 interface NetworkOrBuilder
        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 interface NetworkOrBuilder
        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 interface NetworkOrBuilder
        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 interface NetworkOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
      • mergeUnknownFields

        public final Network.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>