Package com.google.cloud.alloydb.v1alpha
Class MigrationSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
- com.google.cloud.alloydb.v1alpha.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.GeneratedMessageV3.Builder<MigrationSource.Builder> implements MigrationSourceOrBuilder
Subset of the source instance configuration that is available when reading the cluster resource.
Protobuf typegoogle.cloud.alloydb.v1alpha.MigrationSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MigrationSource.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MigrationSource
build()
MigrationSource
buildPartial()
MigrationSource.Builder
clear()
MigrationSource.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MigrationSource.Builder
clearHostPort()
Output only.MigrationSource.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MigrationSource.Builder
clearReferenceId()
Output only.MigrationSource.Builder
clearSourceType()
Output only.MigrationSource.Builder
clone()
MigrationSource
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getHostPort()
Output only.com.google.protobuf.ByteString
getHostPortBytes()
Output only.String
getReferenceId()
Output only.com.google.protobuf.ByteString
getReferenceIdBytes()
Output only.MigrationSource.MigrationSourceType
getSourceType()
Output only.int
getSourceTypeValue()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MigrationSource.Builder
mergeFrom(MigrationSource other)
MigrationSource.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MigrationSource.Builder
mergeFrom(com.google.protobuf.Message other)
MigrationSource.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MigrationSource.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MigrationSource.Builder
setHostPort(String value)
Output only.MigrationSource.Builder
setHostPortBytes(com.google.protobuf.ByteString value)
Output only.MigrationSource.Builder
setReferenceId(String value)
Output only.MigrationSource.Builder
setReferenceIdBytes(com.google.protobuf.ByteString value)
Output only.MigrationSource.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MigrationSource.Builder
setSourceType(MigrationSource.MigrationSourceType value)
Output only.MigrationSource.Builder
setSourceTypeValue(int value)
Output only.MigrationSource.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
clear
public MigrationSource.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
getDefaultInstanceForType
public MigrationSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MigrationSource build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MigrationSource buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MigrationSource.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
setField
public MigrationSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
clearField
public MigrationSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
clearOneof
public MigrationSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
setRepeatedField
public MigrationSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
addRepeatedField
public MigrationSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
mergeFrom
public MigrationSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MigrationSource.Builder>
-
mergeFrom
public MigrationSource.Builder mergeFrom(MigrationSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
mergeFrom
public MigrationSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 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:
getHostPortBytes
in interfaceMigrationSourceOrBuilder
- 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 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:
getReferenceIdBytes
in interfaceMigrationSourceOrBuilder
- 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.v1alpha.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSourceTypeValue
in interfaceMigrationSourceOrBuilder
- 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.v1alpha.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.v1alpha.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSourceType
in interfaceMigrationSourceOrBuilder
- Returns:
- The sourceType.
-
setSourceType
public MigrationSource.Builder setSourceType(MigrationSource.MigrationSourceType value)
Output only. Type of migration source.
.google.cloud.alloydb.v1alpha.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.v1alpha.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final MigrationSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
mergeUnknownFields
public final MigrationSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MigrationSource.Builder>
-
-