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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveredWorkload build()
Returns
TypeDescription
DiscoveredWorkload

buildPartial()

public DiscoveredWorkload buildPartial()
Returns
TypeDescription
DiscoveredWorkload

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DiscoveredWorkload getDefaultInstanceForType()
Returns
TypeDescription
DiscoveredWorkload

getDescriptorForType()

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

Whether the workloadReference field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DiscoveredWorkload other)

public DiscoveredWorkload.Builder mergeFrom(DiscoveredWorkload other)
Parameter
NameDescription
otherDiscoveredWorkload
Returns
TypeDescription
DiscoveredWorkload.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveredWorkload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWorkloadProperties
Returns
TypeDescription
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
NameDescription
valueWorkloadReference
Returns
TypeDescription
DiscoveredWorkload.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveredWorkload.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWorkloadProperties
Returns
TypeDescription
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
NameDescription
builderForValueWorkloadProperties.Builder
Returns
TypeDescription
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
NameDescription
valueWorkloadReference
Returns
TypeDescription
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
NameDescription
builderForValueWorkloadReference.Builder
Returns
TypeDescription
DiscoveredWorkload.Builder