Class CreateApiHubInstanceRequest.Builder (0.2.0)

public static final class CreateApiHubInstanceRequest.Builder extends GeneratedMessageV3.Builder<CreateApiHubInstanceRequest.Builder> implements CreateApiHubInstanceRequestOrBuilder

The CreateApiHubInstance method's request.

Protobuf type google.cloud.apihub.v1.CreateApiHubInstanceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateApiHubInstanceRequest build()
Returns
Type Description
CreateApiHubInstanceRequest

buildPartial()

public CreateApiHubInstanceRequest buildPartial()
Returns
Type Description
CreateApiHubInstanceRequest

clear()

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

clearApiHubInstance()

public CreateApiHubInstanceRequest.Builder clearApiHubInstance()

Required. The ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateApiHubInstanceRequest.Builder

clearApiHubInstanceId()

public CreateApiHubInstanceRequest.Builder clearApiHubInstanceId()

Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used.

This value should be 4-40 characters, and valid characters are /a-z[0-9]-_/.

string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateApiHubInstanceRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateApiHubInstanceRequest.Builder clearParent()

Required. 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
CreateApiHubInstanceRequest.Builder

This builder for chaining.

clone()

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

getApiHubInstance()

public ApiHubInstance getApiHubInstance()

Required. The ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiHubInstance

The apiHubInstance.

getApiHubInstanceBuilder()

public ApiHubInstance.Builder getApiHubInstanceBuilder()

Required. The ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiHubInstance.Builder

getApiHubInstanceId()

public String getApiHubInstanceId()

Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used.

This value should be 4-40 characters, and valid characters are /a-z[0-9]-_/.

string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The apiHubInstanceId.

getApiHubInstanceIdBytes()

public ByteString getApiHubInstanceIdBytes()

Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used.

This value should be 4-40 characters, and valid characters are /a-z[0-9]-_/.

string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for apiHubInstanceId.

getApiHubInstanceOrBuilder()

public ApiHubInstanceOrBuilder getApiHubInstanceOrBuilder()

Required. The ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiHubInstanceOrBuilder

getDefaultInstanceForType()

public CreateApiHubInstanceRequest getDefaultInstanceForType()
Returns
Type Description
CreateApiHubInstanceRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. 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. 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.

hasApiHubInstance()

public boolean hasApiHubInstance()

Required. The ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the apiHubInstance field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApiHubInstance(ApiHubInstance value)

public CreateApiHubInstanceRequest.Builder mergeApiHubInstance(ApiHubInstance value)

Required. The ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiHubInstance
Returns
Type Description
CreateApiHubInstanceRequest.Builder

mergeFrom(CreateApiHubInstanceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApiHubInstance(ApiHubInstance value)

public CreateApiHubInstanceRequest.Builder setApiHubInstance(ApiHubInstance value)

Required. The ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiHubInstance
Returns
Type Description
CreateApiHubInstanceRequest.Builder

setApiHubInstance(ApiHubInstance.Builder builderForValue)

public CreateApiHubInstanceRequest.Builder setApiHubInstance(ApiHubInstance.Builder builderForValue)

Required. The ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ApiHubInstance.Builder
Returns
Type Description
CreateApiHubInstanceRequest.Builder

setApiHubInstanceId(String value)

public CreateApiHubInstanceRequest.Builder setApiHubInstanceId(String value)

Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used.

This value should be 4-40 characters, and valid characters are /a-z[0-9]-_/.

string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The apiHubInstanceId to set.

Returns
Type Description
CreateApiHubInstanceRequest.Builder

This builder for chaining.

setApiHubInstanceIdBytes(ByteString value)

public CreateApiHubInstanceRequest.Builder setApiHubInstanceIdBytes(ByteString value)

Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used.

This value should be 4-40 characters, and valid characters are /a-z[0-9]-_/.

string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for apiHubInstanceId to set.

Returns
Type Description
CreateApiHubInstanceRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateApiHubInstanceRequest.Builder setParent(String value)

Required. 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
CreateApiHubInstanceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateApiHubInstanceRequest.Builder setParentBytes(ByteString value)

Required. 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
CreateApiHubInstanceRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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