Package com.daml.ledger.api.v1.admin
Class ParticipantPruningServiceOuterClass.PruneRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
- com.daml.ledger.api.v1.admin.ParticipantPruningServiceOuterClass.PruneRequest.Builder
-
- All Implemented Interfaces:
ParticipantPruningServiceOuterClass.PruneRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- ParticipantPruningServiceOuterClass.PruneRequest
public static final class ParticipantPruningServiceOuterClass.PruneRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder> implements ParticipantPruningServiceOuterClass.PruneRequestOrBuilder
Protobuf typecom.daml.ledger.api.v1.admin.PruneRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ParticipantPruningServiceOuterClass.PruneRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ParticipantPruningServiceOuterClass.PruneRequestbuild()ParticipantPruningServiceOuterClass.PruneRequestbuildPartial()ParticipantPruningServiceOuterClass.PruneRequest.Builderclear()ParticipantPruningServiceOuterClass.PruneRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ParticipantPruningServiceOuterClass.PruneRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ParticipantPruningServiceOuterClass.PruneRequest.BuilderclearPruneAllDivulgedContracts()Prune all immediately and retroactively divulged contracts created before `prune_up_to` independent of whether they were archived before `prune_up_to`.ParticipantPruningServiceOuterClass.PruneRequest.BuilderclearPruneUpTo()Inclusive offset up to which the ledger is to be pruned.ParticipantPruningServiceOuterClass.PruneRequest.BuilderclearSubmissionId()Unique submission identifier.ParticipantPruningServiceOuterClass.PruneRequest.Builderclone()ParticipantPruningServiceOuterClass.PruneRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetPruneAllDivulgedContracts()Prune all immediately and retroactively divulged contracts created before `prune_up_to` independent of whether they were archived before `prune_up_to`.java.lang.StringgetPruneUpTo()Inclusive offset up to which the ledger is to be pruned.com.google.protobuf.ByteStringgetPruneUpToBytes()Inclusive offset up to which the ledger is to be pruned.java.lang.StringgetSubmissionId()Unique submission identifier.com.google.protobuf.ByteStringgetSubmissionIdBytes()Unique submission identifier.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ParticipantPruningServiceOuterClass.PruneRequest.BuildermergeFrom(ParticipantPruningServiceOuterClass.PruneRequest other)ParticipantPruningServiceOuterClass.PruneRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ParticipantPruningServiceOuterClass.PruneRequest.BuildermergeFrom(com.google.protobuf.Message other)ParticipantPruningServiceOuterClass.PruneRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ParticipantPruningServiceOuterClass.PruneRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ParticipantPruningServiceOuterClass.PruneRequest.BuildersetPruneAllDivulgedContracts(boolean value)Prune all immediately and retroactively divulged contracts created before `prune_up_to` independent of whether they were archived before `prune_up_to`.ParticipantPruningServiceOuterClass.PruneRequest.BuildersetPruneUpTo(java.lang.String value)Inclusive offset up to which the ledger is to be pruned.ParticipantPruningServiceOuterClass.PruneRequest.BuildersetPruneUpToBytes(com.google.protobuf.ByteString value)Inclusive offset up to which the ledger is to be pruned.ParticipantPruningServiceOuterClass.PruneRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)ParticipantPruningServiceOuterClass.PruneRequest.BuildersetSubmissionId(java.lang.String value)Unique submission identifier.ParticipantPruningServiceOuterClass.PruneRequest.BuildersetSubmissionIdBytes(com.google.protobuf.ByteString value)Unique submission identifier.ParticipantPruningServiceOuterClass.PruneRequest.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
clear
public ParticipantPruningServiceOuterClass.PruneRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
getDefaultInstanceForType
public ParticipantPruningServiceOuterClass.PruneRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ParticipantPruningServiceOuterClass.PruneRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ParticipantPruningServiceOuterClass.PruneRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ParticipantPruningServiceOuterClass.PruneRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
setField
public ParticipantPruningServiceOuterClass.PruneRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
clearField
public ParticipantPruningServiceOuterClass.PruneRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
clearOneof
public ParticipantPruningServiceOuterClass.PruneRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
setRepeatedField
public ParticipantPruningServiceOuterClass.PruneRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
addRepeatedField
public ParticipantPruningServiceOuterClass.PruneRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
mergeFrom
public ParticipantPruningServiceOuterClass.PruneRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
mergeFrom
public ParticipantPruningServiceOuterClass.PruneRequest.Builder mergeFrom(ParticipantPruningServiceOuterClass.PruneRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
mergeFrom
public ParticipantPruningServiceOuterClass.PruneRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>- Throws:
java.io.IOException
-
getPruneUpTo
public java.lang.String getPruneUpTo()
Inclusive offset up to which the ledger is to be pruned. By default the following data is pruned: 1. All normal and divulged contracts that have been archived before `prune_up_to`. 2. All transaction events and completions before `prune_up_to`
string prune_up_to = 1 [json_name = "pruneUpTo"];- Specified by:
getPruneUpToin interfaceParticipantPruningServiceOuterClass.PruneRequestOrBuilder- Returns:
- The pruneUpTo.
-
getPruneUpToBytes
public com.google.protobuf.ByteString getPruneUpToBytes()
Inclusive offset up to which the ledger is to be pruned. By default the following data is pruned: 1. All normal and divulged contracts that have been archived before `prune_up_to`. 2. All transaction events and completions before `prune_up_to`
string prune_up_to = 1 [json_name = "pruneUpTo"];- Specified by:
getPruneUpToBytesin interfaceParticipantPruningServiceOuterClass.PruneRequestOrBuilder- Returns:
- The bytes for pruneUpTo.
-
setPruneUpTo
public ParticipantPruningServiceOuterClass.PruneRequest.Builder setPruneUpTo(java.lang.String value)
Inclusive offset up to which the ledger is to be pruned. By default the following data is pruned: 1. All normal and divulged contracts that have been archived before `prune_up_to`. 2. All transaction events and completions before `prune_up_to`
string prune_up_to = 1 [json_name = "pruneUpTo"];- Parameters:
value- The pruneUpTo to set.- Returns:
- This builder for chaining.
-
clearPruneUpTo
public ParticipantPruningServiceOuterClass.PruneRequest.Builder clearPruneUpTo()
Inclusive offset up to which the ledger is to be pruned. By default the following data is pruned: 1. All normal and divulged contracts that have been archived before `prune_up_to`. 2. All transaction events and completions before `prune_up_to`
string prune_up_to = 1 [json_name = "pruneUpTo"];- Returns:
- This builder for chaining.
-
setPruneUpToBytes
public ParticipantPruningServiceOuterClass.PruneRequest.Builder setPruneUpToBytes(com.google.protobuf.ByteString value)
Inclusive offset up to which the ledger is to be pruned. By default the following data is pruned: 1. All normal and divulged contracts that have been archived before `prune_up_to`. 2. All transaction events and completions before `prune_up_to`
string prune_up_to = 1 [json_name = "pruneUpTo"];- Parameters:
value- The bytes for pruneUpTo to set.- Returns:
- This builder for chaining.
-
getSubmissionId
public java.lang.String getSubmissionId()
Unique submission identifier. Optional, defaults to a random identifier, used for logging.
string submission_id = 2 [json_name = "submissionId"];- Specified by:
getSubmissionIdin interfaceParticipantPruningServiceOuterClass.PruneRequestOrBuilder- Returns:
- The submissionId.
-
getSubmissionIdBytes
public com.google.protobuf.ByteString getSubmissionIdBytes()
Unique submission identifier. Optional, defaults to a random identifier, used for logging.
string submission_id = 2 [json_name = "submissionId"];- Specified by:
getSubmissionIdBytesin interfaceParticipantPruningServiceOuterClass.PruneRequestOrBuilder- Returns:
- The bytes for submissionId.
-
setSubmissionId
public ParticipantPruningServiceOuterClass.PruneRequest.Builder setSubmissionId(java.lang.String value)
Unique submission identifier. Optional, defaults to a random identifier, used for logging.
string submission_id = 2 [json_name = "submissionId"];- Parameters:
value- The submissionId to set.- Returns:
- This builder for chaining.
-
clearSubmissionId
public ParticipantPruningServiceOuterClass.PruneRequest.Builder clearSubmissionId()
Unique submission identifier. Optional, defaults to a random identifier, used for logging.
string submission_id = 2 [json_name = "submissionId"];- Returns:
- This builder for chaining.
-
setSubmissionIdBytes
public ParticipantPruningServiceOuterClass.PruneRequest.Builder setSubmissionIdBytes(com.google.protobuf.ByteString value)
Unique submission identifier. Optional, defaults to a random identifier, used for logging.
string submission_id = 2 [json_name = "submissionId"];- Parameters:
value- The bytes for submissionId to set.- Returns:
- This builder for chaining.
-
getPruneAllDivulgedContracts
public boolean getPruneAllDivulgedContracts()
Prune all immediately and retroactively divulged contracts created before `prune_up_to` independent of whether they were archived before `prune_up_to`. Useful to avoid leaking storage on participant nodes that can see a divulged contract but not its archival. Application developers SHOULD write their Daml applications such that they do not rely on divulged contracts; i.e., no warnings from using divulged contracts as inputs to transactions are emitted. Participant node operators SHOULD set the `prune_all_divulged_contracts` flag to avoid leaking storage due to accumulating unarchived divulged contracts PROVIDED that: 1. no application using this participant node relies on divulgence OR 2. divulged contracts on which applications rely have been re-divulged after the `prune_up_to` offset.
bool prune_all_divulged_contracts = 3 [json_name = "pruneAllDivulgedContracts"];- Specified by:
getPruneAllDivulgedContractsin interfaceParticipantPruningServiceOuterClass.PruneRequestOrBuilder- Returns:
- The pruneAllDivulgedContracts.
-
setPruneAllDivulgedContracts
public ParticipantPruningServiceOuterClass.PruneRequest.Builder setPruneAllDivulgedContracts(boolean value)
Prune all immediately and retroactively divulged contracts created before `prune_up_to` independent of whether they were archived before `prune_up_to`. Useful to avoid leaking storage on participant nodes that can see a divulged contract but not its archival. Application developers SHOULD write their Daml applications such that they do not rely on divulged contracts; i.e., no warnings from using divulged contracts as inputs to transactions are emitted. Participant node operators SHOULD set the `prune_all_divulged_contracts` flag to avoid leaking storage due to accumulating unarchived divulged contracts PROVIDED that: 1. no application using this participant node relies on divulgence OR 2. divulged contracts on which applications rely have been re-divulged after the `prune_up_to` offset.
bool prune_all_divulged_contracts = 3 [json_name = "pruneAllDivulgedContracts"];- Parameters:
value- The pruneAllDivulgedContracts to set.- Returns:
- This builder for chaining.
-
clearPruneAllDivulgedContracts
public ParticipantPruningServiceOuterClass.PruneRequest.Builder clearPruneAllDivulgedContracts()
Prune all immediately and retroactively divulged contracts created before `prune_up_to` independent of whether they were archived before `prune_up_to`. Useful to avoid leaking storage on participant nodes that can see a divulged contract but not its archival. Application developers SHOULD write their Daml applications such that they do not rely on divulged contracts; i.e., no warnings from using divulged contracts as inputs to transactions are emitted. Participant node operators SHOULD set the `prune_all_divulged_contracts` flag to avoid leaking storage due to accumulating unarchived divulged contracts PROVIDED that: 1. no application using this participant node relies on divulgence OR 2. divulged contracts on which applications rely have been re-divulged after the `prune_up_to` offset.
bool prune_all_divulged_contracts = 3 [json_name = "pruneAllDivulgedContracts"];- Returns:
- This builder for chaining.
-
setUnknownFields
public final ParticipantPruningServiceOuterClass.PruneRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
mergeUnknownFields
public final ParticipantPruningServiceOuterClass.PruneRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ParticipantPruningServiceOuterClass.PruneRequest.Builder>
-
-