Package com.daml.ledger.javaapi.data
Class CreatedEvent
- java.lang.Object
-
- com.daml.ledger.javaapi.data.CreatedEvent
-
-
Field Summary
Fields Modifier and Type Field Description @NonNull java.time.Instant
createdAt
-
Constructor Summary
Constructors Constructor Description CreatedEvent(@NonNull java.util.List<@NonNull java.lang.String> witnessParties, @NonNull java.lang.String eventId, @NonNull Identifier templateId, @NonNull java.lang.String contractId, @NonNull DamlRecord arguments, @NonNull com.google.protobuf.ByteString createdEventBlob, @NonNull java.util.Map<@NonNull Identifier,@NonNull DamlRecord> interfaceViews, @NonNull java.util.Map<@NonNull Identifier,@NonNull com.google.rpc.Status> failedInterfaceViews, @NonNull java.util.Optional<java.lang.String> agreementText, @NonNull java.util.Optional<Value> contractKey, @NonNull java.util.Collection<@NonNull java.lang.String> signatories, @NonNull java.util.Collection<@NonNull java.lang.String> observers, @NonNull java.time.Instant createdAt)
CreatedEvent(@NonNull java.util.List<@NonNull java.lang.String> witnessParties, @NonNull java.lang.String eventId, @NonNull Identifier templateId, @NonNull java.lang.String contractId, @NonNull DamlRecord arguments, @NonNull java.util.Map<@NonNull Identifier,@NonNull DamlRecord> interfaceViews, @NonNull java.util.Map<@NonNull Identifier,@NonNull com.google.rpc.Status> failedInterfaceViews, @NonNull java.util.Optional<java.lang.String> agreementText, @NonNull java.util.Optional<Value> contractKey, @NonNull java.util.Collection<@NonNull java.lang.String> signatories, @NonNull java.util.Collection<@NonNull java.lang.String> observers)
Deprecated.You should passcreateArgumentsBlob
andcontractMetadata
arguments as well.CreatedEvent(@NonNull java.util.List<@NonNull java.lang.String> witnessParties, @NonNull java.lang.String eventId, @NonNull Identifier templateId, @NonNull java.lang.String contractId, @NonNull DamlRecord arguments, @NonNull java.util.Optional<java.lang.String> agreementText, @NonNull java.util.Optional<Value> contractKey, @NonNull java.util.Collection<@NonNull java.lang.String> signatories, @NonNull java.util.Collection<@NonNull java.lang.String> observers)
Deprecated.PassinterfaceViews
andfailedInterfaceViews
arguments; empty maps are reasonable defaults.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static CreatedEvent
fromProto(EventOuterClass.CreatedEvent createdEvent)
@NonNull java.util.Optional<java.lang.String>
getAgreementText()
@NonNull DamlRecord
getArguments()
@NonNull java.lang.String
getContractId()
@NonNull java.util.Optional<Value>
getContractKey()
@NonNull java.time.Instant
getCreatedAt()
createdAt
has been introduced in the Ledger APIEventOuterClass.CreatedEvent
starting with Canton version 2.8.0.com.google.protobuf.ByteString
getCreatedEventBlob()
@NonNull java.lang.String
getEventId()
@NonNull java.util.Map<@NonNull Identifier,@NonNull com.google.rpc.Status>
getFailedInterfaceViews()
@NonNull java.util.Map<@NonNull Identifier,@NonNull DamlRecord>
getInterfaceViews()
@NonNull java.util.Set<@NonNull java.lang.String>
getObservers()
@NonNull java.util.Set<@NonNull java.lang.String>
getSignatories()
@NonNull Identifier
getTemplateId()
@NonNull java.util.List<@NonNull java.lang.String>
getWitnessParties()
int
hashCode()
@NonNull EventOuterClass.CreatedEvent
toProto()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.daml.ledger.javaapi.data.Event
toProtoEvent
-
Methods inherited from interface com.daml.ledger.javaapi.data.TreeEvent
toProtoTreeEvent
-
-
-
-
Constructor Detail
-
CreatedEvent
public CreatedEvent(@NonNull java.util.List<@NonNull java.lang.String> witnessParties, @NonNull java.lang.String eventId, @NonNull Identifier templateId, @NonNull java.lang.String contractId, @NonNull DamlRecord arguments, @NonNull com.google.protobuf.ByteString createdEventBlob, @NonNull java.util.Map<@NonNull Identifier,@NonNull DamlRecord> interfaceViews, @NonNull java.util.Map<@NonNull Identifier,@NonNull com.google.rpc.Status> failedInterfaceViews, @NonNull java.util.Optional<java.lang.String> agreementText, @NonNull java.util.Optional<Value> contractKey, @NonNull java.util.Collection<@NonNull java.lang.String> signatories, @NonNull java.util.Collection<@NonNull java.lang.String> observers, @NonNull java.time.Instant createdAt)
-
CreatedEvent
@Deprecated public CreatedEvent(@NonNull java.util.List<@NonNull java.lang.String> witnessParties, @NonNull java.lang.String eventId, @NonNull Identifier templateId, @NonNull java.lang.String contractId, @NonNull DamlRecord arguments, @NonNull java.util.Map<@NonNull Identifier,@NonNull DamlRecord> interfaceViews, @NonNull java.util.Map<@NonNull Identifier,@NonNull com.google.rpc.Status> failedInterfaceViews, @NonNull java.util.Optional<java.lang.String> agreementText, @NonNull java.util.Optional<Value> contractKey, @NonNull java.util.Collection<@NonNull java.lang.String> signatories, @NonNull java.util.Collection<@NonNull java.lang.String> observers)
Deprecated.You should passcreateArgumentsBlob
andcontractMetadata
arguments as well. Since Daml 2.6.0
-
CreatedEvent
@Deprecated public CreatedEvent(@NonNull java.util.List<@NonNull java.lang.String> witnessParties, @NonNull java.lang.String eventId, @NonNull Identifier templateId, @NonNull java.lang.String contractId, @NonNull DamlRecord arguments, @NonNull java.util.Optional<java.lang.String> agreementText, @NonNull java.util.Optional<Value> contractKey, @NonNull java.util.Collection<@NonNull java.lang.String> signatories, @NonNull java.util.Collection<@NonNull java.lang.String> observers)
Deprecated.PassinterfaceViews
andfailedInterfaceViews
arguments; empty maps are reasonable defaults. Since Daml 2.4.0
-
-
Method Detail
-
getWitnessParties
public @NonNull java.util.List<@NonNull java.lang.String> getWitnessParties()
- Specified by:
getWitnessParties
in interfaceEvent
- Specified by:
getWitnessParties
in interfaceTreeEvent
-
getEventId
public @NonNull java.lang.String getEventId()
- Specified by:
getEventId
in interfaceEvent
- Specified by:
getEventId
in interfaceTreeEvent
-
getTemplateId
public @NonNull Identifier getTemplateId()
- Specified by:
getTemplateId
in interfaceEvent
- Specified by:
getTemplateId
in interfaceTreeEvent
-
getContractId
public @NonNull java.lang.String getContractId()
- Specified by:
getContractId
in interfaceEvent
- Specified by:
getContractId
in interfaceTreeEvent
-
getArguments
public @NonNull DamlRecord getArguments()
-
getCreatedEventBlob
public com.google.protobuf.ByteString getCreatedEventBlob()
-
getInterfaceViews
public @NonNull java.util.Map<@NonNull Identifier,@NonNull DamlRecord> getInterfaceViews()
-
getFailedInterfaceViews
public @NonNull java.util.Map<@NonNull Identifier,@NonNull com.google.rpc.Status> getFailedInterfaceViews()
-
getAgreementText
public @NonNull java.util.Optional<java.lang.String> getAgreementText()
-
getContractKey
public @NonNull java.util.Optional<Value> getContractKey()
-
getSignatories
public @NonNull java.util.Set<@NonNull java.lang.String> getSignatories()
-
getObservers
public @NonNull java.util.Set<@NonNull java.lang.String> getObservers()
-
getCreatedAt
public @NonNull java.time.Instant getCreatedAt()
createdAt
has been introduced in the Ledger APIEventOuterClass.CreatedEvent
starting with Canton version 2.8.0. Events sourced from the Ledger API prior to this version will return the defaultInstant.EPOCH
value.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toProto
public @NonNull EventOuterClass.CreatedEvent toProto()
-
fromProto
public static CreatedEvent fromProto(EventOuterClass.CreatedEvent createdEvent)
-
-