Class CdcStrategy (1.54.0)

public final class CdcStrategy extends GeneratedMessageV3 implements CdcStrategyOrBuilder

The strategy that the stream uses for CDC replication.

Protobuf type google.cloud.datastream.v1.CdcStrategy

Static Fields

MOST_RECENT_START_POSITION_FIELD_NUMBER

public static final int MOST_RECENT_START_POSITION_FIELD_NUMBER
Field Value
Type Description
int

NEXT_AVAILABLE_START_POSITION_FIELD_NUMBER

public static final int NEXT_AVAILABLE_START_POSITION_FIELD_NUMBER
Field Value
Type Description
int

SPECIFIC_START_POSITION_FIELD_NUMBER

public static final int SPECIFIC_START_POSITION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CdcStrategy getDefaultInstance()
Returns
Type Description
CdcStrategy

getDescriptor()

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

newBuilder()

public static CdcStrategy.Builder newBuilder()
Returns
Type Description
CdcStrategy.Builder

newBuilder(CdcStrategy prototype)

public static CdcStrategy.Builder newBuilder(CdcStrategy prototype)
Parameter
Name Description
prototype CdcStrategy
Returns
Type Description
CdcStrategy.Builder

parseDelimitedFrom(InputStream input)

public static CdcStrategy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CdcStrategy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CdcStrategy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdcStrategy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CdcStrategy parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CdcStrategy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CdcStrategy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdcStrategy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CdcStrategy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CdcStrategy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CdcStrategy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdcStrategy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CdcStrategy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CdcStrategy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CdcStrategy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdcStrategy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CdcStrategy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CdcStrategy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CdcStrategy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdcStrategy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CdcStrategy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CdcStrategy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CdcStrategy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdcStrategy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CdcStrategy> parser()
Returns
Type Description
Parser<CdcStrategy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CdcStrategy getDefaultInstanceForType()
Returns
Type Description
CdcStrategy

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.

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.

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

getParserForType()

public Parser<CdcStrategy> getParserForType()
Returns
Type Description
Parser<CdcStrategy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CdcStrategy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CdcStrategy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException