Class WorkloadReference.Builder (0.6.0)

public static final class WorkloadReference.Builder extends GeneratedMessageV3.Builder<WorkloadReference.Builder> implements WorkloadReferenceOrBuilder

Reference of an underlying compute resource represented by the Workload.

Protobuf type google.cloud.apphub.v1.WorkloadReference

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkloadReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkloadReference.Builder
Overrides

build()

public WorkloadReference build()
Returns
Type Description
WorkloadReference

buildPartial()

public WorkloadReference buildPartial()
Returns
Type Description
WorkloadReference

clear()

public WorkloadReference.Builder clear()
Returns
Type Description
WorkloadReference.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WorkloadReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WorkloadReference.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkloadReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WorkloadReference.Builder
Overrides

clearUri()

public WorkloadReference.Builder clearUri()

Output only. The underlying compute resource uri.

string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkloadReference.Builder

This builder for chaining.

clone()

public WorkloadReference.Builder clone()
Returns
Type Description
WorkloadReference.Builder
Overrides

getDefaultInstanceForType()

public WorkloadReference getDefaultInstanceForType()
Returns
Type Description
WorkloadReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUri()

public String getUri()

Output only. The underlying compute resource uri.

string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Output only. The underlying compute resource uri.

string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkloadReference other)

public WorkloadReference.Builder mergeFrom(WorkloadReference other)
Parameter
Name Description
other WorkloadReference
Returns
Type Description
WorkloadReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WorkloadReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkloadReference.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WorkloadReference.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WorkloadReference.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkloadReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkloadReference.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WorkloadReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkloadReference.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WorkloadReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WorkloadReference.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkloadReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkloadReference.Builder
Overrides

setUri(String value)

public WorkloadReference.Builder setUri(String value)

Output only. The underlying compute resource uri.

string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
WorkloadReference.Builder

This builder for chaining.

setUriBytes(ByteString value)

public WorkloadReference.Builder setUriBytes(ByteString value)

Output only. The underlying compute resource uri.

string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
WorkloadReference.Builder

This builder for chaining.