Class AllocationPolicy.NetworkInterface

    • Field Detail

      • SUBNETWORK_FIELD_NUMBER

        public static final int SUBNETWORK_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NO_EXTERNAL_IP_ADDRESS_FIELD_NUMBER

        public static final int NO_EXTERNAL_IP_ADDRESS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static AllocationPolicy.NetworkInterface parseFrom​(ByteBuffer data,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AllocationPolicy.NetworkInterface parseFrom​(com.google.protobuf.ByteString data)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AllocationPolicy.NetworkInterface parseFrom​(com.google.protobuf.ByteString data,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AllocationPolicy.NetworkInterface parseFrom​(byte[] data)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AllocationPolicy.NetworkInterface parseFrom​(byte[] data,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected AllocationPolicy.NetworkInterface.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<AllocationPolicy.NetworkInterface> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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