Package com.daml.ledger.api.v2
Class EventOuterClass.CreatedEvent
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.daml.ledger.api.v2.EventOuterClass.CreatedEvent
- All Implemented Interfaces:
EventOuterClass.CreatedEventOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- EventOuterClass
public static final class EventOuterClass.CreatedEvent
extends com.google.protobuf.GeneratedMessageV3
implements EventOuterClass.CreatedEventOrBuilder
Records that a contract has been created, and choices may now be exercised on it.Protobuf type
com.daml.ledger.api.v2.CreatedEvent
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Records that a contract has been created, and choices may now be exercised on it.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The ID of the created contract.com.google.protobuf.ByteString
The ID of the created contract.The key of the created contract.The key of the created contract.The arguments that have been used to create the contract.The arguments that have been used to create the contract.com.google.protobuf.Timestamp
Ledger effective time of the transaction that created the contract.com.google.protobuf.TimestampOrBuilder
Ledger effective time of the transaction that created the contract.com.google.protobuf.ByteString
Opaque representation of contract create event payload intended for forwarding to an API server as a contract disclosed as part of a command submission.static EventOuterClass.CreatedEvent
static final com.google.protobuf.Descriptors.Descriptor
getInterfaceViews
(int index) Interface views specified in the transaction filter.int
Interface views specified in the transaction filter.Interface views specified in the transaction filter.getInterfaceViewsOrBuilder
(int index) Interface views specified in the transaction filter.List<? extends EventOuterClass.InterfaceViewOrBuilder>
Interface views specified in the transaction filter.int
The position of this event in the originating transaction or reassignment.getObservers
(int index) The observers for this contract as specified explicitly by the template or implicitly as choice controllers.com.google.protobuf.ByteString
getObserversBytes
(int index) The observers for this contract as specified explicitly by the template or implicitly as choice controllers.int
The observers for this contract as specified explicitly by the template or implicitly as choice controllers.com.google.protobuf.ProtocolStringList
The observers for this contract as specified explicitly by the template or implicitly as choice controllers.long
The offset of origin, which has contextual meaning, please see description at messages that include a CreatedEvent.The package name of the created contract.com.google.protobuf.ByteString
The package name of the created contract.com.google.protobuf.Parser<EventOuterClass.CreatedEvent>
int
getSignatories
(int index) The signatories for this contract as specified by the template.com.google.protobuf.ByteString
getSignatoriesBytes
(int index) The signatories for this contract as specified by the template.int
The signatories for this contract as specified by the template.com.google.protobuf.ProtocolStringList
The signatories for this contract as specified by the template.The template of the created contract.The template of the created contract.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
The parties that are notified of this event.com.google.protobuf.ProtocolStringList
The parties that are notified of this event.boolean
The key of the created contract.boolean
The arguments that have been used to create the contract.boolean
Ledger effective time of the transaction that created the contract.int
hashCode()
boolean
The template of the created contract.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
newBuilder
(EventOuterClass.CreatedEvent prototype) protected EventOuterClass.CreatedEvent.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected Object
newInstance
(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static EventOuterClass.CreatedEvent
parseDelimitedFrom
(InputStream input) static EventOuterClass.CreatedEvent
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventOuterClass.CreatedEvent
parseFrom
(byte[] data) static EventOuterClass.CreatedEvent
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventOuterClass.CreatedEvent
parseFrom
(com.google.protobuf.ByteString data) static EventOuterClass.CreatedEvent
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventOuterClass.CreatedEvent
parseFrom
(com.google.protobuf.CodedInputStream input) static EventOuterClass.CreatedEvent
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventOuterClass.CreatedEvent
parseFrom
(InputStream input) static EventOuterClass.CreatedEvent
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventOuterClass.CreatedEvent
parseFrom
(ByteBuffer data) static EventOuterClass.CreatedEvent
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<EventOuterClass.CreatedEvent>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
OFFSET_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER- See Also:
-
NODE_ID_FIELD_NUMBER
public static final int NODE_ID_FIELD_NUMBER- See Also:
-
CONTRACT_ID_FIELD_NUMBER
public static final int CONTRACT_ID_FIELD_NUMBER- See Also:
-
TEMPLATE_ID_FIELD_NUMBER
public static final int TEMPLATE_ID_FIELD_NUMBER- See Also:
-
CONTRACT_KEY_FIELD_NUMBER
public static final int CONTRACT_KEY_FIELD_NUMBER- See Also:
-
CREATE_ARGUMENTS_FIELD_NUMBER
public static final int CREATE_ARGUMENTS_FIELD_NUMBER- See Also:
-
CREATED_EVENT_BLOB_FIELD_NUMBER
public static final int CREATED_EVENT_BLOB_FIELD_NUMBER- See Also:
-
INTERFACE_VIEWS_FIELD_NUMBER
public static final int INTERFACE_VIEWS_FIELD_NUMBER- See Also:
-
WITNESS_PARTIES_FIELD_NUMBER
public static final int WITNESS_PARTIES_FIELD_NUMBER- See Also:
-
SIGNATORIES_FIELD_NUMBER
public static final int SIGNATORIES_FIELD_NUMBER- See Also:
-
OBSERVERS_FIELD_NUMBER
public static final int OBSERVERS_FIELD_NUMBER- See Also:
-
CREATED_AT_FIELD_NUMBER
public static final int CREATED_AT_FIELD_NUMBER- See Also:
-
PACKAGE_NAME_FIELD_NUMBER
public static final int PACKAGE_NAME_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
getOffset
public long getOffset()The offset of origin, which has contextual meaning, please see description at messages that include a CreatedEvent. Offsets are managed by the participant nodes. Transactions can thus NOT be assumed to have the same offsets on different participant nodes. Required, it is a valid absolute offset (positive integer)
int64 offset = 1 [json_name = "offset"];
- Specified by:
getOffset
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The offset.
-
getNodeId
public int getNodeId()The position of this event in the originating transaction or reassignment. The origin has contextual meaning, please see description at messages that include a CreatedEvent. Node IDs are not necessarily equal across participants, as these may see different projections/parts of transactions. Required, must be valid node ID (non-negative integer)
int32 node_id = 2 [json_name = "nodeId"];
- Specified by:
getNodeId
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The nodeId.
-
getContractId
The ID of the created contract. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 3 [json_name = "contractId"];
- Specified by:
getContractId
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The contractId.
-
getContractIdBytes
public com.google.protobuf.ByteString getContractIdBytes()The ID of the created contract. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 3 [json_name = "contractId"];
- Specified by:
getContractIdBytes
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The bytes for contractId.
-
hasTemplateId
public boolean hasTemplateId()The template of the created contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 4 [json_name = "templateId"];
- Specified by:
hasTemplateId
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- Whether the templateId field is set.
-
getTemplateId
The template of the created contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 4 [json_name = "templateId"];
- Specified by:
getTemplateId
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The templateId.
-
getTemplateIdOrBuilder
The template of the created contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 4 [json_name = "templateId"];
- Specified by:
getTemplateIdOrBuilder
in interfaceEventOuterClass.CreatedEventOrBuilder
-
hasContractKey
public boolean hasContractKey()The key of the created contract. This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key. Optional
.com.daml.ledger.api.v2.Value contract_key = 5 [json_name = "contractKey"];
- Specified by:
hasContractKey
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- Whether the contractKey field is set.
-
getContractKey
The key of the created contract. This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key. Optional
.com.daml.ledger.api.v2.Value contract_key = 5 [json_name = "contractKey"];
- Specified by:
getContractKey
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The contractKey.
-
getContractKeyOrBuilder
The key of the created contract. This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key. Optional
.com.daml.ledger.api.v2.Value contract_key = 5 [json_name = "contractKey"];
- Specified by:
getContractKeyOrBuilder
in interfaceEventOuterClass.CreatedEventOrBuilder
-
hasCreateArguments
public boolean hasCreateArguments()The arguments that have been used to create the contract. Set either: - if there was a party, which is in the ``witness_parties`` of this event, and for which a ``CumulativeFilter`` exists with the ``template_id`` of this event among the ``template_filters``, - or if there was a party, which is in the ``witness_parties`` of this event, and for which a wildcard filter exists (``Filters`` with a ``CumulativeFilter`` of ``WildcardFilter``). Optional
.com.daml.ledger.api.v2.Record create_arguments = 6 [json_name = "createArguments"];
- Specified by:
hasCreateArguments
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- Whether the createArguments field is set.
-
getCreateArguments
The arguments that have been used to create the contract. Set either: - if there was a party, which is in the ``witness_parties`` of this event, and for which a ``CumulativeFilter`` exists with the ``template_id`` of this event among the ``template_filters``, - or if there was a party, which is in the ``witness_parties`` of this event, and for which a wildcard filter exists (``Filters`` with a ``CumulativeFilter`` of ``WildcardFilter``). Optional
.com.daml.ledger.api.v2.Record create_arguments = 6 [json_name = "createArguments"];
- Specified by:
getCreateArguments
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The createArguments.
-
getCreateArgumentsOrBuilder
The arguments that have been used to create the contract. Set either: - if there was a party, which is in the ``witness_parties`` of this event, and for which a ``CumulativeFilter`` exists with the ``template_id`` of this event among the ``template_filters``, - or if there was a party, which is in the ``witness_parties`` of this event, and for which a wildcard filter exists (``Filters`` with a ``CumulativeFilter`` of ``WildcardFilter``). Optional
.com.daml.ledger.api.v2.Record create_arguments = 6 [json_name = "createArguments"];
- Specified by:
getCreateArgumentsOrBuilder
in interfaceEventOuterClass.CreatedEventOrBuilder
-
getCreatedEventBlob
public com.google.protobuf.ByteString getCreatedEventBlob()Opaque representation of contract create event payload intended for forwarding to an API server as a contract disclosed as part of a command submission. Optional
bytes created_event_blob = 7 [json_name = "createdEventBlob"];
- Specified by:
getCreatedEventBlob
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The createdEventBlob.
-
getInterfaceViewsList
Interface views specified in the transaction filter. Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with - its party in the ``witness_parties`` of this event, - and which is implemented by the template of this event, - and which has ``include_interface_view`` set. Optional
repeated .com.daml.ledger.api.v2.InterfaceView interface_views = 8 [json_name = "interfaceViews"];
- Specified by:
getInterfaceViewsList
in interfaceEventOuterClass.CreatedEventOrBuilder
-
getInterfaceViewsOrBuilderList
Interface views specified in the transaction filter. Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with - its party in the ``witness_parties`` of this event, - and which is implemented by the template of this event, - and which has ``include_interface_view`` set. Optional
repeated .com.daml.ledger.api.v2.InterfaceView interface_views = 8 [json_name = "interfaceViews"];
- Specified by:
getInterfaceViewsOrBuilderList
in interfaceEventOuterClass.CreatedEventOrBuilder
-
getInterfaceViewsCount
public int getInterfaceViewsCount()Interface views specified in the transaction filter. Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with - its party in the ``witness_parties`` of this event, - and which is implemented by the template of this event, - and which has ``include_interface_view`` set. Optional
repeated .com.daml.ledger.api.v2.InterfaceView interface_views = 8 [json_name = "interfaceViews"];
- Specified by:
getInterfaceViewsCount
in interfaceEventOuterClass.CreatedEventOrBuilder
-
getInterfaceViews
Interface views specified in the transaction filter. Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with - its party in the ``witness_parties`` of this event, - and which is implemented by the template of this event, - and which has ``include_interface_view`` set. Optional
repeated .com.daml.ledger.api.v2.InterfaceView interface_views = 8 [json_name = "interfaceViews"];
- Specified by:
getInterfaceViews
in interfaceEventOuterClass.CreatedEventOrBuilder
-
getInterfaceViewsOrBuilder
Interface views specified in the transaction filter. Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with - its party in the ``witness_parties`` of this event, - and which is implemented by the template of this event, - and which has ``include_interface_view`` set. Optional
repeated .com.daml.ledger.api.v2.InterfaceView interface_views = 8 [json_name = "interfaceViews"];
- Specified by:
getInterfaceViewsOrBuilder
in interfaceEventOuterClass.CreatedEventOrBuilder
-
getWitnessPartiesList
public com.google.protobuf.ProtocolStringList getWitnessPartiesList()The parties that are notified of this event. When a ``CreatedEvent`` is returned as part of a transaction tree or ledger-effects transaction, this will include all the parties specified in the ``TransactionFilter`` that are informees of the event. If served as part of a ACS delta transaction those will be limited to all parties specified in the ``TransactionFilter`` that are stakeholders of the contract (i.e. either signatories or observers). If the ``CreatedEvent`` is returned as part of an AssignedEvent, ActiveContract or IncompleteUnassigned (so the event is related to an assignment or unassignment): this will include all parties of the ``TransactionFilter`` that are stakeholders of the contract. The behavior of reading create events visible to parties not hosted on the participant node serving the Ledger API is undefined. Concretely, there is neither a guarantee that the participant node will serve all their create events on the ACS stream, nor is there a guarantee that matching archive events are delivered for such create events. For most clients this is not a problem, as they only read events for parties that are hosted on the participant node. If you need to read events for parties that may not be hosted at all times on the participant node, subscribe to the ``TopologyEvent``s for that party by setting a corresponding ``UpdateFormat``. Using these events, query the ACS as-of an offset where the party is hosted on the participant node, and ignore create events at offsets where the party is not hosted on the participant node. Required
repeated string witness_parties = 9 [json_name = "witnessParties"];
- Specified by:
getWitnessPartiesList
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- A list containing the witnessParties.
-
getWitnessPartiesCount
public int getWitnessPartiesCount()The parties that are notified of this event. When a ``CreatedEvent`` is returned as part of a transaction tree or ledger-effects transaction, this will include all the parties specified in the ``TransactionFilter`` that are informees of the event. If served as part of a ACS delta transaction those will be limited to all parties specified in the ``TransactionFilter`` that are stakeholders of the contract (i.e. either signatories or observers). If the ``CreatedEvent`` is returned as part of an AssignedEvent, ActiveContract or IncompleteUnassigned (so the event is related to an assignment or unassignment): this will include all parties of the ``TransactionFilter`` that are stakeholders of the contract. The behavior of reading create events visible to parties not hosted on the participant node serving the Ledger API is undefined. Concretely, there is neither a guarantee that the participant node will serve all their create events on the ACS stream, nor is there a guarantee that matching archive events are delivered for such create events. For most clients this is not a problem, as they only read events for parties that are hosted on the participant node. If you need to read events for parties that may not be hosted at all times on the participant node, subscribe to the ``TopologyEvent``s for that party by setting a corresponding ``UpdateFormat``. Using these events, query the ACS as-of an offset where the party is hosted on the participant node, and ignore create events at offsets where the party is not hosted on the participant node. Required
repeated string witness_parties = 9 [json_name = "witnessParties"];
- Specified by:
getWitnessPartiesCount
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The count of witnessParties.
-
getWitnessParties
The parties that are notified of this event. When a ``CreatedEvent`` is returned as part of a transaction tree or ledger-effects transaction, this will include all the parties specified in the ``TransactionFilter`` that are informees of the event. If served as part of a ACS delta transaction those will be limited to all parties specified in the ``TransactionFilter`` that are stakeholders of the contract (i.e. either signatories or observers). If the ``CreatedEvent`` is returned as part of an AssignedEvent, ActiveContract or IncompleteUnassigned (so the event is related to an assignment or unassignment): this will include all parties of the ``TransactionFilter`` that are stakeholders of the contract. The behavior of reading create events visible to parties not hosted on the participant node serving the Ledger API is undefined. Concretely, there is neither a guarantee that the participant node will serve all their create events on the ACS stream, nor is there a guarantee that matching archive events are delivered for such create events. For most clients this is not a problem, as they only read events for parties that are hosted on the participant node. If you need to read events for parties that may not be hosted at all times on the participant node, subscribe to the ``TopologyEvent``s for that party by setting a corresponding ``UpdateFormat``. Using these events, query the ACS as-of an offset where the party is hosted on the participant node, and ignore create events at offsets where the party is not hosted on the participant node. Required
repeated string witness_parties = 9 [json_name = "witnessParties"];
- Specified by:
getWitnessParties
in interfaceEventOuterClass.CreatedEventOrBuilder
- 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. When a ``CreatedEvent`` is returned as part of a transaction tree or ledger-effects transaction, this will include all the parties specified in the ``TransactionFilter`` that are informees of the event. If served as part of a ACS delta transaction those will be limited to all parties specified in the ``TransactionFilter`` that are stakeholders of the contract (i.e. either signatories or observers). If the ``CreatedEvent`` is returned as part of an AssignedEvent, ActiveContract or IncompleteUnassigned (so the event is related to an assignment or unassignment): this will include all parties of the ``TransactionFilter`` that are stakeholders of the contract. The behavior of reading create events visible to parties not hosted on the participant node serving the Ledger API is undefined. Concretely, there is neither a guarantee that the participant node will serve all their create events on the ACS stream, nor is there a guarantee that matching archive events are delivered for such create events. For most clients this is not a problem, as they only read events for parties that are hosted on the participant node. If you need to read events for parties that may not be hosted at all times on the participant node, subscribe to the ``TopologyEvent``s for that party by setting a corresponding ``UpdateFormat``. Using these events, query the ACS as-of an offset where the party is hosted on the participant node, and ignore create events at offsets where the party is not hosted on the participant node. Required
repeated string witness_parties = 9 [json_name = "witnessParties"];
- Specified by:
getWitnessPartiesBytes
in interfaceEventOuterClass.CreatedEventOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the witnessParties at the given index.
-
getSignatoriesList
public com.google.protobuf.ProtocolStringList getSignatoriesList()The signatories for this contract as specified by the template. Required
repeated string signatories = 10 [json_name = "signatories"];
- Specified by:
getSignatoriesList
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- A list containing the signatories.
-
getSignatoriesCount
public int getSignatoriesCount()The signatories for this contract as specified by the template. Required
repeated string signatories = 10 [json_name = "signatories"];
- Specified by:
getSignatoriesCount
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The count of signatories.
-
getSignatories
The signatories for this contract as specified by the template. Required
repeated string signatories = 10 [json_name = "signatories"];
- Specified by:
getSignatories
in interfaceEventOuterClass.CreatedEventOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The signatories at the given index.
-
getSignatoriesBytes
public com.google.protobuf.ByteString getSignatoriesBytes(int index) The signatories for this contract as specified by the template. Required
repeated string signatories = 10 [json_name = "signatories"];
- Specified by:
getSignatoriesBytes
in interfaceEventOuterClass.CreatedEventOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the signatories at the given index.
-
getObserversList
public com.google.protobuf.ProtocolStringList getObserversList()The observers for this contract as specified explicitly by the template or implicitly as choice controllers. This field never contains parties that are signatories. Required
repeated string observers = 11 [json_name = "observers"];
- Specified by:
getObserversList
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- A list containing the observers.
-
getObserversCount
public int getObserversCount()The observers for this contract as specified explicitly by the template or implicitly as choice controllers. This field never contains parties that are signatories. Required
repeated string observers = 11 [json_name = "observers"];
- Specified by:
getObserversCount
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The count of observers.
-
getObservers
The observers for this contract as specified explicitly by the template or implicitly as choice controllers. This field never contains parties that are signatories. Required
repeated string observers = 11 [json_name = "observers"];
- Specified by:
getObservers
in interfaceEventOuterClass.CreatedEventOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The observers at the given index.
-
getObserversBytes
public com.google.protobuf.ByteString getObserversBytes(int index) The observers for this contract as specified explicitly by the template or implicitly as choice controllers. This field never contains parties that are signatories. Required
repeated string observers = 11 [json_name = "observers"];
- Specified by:
getObserversBytes
in interfaceEventOuterClass.CreatedEventOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the observers at the given index.
-
hasCreatedAt
public boolean hasCreatedAt()Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 12 [json_name = "createdAt"];
- Specified by:
hasCreatedAt
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- Whether the createdAt field is set.
-
getCreatedAt
public com.google.protobuf.Timestamp getCreatedAt()Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 12 [json_name = "createdAt"];
- Specified by:
getCreatedAt
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The createdAt.
-
getCreatedAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder()Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 12 [json_name = "createdAt"];
- Specified by:
getCreatedAtOrBuilder
in interfaceEventOuterClass.CreatedEventOrBuilder
-
getPackageName
The package name of the created contract. Required
string package_name = 13 [json_name = "packageName"];
- Specified by:
getPackageName
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The packageName.
-
getPackageNameBytes
public com.google.protobuf.ByteString getPackageNameBytes()The package name of the created contract. Required
string package_name = 13 [json_name = "packageName"];
- Specified by:
getPackageNameBytes
in interfaceEventOuterClass.CreatedEventOrBuilder
- Returns:
- The bytes for packageName.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static EventOuterClass.CreatedEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventOuterClass.CreatedEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventOuterClass.CreatedEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventOuterClass.CreatedEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventOuterClass.CreatedEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventOuterClass.CreatedEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static EventOuterClass.CreatedEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static EventOuterClass.CreatedEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static EventOuterClass.CreatedEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static EventOuterClass.CreatedEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static EventOuterClass.CreatedEvent.Builder newBuilder(EventOuterClass.CreatedEvent prototype) -
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EventOuterClass.CreatedEvent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-