Class MigrationSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MigrationSource.Builder>
com.google.cloud.alloydb.v1beta.MigrationSource.Builder
All Implemented Interfaces:
MigrationSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MigrationSource

public static final class MigrationSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<MigrationSource.Builder> implements MigrationSourceOrBuilder
 Subset of the source instance configuration that is available when reading
 the cluster resource.
 
Protobuf type google.cloud.alloydb.v1beta.MigrationSource
  • 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<MigrationSource.Builder>
    • clear

      public MigrationSource.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<MigrationSource.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<MigrationSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public MigrationSource.Builder mergeFrom(MigrationSource other)
    • isInitialized

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

      public MigrationSource.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<MigrationSource.Builder>
      Throws:
      IOException
    • getHostPort

      public String getHostPort()
       Output only. The host and port of the on-premises instance in host:port
       format
       
      string host_port = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHostPort in interface MigrationSourceOrBuilder
      Returns:
      The hostPort.
    • getHostPortBytes

      public com.google.protobuf.ByteString getHostPortBytes()
       Output only. The host and port of the on-premises instance in host:port
       format
       
      string host_port = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHostPortBytes in interface MigrationSourceOrBuilder
      Returns:
      The bytes for hostPort.
    • setHostPort

      public MigrationSource.Builder setHostPort(String value)
       Output only. The host and port of the on-premises instance in host:port
       format
       
      string host_port = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The hostPort to set.
      Returns:
      This builder for chaining.
    • clearHostPort

      public MigrationSource.Builder clearHostPort()
       Output only. The host and port of the on-premises instance in host:port
       format
       
      string host_port = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setHostPortBytes

      public MigrationSource.Builder setHostPortBytes(com.google.protobuf.ByteString value)
       Output only. The host and port of the on-premises instance in host:port
       format
       
      string host_port = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for hostPort to set.
      Returns:
      This builder for chaining.
    • getReferenceId

      public String getReferenceId()
       Output only. Place holder for the external source identifier(e.g DMS job
       name) that created the cluster.
       
      string reference_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReferenceId in interface MigrationSourceOrBuilder
      Returns:
      The referenceId.
    • getReferenceIdBytes

      public com.google.protobuf.ByteString getReferenceIdBytes()
       Output only. Place holder for the external source identifier(e.g DMS job
       name) that created the cluster.
       
      string reference_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReferenceIdBytes in interface MigrationSourceOrBuilder
      Returns:
      The bytes for referenceId.
    • setReferenceId

      public MigrationSource.Builder setReferenceId(String value)
       Output only. Place holder for the external source identifier(e.g DMS job
       name) that created the cluster.
       
      string reference_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The referenceId to set.
      Returns:
      This builder for chaining.
    • clearReferenceId

      public MigrationSource.Builder clearReferenceId()
       Output only. Place holder for the external source identifier(e.g DMS job
       name) that created the cluster.
       
      string reference_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setReferenceIdBytes

      public MigrationSource.Builder setReferenceIdBytes(com.google.protobuf.ByteString value)
       Output only. Place holder for the external source identifier(e.g DMS job
       name) that created the cluster.
       
      string reference_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for referenceId to set.
      Returns:
      This builder for chaining.
    • getSourceTypeValue

      public int getSourceTypeValue()
       Output only. Type of migration source.
       
      .google.cloud.alloydb.v1beta.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceTypeValue in interface MigrationSourceOrBuilder
      Returns:
      The enum numeric value on the wire for sourceType.
    • setSourceTypeValue

      public MigrationSource.Builder setSourceTypeValue(int value)
       Output only. Type of migration source.
       
      .google.cloud.alloydb.v1beta.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for sourceType to set.
      Returns:
      This builder for chaining.
    • getSourceType

      public MigrationSource.MigrationSourceType getSourceType()
       Output only. Type of migration source.
       
      .google.cloud.alloydb.v1beta.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceType in interface MigrationSourceOrBuilder
      Returns:
      The sourceType.
    • setSourceType

       Output only. Type of migration source.
       
      .google.cloud.alloydb.v1beta.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The sourceType to set.
      Returns:
      This builder for chaining.
    • clearSourceType

      public MigrationSource.Builder clearSourceType()
       Output only. Type of migration source.
       
      .google.cloud.alloydb.v1beta.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.