Class HostProjectRegistration.Builder

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

public static final class HostProjectRegistration.Builder extends com.google.protobuf.GeneratedMessage.Builder<HostProjectRegistration.Builder> implements HostProjectRegistrationOrBuilder
 Host project registration refers to the registration of a Google cloud
 project with Api Hub as a host project. This is the project where Api Hub is
 provisioned. It acts as the consumer project for the Api Hub instance
 provisioned. Multiple runtime projects can be attached to the host project
 and these attachments define the scope of Api Hub.
 
Protobuf type google.cloud.apihub.v1.HostProjectRegistration
  • 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<HostProjectRegistration.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<HostProjectRegistration.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<HostProjectRegistration.Builder>
    • getDefaultInstanceForType

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

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

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

      public HostProjectRegistration.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<HostProjectRegistration.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<HostProjectRegistration.Builder>
    • mergeFrom

      public HostProjectRegistration.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<HostProjectRegistration.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The name of the host project registration.
       Format:
       "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface HostProjectRegistrationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the host project registration.
       Format:
       "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface HostProjectRegistrationOrBuilder
      Returns:
      The bytes for name.
    • setName

      public HostProjectRegistration.Builder setName(String value)
       Identifier. The name of the host project registration.
       Format:
       "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public HostProjectRegistration.Builder clearName()
       Identifier. The name of the host project registration.
       Format:
       "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public HostProjectRegistration.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the host project registration.
       Format:
       "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getGcpProject

      public String getGcpProject()
       Required. Immutable. Google cloud project name in the format:
       "projects/abc" or "projects/123". As input, project name with either
       project id or number are accepted. As output, this field will contain
       project number.
       
      string gcp_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getGcpProject in interface HostProjectRegistrationOrBuilder
      Returns:
      The gcpProject.
    • getGcpProjectBytes

      public com.google.protobuf.ByteString getGcpProjectBytes()
       Required. Immutable. Google cloud project name in the format:
       "projects/abc" or "projects/123". As input, project name with either
       project id or number are accepted. As output, this field will contain
       project number.
       
      string gcp_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getGcpProjectBytes in interface HostProjectRegistrationOrBuilder
      Returns:
      The bytes for gcpProject.
    • setGcpProject

      public HostProjectRegistration.Builder setGcpProject(String value)
       Required. Immutable. Google cloud project name in the format:
       "projects/abc" or "projects/123". As input, project name with either
       project id or number are accepted. As output, this field will contain
       project number.
       
      string gcp_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The gcpProject to set.
      Returns:
      This builder for chaining.
    • clearGcpProject

      public HostProjectRegistration.Builder clearGcpProject()
       Required. Immutable. Google cloud project name in the format:
       "projects/abc" or "projects/123". As input, project name with either
       project id or number are accepted. As output, this field will contain
       project number.
       
      string gcp_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setGcpProjectBytes

      public HostProjectRegistration.Builder setGcpProjectBytes(com.google.protobuf.ByteString value)
       Required. Immutable. Google cloud project name in the format:
       "projects/abc" or "projects/123". As input, project name with either
       project id or number are accepted. As output, this field will contain
       project number.
       
      string gcp_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for gcpProject to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time at which the host project registration was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface HostProjectRegistrationOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time at which the host project registration was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface HostProjectRegistrationOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public HostProjectRegistration.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the host project registration was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public HostProjectRegistration.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the host project registration was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public HostProjectRegistration.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the host project registration was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public HostProjectRegistration.Builder clearCreateTime()
       Output only. The time at which the host project registration was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time at which the host project registration was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time at which the host project registration was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface HostProjectRegistrationOrBuilder