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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LookupDiscoveredWorkloadRequest build()
Returns
TypeDescription
LookupDiscoveredWorkloadRequest

buildPartial()

public LookupDiscoveredWorkloadRequest buildPartial()
Returns
TypeDescription
LookupDiscoveredWorkloadRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LookupDiscoveredWorkloadRequest getDefaultInstanceForType()
Returns
TypeDescription
LookupDiscoveredWorkloadRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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(LookupDiscoveredWorkloadRequest other)

public LookupDiscoveredWorkloadRequest.Builder mergeFrom(LookupDiscoveredWorkloadRequest other)
Parameter
NameDescription
otherLookupDiscoveredWorkloadRequest
Returns
TypeDescription
LookupDiscoveredWorkloadRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public LookupDiscoveredWorkloadRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LookupDiscoveredWorkloadRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The uri to set.

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

The bytes for uri to set.

Returns
TypeDescription
LookupDiscoveredWorkloadRequest.Builder

This builder for chaining.