Class CustomAPICheckpointConfig (0.37.0)

public final class CustomAPICheckpointConfig extends GeneratedMessage implements CustomAPICheckpointConfigOrBuilder

Checkpoint configuration to enable sequential (cursor-based) polling.

Protobuf type google.cloud.chronicle.v1.CustomAPICheckpointConfig

Static Fields

ITERATOR_STRATEGY_FIELD_NUMBER

public static final int ITERATOR_STRATEGY_FIELD_NUMBER
Field Value
Type Description
int

LATEST_RECORD_STRATEGY_FIELD_NUMBER

public static final int LATEST_RECORD_STRATEGY_FIELD_NUMBER
Field Value
Type Description
int

LATEST_TIMESTAMP_STRATEGY_FIELD_NUMBER

public static final int LATEST_TIMESTAMP_STRATEGY_FIELD_NUMBER
Field Value
Type Description
int

NONE_STRATEGY_FIELD_NUMBER

public static final int NONE_STRATEGY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CustomAPICheckpointConfig getDefaultInstance()
Returns
Type Description
CustomAPICheckpointConfig

getDescriptor()

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

newBuilder()

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

newBuilder(CustomAPICheckpointConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CustomAPICheckpointConfig getDefaultInstanceForType()
Returns
Type Description
CustomAPICheckpointConfig

getIteratorStrategy()

public CustomAPICheckpointConfig.IteratorStrategy getIteratorStrategy()

Use progress tokens provided by the API.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.IteratorStrategy iterator_strategy = 4;

Returns
Type Description
CustomAPICheckpointConfig.IteratorStrategy

The iteratorStrategy.

getIteratorStrategyOrBuilder()

public CustomAPICheckpointConfig.IteratorStrategyOrBuilder getIteratorStrategyOrBuilder()

Use progress tokens provided by the API.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.IteratorStrategy iterator_strategy = 4;

Returns
Type Description
CustomAPICheckpointConfig.IteratorStrategyOrBuilder

getLatestRecordStrategy()

public CustomAPICheckpointConfig.LatestRecordStrategy getLatestRecordStrategy()

Track the highest record ID to fetch only new records next.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.LatestRecordStrategy latest_record_strategy = 3;

Returns
Type Description
CustomAPICheckpointConfig.LatestRecordStrategy

The latestRecordStrategy.

getLatestRecordStrategyOrBuilder()

public CustomAPICheckpointConfig.LatestRecordStrategyOrBuilder getLatestRecordStrategyOrBuilder()

Track the highest record ID to fetch only new records next.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.LatestRecordStrategy latest_record_strategy = 3;

Returns
Type Description
CustomAPICheckpointConfig.LatestRecordStrategyOrBuilder

getLatestTimestampStrategy()

public CustomAPICheckpointConfig.LatestTimestampStrategy getLatestTimestampStrategy()

Track the timestamp of the newest record to fetch newer ones next.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.LatestTimestampStrategy latest_timestamp_strategy = 2;

Returns
Type Description
CustomAPICheckpointConfig.LatestTimestampStrategy

The latestTimestampStrategy.

getLatestTimestampStrategyOrBuilder()

public CustomAPICheckpointConfig.LatestTimestampStrategyOrBuilder getLatestTimestampStrategyOrBuilder()

Track the timestamp of the newest record to fetch newer ones next.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.LatestTimestampStrategy latest_timestamp_strategy = 2;

Returns
Type Description
CustomAPICheckpointConfig.LatestTimestampStrategyOrBuilder

getNoneStrategy()

public CustomAPICheckpointConfig.NoneStrategy getNoneStrategy()

Fetch all available data in one go without tracking progress.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.NoneStrategy none_strategy = 1;

Returns
Type Description
CustomAPICheckpointConfig.NoneStrategy

The noneStrategy.

getNoneStrategyOrBuilder()

public CustomAPICheckpointConfig.NoneStrategyOrBuilder getNoneStrategyOrBuilder()

Fetch all available data in one go without tracking progress.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.NoneStrategy none_strategy = 1;

Returns
Type Description
CustomAPICheckpointConfig.NoneStrategyOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStrategyCase()

public CustomAPICheckpointConfig.StrategyCase getStrategyCase()
Returns
Type Description
CustomAPICheckpointConfig.StrategyCase

hasIteratorStrategy()

public boolean hasIteratorStrategy()

Use progress tokens provided by the API.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.IteratorStrategy iterator_strategy = 4;

Returns
Type Description
boolean

Whether the iteratorStrategy field is set.

hasLatestRecordStrategy()

public boolean hasLatestRecordStrategy()

Track the highest record ID to fetch only new records next.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.LatestRecordStrategy latest_record_strategy = 3;

Returns
Type Description
boolean

Whether the latestRecordStrategy field is set.

hasLatestTimestampStrategy()

public boolean hasLatestTimestampStrategy()

Track the timestamp of the newest record to fetch newer ones next.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.LatestTimestampStrategy latest_timestamp_strategy = 2;

Returns
Type Description
boolean

Whether the latestTimestampStrategy field is set.

hasNoneStrategy()

public boolean hasNoneStrategy()

Fetch all available data in one go without tracking progress.

.google.cloud.chronicle.v1.CustomAPICheckpointConfig.NoneStrategy none_strategy = 1;

Returns
Type Description
boolean

Whether the noneStrategy field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CustomAPICheckpointConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CustomAPICheckpointConfig.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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