public static final class WorkloadProperties.Builder extends GeneratedMessageV3.Builder<WorkloadProperties.Builder> implements WorkloadPropertiesOrBuilderProperties of an underlying compute resource represented by the Workload.
Protobuf type google.cloud.apphub.v1.WorkloadProperties
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WorkloadProperties.BuilderImplements
WorkloadPropertiesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WorkloadProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
build()
public WorkloadProperties build()| Returns | |
|---|---|
| Type | Description |
WorkloadProperties |
|
buildPartial()
public WorkloadProperties buildPartial()| Returns | |
|---|---|
| Type | Description |
WorkloadProperties |
|
clear()
public WorkloadProperties.Builder clear()| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public WorkloadProperties.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
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 | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
This builder for chaining. |
clearLocation()
public WorkloadProperties.Builder clearLocation()Output only. The location that the underlying compute resource resides in (for example, us-west1).
string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public WorkloadProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
clearZone()
public WorkloadProperties.Builder clearZone()Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).
string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
This builder for chaining. |
clone()
public WorkloadProperties.Builder clone()| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
getDefaultInstanceForType()
public WorkloadProperties getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
WorkloadProperties |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for gcpProject. |
getLocation()
public String getLocation()Output only. The location that the underlying compute resource resides in (for example, us-west1).
string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The location. |
getLocationBytes()
public ByteString getLocationBytes()Output only. The location that the underlying compute resource resides in (for example, us-west1).
string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for location. |
getZone()
public String getZone()Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).
string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The zone. |
getZoneBytes()
public ByteString getZoneBytes()Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).
string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for zone. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(WorkloadProperties other)
public WorkloadProperties.Builder mergeFrom(WorkloadProperties other)| Parameter | |
|---|---|
| Name | Description |
other |
WorkloadProperties |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WorkloadProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public WorkloadProperties.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WorkloadProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public WorkloadProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
StringThe gcpProject to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gcpProject to set. |
| Returns | |
|---|---|
| Type | Description |
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 (for example, us-west1).
string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe location to set. |
| Returns | |
|---|---|
| Type | Description |
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 (for example, us-west1).
string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for location to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final WorkloadProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
|
setZone(String value)
public WorkloadProperties.Builder setZone(String value)Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).
string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe zone to set. |
| Returns | |
|---|---|
| Type | Description |
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 (for example, us-west1-a).
string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for zone to set. |
| Returns | |
|---|---|
| Type | Description |
WorkloadProperties.Builder |
This builder for chaining. |