Class InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
com.daml.ledger.api.v2.interactive.InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder
- All Implemented Interfaces:
InteractiveSubmissionServiceOuterClass.CostEstimationHintsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
InteractiveSubmissionServiceOuterClass.CostEstimationHints
public static final class InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
implements InteractiveSubmissionServiceOuterClass.CostEstimationHintsOrBuilder
Hints to improve cost estimation precision of a prepared transactionProtobuf type
com.daml.ledger.api.v2.interactive.CostEstimationHints-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpectedSignatures(Iterable<? extends CryptoOuterClass.SigningAlgorithmSpec> values) Details on the keys that will be used to sign the transaction (how many and of which type).addAllExpectedSignaturesValue(Iterable<Integer> values) Details on the keys that will be used to sign the transaction (how many and of which type).Details on the keys that will be used to sign the transaction (how many and of which type).addExpectedSignaturesValue(int value) Details on the keys that will be used to sign the transaction (how many and of which type).addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Disable cost estimation Default (not set) is false OptionalDetails on the keys that will be used to sign the transaction (how many and of which type).clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanDisable cost estimation Default (not set) is false OptionalgetExpectedSignatures(int index) Details on the keys that will be used to sign the transaction (how many and of which type).intDetails on the keys that will be used to sign the transaction (how many and of which type).Details on the keys that will be used to sign the transaction (how many and of which type).intgetExpectedSignaturesValue(int index) Details on the keys that will be used to sign the transaction (how many and of which type).Details on the keys that will be used to sign the transaction (how many and of which type).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDisabled(boolean value) Disable cost estimation Default (not set) is false OptionalsetExpectedSignatures(int index, CryptoOuterClass.SigningAlgorithmSpec value) Details on the keys that will be used to sign the transaction (how many and of which type).setExpectedSignaturesValue(int index, int value) Details on the keys that will be used to sign the transaction (how many and of which type).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<InteractiveSubmissionServiceOuterClass.CostEstimationHints.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<InteractiveSubmissionServiceOuterClass.CostEstimationHints.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<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-
setField
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-
clearField
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-
clearOneof
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-
setRepeatedField
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-
addRepeatedField
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-
mergeFrom
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-
mergeFrom
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>- Throws:
IOException
-
getDisabled
public boolean getDisabled()Disable cost estimation Default (not set) is false Optional
bool disabled = 1;- Specified by:
getDisabledin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationHintsOrBuilder- Returns:
- The disabled.
-
setDisabled
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder setDisabled(boolean value) Disable cost estimation Default (not set) is false Optional
bool disabled = 1;- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
Disable cost estimation Default (not set) is false Optional
bool disabled = 1;- Returns:
- This builder for chaining.
-
getExpectedSignaturesList
Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Specified by:
getExpectedSignaturesListin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationHintsOrBuilder- Returns:
- A list containing the expectedSignatures.
-
getExpectedSignaturesCount
public int getExpectedSignaturesCount()Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Specified by:
getExpectedSignaturesCountin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationHintsOrBuilder- Returns:
- The count of expectedSignatures.
-
getExpectedSignatures
Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Specified by:
getExpectedSignaturesin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationHintsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The expectedSignatures at the given index.
-
setExpectedSignatures
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder setExpectedSignatures(int index, CryptoOuterClass.SigningAlgorithmSpec value) Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Parameters:
index- The index to set the value at.value- The expectedSignatures to set.- Returns:
- This builder for chaining.
-
addExpectedSignatures
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder addExpectedSignatures(CryptoOuterClass.SigningAlgorithmSpec value) Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Parameters:
value- The expectedSignatures to add.- Returns:
- This builder for chaining.
-
addAllExpectedSignatures
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder addAllExpectedSignatures(Iterable<? extends CryptoOuterClass.SigningAlgorithmSpec> values) Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Parameters:
values- The expectedSignatures to add.- Returns:
- This builder for chaining.
-
clearExpectedSignatures
Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Returns:
- This builder for chaining.
-
getExpectedSignaturesValueList
Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Specified by:
getExpectedSignaturesValueListin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationHintsOrBuilder- Returns:
- A list containing the enum numeric values on the wire for expectedSignatures.
-
getExpectedSignaturesValue
public int getExpectedSignaturesValue(int index) Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Specified by:
getExpectedSignaturesValuein interfaceInteractiveSubmissionServiceOuterClass.CostEstimationHintsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of expectedSignatures at the given index.
-
setExpectedSignaturesValue
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder setExpectedSignaturesValue(int index, int value) Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for expectedSignatures to set.- Returns:
- This builder for chaining.
-
addExpectedSignaturesValue
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder addExpectedSignaturesValue(int value) Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Parameters:
value- The enum numeric value on the wire for expectedSignatures to add.- Returns:
- This builder for chaining.
-
addAllExpectedSignaturesValue
public InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder addAllExpectedSignaturesValue(Iterable<Integer> values) Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToParticipant of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
repeated .com.daml.ledger.api.v2.SigningAlgorithmSpec expected_signatures = 2;- Parameters:
values- The enum numeric values on the wire for expectedSignatures to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-
mergeUnknownFields
public final InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimationHints.Builder>
-