Package com.daml.ledger.api.v1
Class LedgerOffsetOuterClass.LedgerOffset.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
- com.daml.ledger.api.v1.LedgerOffsetOuterClass.LedgerOffset.Builder
-
- All Implemented Interfaces:
LedgerOffsetOuterClass.LedgerOffsetOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- LedgerOffsetOuterClass.LedgerOffset
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 typecom.daml.ledger.api.v1.LedgerOffset
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
boolean
hasAbsolute()
The format of this string is specific to the ledger and opaque to the client.boolean
hasBoundary()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2 [json_name = "boundary"];
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LedgerOffsetOuterClass.LedgerOffset.Builder
mergeFrom(LedgerOffsetOuterClass.LedgerOffset other)
LedgerOffsetOuterClass.LedgerOffset.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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)
-
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<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
clear
public LedgerOffsetOuterClass.LedgerOffset.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<LedgerOffsetOuterClass.LedgerOffset.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<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
getDefaultInstanceForType
public LedgerOffsetOuterClass.LedgerOffset getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LedgerOffsetOuterClass.LedgerOffset build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LedgerOffsetOuterClass.LedgerOffset buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LedgerOffsetOuterClass.LedgerOffset.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<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
setField
public LedgerOffsetOuterClass.LedgerOffset.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<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
clearField
public LedgerOffsetOuterClass.LedgerOffset.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<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
clearOneof
public LedgerOffsetOuterClass.LedgerOffset.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<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
setRepeatedField
public LedgerOffsetOuterClass.LedgerOffset.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<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
addRepeatedField
public LedgerOffsetOuterClass.LedgerOffset.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<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
mergeFrom
public LedgerOffsetOuterClass.LedgerOffset.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
mergeFrom
public LedgerOffsetOuterClass.LedgerOffset.Builder mergeFrom(LedgerOffsetOuterClass.LedgerOffset other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
mergeFrom
public LedgerOffsetOuterClass.LedgerOffset.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<LedgerOffsetOuterClass.LedgerOffset.Builder>
- Throws:
java.io.IOException
-
getValueCase
public LedgerOffsetOuterClass.LedgerOffset.ValueCase getValueCase()
- Specified by:
getValueCase
in interfaceLedgerOffsetOuterClass.LedgerOffsetOrBuilder
-
clearValue
public LedgerOffsetOuterClass.LedgerOffset.Builder clearValue()
-
hasAbsolute
public boolean hasAbsolute()
The format of this string is specific to the ledger and opaque to the client.
string absolute = 1 [json_name = "absolute"];
- Specified by:
hasAbsolute
in interfaceLedgerOffsetOuterClass.LedgerOffsetOrBuilder
- Returns:
- Whether the absolute field is set.
-
getAbsolute
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"];
- Specified by:
getAbsolute
in interfaceLedgerOffsetOuterClass.LedgerOffsetOrBuilder
- Returns:
- The absolute.
-
getAbsoluteBytes
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"];
- Specified by:
getAbsoluteBytes
in interfaceLedgerOffsetOuterClass.LedgerOffsetOrBuilder
- Returns:
- The bytes for absolute.
-
setAbsolute
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"];
- Parameters:
value
- The absolute to set.- Returns:
- This builder for chaining.
-
clearAbsolute
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"];
- Returns:
- This builder for chaining.
-
setAbsoluteBytes
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"];
- Parameters:
value
- The bytes for absolute to set.- Returns:
- This builder for chaining.
-
hasBoundary
public boolean hasBoundary()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2 [json_name = "boundary"];
- Specified by:
hasBoundary
in interfaceLedgerOffsetOuterClass.LedgerOffsetOrBuilder
- Returns:
- Whether the boundary field is set.
-
getBoundaryValue
public int getBoundaryValue()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2 [json_name = "boundary"];
- Specified by:
getBoundaryValue
in interfaceLedgerOffsetOuterClass.LedgerOffsetOrBuilder
- Returns:
- The enum numeric value on the wire for boundary.
-
setBoundaryValue
public LedgerOffsetOuterClass.LedgerOffset.Builder setBoundaryValue(int value)
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2 [json_name = "boundary"];
- Parameters:
value
- The enum numeric value on the wire for boundary to set.- Returns:
- This builder for chaining.
-
getBoundary
public LedgerOffsetOuterClass.LedgerOffset.LedgerBoundary getBoundary()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2 [json_name = "boundary"];
- Specified by:
getBoundary
in interfaceLedgerOffsetOuterClass.LedgerOffsetOrBuilder
- Returns:
- The boundary.
-
setBoundary
public LedgerOffsetOuterClass.LedgerOffset.Builder setBoundary(LedgerOffsetOuterClass.LedgerOffset.LedgerBoundary value)
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2 [json_name = "boundary"];
- Parameters:
value
- The boundary to set.- Returns:
- This builder for chaining.
-
clearBoundary
public LedgerOffsetOuterClass.LedgerOffset.Builder clearBoundary()
.com.daml.ledger.api.v1.LedgerOffset.LedgerBoundary boundary = 2 [json_name = "boundary"];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final LedgerOffsetOuterClass.LedgerOffset.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
mergeUnknownFields
public final LedgerOffsetOuterClass.LedgerOffset.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LedgerOffsetOuterClass.LedgerOffset.Builder>
-
-