Class DiscoveredWorkload.Builder (0.11.0)

public static final class DiscoveredWorkload.Builder extends GeneratedMessageV3.Builder<DiscoveredWorkload.Builder> implements DiscoveredWorkloadOrBuilder

DiscoveredWorkload is a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality. A discovered workload can be registered to an App Hub Workload.

Protobuf type google.cloud.apphub.v1.DiscoveredWorkload

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveredWorkload build()
Returns
Type Description
DiscoveredWorkload

buildPartial()

public DiscoveredWorkload buildPartial()
Returns
Type Description
DiscoveredWorkload

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DiscoveredWorkload.Builder clearName()

Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
DiscoveredWorkload.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWorkloadProperties()

public DiscoveredWorkload.Builder clearWorkloadProperties()

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiscoveredWorkload.Builder

clearWorkloadReference()

public DiscoveredWorkload.Builder clearWorkloadReference()

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiscoveredWorkload.Builder

clone()

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

getDefaultInstanceForType()

public DiscoveredWorkload getDefaultInstanceForType()
Returns
Type Description
DiscoveredWorkload

getDescriptorForType()

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

getName()

public String getName()

Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getWorkloadProperties()

public WorkloadProperties getWorkloadProperties()

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadProperties

The workloadProperties.

getWorkloadPropertiesBuilder()

public WorkloadProperties.Builder getWorkloadPropertiesBuilder()

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadProperties.Builder

getWorkloadPropertiesOrBuilder()

public WorkloadPropertiesOrBuilder getWorkloadPropertiesOrBuilder()

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadPropertiesOrBuilder

getWorkloadReference()

public WorkloadReference getWorkloadReference()

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadReference

The workloadReference.

getWorkloadReferenceBuilder()

public WorkloadReference.Builder getWorkloadReferenceBuilder()

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadReference.Builder

getWorkloadReferenceOrBuilder()

public WorkloadReferenceOrBuilder getWorkloadReferenceOrBuilder()

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadReferenceOrBuilder

hasWorkloadProperties()

public boolean hasWorkloadProperties()

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the workloadProperties field is set.

hasWorkloadReference()

public boolean hasWorkloadReference()

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the workloadReference field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DiscoveredWorkload other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWorkloadProperties(WorkloadProperties value)

public DiscoveredWorkload.Builder mergeWorkloadProperties(WorkloadProperties value)

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WorkloadProperties
Returns
Type Description
DiscoveredWorkload.Builder

mergeWorkloadReference(WorkloadReference value)

public DiscoveredWorkload.Builder mergeWorkloadReference(WorkloadReference value)

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WorkloadReference
Returns
Type Description
DiscoveredWorkload.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DiscoveredWorkload.Builder setName(String value)

Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DiscoveredWorkload.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DiscoveredWorkload.Builder setNameBytes(ByteString value)

Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DiscoveredWorkload.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWorkloadProperties(WorkloadProperties value)

public DiscoveredWorkload.Builder setWorkloadProperties(WorkloadProperties value)

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WorkloadProperties
Returns
Type Description
DiscoveredWorkload.Builder

setWorkloadProperties(WorkloadProperties.Builder builderForValue)

public DiscoveredWorkload.Builder setWorkloadProperties(WorkloadProperties.Builder builderForValue)

Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setWorkloadReference(WorkloadReference value)

public DiscoveredWorkload.Builder setWorkloadReference(WorkloadReference value)

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WorkloadReference
Returns
Type Description
DiscoveredWorkload.Builder

setWorkloadReference(WorkloadReference.Builder builderForValue)

public DiscoveredWorkload.Builder setWorkloadReference(WorkloadReference.Builder builderForValue)

Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

.google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue WorkloadReference.Builder
Returns
Type Description
DiscoveredWorkload.Builder