Class Project

  • All Implemented Interfaces:
    ProjectOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Project
    extends com.google.protobuf.GeneratedMessageV3
    implements ProjectOrBuilder
     Represents a Project resource. A project is used to organize resources in a Google Cloud Platform environment. For more information, read about the Resource Hierarchy.
     
    Protobuf type google.cloud.compute.v1.Project
    See Also:
    Serialized Form
    • Field Detail

      • COMMON_INSTANCE_METADATA_FIELD_NUMBER

        public static final int COMMON_INSTANCE_METADATA_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATION_TIMESTAMP_FIELD_NUMBER

        public static final int CREATION_TIMESTAMP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEFAULT_NETWORK_TIER_FIELD_NUMBER

        public static final int DEFAULT_NETWORK_TIER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEFAULT_SERVICE_ACCOUNT_FIELD_NUMBER

        public static final int DEFAULT_SERVICE_ACCOUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESCRIPTION_FIELD_NUMBER

        public static final int DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENABLED_FEATURES_FIELD_NUMBER

        public static final int ENABLED_FEATURES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • USAGE_EXPORT_LOCATION_FIELD_NUMBER

        public static final int USAGE_EXPORT_LOCATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VM_DNS_SETTING_FIELD_NUMBER

        public static final int VM_DNS_SETTING_FIELD_NUMBER
        See Also:
        Constant Field Values
      • XPN_PROJECT_STATUS_FIELD_NUMBER

        public static final int XPN_PROJECT_STATUS_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
      • hasCommonInstanceMetadata

        public boolean hasCommonInstanceMetadata()
         Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information.
         
        optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;
        Specified by:
        hasCommonInstanceMetadata in interface ProjectOrBuilder
        Returns:
        Whether the commonInstanceMetadata field is set.
      • getCommonInstanceMetadata

        public Metadata getCommonInstanceMetadata()
         Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information.
         
        optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;
        Specified by:
        getCommonInstanceMetadata in interface ProjectOrBuilder
        Returns:
        The commonInstanceMetadata.
      • getCommonInstanceMetadataOrBuilder

        public MetadataOrBuilder getCommonInstanceMetadataOrBuilder()
         Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information.
         
        optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;
        Specified by:
        getCommonInstanceMetadataOrBuilder in interface ProjectOrBuilder
      • hasCreationTimestamp

        public boolean hasCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        hasCreationTimestamp in interface ProjectOrBuilder
        Returns:
        Whether the creationTimestamp field is set.
      • getCreationTimestamp

        public String getCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestamp in interface ProjectOrBuilder
        Returns:
        The creationTimestamp.
      • getCreationTimestampBytes

        public com.google.protobuf.ByteString getCreationTimestampBytes()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestampBytes in interface ProjectOrBuilder
        Returns:
        The bytes for creationTimestamp.
      • hasDefaultNetworkTier

        public boolean hasDefaultNetworkTier()
         This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM.
         Check the DefaultNetworkTier enum for the list of possible values.
         
        optional string default_network_tier = 471753361;
        Specified by:
        hasDefaultNetworkTier in interface ProjectOrBuilder
        Returns:
        Whether the defaultNetworkTier field is set.
      • getDefaultNetworkTier

        public String getDefaultNetworkTier()
         This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM.
         Check the DefaultNetworkTier enum for the list of possible values.
         
        optional string default_network_tier = 471753361;
        Specified by:
        getDefaultNetworkTier in interface ProjectOrBuilder
        Returns:
        The defaultNetworkTier.
      • getDefaultNetworkTierBytes

        public com.google.protobuf.ByteString getDefaultNetworkTierBytes()
         This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM.
         Check the DefaultNetworkTier enum for the list of possible values.
         
        optional string default_network_tier = 471753361;
        Specified by:
        getDefaultNetworkTierBytes in interface ProjectOrBuilder
        Returns:
        The bytes for defaultNetworkTier.
      • hasDefaultServiceAccount

        public boolean hasDefaultServiceAccount()
         [Output Only] Default service account used by VMs running in this project.
         
        optional string default_service_account = 298712229;
        Specified by:
        hasDefaultServiceAccount in interface ProjectOrBuilder
        Returns:
        Whether the defaultServiceAccount field is set.
      • getDefaultServiceAccount

        public String getDefaultServiceAccount()
         [Output Only] Default service account used by VMs running in this project.
         
        optional string default_service_account = 298712229;
        Specified by:
        getDefaultServiceAccount in interface ProjectOrBuilder
        Returns:
        The defaultServiceAccount.
      • getDefaultServiceAccountBytes

        public com.google.protobuf.ByteString getDefaultServiceAccountBytes()
         [Output Only] Default service account used by VMs running in this project.
         
        optional string default_service_account = 298712229;
        Specified by:
        getDefaultServiceAccountBytes in interface ProjectOrBuilder
        Returns:
        The bytes for defaultServiceAccount.
      • hasDescription

        public boolean hasDescription()
         An optional textual description of the resource.
         
        optional string description = 422937596;
        Specified by:
        hasDescription in interface ProjectOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public String getDescription()
         An optional textual description of the resource.
         
        optional string description = 422937596;
        Specified by:
        getDescription in interface ProjectOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         An optional textual description of the resource.
         
        optional string description = 422937596;
        Specified by:
        getDescriptionBytes in interface ProjectOrBuilder
        Returns:
        The bytes for description.
      • getEnabledFeaturesList

        public com.google.protobuf.ProtocolStringList getEnabledFeaturesList()
         Restricted features enabled for use on this project.
         
        repeated string enabled_features = 469017467;
        Specified by:
        getEnabledFeaturesList in interface ProjectOrBuilder
        Returns:
        A list containing the enabledFeatures.
      • getEnabledFeaturesCount

        public int getEnabledFeaturesCount()
         Restricted features enabled for use on this project.
         
        repeated string enabled_features = 469017467;
        Specified by:
        getEnabledFeaturesCount in interface ProjectOrBuilder
        Returns:
        The count of enabledFeatures.
      • getEnabledFeatures

        public String getEnabledFeatures​(int index)
         Restricted features enabled for use on this project.
         
        repeated string enabled_features = 469017467;
        Specified by:
        getEnabledFeatures in interface ProjectOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The enabledFeatures at the given index.
      • getEnabledFeaturesBytes

        public com.google.protobuf.ByteString getEnabledFeaturesBytes​(int index)
         Restricted features enabled for use on this project.
         
        repeated string enabled_features = 469017467;
        Specified by:
        getEnabledFeaturesBytes in interface ProjectOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the enabledFeatures at the given index.
      • hasId

        public boolean hasId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources.
         
        optional uint64 id = 3355;
        Specified by:
        hasId in interface ProjectOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources.
         
        optional uint64 id = 3355;
        Specified by:
        getId in interface ProjectOrBuilder
        Returns:
        The id.
      • hasKind

        public boolean hasKind()
         [Output Only] Type of the resource. Always compute#project for projects.
         
        optional string kind = 3292052;
        Specified by:
        hasKind in interface ProjectOrBuilder
        Returns:
        Whether the kind field is set.
      • getKind

        public String getKind()
         [Output Only] Type of the resource. Always compute#project for projects.
         
        optional string kind = 3292052;
        Specified by:
        getKind in interface ProjectOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         [Output Only] Type of the resource. Always compute#project for projects.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface ProjectOrBuilder
        Returns:
        The bytes for kind.
      • hasName

        public boolean hasName()
         The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.
         
        optional string name = 3373707;
        Specified by:
        hasName in interface ProjectOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.
         
        optional string name = 3373707;
        Specified by:
        getName in interface ProjectOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.
         
        optional string name = 3373707;
        Specified by:
        getNameBytes in interface ProjectOrBuilder
        Returns:
        The bytes for name.
      • getQuotasList

        public List<Quota> getQuotasList()
         [Output Only] Quotas assigned to this project.
         
        repeated .google.cloud.compute.v1.Quota quotas = 125341947;
        Specified by:
        getQuotasList in interface ProjectOrBuilder
      • getQuotasCount

        public int getQuotasCount()
         [Output Only] Quotas assigned to this project.
         
        repeated .google.cloud.compute.v1.Quota quotas = 125341947;
        Specified by:
        getQuotasCount in interface ProjectOrBuilder
      • getQuotas

        public Quota getQuotas​(int index)
         [Output Only] Quotas assigned to this project.
         
        repeated .google.cloud.compute.v1.Quota quotas = 125341947;
        Specified by:
        getQuotas in interface ProjectOrBuilder
      • getQuotasOrBuilder

        public QuotaOrBuilder getQuotasOrBuilder​(int index)
         [Output Only] Quotas assigned to this project.
         
        repeated .google.cloud.compute.v1.Quota quotas = 125341947;
        Specified by:
        getQuotasOrBuilder in interface ProjectOrBuilder
      • hasSelfLink

        public boolean hasSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        hasSelfLink in interface ProjectOrBuilder
        Returns:
        Whether the selfLink field is set.
      • getSelfLink

        public String getSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLink in interface ProjectOrBuilder
        Returns:
        The selfLink.
      • getSelfLinkBytes

        public com.google.protobuf.ByteString getSelfLinkBytes()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLinkBytes in interface ProjectOrBuilder
        Returns:
        The bytes for selfLink.
      • hasUsageExportLocation

        public boolean hasUsageExportLocation()
         The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
         
        optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874;
        Specified by:
        hasUsageExportLocation in interface ProjectOrBuilder
        Returns:
        Whether the usageExportLocation field is set.
      • getUsageExportLocation

        public UsageExportLocation getUsageExportLocation()
         The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
         
        optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874;
        Specified by:
        getUsageExportLocation in interface ProjectOrBuilder
        Returns:
        The usageExportLocation.
      • hasVmDnsSetting

        public boolean hasVmDnsSetting()
         [Output Only] Default internal DNS setting used by VMs running in this project.
         Check the VmDnsSetting enum for the list of possible values.
         
        optional string vm_dns_setting = 58856370;
        Specified by:
        hasVmDnsSetting in interface ProjectOrBuilder
        Returns:
        Whether the vmDnsSetting field is set.
      • getVmDnsSetting

        public String getVmDnsSetting()
         [Output Only] Default internal DNS setting used by VMs running in this project.
         Check the VmDnsSetting enum for the list of possible values.
         
        optional string vm_dns_setting = 58856370;
        Specified by:
        getVmDnsSetting in interface ProjectOrBuilder
        Returns:
        The vmDnsSetting.
      • getVmDnsSettingBytes

        public com.google.protobuf.ByteString getVmDnsSettingBytes()
         [Output Only] Default internal DNS setting used by VMs running in this project.
         Check the VmDnsSetting enum for the list of possible values.
         
        optional string vm_dns_setting = 58856370;
        Specified by:
        getVmDnsSettingBytes in interface ProjectOrBuilder
        Returns:
        The bytes for vmDnsSetting.
      • hasXpnProjectStatus

        public boolean hasXpnProjectStatus()
         [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated.
         Check the XpnProjectStatus enum for the list of possible values.
         
        optional string xpn_project_status = 228419265;
        Specified by:
        hasXpnProjectStatus in interface ProjectOrBuilder
        Returns:
        Whether the xpnProjectStatus field is set.
      • getXpnProjectStatus

        public String getXpnProjectStatus()
         [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated.
         Check the XpnProjectStatus enum for the list of possible values.
         
        optional string xpn_project_status = 228419265;
        Specified by:
        getXpnProjectStatus in interface ProjectOrBuilder
        Returns:
        The xpnProjectStatus.
      • getXpnProjectStatusBytes

        public com.google.protobuf.ByteString getXpnProjectStatusBytes()
         [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated.
         Check the XpnProjectStatus enum for the list of possible values.
         
        optional string xpn_project_status = 228419265;
        Specified by:
        getXpnProjectStatusBytes in interface ProjectOrBuilder
        Returns:
        The bytes for xpnProjectStatus.
      • 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 Project parseFrom​(ByteBuffer data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static Project parseFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Project.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Project getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Project> parser()
      • getParserForType

        public com.google.protobuf.Parser<Project> 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 Project getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder