Class AllocationPolicy.NetworkInterface.Builder

    • 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<AllocationPolicy.NetworkInterface.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<AllocationPolicy.NetworkInterface.Builder>
      • getDefaultInstanceForType

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

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

        public AllocationPolicy.NetworkInterface buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.NetworkInterface.Builder>
      • getNetwork

        public String getNetwork()
         The URL of an existing network resource.
         You can specify the network as a full or partial URL.
        
         For example, the following are all valid URLs:
        
         * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
         * projects/{project}/global/networks/{network}
         * global/networks/{network}
         
        string network = 1;
        Specified by:
        getNetwork in interface AllocationPolicy.NetworkInterfaceOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         The URL of an existing network resource.
         You can specify the network as a full or partial URL.
        
         For example, the following are all valid URLs:
        
         * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
         * projects/{project}/global/networks/{network}
         * global/networks/{network}
         
        string network = 1;
        Specified by:
        getNetworkBytes in interface AllocationPolicy.NetworkInterfaceOrBuilder
        Returns:
        The bytes for network.
      • setNetwork

        public AllocationPolicy.NetworkInterface.Builder setNetwork​(String value)
         The URL of an existing network resource.
         You can specify the network as a full or partial URL.
        
         For example, the following are all valid URLs:
        
         * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
         * projects/{project}/global/networks/{network}
         * global/networks/{network}
         
        string network = 1;
        Parameters:
        value - The network to set.
        Returns:
        This builder for chaining.
      • clearNetwork

        public AllocationPolicy.NetworkInterface.Builder clearNetwork()
         The URL of an existing network resource.
         You can specify the network as a full or partial URL.
        
         For example, the following are all valid URLs:
        
         * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
         * projects/{project}/global/networks/{network}
         * global/networks/{network}
         
        string network = 1;
        Returns:
        This builder for chaining.
      • setNetworkBytes

        public AllocationPolicy.NetworkInterface.Builder setNetworkBytes​(com.google.protobuf.ByteString value)
         The URL of an existing network resource.
         You can specify the network as a full or partial URL.
        
         For example, the following are all valid URLs:
        
         * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
         * projects/{project}/global/networks/{network}
         * global/networks/{network}
         
        string network = 1;
        Parameters:
        value - The bytes for network to set.
        Returns:
        This builder for chaining.
      • getSubnetwork

        public String getSubnetwork()
         The URL of an existing subnetwork resource in the network.
         You can specify the subnetwork as a full or partial URL.
        
         For example, the following are all valid URLs:
        
         * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
         * projects/{project}/regions/{region}/subnetworks/{subnetwork}
         * regions/{region}/subnetworks/{subnetwork}
         
        string subnetwork = 2;
        Specified by:
        getSubnetwork in interface AllocationPolicy.NetworkInterfaceOrBuilder
        Returns:
        The subnetwork.
      • getSubnetworkBytes

        public com.google.protobuf.ByteString getSubnetworkBytes()
         The URL of an existing subnetwork resource in the network.
         You can specify the subnetwork as a full or partial URL.
        
         For example, the following are all valid URLs:
        
         * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
         * projects/{project}/regions/{region}/subnetworks/{subnetwork}
         * regions/{region}/subnetworks/{subnetwork}
         
        string subnetwork = 2;
        Specified by:
        getSubnetworkBytes in interface AllocationPolicy.NetworkInterfaceOrBuilder
        Returns:
        The bytes for subnetwork.
      • setSubnetwork

        public AllocationPolicy.NetworkInterface.Builder setSubnetwork​(String value)
         The URL of an existing subnetwork resource in the network.
         You can specify the subnetwork as a full or partial URL.
        
         For example, the following are all valid URLs:
        
         * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
         * projects/{project}/regions/{region}/subnetworks/{subnetwork}
         * regions/{region}/subnetworks/{subnetwork}
         
        string subnetwork = 2;
        Parameters:
        value - The subnetwork to set.
        Returns:
        This builder for chaining.
      • clearSubnetwork

        public AllocationPolicy.NetworkInterface.Builder clearSubnetwork()
         The URL of an existing subnetwork resource in the network.
         You can specify the subnetwork as a full or partial URL.
        
         For example, the following are all valid URLs:
        
         * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
         * projects/{project}/regions/{region}/subnetworks/{subnetwork}
         * regions/{region}/subnetworks/{subnetwork}
         
        string subnetwork = 2;
        Returns:
        This builder for chaining.
      • setSubnetworkBytes

        public AllocationPolicy.NetworkInterface.Builder setSubnetworkBytes​(com.google.protobuf.ByteString value)
         The URL of an existing subnetwork resource in the network.
         You can specify the subnetwork as a full or partial URL.
        
         For example, the following are all valid URLs:
        
         * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
         * projects/{project}/regions/{region}/subnetworks/{subnetwork}
         * regions/{region}/subnetworks/{subnetwork}
         
        string subnetwork = 2;
        Parameters:
        value - The bytes for subnetwork to set.
        Returns:
        This builder for chaining.
      • getNoExternalIpAddress

        public boolean getNoExternalIpAddress()
         Default is false (with an external IP address). Required if
         no external public IP address is attached to the VM. If no external
         public IP address, additional configuration is required to allow the VM
         to access Google Services. See
         https://cloud.google.com/vpc/docs/configure-private-google-access and
         https://cloud.google.com/nat/docs/gce-example#create-nat for more
         information.
         
        bool no_external_ip_address = 3;
        Specified by:
        getNoExternalIpAddress in interface AllocationPolicy.NetworkInterfaceOrBuilder
        Returns:
        The noExternalIpAddress.
      • setNoExternalIpAddress

        public AllocationPolicy.NetworkInterface.Builder setNoExternalIpAddress​(boolean value)
         Default is false (with an external IP address). Required if
         no external public IP address is attached to the VM. If no external
         public IP address, additional configuration is required to allow the VM
         to access Google Services. See
         https://cloud.google.com/vpc/docs/configure-private-google-access and
         https://cloud.google.com/nat/docs/gce-example#create-nat for more
         information.
         
        bool no_external_ip_address = 3;
        Parameters:
        value - The noExternalIpAddress to set.
        Returns:
        This builder for chaining.
      • clearNoExternalIpAddress

        public AllocationPolicy.NetworkInterface.Builder clearNoExternalIpAddress()
         Default is false (with an external IP address). Required if
         no external public IP address is attached to the VM. If no external
         public IP address, additional configuration is required to allow the VM
         to access Google Services. See
         https://cloud.google.com/vpc/docs/configure-private-google-access and
         https://cloud.google.com/nat/docs/gce-example#create-nat for more
         information.
         
        bool no_external_ip_address = 3;
        Returns:
        This builder for chaining.