Package com.daml.ledger.api.v1
Class CommandCompletionServiceOuterClass.Checkpoint.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
- com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint.Builder
-
- All Implemented Interfaces:
CommandCompletionServiceOuterClass.CheckpointOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- CommandCompletionServiceOuterClass.Checkpoint
public static final class CommandCompletionServiceOuterClass.Checkpoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.Checkpoint.Builder> implements CommandCompletionServiceOuterClass.CheckpointOrBuilder
Checkpoints may be used to: * detect time out of commands. * provide an offset which can be used to restart consumption.
Protobuf typecom.daml.ledger.api.v1.Checkpoint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandCompletionServiceOuterClass.Checkpoint.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CommandCompletionServiceOuterClass.Checkpoint
build()
CommandCompletionServiceOuterClass.Checkpoint
buildPartial()
CommandCompletionServiceOuterClass.Checkpoint.Builder
clear()
CommandCompletionServiceOuterClass.Checkpoint.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CommandCompletionServiceOuterClass.Checkpoint.Builder
clearOffset()
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.CommandCompletionServiceOuterClass.Checkpoint.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CommandCompletionServiceOuterClass.Checkpoint.Builder
clearRecordTime()
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint.CommandCompletionServiceOuterClass.Checkpoint.Builder
clone()
CommandCompletionServiceOuterClass.Checkpoint
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
LedgerOffsetOuterClass.LedgerOffset
getOffset()
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.LedgerOffsetOuterClass.LedgerOffset.Builder
getOffsetBuilder()
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.LedgerOffsetOuterClass.LedgerOffsetOrBuilder
getOffsetOrBuilder()
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.com.google.protobuf.Timestamp
getRecordTime()
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint.com.google.protobuf.Timestamp.Builder
getRecordTimeBuilder()
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint.com.google.protobuf.TimestampOrBuilder
getRecordTimeOrBuilder()
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint.boolean
hasOffset()
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.boolean
hasRecordTime()
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CommandCompletionServiceOuterClass.Checkpoint.Builder
mergeFrom(CommandCompletionServiceOuterClass.Checkpoint other)
CommandCompletionServiceOuterClass.Checkpoint.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CommandCompletionServiceOuterClass.Checkpoint.Builder
mergeFrom(com.google.protobuf.Message other)
CommandCompletionServiceOuterClass.Checkpoint.Builder
mergeOffset(LedgerOffsetOuterClass.LedgerOffset value)
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.CommandCompletionServiceOuterClass.Checkpoint.Builder
mergeRecordTime(com.google.protobuf.Timestamp value)
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint.CommandCompletionServiceOuterClass.Checkpoint.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CommandCompletionServiceOuterClass.Checkpoint.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CommandCompletionServiceOuterClass.Checkpoint.Builder
setOffset(LedgerOffsetOuterClass.LedgerOffset value)
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.CommandCompletionServiceOuterClass.Checkpoint.Builder
setOffset(LedgerOffsetOuterClass.LedgerOffset.Builder builderForValue)
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time.CommandCompletionServiceOuterClass.Checkpoint.Builder
setRecordTime(com.google.protobuf.Timestamp value)
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint.CommandCompletionServiceOuterClass.Checkpoint.Builder
setRecordTime(com.google.protobuf.Timestamp.Builder builderForValue)
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint.CommandCompletionServiceOuterClass.Checkpoint.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
CommandCompletionServiceOuterClass.Checkpoint.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
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<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
clear
public CommandCompletionServiceOuterClass.Checkpoint.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<CommandCompletionServiceOuterClass.Checkpoint.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<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
getDefaultInstanceForType
public CommandCompletionServiceOuterClass.Checkpoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommandCompletionServiceOuterClass.Checkpoint build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommandCompletionServiceOuterClass.Checkpoint buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommandCompletionServiceOuterClass.Checkpoint.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<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
setField
public CommandCompletionServiceOuterClass.Checkpoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
clearField
public CommandCompletionServiceOuterClass.Checkpoint.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<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
clearOneof
public CommandCompletionServiceOuterClass.Checkpoint.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<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
setRepeatedField
public CommandCompletionServiceOuterClass.Checkpoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
addRepeatedField
public CommandCompletionServiceOuterClass.Checkpoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
mergeFrom
public CommandCompletionServiceOuterClass.Checkpoint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
mergeFrom
public CommandCompletionServiceOuterClass.Checkpoint.Builder mergeFrom(CommandCompletionServiceOuterClass.Checkpoint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
mergeFrom
public CommandCompletionServiceOuterClass.Checkpoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<CommandCompletionServiceOuterClass.Checkpoint.Builder>
- Throws:
java.io.IOException
-
hasRecordTime
public boolean hasRecordTime()
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint. Required
.google.protobuf.Timestamp record_time = 1 [json_name = "recordTime"];
- Specified by:
hasRecordTime
in interfaceCommandCompletionServiceOuterClass.CheckpointOrBuilder
- Returns:
- Whether the recordTime field is set.
-
getRecordTime
public com.google.protobuf.Timestamp getRecordTime()
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint. Required
.google.protobuf.Timestamp record_time = 1 [json_name = "recordTime"];
- Specified by:
getRecordTime
in interfaceCommandCompletionServiceOuterClass.CheckpointOrBuilder
- Returns:
- The recordTime.
-
setRecordTime
public CommandCompletionServiceOuterClass.Checkpoint.Builder setRecordTime(com.google.protobuf.Timestamp value)
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint. Required
.google.protobuf.Timestamp record_time = 1 [json_name = "recordTime"];
-
setRecordTime
public CommandCompletionServiceOuterClass.Checkpoint.Builder setRecordTime(com.google.protobuf.Timestamp.Builder builderForValue)
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint. Required
.google.protobuf.Timestamp record_time = 1 [json_name = "recordTime"];
-
mergeRecordTime
public CommandCompletionServiceOuterClass.Checkpoint.Builder mergeRecordTime(com.google.protobuf.Timestamp value)
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint. Required
.google.protobuf.Timestamp record_time = 1 [json_name = "recordTime"];
-
clearRecordTime
public CommandCompletionServiceOuterClass.Checkpoint.Builder clearRecordTime()
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint. Required
.google.protobuf.Timestamp record_time = 1 [json_name = "recordTime"];
-
getRecordTimeBuilder
public com.google.protobuf.Timestamp.Builder getRecordTimeBuilder()
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint. Required
.google.protobuf.Timestamp record_time = 1 [json_name = "recordTime"];
-
getRecordTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRecordTimeOrBuilder()
All commands with a maximum record time below this value MUST be considered lost if their completion has not arrived before this checkpoint. Required
.google.protobuf.Timestamp record_time = 1 [json_name = "recordTime"];
- Specified by:
getRecordTimeOrBuilder
in interfaceCommandCompletionServiceOuterClass.CheckpointOrBuilder
-
hasOffset
public boolean hasOffset()
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required
.com.daml.ledger.api.v1.LedgerOffset offset = 2 [json_name = "offset"];
- Specified by:
hasOffset
in interfaceCommandCompletionServiceOuterClass.CheckpointOrBuilder
- Returns:
- Whether the offset field is set.
-
getOffset
public LedgerOffsetOuterClass.LedgerOffset getOffset()
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required
.com.daml.ledger.api.v1.LedgerOffset offset = 2 [json_name = "offset"];
- Specified by:
getOffset
in interfaceCommandCompletionServiceOuterClass.CheckpointOrBuilder
- Returns:
- The offset.
-
setOffset
public CommandCompletionServiceOuterClass.Checkpoint.Builder setOffset(LedgerOffsetOuterClass.LedgerOffset value)
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required
.com.daml.ledger.api.v1.LedgerOffset offset = 2 [json_name = "offset"];
-
setOffset
public CommandCompletionServiceOuterClass.Checkpoint.Builder setOffset(LedgerOffsetOuterClass.LedgerOffset.Builder builderForValue)
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required
.com.daml.ledger.api.v1.LedgerOffset offset = 2 [json_name = "offset"];
-
mergeOffset
public CommandCompletionServiceOuterClass.Checkpoint.Builder mergeOffset(LedgerOffsetOuterClass.LedgerOffset value)
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required
.com.daml.ledger.api.v1.LedgerOffset offset = 2 [json_name = "offset"];
-
clearOffset
public CommandCompletionServiceOuterClass.Checkpoint.Builder clearOffset()
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required
.com.daml.ledger.api.v1.LedgerOffset offset = 2 [json_name = "offset"];
-
getOffsetBuilder
public LedgerOffsetOuterClass.LedgerOffset.Builder getOffsetBuilder()
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required
.com.daml.ledger.api.v1.LedgerOffset offset = 2 [json_name = "offset"];
-
getOffsetOrBuilder
public LedgerOffsetOuterClass.LedgerOffsetOrBuilder getOffsetOrBuilder()
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required
.com.daml.ledger.api.v1.LedgerOffset offset = 2 [json_name = "offset"];
- Specified by:
getOffsetOrBuilder
in interfaceCommandCompletionServiceOuterClass.CheckpointOrBuilder
-
setUnknownFields
public final CommandCompletionServiceOuterClass.Checkpoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
mergeUnknownFields
public final CommandCompletionServiceOuterClass.Checkpoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandCompletionServiceOuterClass.Checkpoint.Builder>
-
-