Class CdcStrategy.Builder (1.54.0)

public static final class CdcStrategy.Builder extends GeneratedMessageV3.Builder<CdcStrategy.Builder> implements CdcStrategyOrBuilder

The strategy that the stream uses for CDC replication.

Protobuf type google.cloud.datastream.v1.CdcStrategy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CdcStrategy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CdcStrategy.Builder
Overrides

build()

public CdcStrategy build()
Returns
Type Description
CdcStrategy

buildPartial()

public CdcStrategy buildPartial()
Returns
Type Description
CdcStrategy

clear()

public CdcStrategy.Builder clear()
Returns
Type Description
CdcStrategy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CdcStrategy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CdcStrategy.Builder
Overrides

clearMostRecentStartPosition()

public CdcStrategy.Builder clearMostRecentStartPosition()

Optional. Start replicating from the most recent position in the source.

.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.Builder

clearNextAvailableStartPosition()

public CdcStrategy.Builder clearNextAvailableStartPosition()

Optional. Resume replication from the next available position in the source.

.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CdcStrategy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CdcStrategy.Builder
Overrides

clearSpecificStartPosition()

public CdcStrategy.Builder clearSpecificStartPosition()

Optional. Start replicating from a specific position in the source.

.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.Builder

clearStartPosition()

public CdcStrategy.Builder clearStartPosition()
Returns
Type Description
CdcStrategy.Builder

clone()

public CdcStrategy.Builder clone()
Returns
Type Description
CdcStrategy.Builder
Overrides

getDefaultInstanceForType()

public CdcStrategy getDefaultInstanceForType()
Returns
Type Description
CdcStrategy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMostRecentStartPosition()

public CdcStrategy.MostRecentStartPosition getMostRecentStartPosition()

Optional. Start replicating from the most recent position in the source.

.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.MostRecentStartPosition

The mostRecentStartPosition.

getMostRecentStartPositionBuilder()

public CdcStrategy.MostRecentStartPosition.Builder getMostRecentStartPositionBuilder()

Optional. Start replicating from the most recent position in the source.

.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.MostRecentStartPosition.Builder

getMostRecentStartPositionOrBuilder()

public CdcStrategy.MostRecentStartPositionOrBuilder getMostRecentStartPositionOrBuilder()

Optional. Start replicating from the most recent position in the source.

.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.MostRecentStartPositionOrBuilder

getNextAvailableStartPosition()

public CdcStrategy.NextAvailableStartPosition getNextAvailableStartPosition()

Optional. Resume replication from the next available position in the source.

.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.NextAvailableStartPosition

The nextAvailableStartPosition.

getNextAvailableStartPositionBuilder()

public CdcStrategy.NextAvailableStartPosition.Builder getNextAvailableStartPositionBuilder()

Optional. Resume replication from the next available position in the source.

.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.NextAvailableStartPosition.Builder

getNextAvailableStartPositionOrBuilder()

public CdcStrategy.NextAvailableStartPositionOrBuilder getNextAvailableStartPositionOrBuilder()

Optional. Resume replication from the next available position in the source.

.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.NextAvailableStartPositionOrBuilder

getSpecificStartPosition()

public CdcStrategy.SpecificStartPosition getSpecificStartPosition()

Optional. Start replicating from a specific position in the source.

.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.SpecificStartPosition

The specificStartPosition.

getSpecificStartPositionBuilder()

public CdcStrategy.SpecificStartPosition.Builder getSpecificStartPositionBuilder()

Optional. Start replicating from a specific position in the source.

.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.SpecificStartPosition.Builder

getSpecificStartPositionOrBuilder()

public CdcStrategy.SpecificStartPositionOrBuilder getSpecificStartPositionOrBuilder()

Optional. Start replicating from a specific position in the source.

.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.SpecificStartPositionOrBuilder

getStartPositionCase()

public CdcStrategy.StartPositionCase getStartPositionCase()
Returns
Type Description
CdcStrategy.StartPositionCase

hasMostRecentStartPosition()

public boolean hasMostRecentStartPosition()

Optional. Start replicating from the most recent position in the source.

.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the mostRecentStartPosition field is set.

