Class CreateHostProjectRegistrationRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateHostProjectRegistrationRequest.Builder>
com.google.cloud.apihub.v1.CreateHostProjectRegistrationRequest.Builder
All Implemented Interfaces:
CreateHostProjectRegistrationRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateHostProjectRegistrationRequest

public static final class CreateHostProjectRegistrationRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateHostProjectRegistrationRequest.Builder> implements CreateHostProjectRegistrationRequestOrBuilder
 The
 [CreateHostProjectRegistration][google.cloud.apihub.v1.HostProjectRegistrationService.CreateHostProjectRegistration]
 method's request.
 
Protobuf type google.cloud.apihub.v1.CreateHostProjectRegistrationRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateHostProjectRegistrationRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateHostProjectRegistrationRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateHostProjectRegistrationRequest.Builder>
    • getDefaultInstanceForType

      public CreateHostProjectRegistrationRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateHostProjectRegistrationRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateHostProjectRegistrationRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateHostProjectRegistrationRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateHostProjectRegistrationRequest.Builder>
    • mergeFrom

      public CreateHostProjectRegistrationRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateHostProjectRegistrationRequest.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getParent in interface CreateHostProjectRegistrationRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getParentBytes in interface CreateHostProjectRegistrationRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       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) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setParentBytes

      public CreateHostProjectRegistrationRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getHostProjectRegistrationId in interface CreateHostProjectRegistrationRequestOrBuilder
      Returns:
      The hostProjectRegistrationId.
    • getHostProjectRegistrationIdBytes

      public com.google.protobuf.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];
      Specified by:
      getHostProjectRegistrationIdBytes in interface CreateHostProjectRegistrationRequestOrBuilder
      Returns:
      The bytes for hostProjectRegistrationId.
    • setHostProjectRegistrationId

      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];
      Parameters:
      value - The hostProjectRegistrationId to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setHostProjectRegistrationIdBytes

      public CreateHostProjectRegistrationRequest.Builder setHostProjectRegistrationIdBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for hostProjectRegistrationId to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasHostProjectRegistration in interface CreateHostProjectRegistrationRequestOrBuilder
      Returns:
      Whether the hostProjectRegistration field is set.
    • 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];
      Specified by:
      getHostProjectRegistration in interface CreateHostProjectRegistrationRequestOrBuilder
      Returns:
      The hostProjectRegistration.
    • setHostProjectRegistration

      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

      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];
    • mergeHostProjectRegistration

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getHostProjectRegistrationOrBuilder in interface CreateHostProjectRegistrationRequestOrBuilder