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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LookupDiscoveredServiceRequest build()
Returns
TypeDescription
LookupDiscoveredServiceRequest

buildPartial()

public LookupDiscoveredServiceRequest buildPartial()
Returns
TypeDescription
LookupDiscoveredServiceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LookupDiscoveredServiceRequest getDefaultInstanceForType()
Returns
TypeDescription
LookupDiscoveredServiceRequest

getDescriptorForType()

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

public LookupDiscoveredServiceRequest.Builder mergeFrom(LookupDiscoveredServiceRequest other)
Parameter
NameDescription
otherLookupDiscoveredServiceRequest
Returns
TypeDescription
LookupDiscoveredServiceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The uri to set.

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

The bytes for uri to set.

Returns
TypeDescription
LookupDiscoveredServiceRequest.Builder

This builder for chaining.