public static final class CreateHostProjectRegistrationRequest.Builder extends GeneratedMessage.Builder<CreateHostProjectRegistrationRequest.Builder> implements CreateHostProjectRegistrationRequestOrBuilderThe CreateHostProjectRegistration method's request.
Protobuf type google.cloud.apihub.v1.CreateHostProjectRegistrationRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateHostProjectRegistrationRequest.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateHostProjectRegistrationRequest build()| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest |
|
buildPartial()
public CreateHostProjectRegistrationRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest |
|
clear()
public CreateHostProjectRegistrationRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
|
clearHostProjectRegistration()
public CreateHostProjectRegistrationRequest.Builder clearHostProjectRegistration()Required. The host project registration to register.
.google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
|
clearHostProjectRegistrationId()
public CreateHostProjectRegistrationRequest.Builder clearHostProjectRegistrationId()Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.
string host_project_registration_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
This builder for chaining. |
clearParent()
public CreateHostProjectRegistrationRequest.Builder clearParent() Required. The parent resource for the host project.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CreateHostProjectRegistrationRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHostProjectRegistration()
public HostProjectRegistration getHostProjectRegistration()Required. The host project registration to register.
.google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
HostProjectRegistration |
The hostProjectRegistration. |
getHostProjectRegistrationBuilder()
public HostProjectRegistration.Builder getHostProjectRegistrationBuilder()Required. The host project registration to register.
.google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
HostProjectRegistration.Builder |
|
getHostProjectRegistrationId()
public String getHostProjectRegistrationId()Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.
string host_project_registration_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The hostProjectRegistrationId. |
getHostProjectRegistrationIdBytes()
public ByteString getHostProjectRegistrationIdBytes()Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.
string host_project_registration_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for hostProjectRegistrationId. |
getHostProjectRegistrationOrBuilder()
public HostProjectRegistrationOrBuilder getHostProjectRegistrationOrBuilder()Required. The host project registration to register.
.google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
HostProjectRegistrationOrBuilder |
|
getParent()
public String getParent() Required. The parent resource for the host project.
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 host project.
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. |
hasHostProjectRegistration()
public boolean hasHostProjectRegistration()Required. The host project registration to register.
.google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the hostProjectRegistration field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CreateHostProjectRegistrationRequest other)
public CreateHostProjectRegistrationRequest.Builder mergeFrom(CreateHostProjectRegistrationRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateHostProjectRegistrationRequest |
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateHostProjectRegistrationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateHostProjectRegistrationRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
|
mergeHostProjectRegistration(HostProjectRegistration value)
public CreateHostProjectRegistrationRequest.Builder mergeHostProjectRegistration(HostProjectRegistration value)Required. The host project registration to register.
.google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
HostProjectRegistration |
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
|
setHostProjectRegistration(HostProjectRegistration value)
public CreateHostProjectRegistrationRequest.Builder setHostProjectRegistration(HostProjectRegistration value)Required. The host project registration to register.
.google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
HostProjectRegistration |
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
|
setHostProjectRegistration(HostProjectRegistration.Builder builderForValue)
public CreateHostProjectRegistrationRequest.Builder setHostProjectRegistration(HostProjectRegistration.Builder builderForValue)Required. The host project registration to register.
.google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
HostProjectRegistration.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
|
setHostProjectRegistrationId(String value)
public CreateHostProjectRegistrationRequest.Builder setHostProjectRegistrationId(String value)Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.
string host_project_registration_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe hostProjectRegistrationId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
This builder for chaining. |
setHostProjectRegistrationIdBytes(ByteString value)
public CreateHostProjectRegistrationRequest.Builder setHostProjectRegistrationIdBytes(ByteString value)Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.
string host_project_registration_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for hostProjectRegistrationId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateHostProjectRegistrationRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateHostProjectRegistrationRequest.Builder setParent(String value) Required. The parent resource for the host project.
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 |
CreateHostProjectRegistrationRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateHostProjectRegistrationRequest.Builder setParentBytes(ByteString value) Required. The parent resource for the host project.
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 |
CreateHostProjectRegistrationRequest.Builder |
This builder for chaining. |