Class CreateHostProjectRegistrationRequest.Builder (0.1.0)

public static final class CreateHostProjectRegistrationRequest.Builder extends GeneratedMessageV3.Builder<CreateHostProjectRegistrationRequest.Builder> implements CreateHostProjectRegistrationRequestOrBuilder

The CreateHostProjectRegistration method's request.

Protobuf type google.cloud.apihub.v1.CreateHostProjectRegistrationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

getDefaultInstanceForType()

public CreateHostProjectRegistrationRequest getDefaultInstanceForType()
Returns
Type Description
CreateHostProjectRegistrationRequest

getDescriptorForType()

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

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for parent to set.

Returns
Type Description
CreateHostProjectRegistrationRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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