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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateHostProjectRegistrationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateHostProjectRegistrationRequest build()
buildPartial()
public CreateHostProjectRegistrationRequest buildPartial()
clear()
public CreateHostProjectRegistrationRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateHostProjectRegistrationRequest.Builder clearField(Descriptors.FieldDescriptor field)
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];
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateHostProjectRegistrationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public CreateHostProjectRegistrationRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateHostProjectRegistrationRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateHostProjectRegistrationRequest other)
public CreateHostProjectRegistrationRequest.Builder mergeFrom(CreateHostProjectRegistrationRequest other)
public CreateHostProjectRegistrationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateHostProjectRegistrationRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateHostProjectRegistrationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateHostProjectRegistrationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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];
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.
|
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.
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateHostProjectRegistrationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateHostProjectRegistrationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides