Class InteractiveSubmissionServiceOuterClass.CostEstimation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<InteractiveSubmissionServiceOuterClass.CostEstimation.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimation.Builder>
com.daml.ledger.api.v2.interactive.InteractiveSubmissionServiceOuterClass.CostEstimation.Builder
- All Implemented Interfaces:
InteractiveSubmissionServiceOuterClass.CostEstimationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
InteractiveSubmissionServiceOuterClass.CostEstimation
public static final class InteractiveSubmissionServiceOuterClass.CostEstimation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimation.Builder>
implements InteractiveSubmissionServiceOuterClass.CostEstimationOrBuilder
Estimation of the cost of submitting the prepared transaction The estimation is done against the synchronizer chosen during preparation of the transaction (or the one explicitly requested). The cost of re-assigning contracts to another synchronizer when necessary is not included in the estimation.Protobuf type
com.daml.ledger.api.v2.interactive.CostEstimation-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Estimated traffic cost of the confirmation request associated with the transaction RequiredEstimated traffic cost of the confirmation response associated with the transaction This field can also be used as an indication of the cost that other potential confirming nodes of the party will incur to approve or reject the transaction RequiredTimestamp at which the estimation was made RequiredclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Sum of the fields above Requiredclone()longEstimated traffic cost of the confirmation request associated with the transaction RequiredlongEstimated traffic cost of the confirmation response associated with the transaction This field can also be used as an indication of the cost that other potential confirming nodes of the party will incur to approve or reject the transaction Requiredstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampTimestamp at which the estimation was made Requiredcom.google.protobuf.Timestamp.BuilderTimestamp at which the estimation was made Requiredcom.google.protobuf.TimestampOrBuilderTimestamp at which the estimation was made RequiredlongSum of the fields above RequiredbooleanTimestamp at which the estimation was made Requiredprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeEstimationTimestamp(com.google.protobuf.Timestamp value) Timestamp at which the estimation was made RequiredmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setConfirmationRequestTrafficCostEstimation(long value) Estimated traffic cost of the confirmation request associated with the transaction RequiredsetConfirmationResponseTrafficCostEstimation(long value) Estimated traffic cost of the confirmation response associated with the transaction This field can also be used as an indication of the cost that other potential confirming nodes of the party will incur to approve or reject the transaction RequiredsetEstimationTimestamp(com.google.protobuf.Timestamp value) Timestamp at which the estimation was made RequiredsetEstimationTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp at which the estimation was made RequiredsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTotalTrafficCostEstimation(long value) Sum of the fields above RequiredsetUnknownFields(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.CostEstimation.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.CostEstimation.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.CostEstimation.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.CostEstimation.Builder>
-
setField
public InteractiveSubmissionServiceOuterClass.CostEstimation.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.CostEstimation.Builder>
-
clearField
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimation.Builder>
-
clearOneof
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimation.Builder>
-
setRepeatedField
public InteractiveSubmissionServiceOuterClass.CostEstimation.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.CostEstimation.Builder>
-
addRepeatedField
public InteractiveSubmissionServiceOuterClass.CostEstimation.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.CostEstimation.Builder>
-
mergeFrom
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InteractiveSubmissionServiceOuterClass.CostEstimation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimation.Builder>
-
mergeFrom
public InteractiveSubmissionServiceOuterClass.CostEstimation.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.CostEstimation.Builder>- Throws:
IOException
-
hasEstimationTimestamp
public boolean hasEstimationTimestamp()Timestamp at which the estimation was made Required
.google.protobuf.Timestamp estimation_timestamp = 1;- Specified by:
hasEstimationTimestampin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationOrBuilder- Returns:
- Whether the estimationTimestamp field is set.
-
getEstimationTimestamp
public com.google.protobuf.Timestamp getEstimationTimestamp()Timestamp at which the estimation was made Required
.google.protobuf.Timestamp estimation_timestamp = 1;- Specified by:
getEstimationTimestampin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationOrBuilder- Returns:
- The estimationTimestamp.
-
setEstimationTimestamp
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder setEstimationTimestamp(com.google.protobuf.Timestamp value) Timestamp at which the estimation was made Required
.google.protobuf.Timestamp estimation_timestamp = 1; -
setEstimationTimestamp
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder setEstimationTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp at which the estimation was made Required
.google.protobuf.Timestamp estimation_timestamp = 1; -
mergeEstimationTimestamp
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder mergeEstimationTimestamp(com.google.protobuf.Timestamp value) Timestamp at which the estimation was made Required
.google.protobuf.Timestamp estimation_timestamp = 1; -
clearEstimationTimestamp
Timestamp at which the estimation was made Required
.google.protobuf.Timestamp estimation_timestamp = 1; -
getEstimationTimestampBuilder
public com.google.protobuf.Timestamp.Builder getEstimationTimestampBuilder()Timestamp at which the estimation was made Required
.google.protobuf.Timestamp estimation_timestamp = 1; -
getEstimationTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getEstimationTimestampOrBuilder()Timestamp at which the estimation was made Required
.google.protobuf.Timestamp estimation_timestamp = 1;- Specified by:
getEstimationTimestampOrBuilderin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationOrBuilder
-
getConfirmationRequestTrafficCostEstimation
public long getConfirmationRequestTrafficCostEstimation()Estimated traffic cost of the confirmation request associated with the transaction Required
uint64 confirmation_request_traffic_cost_estimation = 2;- Specified by:
getConfirmationRequestTrafficCostEstimationin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationOrBuilder- Returns:
- The confirmationRequestTrafficCostEstimation.
-
setConfirmationRequestTrafficCostEstimation
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder setConfirmationRequestTrafficCostEstimation(long value) Estimated traffic cost of the confirmation request associated with the transaction Required
uint64 confirmation_request_traffic_cost_estimation = 2;- Parameters:
value- The confirmationRequestTrafficCostEstimation to set.- Returns:
- This builder for chaining.
-
clearConfirmationRequestTrafficCostEstimation
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder clearConfirmationRequestTrafficCostEstimation()Estimated traffic cost of the confirmation request associated with the transaction Required
uint64 confirmation_request_traffic_cost_estimation = 2;- Returns:
- This builder for chaining.
-
getConfirmationResponseTrafficCostEstimation
public long getConfirmationResponseTrafficCostEstimation()Estimated traffic cost of the confirmation response associated with the transaction This field can also be used as an indication of the cost that other potential confirming nodes of the party will incur to approve or reject the transaction Required
uint64 confirmation_response_traffic_cost_estimation = 3;- Specified by:
getConfirmationResponseTrafficCostEstimationin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationOrBuilder- Returns:
- The confirmationResponseTrafficCostEstimation.
-
setConfirmationResponseTrafficCostEstimation
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder setConfirmationResponseTrafficCostEstimation(long value) Estimated traffic cost of the confirmation response associated with the transaction This field can also be used as an indication of the cost that other potential confirming nodes of the party will incur to approve or reject the transaction Required
uint64 confirmation_response_traffic_cost_estimation = 3;- Parameters:
value- The confirmationResponseTrafficCostEstimation to set.- Returns:
- This builder for chaining.
-
clearConfirmationResponseTrafficCostEstimation
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder clearConfirmationResponseTrafficCostEstimation()Estimated traffic cost of the confirmation response associated with the transaction This field can also be used as an indication of the cost that other potential confirming nodes of the party will incur to approve or reject the transaction Required
uint64 confirmation_response_traffic_cost_estimation = 3;- Returns:
- This builder for chaining.
-
getTotalTrafficCostEstimation
public long getTotalTrafficCostEstimation()Sum of the fields above Required
uint64 total_traffic_cost_estimation = 4;- Specified by:
getTotalTrafficCostEstimationin interfaceInteractiveSubmissionServiceOuterClass.CostEstimationOrBuilder- Returns:
- The totalTrafficCostEstimation.
-
setTotalTrafficCostEstimation
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder setTotalTrafficCostEstimation(long value) Sum of the fields above Required
uint64 total_traffic_cost_estimation = 4;- Parameters:
value- The totalTrafficCostEstimation to set.- Returns:
- This builder for chaining.
-
clearTotalTrafficCostEstimation
public InteractiveSubmissionServiceOuterClass.CostEstimation.Builder clearTotalTrafficCostEstimation()Sum of the fields above Required
uint64 total_traffic_cost_estimation = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final InteractiveSubmissionServiceOuterClass.CostEstimation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimation.Builder>
-
mergeUnknownFields
public final InteractiveSubmissionServiceOuterClass.CostEstimation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InteractiveSubmissionServiceOuterClass.CostEstimation.Builder>
-