Class GetDiscoveredWorkloadRequest.Builder (0.3.0)

public static final class GetDiscoveredWorkloadRequest.Builder extends GeneratedMessageV3.Builder<GetDiscoveredWorkloadRequest.Builder> implements GetDiscoveredWorkloadRequestOrBuilder

Request for GetDiscoveredWorkload.

Protobuf type google.cloud.apphub.v1.GetDiscoveredWorkloadRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetDiscoveredWorkloadRequest build()
Returns
TypeDescription
GetDiscoveredWorkloadRequest

buildPartial()

public GetDiscoveredWorkloadRequest buildPartial()
Returns
TypeDescription
GetDiscoveredWorkloadRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetDiscoveredWorkloadRequest.Builder clearName()

Required. Fully qualified name of the Discovered Workload to fetch. Expected format: projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetDiscoveredWorkloadRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetDiscoveredWorkloadRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetDiscoveredWorkloadRequest.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public GetDiscoveredWorkloadRequest getDefaultInstanceForType()
Returns
TypeDescription
GetDiscoveredWorkloadRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Fully qualified name of the Discovered Workload to fetch. Expected format: projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Fully qualified name of the Discovered Workload to fetch. Expected format: projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetDiscoveredWorkloadRequest other)

public GetDiscoveredWorkloadRequest.Builder mergeFrom(GetDiscoveredWorkloadRequest other)
Parameter
NameDescription
otherGetDiscoveredWorkloadRequest
Returns
TypeDescription
GetDiscoveredWorkloadRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetDiscoveredWorkloadRequest.Builder setName(String value)

Required. Fully qualified name of the Discovered Workload to fetch. Expected format: projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetDiscoveredWorkloadRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetDiscoveredWorkloadRequest.Builder setNameBytes(ByteString value)

Required. Fully qualified name of the Discovered Workload to fetch. Expected format: projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetDiscoveredWorkloadRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final GetDiscoveredWorkloadRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetDiscoveredWorkloadRequest.Builder
Overrides