Package com.daml.ledger.api.v1
Class EventOuterClass.ArchivedEvent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.ArchivedEvent.Builder>
-
- com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder
-
- All Implemented Interfaces:
EventOuterClass.ArchivedEventOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- EventOuterClass.ArchivedEvent
public static final class EventOuterClass.ArchivedEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.ArchivedEvent.Builder> implements EventOuterClass.ArchivedEventOrBuilder
Records that a contract has been archived, and choices may no longer be exercised on it.
Protobuf typecom.daml.ledger.api.v1.ArchivedEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventOuterClass.ArchivedEvent.Builder
addAllWitnessParties(java.lang.Iterable<java.lang.String> values)
The parties that are notified of this event.EventOuterClass.ArchivedEvent.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
EventOuterClass.ArchivedEvent.Builder
addWitnessParties(java.lang.String value)
The parties that are notified of this event.EventOuterClass.ArchivedEvent.Builder
addWitnessPartiesBytes(com.google.protobuf.ByteString value)
The parties that are notified of this event.EventOuterClass.ArchivedEvent
build()
EventOuterClass.ArchivedEvent
buildPartial()
EventOuterClass.ArchivedEvent.Builder
clear()
EventOuterClass.ArchivedEvent.Builder
clearContractId()
The ID of the archived contract.EventOuterClass.ArchivedEvent.Builder
clearEventId()
The ID of this particular event.EventOuterClass.ArchivedEvent.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
EventOuterClass.ArchivedEvent.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
EventOuterClass.ArchivedEvent.Builder
clearTemplateId()
The template of the archived contract.EventOuterClass.ArchivedEvent.Builder
clearWitnessParties()
The parties that are notified of this event.EventOuterClass.ArchivedEvent.Builder
clone()
java.lang.String
getContractId()
The ID of the archived contract.com.google.protobuf.ByteString
getContractIdBytes()
The ID of the archived contract.EventOuterClass.ArchivedEvent
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getEventId()
The ID of this particular event.com.google.protobuf.ByteString
getEventIdBytes()
The ID of this particular event.ValueOuterClass.Identifier
getTemplateId()
The template of the archived contract.ValueOuterClass.Identifier.Builder
getTemplateIdBuilder()
The template of the archived contract.ValueOuterClass.IdentifierOrBuilder
getTemplateIdOrBuilder()
The template of the archived contract.java.lang.String
getWitnessParties(int index)
The parties that are notified of this event.com.google.protobuf.ByteString
getWitnessPartiesBytes(int index)
The parties that are notified of this event.int
getWitnessPartiesCount()
The parties that are notified of this event.com.google.protobuf.ProtocolStringList
getWitnessPartiesList()
The parties that are notified of this event.boolean
hasTemplateId()
The template of the archived contract.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
EventOuterClass.ArchivedEvent.Builder
mergeFrom(EventOuterClass.ArchivedEvent other)
EventOuterClass.ArchivedEvent.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
EventOuterClass.ArchivedEvent.Builder
mergeFrom(com.google.protobuf.Message other)
EventOuterClass.ArchivedEvent.Builder
mergeTemplateId(ValueOuterClass.Identifier value)
The template of the archived contract.EventOuterClass.ArchivedEvent.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
EventOuterClass.ArchivedEvent.Builder
setContractId(java.lang.String value)
The ID of the archived contract.EventOuterClass.ArchivedEvent.Builder
setContractIdBytes(com.google.protobuf.ByteString value)
The ID of the archived contract.EventOuterClass.ArchivedEvent.Builder
setEventId(java.lang.String value)
The ID of this particular event.EventOuterClass.ArchivedEvent.Builder
setEventIdBytes(com.google.protobuf.ByteString value)
The ID of this particular event.EventOuterClass.ArchivedEvent.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
EventOuterClass.ArchivedEvent.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
EventOuterClass.ArchivedEvent.Builder
setTemplateId(ValueOuterClass.Identifier value)
The template of the archived contract.EventOuterClass.ArchivedEvent.Builder
setTemplateId(ValueOuterClass.Identifier.Builder builderForValue)
The template of the archived contract.EventOuterClass.ArchivedEvent.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
EventOuterClass.ArchivedEvent.Builder
setWitnessParties(int index, java.lang.String value)
The parties that are notified of this event.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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
-
-
-
-
Method Detail
-
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<EventOuterClass.ArchivedEvent.Builder>
-
clear
public EventOuterClass.ArchivedEvent.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<EventOuterClass.ArchivedEvent.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<EventOuterClass.ArchivedEvent.Builder>
-
getDefaultInstanceForType
public EventOuterClass.ArchivedEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EventOuterClass.ArchivedEvent build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EventOuterClass.ArchivedEvent buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EventOuterClass.ArchivedEvent.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<EventOuterClass.ArchivedEvent.Builder>
-
setField
public EventOuterClass.ArchivedEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.ArchivedEvent.Builder>
-
clearField
public EventOuterClass.ArchivedEvent.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<EventOuterClass.ArchivedEvent.Builder>
-
clearOneof
public EventOuterClass.ArchivedEvent.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<EventOuterClass.ArchivedEvent.Builder>
-
setRepeatedField
public EventOuterClass.ArchivedEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.ArchivedEvent.Builder>
-
addRepeatedField
public EventOuterClass.ArchivedEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.ArchivedEvent.Builder>
-
mergeFrom
public EventOuterClass.ArchivedEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EventOuterClass.ArchivedEvent.Builder>
-
mergeFrom
public EventOuterClass.ArchivedEvent.Builder mergeFrom(EventOuterClass.ArchivedEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.ArchivedEvent.Builder>
-
mergeFrom
public EventOuterClass.ArchivedEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<EventOuterClass.ArchivedEvent.Builder>
- Throws:
java.io.IOException
-
getEventId
public java.lang.String getEventId()
The ID of this particular event. Must be a valid LedgerString (as described in ``value.proto``). Required
string event_id = 1 [json_name = "eventId"];
- Specified by:
getEventId
in interfaceEventOuterClass.ArchivedEventOrBuilder
- Returns:
- The eventId.
-
getEventIdBytes
public com.google.protobuf.ByteString getEventIdBytes()
The ID of this particular event. Must be a valid LedgerString (as described in ``value.proto``). Required
string event_id = 1 [json_name = "eventId"];
- Specified by:
getEventIdBytes
in interfaceEventOuterClass.ArchivedEventOrBuilder
- Returns:
- The bytes for eventId.
-
setEventId
public EventOuterClass.ArchivedEvent.Builder setEventId(java.lang.String value)
The ID of this particular event. Must be a valid LedgerString (as described in ``value.proto``). Required
string event_id = 1 [json_name = "eventId"];
- Parameters:
value
- The eventId to set.- Returns:
- This builder for chaining.
-
clearEventId
public EventOuterClass.ArchivedEvent.Builder clearEventId()
The ID of this particular event. Must be a valid LedgerString (as described in ``value.proto``). Required
string event_id = 1 [json_name = "eventId"];
- Returns:
- This builder for chaining.
-
setEventIdBytes
public EventOuterClass.ArchivedEvent.Builder setEventIdBytes(com.google.protobuf.ByteString value)
The ID of this particular event. Must be a valid LedgerString (as described in ``value.proto``). Required
string event_id = 1 [json_name = "eventId"];
- Parameters:
value
- The bytes for eventId to set.- Returns:
- This builder for chaining.
-
getContractId
public java.lang.String getContractId()
The ID of the archived contract. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 2 [json_name = "contractId"];
- Specified by:
getContractId
in interfaceEventOuterClass.ArchivedEventOrBuilder
- Returns:
- The contractId.
-
getContractIdBytes
public com.google.protobuf.ByteString getContractIdBytes()
The ID of the archived contract. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 2 [json_name = "contractId"];
- Specified by:
getContractIdBytes
in interfaceEventOuterClass.ArchivedEventOrBuilder
- Returns:
- The bytes for contractId.
-
setContractId
public EventOuterClass.ArchivedEvent.Builder setContractId(java.lang.String value)
The ID of the archived contract. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 2 [json_name = "contractId"];
- Parameters:
value
- The contractId to set.- Returns:
- This builder for chaining.
-
clearContractId
public EventOuterClass.ArchivedEvent.Builder clearContractId()
The ID of the archived contract. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 2 [json_name = "contractId"];
- Returns:
- This builder for chaining.
-
setContractIdBytes
public EventOuterClass.ArchivedEvent.Builder setContractIdBytes(com.google.protobuf.ByteString value)
The ID of the archived contract. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 2 [json_name = "contractId"];
- Parameters:
value
- The bytes for contractId to set.- Returns:
- This builder for chaining.
-
hasTemplateId
public boolean hasTemplateId()
The template of the archived contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
- Specified by:
hasTemplateId
in interfaceEventOuterClass.ArchivedEventOrBuilder
- Returns:
- Whether the templateId field is set.
-
getTemplateId
public ValueOuterClass.Identifier getTemplateId()
The template of the archived contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
- Specified by:
getTemplateId
in interfaceEventOuterClass.ArchivedEventOrBuilder
- Returns:
- The templateId.
-
setTemplateId
public EventOuterClass.ArchivedEvent.Builder setTemplateId(ValueOuterClass.Identifier value)
The template of the archived contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
-
setTemplateId
public EventOuterClass.ArchivedEvent.Builder setTemplateId(ValueOuterClass.Identifier.Builder builderForValue)
The template of the archived contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
-
mergeTemplateId
public EventOuterClass.ArchivedEvent.Builder mergeTemplateId(ValueOuterClass.Identifier value)
The template of the archived contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
-
clearTemplateId
public EventOuterClass.ArchivedEvent.Builder clearTemplateId()
The template of the archived contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
-
getTemplateIdBuilder
public ValueOuterClass.Identifier.Builder getTemplateIdBuilder()
The template of the archived contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
-
getTemplateIdOrBuilder
public ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder()
The template of the archived contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
- Specified by:
getTemplateIdOrBuilder
in interfaceEventOuterClass.ArchivedEventOrBuilder
-
getWitnessPartiesList
public com.google.protobuf.ProtocolStringList getWitnessPartiesList()
The parties that are notified of this event. For an ``ArchivedEvent``, these are the intersection of the stakeholders of the contract in question and the parties specified in the ``TransactionFilter``. The stakeholders are the union of the signatories and the observers of the contract. Each one of its elements must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string witness_parties = 4 [json_name = "witnessParties"];
- Specified by:
getWitnessPartiesList
in interfaceEventOuterClass.ArchivedEventOrBuilder
- Returns:
- A list containing the witnessParties.
-
getWitnessPartiesCount
public int getWitnessPartiesCount()
The parties that are notified of this event. For an ``ArchivedEvent``, these are the intersection of the stakeholders of the contract in question and the parties specified in the ``TransactionFilter``. The stakeholders are the union of the signatories and the observers of the contract. Each one of its elements must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string witness_parties = 4 [json_name = "witnessParties"];
- Specified by:
getWitnessPartiesCount
in interfaceEventOuterClass.ArchivedEventOrBuilder
- Returns:
- The count of witnessParties.
-
getWitnessParties
public java.lang.String getWitnessParties(int index)
The parties that are notified of this event. For an ``ArchivedEvent``, these are the intersection of the stakeholders of the contract in question and the parties specified in the ``TransactionFilter``. The stakeholders are the union of the signatories and the observers of the contract. Each one of its elements must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string witness_parties = 4 [json_name = "witnessParties"];
- Specified by:
getWitnessParties
in interfaceEventOuterClass.ArchivedEventOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The witnessParties at the given index.
-
getWitnessPartiesBytes
public com.google.protobuf.ByteString getWitnessPartiesBytes(int index)
The parties that are notified of this event. For an ``ArchivedEvent``, these are the intersection of the stakeholders of the contract in question and the parties specified in the ``TransactionFilter``. The stakeholders are the union of the signatories and the observers of the contract. Each one of its elements must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string witness_parties = 4 [json_name = "witnessParties"];
- Specified by:
getWitnessPartiesBytes
in interfaceEventOuterClass.ArchivedEventOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the witnessParties at the given index.
-
setWitnessParties
public EventOuterClass.ArchivedEvent.Builder setWitnessParties(int index, java.lang.String value)
The parties that are notified of this event. For an ``ArchivedEvent``, these are the intersection of the stakeholders of the contract in question and the parties specified in the ``TransactionFilter``. The stakeholders are the union of the signatories and the observers of the contract. Each one of its elements must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string witness_parties = 4 [json_name = "witnessParties"];
- Parameters:
index
- The index to set the value at.value
- The witnessParties to set.- Returns:
- This builder for chaining.
-
addWitnessParties
public EventOuterClass.ArchivedEvent.Builder addWitnessParties(java.lang.String value)
The parties that are notified of this event. For an ``ArchivedEvent``, these are the intersection of the stakeholders of the contract in question and the parties specified in the ``TransactionFilter``. The stakeholders are the union of the signatories and the observers of the contract. Each one of its elements must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string witness_parties = 4 [json_name = "witnessParties"];
- Parameters:
value
- The witnessParties to add.- Returns:
- This builder for chaining.
-
addAllWitnessParties
public EventOuterClass.ArchivedEvent.Builder addAllWitnessParties(java.lang.Iterable<java.lang.String> values)
The parties that are notified of this event. For an ``ArchivedEvent``, these are the intersection of the stakeholders of the contract in question and the parties specified in the ``TransactionFilter``. The stakeholders are the union of the signatories and the observers of the contract. Each one of its elements must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string witness_parties = 4 [json_name = "witnessParties"];
- Parameters:
values
- The witnessParties to add.- Returns:
- This builder for chaining.
-
clearWitnessParties
public EventOuterClass.ArchivedEvent.Builder clearWitnessParties()
The parties that are notified of this event. For an ``ArchivedEvent``, these are the intersection of the stakeholders of the contract in question and the parties specified in the ``TransactionFilter``. The stakeholders are the union of the signatories and the observers of the contract. Each one of its elements must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string witness_parties = 4 [json_name = "witnessParties"];
- Returns:
- This builder for chaining.
-
addWitnessPartiesBytes
public EventOuterClass.ArchivedEvent.Builder addWitnessPartiesBytes(com.google.protobuf.ByteString value)
The parties that are notified of this event. For an ``ArchivedEvent``, these are the intersection of the stakeholders of the contract in question and the parties specified in the ``TransactionFilter``. The stakeholders are the union of the signatories and the observers of the contract. Each one of its elements must be a valid PartyIdString (as described in ``value.proto``). Required
repeated string witness_parties = 4 [json_name = "witnessParties"];
- Parameters:
value
- The bytes of the witnessParties to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EventOuterClass.ArchivedEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.ArchivedEvent.Builder>
-
mergeUnknownFields
public final EventOuterClass.ArchivedEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.ArchivedEvent.Builder>
-
-