Class LookupApiHubInstanceRequest.Builder (0.8.0)

public static final class LookupApiHubInstanceRequest.Builder extends GeneratedMessageV3.Builder<LookupApiHubInstanceRequest.Builder> implements LookupApiHubInstanceRequestOrBuilder

The LookupApiHubInstance method's request.

Protobuf type google.cloud.apihub.v1.LookupApiHubInstanceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LookupApiHubInstanceRequest build()
Returns
Type Description
LookupApiHubInstanceRequest

buildPartial()

public LookupApiHubInstanceRequest buildPartial()
Returns
Type Description
LookupApiHubInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public LookupApiHubInstanceRequest.Builder clearParent()

Required. There will always be only one Api Hub instance for a GCP project across all locations. The parent resource for the Api Hub instance resource. Format: projects/{project}/locations/{location}

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

Returns
Type Description
LookupApiHubInstanceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LookupApiHubInstanceRequest getDefaultInstanceForType()
Returns
Type Description
LookupApiHubInstanceRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. There will always be only one Api Hub instance for a GCP project across all locations. The parent resource for the Api Hub instance resource. 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. There will always be only one Api Hub instance for a GCP project across all locations. The parent resource for the Api Hub instance resource. 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LookupApiHubInstanceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public LookupApiHubInstanceRequest.Builder setParent(String value)

Required. There will always be only one Api Hub instance for a GCP project across all locations. The parent resource for the Api Hub instance resource. 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
LookupApiHubInstanceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public LookupApiHubInstanceRequest.Builder setParentBytes(ByteString value)

Required. There will always be only one Api Hub instance for a GCP project across all locations. The parent resource for the Api Hub instance resource. 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
LookupApiHubInstanceRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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