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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DiscoveredWorkload.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DiscoveredWorkload build()
buildPartial()
public DiscoveredWorkload buildPartial()
clear()
public DiscoveredWorkload.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public DiscoveredWorkload.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public DiscoveredWorkload.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
clone()
public DiscoveredWorkload.Builder clone()
Overrides
getDefaultInstanceForType()
public DiscoveredWorkload getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
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];
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];
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];
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DiscoveredWorkload other)
public DiscoveredWorkload.Builder mergeFrom(DiscoveredWorkload other)
public DiscoveredWorkload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DiscoveredWorkload.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DiscoveredWorkload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public DiscoveredWorkload.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DiscoveredWorkload.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DiscoveredWorkload.Builder setUnknownFields(UnknownFieldSet unknownFields)
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];
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];
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];
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];