public static final class CreateApiHubInstanceRequest.Builder extends GeneratedMessage.Builder<CreateApiHubInstanceRequest.Builder> implements CreateApiHubInstanceRequestOrBuilderThe CreateApiHubInstance method's request.
Protobuf type google.cloud.apihub.v1.CreateApiHubInstanceRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateApiHubInstanceRequest.BuilderImplements
CreateApiHubInstanceRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateApiHubInstanceRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateApiHubInstanceRequest.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for apiHubInstanceId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateApiHubInstanceRequest.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateApiHubInstanceRequest.Builder |
This builder for chaining. |