Class Project.Builder (1.37.0)

public static final class Project.Builder extends GeneratedMessageV3.Builder<Project.Builder> 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 Methods

getDescriptor()

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

Methods

addAllEnabledFeatures(Iterable<String> values)

public Project.Builder addAllEnabledFeatures(Iterable<String> values)

Restricted features enabled for use on this project.

repeated string enabled_features = 469017467;

Parameter
NameDescription
valuesIterable<String>

The enabledFeatures to add.

Returns
TypeDescription
Project.Builder

This builder for chaining.

addAllQuotas(Iterable<? extends Quota> values)

public Project.Builder addAllQuotas(Iterable<? extends Quota> values)

[Output Only] Quotas assigned to this project.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.Quota>
Returns
TypeDescription
Project.Builder

addEnabledFeatures(String value)

public Project.Builder addEnabledFeatures(String value)

Restricted features enabled for use on this project.

repeated string enabled_features = 469017467;

Parameter
NameDescription
valueString

The enabledFeatures to add.

Returns
TypeDescription
Project.Builder

This builder for chaining.

addEnabledFeaturesBytes(ByteString value)

public Project.Builder addEnabledFeaturesBytes(ByteString value)

Restricted features enabled for use on this project.

repeated string enabled_features = 469017467;

Parameter
NameDescription
valueByteString

The bytes of the enabledFeatures to add.

Returns
TypeDescription
Project.Builder

This builder for chaining.

addQuotas(Quota value)

public Project.Builder addQuotas(Quota value)

[Output Only] Quotas assigned to this project.

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

Parameter
NameDescription
valueQuota
Returns
TypeDescription
Project.Builder

addQuotas(Quota.Builder builderForValue)

public Project.Builder addQuotas(Quota.Builder builderForValue)

[Output Only] Quotas assigned to this project.

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

Parameter
NameDescription
builderForValueQuota.Builder
Returns
TypeDescription
Project.Builder

addQuotas(int index, Quota value)

public Project.Builder addQuotas(int index, Quota value)

[Output Only] Quotas assigned to this project.

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

Parameters
NameDescription
indexint
valueQuota
Returns
TypeDescription
Project.Builder

addQuotas(int index, Quota.Builder builderForValue)

public Project.Builder addQuotas(int index, Quota.Builder builderForValue)

[Output Only] Quotas assigned to this project.

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

Parameters
NameDescription
indexint
builderForValueQuota.Builder
Returns
TypeDescription
Project.Builder

addQuotasBuilder()

public Quota.Builder addQuotasBuilder()

[Output Only] Quotas assigned to this project.

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

Returns
TypeDescription
Quota.Builder

addQuotasBuilder(int index)

public Quota.Builder addQuotasBuilder(int index)

[Output Only] Quotas assigned to this project.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Quota.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Project.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Project.Builder
Overrides

build()

public Project build()
Returns
TypeDescription
Project

buildPartial()

public Project buildPartial()
Returns
TypeDescription
Project

clear()

public Project.Builder clear()
Returns
TypeDescription
Project.Builder
Overrides

clearCommonInstanceMetadata()

public Project.Builder clearCommonInstanceMetadata()

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
Project.Builder

clearCreationTimestamp()

public Project.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
Project.Builder

This builder for chaining.

clearDefaultNetworkTier()

public Project.Builder clearDefaultNetworkTier()

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
Project.Builder

This builder for chaining.

clearDefaultServiceAccount()

public Project.Builder clearDefaultServiceAccount()

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

optional string default_service_account = 298712229;

Returns
TypeDescription
Project.Builder

This builder for chaining.

clearDescription()

public Project.Builder clearDescription()

An optional textual description of the resource.

optional string description = 422937596;

Returns
TypeDescription
Project.Builder

This builder for chaining.

clearEnabledFeatures()

public Project.Builder clearEnabledFeatures()

Restricted features enabled for use on this project.

repeated string enabled_features = 469017467;

Returns
TypeDescription
Project.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Project.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Project.Builder
Overrides

clearId()

public Project.Builder clearId()

