Package com.daml.ledger.api.v2
Class ReassignmentOuterClass.AssignedEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.Builder
- All Implemented Interfaces:
ReassignmentOuterClass.AssignedEventOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReassignmentOuterClass.AssignedEvent
public static final class ReassignmentOuterClass.AssignedEvent.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
implements ReassignmentOuterClass.AssignedEventOrBuilder
Records that a contract has been assigned, and it can be used on the target synchronizer.Protobuf type
com.daml.ledger.api.v2.AssignedEvent-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Each corresponding assigned and unassigned event has the same reassignment_counter.The ID of the source synchronizer.Party on whose behalf the assign command was executed.The ID of the target synchronizer.The ID from the unassigned event.clone()Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongEach corresponding assigned and unassigned event has the same reassignment_counter.The ID of the source synchronizer.com.google.protobuf.ByteStringThe ID of the source synchronizer.Party on whose behalf the assign command was executed.com.google.protobuf.ByteStringParty on whose behalf the assign command was executed.The ID of the target synchronizer.com.google.protobuf.ByteStringThe ID of the target synchronizer.The ID from the unassigned event.com.google.protobuf.ByteStringThe ID from the unassigned event.booleanRequired The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanRequired The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.setCreatedEvent(EventOuterClass.CreatedEvent.Builder builderForValue) Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.setReassignmentCounter(long value) Each corresponding assigned and unassigned event has the same reassignment_counter.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The ID of the source synchronizer.setSourceBytes(com.google.protobuf.ByteString value) The ID of the source synchronizer.setSubmitter(String value) Party on whose behalf the assign command was executed.setSubmitterBytes(com.google.protobuf.ByteString value) Party on whose behalf the assign command was executed.The ID of the target synchronizer.setTargetBytes(com.google.protobuf.ByteString value) The ID of the target synchronizer.setUnassignId(String value) The ID from the unassigned event.setUnassignIdBytes(com.google.protobuf.ByteString value) The ID from the unassigned event.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<ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.Builder>
-
setField
public ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.Builder>
-
clearField
public ReassignmentOuterClass.AssignedEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-
clearOneof
public ReassignmentOuterClass.AssignedEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-
setRepeatedField
public ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.Builder>
-
addRepeatedField
public ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-
mergeFrom
public ReassignmentOuterClass.AssignedEvent.Builder mergeFrom(ReassignmentOuterClass.AssignedEvent other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-
mergeFrom
public ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.Builder>- Throws:
IOException
-
getSource
The ID of the source synchronizer. Must be a valid synchronizer id. Required
string source = 1 [json_name = "source"];- Specified by:
getSourcein interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()The ID of the source synchronizer. Must be a valid synchronizer id. Required
string source = 1 [json_name = "source"];- Specified by:
getSourceBytesin interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- The bytes for source.
-
setSource
The ID of the source synchronizer. Must be a valid synchronizer id. Required
string source = 1 [json_name = "source"];- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
The ID of the source synchronizer. Must be a valid synchronizer id. Required
string source = 1 [json_name = "source"];- Returns:
- This builder for chaining.
-
setSourceBytes
public ReassignmentOuterClass.AssignedEvent.Builder setSourceBytes(com.google.protobuf.ByteString value) The ID of the source synchronizer. Must be a valid synchronizer id. Required
string source = 1 [json_name = "source"];- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-
getTarget
The ID of the target synchronizer. Must be a valid synchronizer id. Required
string target = 2 [json_name = "target"];- Specified by:
getTargetin interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- The target.
-
getTargetBytes
public com.google.protobuf.ByteString getTargetBytes()The ID of the target synchronizer. Must be a valid synchronizer id. Required
string target = 2 [json_name = "target"];- Specified by:
getTargetBytesin interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- The bytes for target.
-
setTarget
The ID of the target synchronizer. Must be a valid synchronizer id. Required
string target = 2 [json_name = "target"];- Parameters:
value- The target to set.- Returns:
- This builder for chaining.
-
clearTarget
The ID of the target synchronizer. Must be a valid synchronizer id. Required
string target = 2 [json_name = "target"];- Returns:
- This builder for chaining.
-
setTargetBytes
public ReassignmentOuterClass.AssignedEvent.Builder setTargetBytes(com.google.protobuf.ByteString value) The ID of the target synchronizer. Must be a valid synchronizer id. Required
string target = 2 [json_name = "target"];- Parameters:
value- The bytes for target to set.- Returns:
- This builder for chaining.
-
getUnassignId
The ID from the unassigned event. For correlation capabilities. For one contract the (unassign_id, source synchronizer) pair is unique. Must be a valid LedgerString (as described in ``value.proto``). Required
string unassign_id = 3 [json_name = "unassignId"];- Specified by:
getUnassignIdin interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- The unassignId.
-
getUnassignIdBytes
public com.google.protobuf.ByteString getUnassignIdBytes()The ID from the unassigned event. For correlation capabilities. For one contract the (unassign_id, source synchronizer) pair is unique. Must be a valid LedgerString (as described in ``value.proto``). Required
string unassign_id = 3 [json_name = "unassignId"];- Specified by:
getUnassignIdBytesin interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- The bytes for unassignId.
-
setUnassignId
The ID from the unassigned event. For correlation capabilities. For one contract the (unassign_id, source synchronizer) pair is unique. Must be a valid LedgerString (as described in ``value.proto``). Required
string unassign_id = 3 [json_name = "unassignId"];- Parameters:
value- The unassignId to set.- Returns:
- This builder for chaining.
-
clearUnassignId
The ID from the unassigned event. For correlation capabilities. For one contract the (unassign_id, source synchronizer) pair is unique. Must be a valid LedgerString (as described in ``value.proto``). Required
string unassign_id = 3 [json_name = "unassignId"];- Returns:
- This builder for chaining.
-
setUnassignIdBytes
public ReassignmentOuterClass.AssignedEvent.Builder setUnassignIdBytes(com.google.protobuf.ByteString value) The ID from the unassigned event. For correlation capabilities. For one contract the (unassign_id, source synchronizer) pair is unique. Must be a valid LedgerString (as described in ``value.proto``). Required
string unassign_id = 3 [json_name = "unassignId"];- Parameters:
value- The bytes for unassignId to set.- Returns:
- This builder for chaining.
-
getSubmitter
Party on whose behalf the assign command was executed. Empty if the assignment happened offline via the repair service. Must be a valid PartyIdString (as described in ``value.proto``). Optional
string submitter = 4 [json_name = "submitter"];- Specified by:
getSubmitterin interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- The submitter.
-
getSubmitterBytes
public com.google.protobuf.ByteString getSubmitterBytes()Party on whose behalf the assign command was executed. Empty if the assignment happened offline via the repair service. Must be a valid PartyIdString (as described in ``value.proto``). Optional
string submitter = 4 [json_name = "submitter"];- Specified by:
getSubmitterBytesin interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- The bytes for submitter.
-
setSubmitter
Party on whose behalf the assign command was executed. Empty if the assignment happened offline via the repair service. Must be a valid PartyIdString (as described in ``value.proto``). Optional
string submitter = 4 [json_name = "submitter"];- Parameters:
value- The submitter to set.- Returns:
- This builder for chaining.
-
clearSubmitter
Party on whose behalf the assign command was executed. Empty if the assignment happened offline via the repair service. Must be a valid PartyIdString (as described in ``value.proto``). Optional
string submitter = 4 [json_name = "submitter"];- Returns:
- This builder for chaining.
-
setSubmitterBytes
public ReassignmentOuterClass.AssignedEvent.Builder setSubmitterBytes(com.google.protobuf.ByteString value) Party on whose behalf the assign command was executed. Empty if the assignment happened offline via the repair service. Must be a valid PartyIdString (as described in ``value.proto``). Optional
string submitter = 4 [json_name = "submitter"];- Parameters:
value- The bytes for submitter to set.- Returns:
- This builder for chaining.
-
getReassignmentCounter
public long getReassignmentCounter()Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter equals zero. Required
uint64 reassignment_counter = 5 [json_name = "reassignmentCounter"];- Specified by:
getReassignmentCounterin interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- The reassignmentCounter.
-
setReassignmentCounter
Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter equals zero. Required
uint64 reassignment_counter = 5 [json_name = "reassignmentCounter"];- Parameters:
value- The reassignmentCounter to set.- Returns:
- This builder for chaining.
-
clearReassignmentCounter
Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter equals zero. Required
uint64 reassignment_counter = 5 [json_name = "reassignmentCounter"];- Returns:
- This builder for chaining.
-
hasCreatedEvent
public boolean hasCreatedEvent()Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.
.com.daml.ledger.api.v2.CreatedEvent created_event = 6 [json_name = "createdEvent"];- Specified by:
hasCreatedEventin interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- Whether the createdEvent field is set.
-
getCreatedEvent
Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.
.com.daml.ledger.api.v2.CreatedEvent created_event = 6 [json_name = "createdEvent"];- Specified by:
getCreatedEventin interfaceReassignmentOuterClass.AssignedEventOrBuilder- Returns:
- The createdEvent.
-
setCreatedEvent
public ReassignmentOuterClass.AssignedEvent.Builder setCreatedEvent(EventOuterClass.CreatedEvent value) Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.
.com.daml.ledger.api.v2.CreatedEvent created_event = 6 [json_name = "createdEvent"]; -
setCreatedEvent
public ReassignmentOuterClass.AssignedEvent.Builder setCreatedEvent(EventOuterClass.CreatedEvent.Builder builderForValue) Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.
.com.daml.ledger.api.v2.CreatedEvent created_event = 6 [json_name = "createdEvent"]; -
mergeCreatedEvent
public ReassignmentOuterClass.AssignedEvent.Builder mergeCreatedEvent(EventOuterClass.CreatedEvent value) Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.
.com.daml.ledger.api.v2.CreatedEvent created_event = 6 [json_name = "createdEvent"]; -
clearCreatedEvent
Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.
.com.daml.ledger.api.v2.CreatedEvent created_event = 6 [json_name = "createdEvent"]; -
getCreatedEventBuilder
Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.
.com.daml.ledger.api.v2.CreatedEvent created_event = 6 [json_name = "createdEvent"]; -
getCreatedEventOrBuilder
Required The offset of this event refers to the offset of the assignment, while the node_id is the index of within the batch.
.com.daml.ledger.api.v2.CreatedEvent created_event = 6 [json_name = "createdEvent"];- Specified by:
getCreatedEventOrBuilderin interfaceReassignmentOuterClass.AssignedEventOrBuilder
-
setUnknownFields
public final ReassignmentOuterClass.AssignedEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-
mergeUnknownFields
public final ReassignmentOuterClass.AssignedEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-