public static final class LedgerOffsetOuterClass.LedgerOffset.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder> implements LedgerOffsetOuterClass.LedgerOffsetOrBuilder
Describes a specific point on the ledger. The Ledger API endpoints that take offsets allow to specify portions of the ledger that are relevant for the client to read. Offsets returned by the Ledger API can be used as-is (e.g. to keep track of processed transactions and provide a restart point to use in case of need). The format of absolute offsets is opaque to the client: no client-side transformation of an offset is guaranteed to return a meaningful offset. The server implementation ensures internally that offsets are lexicographically comparable.Protobuf type
com.daml.ledger.api.v1.LedgerOffset
Modifier and Type | Method and Description |
---|---|
LedgerOffsetOuterClass.LedgerOffset.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
LedgerOffsetOuterClass.LedgerOffset |
build() |
LedgerOffsetOuterClass.LedgerOffset |
buildPartial() |
LedgerOffsetOuterClass.LedgerOffset.Builder |
clear() |
LedgerOffsetOuterClass.LedgerOffset.Builder |
clearAbsolute()
The format of this string is specific to the ledger and opaque to the client.
|
LedgerOffsetOuterClass.LedgerOffset.Builder |
clearBoundary()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2[json_name = "boundary"]; |
LedgerOffsetOuterClass.LedgerOffset.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LedgerOffsetOuterClass.LedgerOffset.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LedgerOffsetOuterClass.LedgerOffset.Builder |
clearValue() |
LedgerOffsetOuterClass.LedgerOffset.Builder |
clone() |
java.lang.String |
getAbsolute()
The format of this string is specific to the ledger and opaque to the client.
|
com.google.protobuf.ByteString |
getAbsoluteBytes()
The format of this string is specific to the ledger and opaque to the client.
|
LedgerOffsetOuterClass.LedgerOffset.LedgerBoundary |
getBoundary()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2[json_name = "boundary"]; |
int |
getBoundaryValue()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2[json_name = "boundary"]; |
LedgerOffsetOuterClass.LedgerOffset |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LedgerOffsetOuterClass.LedgerOffset.ValueCase |
getValueCase() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LedgerOffsetOuterClass.LedgerOffset.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LedgerOffsetOuterClass.LedgerOffset.Builder |
mergeFrom(LedgerOffsetOuterClass.LedgerOffset other) |
LedgerOffsetOuterClass.LedgerOffset.Builder |
mergeFrom(com.google.protobuf.Message other) |
LedgerOffsetOuterClass.LedgerOffset.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LedgerOffsetOuterClass.LedgerOffset.Builder |
setAbsolute(java.lang.String value)
The format of this string is specific to the ledger and opaque to the client.
|
LedgerOffsetOuterClass.LedgerOffset.Builder |
setAbsoluteBytes(com.google.protobuf.ByteString value)
The format of this string is specific to the ledger and opaque to the client.
|
LedgerOffsetOuterClass.LedgerOffset.Builder |
setBoundary(LedgerOffsetOuterClass.LedgerOffset.LedgerBoundary value)
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2[json_name = "boundary"]; |
LedgerOffsetOuterClass.LedgerOffset.Builder |
setBoundaryValue(int value)
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2[json_name = "boundary"]; |
LedgerOffsetOuterClass.LedgerOffset.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
LedgerOffsetOuterClass.LedgerOffset.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
LedgerOffsetOuterClass.LedgerOffset.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public LedgerOffsetOuterClass.LedgerOffset.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public LedgerOffsetOuterClass.LedgerOffset getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LedgerOffsetOuterClass.LedgerOffset build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LedgerOffsetOuterClass.LedgerOffset buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LedgerOffsetOuterClass.LedgerOffset.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public LedgerOffsetOuterClass.LedgerOffset.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public LedgerOffsetOuterClass.LedgerOffset.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public LedgerOffsetOuterClass.LedgerOffset.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public LedgerOffsetOuterClass.LedgerOffset.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public LedgerOffsetOuterClass.LedgerOffset.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public LedgerOffsetOuterClass.LedgerOffset.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public LedgerOffsetOuterClass.LedgerOffset.Builder mergeFrom(LedgerOffsetOuterClass.LedgerOffset other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public LedgerOffsetOuterClass.LedgerOffset.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
java.io.IOException
public LedgerOffsetOuterClass.LedgerOffset.ValueCase getValueCase()
getValueCase
in interface LedgerOffsetOuterClass.LedgerOffsetOrBuilder
public LedgerOffsetOuterClass.LedgerOffset.Builder clearValue()
public java.lang.String getAbsolute()
The format of this string is specific to the ledger and opaque to the client.
string absolute = 1[json_name = "absolute"];
getAbsolute
in interface LedgerOffsetOuterClass.LedgerOffsetOrBuilder
public com.google.protobuf.ByteString getAbsoluteBytes()
The format of this string is specific to the ledger and opaque to the client.
string absolute = 1[json_name = "absolute"];
getAbsoluteBytes
in interface LedgerOffsetOuterClass.LedgerOffsetOrBuilder
public LedgerOffsetOuterClass.LedgerOffset.Builder setAbsolute(java.lang.String value)
The format of this string is specific to the ledger and opaque to the client.
string absolute = 1[json_name = "absolute"];
value
- The absolute to set.public LedgerOffsetOuterClass.LedgerOffset.Builder clearAbsolute()
The format of this string is specific to the ledger and opaque to the client.
string absolute = 1[json_name = "absolute"];
public LedgerOffsetOuterClass.LedgerOffset.Builder setAbsoluteBytes(com.google.protobuf.ByteString value)
The format of this string is specific to the ledger and opaque to the client.
string absolute = 1[json_name = "absolute"];
value
- The bytes for absolute to set.public int getBoundaryValue()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2[json_name = "boundary"];
getBoundaryValue
in interface LedgerOffsetOuterClass.LedgerOffsetOrBuilder
public LedgerOffsetOuterClass.LedgerOffset.Builder setBoundaryValue(int value)
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2[json_name = "boundary"];
value
- The enum numeric value on the wire for boundary to set.public LedgerOffsetOuterClass.LedgerOffset.LedgerBoundary getBoundary()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2[json_name = "boundary"];
getBoundary
in interface LedgerOffsetOuterClass.LedgerOffsetOrBuilder
public LedgerOffsetOuterClass.LedgerOffset.Builder setBoundary(LedgerOffsetOuterClass.LedgerOffset.LedgerBoundary value)
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2[json_name = "boundary"];
value
- The boundary to set.public LedgerOffsetOuterClass.LedgerOffset.Builder clearBoundary()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2[json_name = "boundary"];
public final LedgerOffsetOuterClass.LedgerOffset.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
public final LedgerOffsetOuterClass.LedgerOffset.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>