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.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
Each corresponding assigned and unassigned event has the same reassignment_counter.The ID of the source synchronizer.com.google.protobuf.ByteString
The ID of the source synchronizer.Party on whose behalf the assign command was executed.com.google.protobuf.ByteString
Party on whose behalf the assign command was executed.The ID of the target synchronizer.com.google.protobuf.ByteString
The ID of the target synchronizer.The ID from the unassigned event.com.google.protobuf.ByteString
The ID from the unassigned event.boolean
Required 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.FieldAccessorTable
final boolean
Required 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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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<ReassignmentOuterClass.AssignedEvent.Builder>
-
setField
public ReassignmentOuterClass.AssignedEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-
clearField
public ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.Builder>
-
clearOneof
public ReassignmentOuterClass.AssignedEvent.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<ReassignmentOuterClass.AssignedEvent.Builder>
-
setRepeatedField
public ReassignmentOuterClass.AssignedEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-
addRepeatedField
public ReassignmentOuterClass.AssignedEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-
mergeFrom
public ReassignmentOuterClass.AssignedEvent.Builder mergeFrom(ReassignmentOuterClass.AssignedEvent other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getSource
in 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:
getSourceBytes
in 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:
getTarget
in 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:
getTargetBytes
in 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:
getUnassignId
in 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:
getUnassignIdBytes
in 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:
getSubmitter
in 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:
getSubmitterBytes
in 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:
getReassignmentCounter
in 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:
hasCreatedEvent
in 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:
getCreatedEvent
in 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:
getCreatedEventOrBuilder
in interfaceReassignmentOuterClass.AssignedEventOrBuilder
-
setUnknownFields
public final ReassignmentOuterClass.AssignedEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-
mergeUnknownFields
public final ReassignmentOuterClass.AssignedEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReassignmentOuterClass.AssignedEvent.Builder>
-