Class LookupDiscoveredWorkloadRequest.Builder (0.12.0)

public static final class LookupDiscoveredWorkloadRequest.Builder extends GeneratedMessageV3.Builder<LookupDiscoveredWorkloadRequest.Builder> implements LookupDiscoveredWorkloadRequestOrBuilder

Request for LookupDiscoveredWorkload.

Protobuf type google.cloud.apphub.v1.LookupDiscoveredWorkloadRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LookupDiscoveredWorkloadRequest build()
Returns
Type Description
LookupDiscoveredWorkloadRequest

buildPartial()

public LookupDiscoveredWorkloadRequest buildPartial()
Returns
Type Description
LookupDiscoveredWorkloadRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public LookupDiscoveredWorkloadRequest.Builder clearParent()

Required. Host project ID and location to lookup Discovered Workload in. Expected format: projects/{project}/locations/{location}.

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

Returns
Type Description
LookupDiscoveredWorkloadRequest.Builder

This builder for chaining.

clearUri()

public LookupDiscoveredWorkloadRequest.Builder clearUri()

Required. Resource URI to find Discovered Workload for. Accepts both project number and project ID and does translation when needed.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LookupDiscoveredWorkloadRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LookupDiscoveredWorkloadRequest getDefaultInstanceForType()
Returns
Type Description
LookupDiscoveredWorkloadRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Host project ID and location to lookup Discovered Workload in. Expected format: projects/{project}/locations/{location}.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Host project ID and location to lookup Discovered Workload in. Expected format: projects/{project}/locations/{location}.

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

Returns
Type Description
ByteString

The bytes for parent.

getUri()

public String getUri()

Required. Resource URI to find Discovered Workload for. Accepts both project number and project ID and does translation when needed.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. Resource URI to find Discovered Workload for. Accepts both project number and project ID and does translation when needed.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

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(LookupDiscoveredWorkloadRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public LookupDiscoveredWorkloadRequest.Builder setParent(String value)

Required. Host project ID and location to lookup Discovered Workload in. Expected format: projects/{project}/locations/{location}.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
LookupDiscoveredWorkloadRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public LookupDiscoveredWorkloadRequest.Builder setParentBytes(ByteString value)

Required. Host project ID and location to lookup Discovered Workload in. Expected format: projects/{project}/locations/{location}.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
LookupDiscoveredWorkloadRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public LookupDiscoveredWorkloadRequest.Builder setUri(String value)

Required. Resource URI to find Discovered Workload for. Accepts both project number and project ID and does translation when needed.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
LookupDiscoveredWorkloadRequest.Builder

This builder for chaining.

setUriBytes(ByteString value)

public LookupDiscoveredWorkloadRequest.Builder setUriBytes(ByteString value)

Required. Resource URI to find Discovered Workload for. Accepts both project number and project ID and does translation when needed.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
LookupDiscoveredWorkloadRequest.Builder

This builder for chaining.