Class WorkloadProperties.Builder (0.67.0)

public static final class WorkloadProperties.Builder extends GeneratedMessage.Builder<WorkloadProperties.Builder> implements WorkloadPropertiesOrBuilder

Properties of an underlying compute resource represented by the Workload.

Protobuf type google.cloud.apphub.v1.WorkloadProperties

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public WorkloadProperties build()
Returns
Type Description
WorkloadProperties

buildPartial()

public WorkloadProperties buildPartial()
Returns
Type Description
WorkloadProperties

clear()

public WorkloadProperties.Builder clear()
Returns
Type Description
WorkloadProperties.Builder
Overrides

clearExtendedMetadata()

public WorkloadProperties.Builder clearExtendedMetadata()
Returns
Type Description
WorkloadProperties.Builder

clearFunctionalType()

public WorkloadProperties.Builder clearFunctionalType()

Output only. The type of the workload.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadProperties.Builder

clearGcpProject()

public WorkloadProperties.Builder clearGcpProject()

Output only. The service project identifier that the underlying cloud resource resides in. Empty for non-cloud resources.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.

clearIdentity()

public WorkloadProperties.Builder clearIdentity()

Output only. The identity associated with the workload.

.google.cloud.apphub.v1.Identity identity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadProperties.Builder

clearLocation()

public WorkloadProperties.Builder clearLocation()

Output only. The location that the underlying compute resource resides in (for example, us-west1).

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.

clearZone()

public WorkloadProperties.Builder clearZone()

Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.

containsExtendedMetadata(String key)

public boolean containsExtendedMetadata(String key)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public WorkloadProperties getDefaultInstanceForType()
Returns
Type Description
WorkloadProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExtendedMetadata() (deprecated)

public Map<String,ExtendedMetadata> getExtendedMetadata()
Returns
Type Description
Map<String,ExtendedMetadata>

getExtendedMetadataCount()

public int getExtendedMetadataCount()

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getExtendedMetadataMap()

public Map<String,ExtendedMetadata> getExtendedMetadataMap()

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,ExtendedMetadata>

getExtendedMetadataOrDefault(String key, ExtendedMetadata defaultValue)

public ExtendedMetadata getExtendedMetadataOrDefault(String key, ExtendedMetadata defaultValue)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue ExtendedMetadata
Returns
Type Description
ExtendedMetadata

getExtendedMetadataOrThrow(String key)

public ExtendedMetadata getExtendedMetadataOrThrow(String key)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ExtendedMetadata

getFunctionalType()

public FunctionalType getFunctionalType()

Output only. The type of the workload.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FunctionalType

The functionalType.

getFunctionalTypeBuilder()

public FunctionalType.Builder getFunctionalTypeBuilder()

Output only. The type of the workload.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FunctionalType.Builder

getFunctionalTypeOrBuilder()

public FunctionalTypeOrBuilder getFunctionalTypeOrBuilder()

Output only. The type of the workload.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FunctionalTypeOrBuilder

getGcpProject()

public String getGcpProject()

Output only. The service project identifier that the underlying cloud resource resides in. Empty for non-cloud resources.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The gcpProject.

getGcpProjectBytes()

public ByteString getGcpProjectBytes()

Output only. The service project identifier that the underlying cloud resource resides in. Empty for non-cloud resources.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for gcpProject.

getIdentity()

public Identity getIdentity()

Output only. The identity associated with the workload.

.google.cloud.apphub.v1.Identity identity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Identity

The identity.

getIdentityBuilder()

public Identity.Builder getIdentityBuilder()

Output only. The identity associated with the workload.

.google.cloud.apphub.v1.Identity identity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Identity.Builder

getIdentityOrBuilder()

public IdentityOrBuilder getIdentityOrBuilder()

Output only. The identity associated with the workload.

.google.cloud.apphub.v1.Identity identity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IdentityOrBuilder

getLocation()

public String getLocation()

Output only. The location that the underlying compute resource resides in (for example, us-west1).

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Output only. The location that the underlying compute resource resides in (for example, us-west1).

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for location.

