Class WorkloadProperties.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkloadProperties build()
Returns
TypeDescription
WorkloadProperties

buildPartial()

public WorkloadProperties buildPartial()
Returns
TypeDescription
WorkloadProperties

clear()

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

clearField(Descriptors.FieldDescriptor field)

public WorkloadProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
WorkloadProperties.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkloadProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
WorkloadProperties.Builder

This builder for chaining.

clone()

public WorkloadProperties.Builder clone()
Returns
TypeDescription
WorkloadProperties.Builder
Overrides

getDefaultInstanceForType()

public WorkloadProperties getDefaultInstanceForType()
Returns
TypeDescription
WorkloadProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkloadProperties other)

public WorkloadProperties.Builder mergeFrom(WorkloadProperties other)
Parameter
NameDescription
otherWorkloadProperties
Returns
TypeDescription
WorkloadProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public WorkloadProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The gcpProject to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gcpProject to set.

Returns
TypeDescription
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
NameDescription
valueString

The location to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WorkloadProperties.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkloadProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The zone to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
WorkloadProperties.Builder

This builder for chaining.