hasNextAvailableStartPosition()

public boolean hasNextAvailableStartPosition()

Optional. Resume replication from the next available position in the source.

.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the nextAvailableStartPosition field is set.

hasSpecificStartPosition()

public boolean hasSpecificStartPosition()

Optional. Start replicating from a specific position in the source.

.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the specificStartPosition field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CdcStrategy other)

public CdcStrategy.Builder mergeFrom(CdcStrategy other)
Parameter
Name Description
other CdcStrategy
Returns
Type Description
CdcStrategy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CdcStrategy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdcStrategy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CdcStrategy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CdcStrategy.Builder
Overrides

mergeMostRecentStartPosition(CdcStrategy.MostRecentStartPosition value)

public CdcStrategy.Builder mergeMostRecentStartPosition(CdcStrategy.MostRecentStartPosition value)

Optional. Start replicating from the most recent position in the source.

.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CdcStrategy.MostRecentStartPosition
Returns
Type Description
CdcStrategy.Builder

mergeNextAvailableStartPosition(CdcStrategy.NextAvailableStartPosition value)

public CdcStrategy.Builder mergeNextAvailableStartPosition(CdcStrategy.NextAvailableStartPosition value)

Optional. Resume replication from the next available position in the source.

.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CdcStrategy.NextAvailableStartPosition
Returns
Type Description
CdcStrategy.Builder

mergeSpecificStartPosition(CdcStrategy.SpecificStartPosition value)

public CdcStrategy.Builder mergeSpecificStartPosition(CdcStrategy.SpecificStartPosition value)

Optional. Start replicating from a specific position in the source.

.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CdcStrategy.SpecificStartPosition
Returns
Type Description
CdcStrategy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CdcStrategy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CdcStrategy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CdcStrategy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CdcStrategy.Builder
Overrides

setMostRecentStartPosition(CdcStrategy.MostRecentStartPosition value)

public CdcStrategy.Builder setMostRecentStartPosition(CdcStrategy.MostRecentStartPosition value)

Optional. Start replicating from the most recent position in the source.

.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CdcStrategy.MostRecentStartPosition
Returns
Type Description
CdcStrategy.Builder

setMostRecentStartPosition(CdcStrategy.MostRecentStartPosition.Builder builderForValue)

public CdcStrategy.Builder setMostRecentStartPosition(CdcStrategy.MostRecentStartPosition.Builder builderForValue)

Optional. Start replicating from the most recent position in the source.

.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CdcStrategy.MostRecentStartPosition.Builder
Returns
Type Description
CdcStrategy.Builder

setNextAvailableStartPosition(CdcStrategy.NextAvailableStartPosition value)

public CdcStrategy.Builder setNextAvailableStartPosition(CdcStrategy.NextAvailableStartPosition value)

Optional. Resume replication from the next available position in the source.

.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CdcStrategy.NextAvailableStartPosition
Returns
Type Description
CdcStrategy.Builder

setNextAvailableStartPosition(CdcStrategy.NextAvailableStartPosition.Builder builderForValue)

public CdcStrategy.Builder setNextAvailableStartPosition(CdcStrategy.NextAvailableStartPosition.Builder builderForValue)

Optional. Resume replication from the next available position in the source.

.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CdcStrategy.NextAvailableStartPosition.Builder
Returns
Type Description
CdcStrategy.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CdcStrategy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CdcStrategy.Builder
Overrides

setSpecificStartPosition(CdcStrategy.SpecificStartPosition value)

public CdcStrategy.Builder setSpecificStartPosition(CdcStrategy.SpecificStartPosition value)

Optional. Start replicating from a specific position in the source.

.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CdcStrategy.SpecificStartPosition
Returns
Type Description
CdcStrategy.Builder

setSpecificStartPosition(CdcStrategy.SpecificStartPosition.Builder builderForValue)

public CdcStrategy.Builder setSpecificStartPosition(CdcStrategy.SpecificStartPosition.Builder builderForValue)

Optional. Start replicating from a specific position in the source.

.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CdcStrategy.SpecificStartPosition.Builder
Returns
Type Description
CdcStrategy.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CdcStrategy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CdcStrategy.Builder
Overrides