getMutableExtendedMetadata() (deprecated)

public Map<String,ExtendedMetadata> getMutableExtendedMetadata()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ExtendedMetadata>

getZone()

public String getZone()

Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for zone.

hasFunctionalType()

public boolean hasFunctionalType()

Output only. The type of the workload.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the functionalType field is set.

hasIdentity()

public boolean hasIdentity()

Output only. The identity associated with the workload.

.google.cloud.apphub.v1.Identity identity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the identity field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkloadProperties other)

public WorkloadProperties.Builder mergeFrom(WorkloadProperties other)
Parameter
Name Description
other WorkloadProperties
Returns
Type Description
WorkloadProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WorkloadProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkloadProperties.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WorkloadProperties.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WorkloadProperties.Builder
Overrides

mergeFunctionalType(FunctionalType value)

public WorkloadProperties.Builder mergeFunctionalType(FunctionalType value)

Output only. The type of the workload.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FunctionalType
Returns
Type Description
WorkloadProperties.Builder

mergeIdentity(Identity value)

public WorkloadProperties.Builder mergeIdentity(Identity value)

Output only. The identity associated with the workload.

.google.cloud.apphub.v1.Identity identity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Identity
Returns
Type Description
WorkloadProperties.Builder

putAllExtendedMetadata(Map<String,ExtendedMetadata> values)

public WorkloadProperties.Builder putAllExtendedMetadata(Map<String,ExtendedMetadata> values)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,ExtendedMetadata>
Returns
Type Description
WorkloadProperties.Builder

putExtendedMetadata(String key, ExtendedMetadata value)

public WorkloadProperties.Builder putExtendedMetadata(String key, ExtendedMetadata value)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value ExtendedMetadata
Returns
Type Description
WorkloadProperties.Builder

putExtendedMetadataBuilderIfAbsent(String key)

public ExtendedMetadata.Builder putExtendedMetadataBuilderIfAbsent(String key)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ExtendedMetadata.Builder

removeExtendedMetadata(String key)

public WorkloadProperties.Builder removeExtendedMetadata(String key)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
WorkloadProperties.Builder

setFunctionalType(FunctionalType value)

public WorkloadProperties.Builder setFunctionalType(FunctionalType value)

Output only. The type of the workload.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FunctionalType
Returns
Type Description
WorkloadProperties.Builder

setFunctionalType(FunctionalType.Builder builderForValue)

public WorkloadProperties.Builder setFunctionalType(FunctionalType.Builder builderForValue)

Output only. The type of the workload.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue FunctionalType.Builder
Returns
Type Description
WorkloadProperties.Builder

setGcpProject(String value)

public WorkloadProperties.Builder setGcpProject(String value)

Output only. The service project identifier that the underlying cloud resource resides in. Empty for non-cloud resources.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The gcpProject to set.

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.

setGcpProjectBytes(ByteString value)

public WorkloadProperties.Builder setGcpProjectBytes(ByteString value)

Output only. The service project identifier that the underlying cloud resource resides in. Empty for non-cloud resources.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for gcpProject to set.

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.

setIdentity(Identity value)

public WorkloadProperties.Builder setIdentity(Identity value)

Output only. The identity associated with the workload.

.google.cloud.apphub.v1.Identity identity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Identity
Returns
Type Description
WorkloadProperties.Builder

setIdentity(Identity.Builder builderForValue)

public WorkloadProperties.Builder setIdentity(Identity.Builder builderForValue)

Output only. The identity associated with the workload.

.google.cloud.apphub.v1.Identity identity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Identity.Builder
Returns
Type Description
WorkloadProperties.Builder

setLocation(String value)

public WorkloadProperties.Builder setLocation(String value)

Output only. The location that the underlying compute resource resides in (for example, us-west1).

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public WorkloadProperties.Builder setLocationBytes(ByteString value)

Output only. The location that the underlying compute resource resides in (for example, us-west1).

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.

setZone(String value)

public WorkloadProperties.Builder setZone(String value)

Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public WorkloadProperties.Builder setZoneBytes(ByteString value)

Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.