Class Project (1.22.0)

public final class Project extends 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

Implements

ProjectOrBuilder

Static Fields

COMMON_INSTANCE_METADATA_FIELD_NUMBER

public static final int COMMON_INSTANCE_METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

CREATION_TIMESTAMP_FIELD_NUMBER

public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

DEFAULT_NETWORK_TIER_FIELD_NUMBER

public static final int DEFAULT_NETWORK_TIER_FIELD_NUMBER
Field Value
TypeDescription
int

DEFAULT_SERVICE_ACCOUNT_FIELD_NUMBER

public static final int DEFAULT_SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLED_FEATURES_FIELD_NUMBER

public static final int ENABLED_FEATURES_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

QUOTAS_FIELD_NUMBER

public static final int QUOTAS_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int SELF_LINK_FIELD_NUMBER
Field Value
TypeDescription
int

USAGE_EXPORT_LOCATION_FIELD_NUMBER

public static final int USAGE_EXPORT_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

VM_DNS_SETTING_FIELD_NUMBER

public static final int VM_DNS_SETTING_FIELD_NUMBER
Field Value
TypeDescription
int

XPN_PROJECT_STATUS_FIELD_NUMBER

public static final int XPN_PROJECT_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Project getDefaultInstance()
Returns
TypeDescription
Project

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Project.Builder newBuilder()
Returns
TypeDescription
Project.Builder

newBuilder(Project prototype)

public static Project.Builder newBuilder(Project prototype)
Parameter
NameDescription
prototypeProject
Returns
TypeDescription
Project.Builder

parseDelimitedFrom(InputStream input)

public static Project parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Project
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Project parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Project
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Project parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Project
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Project parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Project
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Project parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Project
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Project parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Project
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Project parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Project
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Project parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Project
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Project parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Project
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Project parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Project
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Project parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Project
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Project parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Project
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Project> parser()
Returns
TypeDescription
Parser<Project>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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;

Returns
TypeDescription
Metadata

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;

Returns
TypeDescription
MetadataOrBuilder

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public Project getDefaultInstanceForType()
Returns
TypeDescription
Project

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;

Returns
TypeDescription
String

The defaultNetworkTier.

getDefaultNetworkTierBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for defaultNetworkTier.

getDefaultServiceAccount()

public String getDefaultServiceAccount()

[Output Only] Default service account used by VMs running in this project.

optional string default_service_account = 298712229;

Returns
TypeDescription
String

The defaultServiceAccount.

getDefaultServiceAccountBytes()

public ByteString getDefaultServiceAccountBytes()

[Output Only] Default service account used by VMs running in this project.

optional string default_service_account = 298712229;

Returns
TypeDescription
ByteString

The bytes for defaultServiceAccount.

getDescription()

public String getDescription()

An optional textual description of the resource.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional textual description of the resource.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getEnabledFeatures(int index)

public String getEnabledFeatures(int index)

Restricted features enabled for use on this project.

repeated string enabled_features = 469017467;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The enabledFeatures at the given index.

getEnabledFeaturesBytes(int index)

public ByteString getEnabledFeaturesBytes(int index)

Restricted features enabled for use on this project.

repeated string enabled_features = 469017467;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the enabledFeatures at the given index.

getEnabledFeaturesCount()

public int getEnabledFeaturesCount()

Restricted features enabled for use on this project.

repeated string enabled_features = 469017467;

Returns
TypeDescription
int

The count of enabledFeatures.

getEnabledFeaturesList()

public ProtocolStringList getEnabledFeaturesList()

Restricted features enabled for use on this project.

repeated string enabled_features = 469017467;

Returns
TypeDescription
ProtocolStringList

A list containing the enabledFeatures.

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;

Returns
TypeDescription
long

The id.

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#project for projects.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#project for projects.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

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;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Project> getParserForType()
Returns
TypeDescription
Parser<Project>
Overrides

getQuotas(int index)

public Quota getQuotas(int index)

[Output Only] Quotas assigned to this project.

repeated .google.cloud.compute.v1.Quota quotas = 125341947;

Parameter
NameDescription
indexint
Returns
TypeDescription
Quota

getQuotasCount()

public int getQuotasCount()

[Output Only] Quotas assigned to this project.

repeated .google.cloud.compute.v1.Quota quotas = 125341947;

Returns
TypeDescription
int

getQuotasList()

public List<Quota> getQuotasList()

[Output Only] Quotas assigned to this project.

repeated .google.cloud.compute.v1.Quota quotas = 125341947;

Returns
TypeDescription
List<Quota>

getQuotasOrBuilder(int index)

public QuotaOrBuilder getQuotasOrBuilder(int index)

[Output Only] Quotas assigned to this project.

repeated .google.cloud.compute.v1.Quota quotas = 125341947;

Parameter
NameDescription
indexint
Returns
TypeDescription
QuotaOrBuilder

getQuotasOrBuilderList()

public List<? extends QuotaOrBuilder> getQuotasOrBuilderList()

[Output Only] Quotas assigned to this project.

repeated .google.cloud.compute.v1.Quota quotas = 125341947;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.QuotaOrBuilder>
public String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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;

Returns
TypeDescription
UsageExportLocation

The usageExportLocation.

getUsageExportLocationOrBuilder()

public UsageExportLocationOrBuilder getUsageExportLocationOrBuilder()

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;

Returns
TypeDescription
UsageExportLocationOrBuilder

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;

Returns
TypeDescription
String

The vmDnsSetting.

getVmDnsSettingBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for vmDnsSetting.

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;

Returns
TypeDescription
String

The xpnProjectStatus.

getXpnProjectStatusBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for xpnProjectStatus.

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;

Returns
TypeDescription
boolean

Whether the commonInstanceMetadata field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

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;

Returns
TypeDescription
boolean

Whether the defaultNetworkTier field is set.

hasDefaultServiceAccount()

public boolean hasDefaultServiceAccount()

[Output Only] Default service account used by VMs running in this project.

optional string default_service_account = 298712229;

Returns
TypeDescription
boolean

Whether the defaultServiceAccount field is set.

hasDescription()

public boolean hasDescription()

An optional textual description of the resource.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

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;

Returns
TypeDescription
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#project for projects.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

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;

Returns
TypeDescription
boolean

Whether the name field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

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;

Returns
TypeDescription
boolean

Whether the usageExportLocation field is set.

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;

Returns
TypeDescription
boolean

Whether the vmDnsSetting field is set.

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;

Returns
TypeDescription
boolean

Whether the xpnProjectStatus field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Project.Builder newBuilderForType()
Returns
TypeDescription
Project.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Project.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Project.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Project.Builder toBuilder()
Returns
TypeDescription
Project.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException