Class WorkloadProperties.Builder (0.9.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkloadProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkloadProperties.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public WorkloadProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WorkloadProperties.Builder
Overrides

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.

clearLocation()

public WorkloadProperties.Builder clearLocation()

Output only. The location that the underlying compute resource resides in (e.g us-west1).

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

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkloadProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WorkloadProperties.Builder
Overrides

clearZone()

public WorkloadProperties.Builder clearZone()

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

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

Returns
Type Description
WorkloadProperties.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WorkloadProperties getDefaultInstanceForType()
Returns
Type Description
WorkloadProperties

getDescriptorForType()

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

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.

getLocation()

public String getLocation()

Output only. The location that the underlying compute resource resides in (e.g 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 (e.g us-west1).

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

Returns
Type Description
ByteString

The bytes for location.

getZone()

public String getZone()

Output only. The location that the underlying compute resource resides in if it is zonal (e.g 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 (e.g us-west1-a).

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

Returns
Type Description
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkloadProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkloadProperties.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WorkloadProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkloadProperties.Builder
Overrides

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.

setLocation(String value)

public WorkloadProperties.Builder setLocation(String value)

Output only. The location that the underlying compute resource resides in (e.g 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 (e.g 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.

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

public WorkloadProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WorkloadProperties.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkloadProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkloadProperties.Builder
Overrides

setZone(String value)

public WorkloadProperties.Builder setZone(String value)

Output only. The location that the underlying compute resource resides in if it is zonal (e.g 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 (e.g 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.