public static final class DiscoveredWorkload.Builder extends GeneratedMessage.Builder<DiscoveredWorkload.Builder> implements DiscoveredWorkloadOrBuilderDiscoveredWorkload 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DiscoveredWorkload.BuilderImplements
DiscoveredWorkloadOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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 |
|
getDefaultInstanceForType()
public DiscoveredWorkload getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DiscoveredWorkload |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DiscoveredWorkload.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DiscoveredWorkload.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DiscoveredWorkload.Builder |
This builder for chaining. |
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 |
|