[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
Project.Builder

This builder for chaining.

clearKind()

public Project.Builder clearKind()

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

optional string kind = 3292052;

Returns
TypeDescription
Project.Builder

This builder for chaining.

clearName()

public Project.Builder clearName()

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

optional string name = 3373707;

Returns
TypeDescription
Project.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Project.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Project.Builder
Overrides

clearQuotas()

public Project.Builder clearQuotas()

[Output Only] Quotas assigned to this project.

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

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

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

optional string self_link = 456214797;

Returns
TypeDescription
Project.Builder

This builder for chaining.

clearUsageExportLocation()

public Project.Builder clearUsageExportLocation()

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
Project.Builder

clearVmDnsSetting()

public Project.Builder clearVmDnsSetting()

[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
Project.Builder

This builder for chaining.

clearXpnProjectStatus()

public Project.Builder clearXpnProjectStatus()

[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
Project.Builder

This builder for chaining.

clone()

public Project.Builder clone()
Returns
TypeDescription
Project.Builder
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.

getCommonInstanceMetadataBuilder()

public Metadata.Builder getCommonInstanceMetadataBuilder()

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.Builder

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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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

getQuotasBuilder(int index)

public Quota.Builder getQuotasBuilder(int index)

[Output Only] Quotas assigned to this project.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Quota.Builder

getQuotasBuilderList()

public List<Quota.Builder> getQuotasBuilderList()

[Output Only] Quotas assigned to this project.

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

Returns
TypeDescription
List<Builder>

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.

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.

getUsageExportLocationBuilder()

public UsageExportLocation.Builder getUsageExportLocationBuilder()

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.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCommonInstanceMetadata(Metadata value)

public Project.Builder mergeCommonInstanceMetadata(Metadata value)

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;

Parameter
NameDescription
valueMetadata
Returns
TypeDescription
Project.Builder

mergeFrom(Project other)

public Project.Builder mergeFrom(Project other)
Parameter
NameDescription
otherProject
Returns
TypeDescription
Project.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Project.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Project.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Project.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Project.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Project.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Project.Builder
Overrides

mergeUsageExportLocation(UsageExportLocation value)

public Project.Builder mergeUsageExportLocation(UsageExportLocation value)

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;

Parameter
NameDescription
valueUsageExportLocation
Returns
TypeDescription
Project.Builder

removeQuotas(int index)

public Project.Builder removeQuotas(int index)

[Output Only] Quotas assigned to this project.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Project.Builder

setCommonInstanceMetadata(Metadata value)

public Project.Builder setCommonInstanceMetadata(Metadata value)

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;

Parameter
NameDescription
valueMetadata
Returns
TypeDescription
Project.Builder

setCommonInstanceMetadata(Metadata.Builder builderForValue)

public Project.Builder setCommonInstanceMetadata(Metadata.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueMetadata.Builder
Returns
TypeDescription
Project.Builder

setCreationTimestamp(String value)

public Project.Builder setCreationTimestamp(String value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public Project.Builder setCreationTimestampBytes(ByteString value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setDefaultNetworkTier(String value)

public Project.Builder setDefaultNetworkTier(String value)

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;

Parameter
NameDescription
valueString

The defaultNetworkTier to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setDefaultNetworkTierBytes(ByteString value)

public Project.Builder setDefaultNetworkTierBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for defaultNetworkTier to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setDefaultServiceAccount(String value)

public Project.Builder setDefaultServiceAccount(String value)

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

optional string default_service_account = 298712229;

Parameter
NameDescription
valueString

The defaultServiceAccount to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setDefaultServiceAccountBytes(ByteString value)

public Project.Builder setDefaultServiceAccountBytes(ByteString value)

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

optional string default_service_account = 298712229;

Parameter
NameDescription
valueByteString

The bytes for defaultServiceAccount to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setDescription(String value)

public Project.Builder setDescription(String value)

An optional textual description of the resource.

optional string description = 422937596;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Project.Builder setDescriptionBytes(ByteString value)

An optional textual description of the resource.

optional string description = 422937596;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setEnabledFeatures(int index, String value)

public Project.Builder setEnabledFeatures(int index, String value)

Restricted features enabled for use on this project.

repeated string enabled_features = 469017467;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The enabledFeatures to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Project.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Project.Builder
Overrides

setId(long value)

public Project.Builder setId(long value)

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

Parameter
NameDescription
valuelong

The id to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setKind(String value)

public Project.Builder setKind(String value)

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

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setKindBytes(ByteString value)

public Project.Builder setKindBytes(ByteString value)

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

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setName(String value)

public Project.Builder setName(String value)

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

optional string name = 3373707;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Project.Builder setNameBytes(ByteString value)

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

optional string name = 3373707;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setQuotas(int index, Quota value)

public Project.Builder setQuotas(int index, Quota value)

[Output Only] Quotas assigned to this project.

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

Parameters
NameDescription
indexint
valueQuota
Returns
TypeDescription
Project.Builder

setQuotas(int index, Quota.Builder builderForValue)

public Project.Builder setQuotas(int index, Quota.Builder builderForValue)

[Output Only] Quotas assigned to this project.

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

Parameters
NameDescription
indexint
builderForValueQuota.Builder
Returns
TypeDescription
Project.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Project.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Project.Builder
Overrides
public Project.Builder setSelfLink(String value)

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

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public Project.Builder setSelfLinkBytes(ByteString value)

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

optional string self_link = 456214797;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Project.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Project.Builder
Overrides

setUsageExportLocation(UsageExportLocation value)

public Project.Builder setUsageExportLocation(UsageExportLocation value)

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;

Parameter
NameDescription
valueUsageExportLocation
Returns
TypeDescription
Project.Builder

setUsageExportLocation(UsageExportLocation.Builder builderForValue)

public Project.Builder setUsageExportLocation(UsageExportLocation.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueUsageExportLocation.Builder
Returns
TypeDescription
Project.Builder

setVmDnsSetting(String value)

public Project.Builder setVmDnsSetting(String value)

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

Parameter
NameDescription
valueString

The vmDnsSetting to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setVmDnsSettingBytes(ByteString value)

public Project.Builder setVmDnsSettingBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for vmDnsSetting to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setXpnProjectStatus(String value)

public Project.Builder setXpnProjectStatus(String value)

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

Parameter
NameDescription
valueString

The xpnProjectStatus to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.

setXpnProjectStatusBytes(ByteString value)

public Project.Builder setXpnProjectStatusBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for xpnProjectStatus to set.

Returns
TypeDescription
Project.Builder

This builder for chaining.