Class LookupDiscoveredServiceRequest.Builder (0.7.0)

public static final class LookupDiscoveredServiceRequest.Builder extends GeneratedMessageV3.Builder<LookupDiscoveredServiceRequest.Builder> implements LookupDiscoveredServiceRequestOrBuilder

Request for LookupDiscoveredService.

Protobuf type google.cloud.apphub.v1.LookupDiscoveredServiceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LookupDiscoveredServiceRequest build()
Returns
Type Description
LookupDiscoveredServiceRequest

buildPartial()

public LookupDiscoveredServiceRequest buildPartial()
Returns
Type Description
LookupDiscoveredServiceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public LookupDiscoveredServiceRequest.Builder clearParent()

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

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

Returns
Type Description
LookupDiscoveredServiceRequest.Builder

This builder for chaining.

clearUri()

public LookupDiscoveredServiceRequest.Builder clearUri()

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

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

Returns
Type Description
LookupDiscoveredServiceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LookupDiscoveredServiceRequest getDefaultInstanceForType()
Returns
Type Description
LookupDiscoveredServiceRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Host project ID and location to lookup Discovered Service 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 Service 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 DiscoveredService 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 DiscoveredService 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(LookupDiscoveredServiceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public LookupDiscoveredServiceRequest.Builder setParent(String value)

Required. Host project ID and location to lookup Discovered Service 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
LookupDiscoveredServiceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public LookupDiscoveredServiceRequest.Builder setParentBytes(ByteString value)

Required. Host project ID and location to lookup Discovered Service 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
LookupDiscoveredServiceRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public LookupDiscoveredServiceRequest.Builder setUri(String value)

Required. Resource URI to find DiscoveredService 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
LookupDiscoveredServiceRequest.Builder

This builder for chaining.

setUriBytes(ByteString value)

public LookupDiscoveredServiceRequest.Builder setUriBytes(ByteString value)

Required. Resource URI to find DiscoveredService 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
LookupDiscoveredServiceRequest.Builder

This builder for chaining.