Package com.google.cloud.alloydb.v1beta
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MigrationSource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setHostPort(String value) Output only.setHostPortBytes(com.google.protobuf.ByteString value) Output only.setReferenceId(String value) Output only.setReferenceIdBytes(com.google.protobuf.ByteString value) Output only.Output only.setSourceTypeValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MigrationSource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MigrationSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MigrationSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MigrationSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MigrationSource.Builder>- Throws:
IOException
-
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:
getHostPortin interfaceMigrationSourceOrBuilder- 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:
getHostPortBytesin interfaceMigrationSourceOrBuilder- Returns:
- The bytes for hostPort.
-
setHostPort
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
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
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
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:
getReferenceIdin interfaceMigrationSourceOrBuilder- 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:
getReferenceIdBytesin interfaceMigrationSourceOrBuilder- Returns:
- The bytes for referenceId.
-
setReferenceId
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
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
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:
getSourceTypeValuein interfaceMigrationSourceOrBuilder- Returns:
- The enum numeric value on the wire for sourceType.
-
setSourceTypeValue
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
Output only. Type of migration source.
.google.cloud.alloydb.v1beta.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceTypein interfaceMigrationSourceOrBuilder- 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
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.
-