Class WorkloadReference.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkloadReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WorkloadReference.Builder
Overrides

build()

public WorkloadReference build()
Returns
TypeDescription
WorkloadReference

buildPartial()

public WorkloadReference buildPartial()
Returns
TypeDescription
WorkloadReference

clear()

public WorkloadReference.Builder clear()
Returns
TypeDescription
WorkloadReference.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WorkloadReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WorkloadReference.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkloadReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
WorkloadReference.Builder

This builder for chaining.

clone()

public WorkloadReference.Builder clone()
Returns
TypeDescription
WorkloadReference.Builder
Overrides

getDefaultInstanceForType()

public WorkloadReference getDefaultInstanceForType()
Returns
TypeDescription
WorkloadReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUri()

public String getUri()

Output only. The underlying compute resource uri.

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

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Output only. The underlying compute resource uri.

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

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkloadReference other)

public WorkloadReference.Builder mergeFrom(WorkloadReference other)
Parameter
NameDescription
otherWorkloadReference
Returns
TypeDescription
WorkloadReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WorkloadReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkloadReference.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public WorkloadReference.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WorkloadReference.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkloadReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkloadReference.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WorkloadReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WorkloadReference.Builder
Overrides

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

public WorkloadReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WorkloadReference.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkloadReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The uri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
WorkloadReference.Builder

This builder for chaining.