public static final class WorkloadProperties.Builder extends GeneratedMessage.Builder<WorkloadProperties.Builder> implements WorkloadPropertiesOrBuilderProperties of an underlying compute resource represented by the Workload.
Protobuf type google.cloud.apphub.v1.WorkloadProperties
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > WorkloadProperties.BuilderImplements
WorkloadPropertiesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
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 GeneratedMessage.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 |
|
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. |
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. |