
com.daml.ledger.api.v2.TransactionOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/daml/ledger/api/v2/transaction.proto
package com.daml.ledger.api.v2;
public final class TransactionOuterClass {
private TransactionOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface TransactionTreeOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v2.TransactionTree)
com.google.protobuf.MessageOrBuilder {
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The updateId.
*/
java.lang.String getUpdateId();
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The bytes for updateId.
*/
com.google.protobuf.ByteString
getUpdateIdBytes();
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The commandId.
*/
java.lang.String getCommandId();
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The bytes for commandId.
*/
com.google.protobuf.ByteString
getCommandIdBytes();
/**
*
* The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The workflowId.
*/
java.lang.String getWorkflowId();
/**
*
* The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The bytes for workflowId.
*/
com.google.protobuf.ByteString
getWorkflowIdBytes();
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return Whether the effectiveAt field is set.
*/
boolean hasEffectiveAt();
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return The effectiveAt.
*/
com.google.protobuf.Timestamp getEffectiveAt();
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
com.google.protobuf.TimestampOrBuilder getEffectiveAtOrBuilder();
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 5 [json_name = "offset"];
* @return The offset.
*/
java.lang.String getOffset();
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 5 [json_name = "offset"];
* @return The bytes for offset.
*/
com.google.protobuf.ByteString
getOffsetBytes();
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
int getEventsByIdCount();
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
boolean containsEventsById(
java.lang.String key);
/**
* Use {@link #getEventsByIdMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getEventsById();
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
java.util.Map
getEventsByIdMap();
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent getEventsByIdOrDefault(
java.lang.String key,
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent defaultValue);
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent getEventsByIdOrThrow(
java.lang.String key);
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @return A list containing the rootEventIds.
*/
java.util.List
getRootEventIdsList();
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @return The count of rootEventIds.
*/
int getRootEventIdsCount();
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @param index The index of the element to return.
* @return The rootEventIds at the given index.
*/
java.lang.String getRootEventIds(int index);
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @param index The index of the value to return.
* @return The bytes of the rootEventIds at the given index.
*/
com.google.protobuf.ByteString
getRootEventIdsBytes(int index);
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 8 [json_name = "domainId"];
* @return The domainId.
*/
java.lang.String getDomainId();
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 8 [json_name = "domainId"];
* @return The bytes for domainId.
*/
com.google.protobuf.ByteString
getDomainIdBytes();
}
/**
*
* Complete view of an on-ledger transaction.
*
*
* Protobuf type {@code com.daml.ledger.api.v2.TransactionTree}
*/
public static final class TransactionTree extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.TransactionTree)
TransactionTreeOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionTree.newBuilder() to construct.
private TransactionTree(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionTree() {
updateId_ = "";
commandId_ = "";
workflowId_ = "";
offset_ = "";
rootEventIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
domainId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionTree();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_TransactionTree_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetEventsById();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_TransactionTree_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree.class, com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree.Builder.class);
}
public static final int UPDATE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object updateId_;
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The updateId.
*/
@java.lang.Override
public java.lang.String getUpdateId() {
java.lang.Object ref = updateId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
updateId_ = s;
return s;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The bytes for updateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUpdateIdBytes() {
java.lang.Object ref = updateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
updateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMAND_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object commandId_;
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The commandId.
*/
@java.lang.Override
public java.lang.String getCommandId() {
java.lang.Object ref = commandId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
commandId_ = s;
return s;
}
}
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The bytes for commandId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCommandIdBytes() {
java.lang.Object ref = commandId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commandId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WORKFLOW_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object workflowId_;
/**
*
* The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The workflowId.
*/
@java.lang.Override
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workflowId_ = s;
return s;
}
}
/**
*
* The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The bytes for workflowId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EFFECTIVE_AT_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp effectiveAt_;
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return Whether the effectiveAt field is set.
*/
@java.lang.Override
public boolean hasEffectiveAt() {
return effectiveAt_ != null;
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return The effectiveAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getEffectiveAt() {
return effectiveAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveAt_;
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEffectiveAtOrBuilder() {
return getEffectiveAt();
}
public static final int OFFSET_FIELD_NUMBER = 5;
private volatile java.lang.Object offset_;
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 5 [json_name = "offset"];
* @return The offset.
*/
@java.lang.Override
public java.lang.String getOffset() {
java.lang.Object ref = offset_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offset_ = s;
return s;
}
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 5 [json_name = "offset"];
* @return The bytes for offset.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOffsetBytes() {
java.lang.Object ref = offset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVENTS_BY_ID_FIELD_NUMBER = 6;
private static final class EventsByIdDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_TransactionTree_EventsByIdEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent> eventsById_;
private com.google.protobuf.MapField
internalGetEventsById() {
if (eventsById_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EventsByIdDefaultEntryHolder.defaultEntry);
}
return eventsById_;
}
public int getEventsByIdCount() {
return internalGetEventsById().getMap().size();
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
@java.lang.Override
public boolean containsEventsById(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetEventsById().getMap().containsKey(key);
}
/**
* Use {@link #getEventsByIdMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getEventsById() {
return getEventsByIdMap();
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
@java.lang.Override
public java.util.Map getEventsByIdMap() {
return internalGetEventsById().getMap();
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent getEventsByIdOrDefault(
java.lang.String key,
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEventsById().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent getEventsByIdOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEventsById().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ROOT_EVENT_IDS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList rootEventIds_;
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @return A list containing the rootEventIds.
*/
public com.google.protobuf.ProtocolStringList
getRootEventIdsList() {
return rootEventIds_;
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @return The count of rootEventIds.
*/
public int getRootEventIdsCount() {
return rootEventIds_.size();
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @param index The index of the element to return.
* @return The rootEventIds at the given index.
*/
public java.lang.String getRootEventIds(int index) {
return rootEventIds_.get(index);
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @param index The index of the value to return.
* @return The bytes of the rootEventIds at the given index.
*/
public com.google.protobuf.ByteString
getRootEventIdsBytes(int index) {
return rootEventIds_.getByteString(index);
}
public static final int DOMAIN_ID_FIELD_NUMBER = 8;
private volatile java.lang.Object domainId_;
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 8 [json_name = "domainId"];
* @return The domainId.
*/
@java.lang.Override
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainId_ = s;
return s;
}
}
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 8 [json_name = "domainId"];
* @return The bytes for domainId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updateId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, updateId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commandId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_);
}
if (effectiveAt_ != null) {
output.writeMessage(4, getEffectiveAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, offset_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetEventsById(),
EventsByIdDefaultEntryHolder.defaultEntry,
6);
for (int i = 0; i < rootEventIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, rootEventIds_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, domainId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updateId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, updateId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commandId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_);
}
if (effectiveAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getEffectiveAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, offset_);
}
for (java.util.Map.Entry entry
: internalGetEventsById().getMap().entrySet()) {
com.google.protobuf.MapEntry
eventsById__ = EventsByIdDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, eventsById__);
}
{
int dataSize = 0;
for (int i = 0; i < rootEventIds_.size(); i++) {
dataSize += computeStringSizeNoTag(rootEventIds_.getRaw(i));
}
size += dataSize;
size += 1 * getRootEventIdsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, domainId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree)) {
return super.equals(obj);
}
com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree other = (com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree) obj;
if (!getUpdateId()
.equals(other.getUpdateId())) return false;
if (!getCommandId()
.equals(other.getCommandId())) return false;
if (!getWorkflowId()
.equals(other.getWorkflowId())) return false;
if (hasEffectiveAt() != other.hasEffectiveAt()) return false;
if (hasEffectiveAt()) {
if (!getEffectiveAt()
.equals(other.getEffectiveAt())) return false;
}
if (!getOffset()
.equals(other.getOffset())) return false;
if (!internalGetEventsById().equals(
other.internalGetEventsById())) return false;
if (!getRootEventIdsList()
.equals(other.getRootEventIdsList())) return false;
if (!getDomainId()
.equals(other.getDomainId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + UPDATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getUpdateId().hashCode();
hash = (37 * hash) + COMMAND_ID_FIELD_NUMBER;
hash = (53 * hash) + getCommandId().hashCode();
hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowId().hashCode();
if (hasEffectiveAt()) {
hash = (37 * hash) + EFFECTIVE_AT_FIELD_NUMBER;
hash = (53 * hash) + getEffectiveAt().hashCode();
}
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset().hashCode();
if (!internalGetEventsById().getMap().isEmpty()) {
hash = (37 * hash) + EVENTS_BY_ID_FIELD_NUMBER;
hash = (53 * hash) + internalGetEventsById().hashCode();
}
if (getRootEventIdsCount() > 0) {
hash = (37 * hash) + ROOT_EVENT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getRootEventIdsList().hashCode();
}
hash = (37 * hash) + DOMAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getDomainId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Complete view of an on-ledger transaction.
*
*
* Protobuf type {@code com.daml.ledger.api.v2.TransactionTree}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.TransactionTree)
com.daml.ledger.api.v2.TransactionOuterClass.TransactionTreeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_TransactionTree_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetEventsById();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableEventsById();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_TransactionTree_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree.class, com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree.Builder.class);
}
// Construct using com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
updateId_ = "";
commandId_ = "";
workflowId_ = "";
if (effectiveAtBuilder_ == null) {
effectiveAt_ = null;
} else {
effectiveAt_ = null;
effectiveAtBuilder_ = null;
}
offset_ = "";
internalGetMutableEventsById().clear();
rootEventIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
domainId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_TransactionTree_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree getDefaultInstanceForType() {
return com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree build() {
com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree buildPartial() {
com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree result = new com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree(this);
int from_bitField0_ = bitField0_;
result.updateId_ = updateId_;
result.commandId_ = commandId_;
result.workflowId_ = workflowId_;
if (effectiveAtBuilder_ == null) {
result.effectiveAt_ = effectiveAt_;
} else {
result.effectiveAt_ = effectiveAtBuilder_.build();
}
result.offset_ = offset_;
result.eventsById_ = internalGetEventsById();
result.eventsById_.makeImmutable();
if (((bitField0_ & 0x00000002) != 0)) {
rootEventIds_ = rootEventIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.rootEventIds_ = rootEventIds_;
result.domainId_ = domainId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree) {
return mergeFrom((com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree other) {
if (other == com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree.getDefaultInstance()) return this;
if (!other.getUpdateId().isEmpty()) {
updateId_ = other.updateId_;
onChanged();
}
if (!other.getCommandId().isEmpty()) {
commandId_ = other.commandId_;
onChanged();
}
if (!other.getWorkflowId().isEmpty()) {
workflowId_ = other.workflowId_;
onChanged();
}
if (other.hasEffectiveAt()) {
mergeEffectiveAt(other.getEffectiveAt());
}
if (!other.getOffset().isEmpty()) {
offset_ = other.offset_;
onChanged();
}
internalGetMutableEventsById().mergeFrom(
other.internalGetEventsById());
if (!other.rootEventIds_.isEmpty()) {
if (rootEventIds_.isEmpty()) {
rootEventIds_ = other.rootEventIds_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRootEventIdsIsMutable();
rootEventIds_.addAll(other.rootEventIds_);
}
onChanged();
}
if (!other.getDomainId().isEmpty()) {
domainId_ = other.domainId_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
updateId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
commandId_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
workflowId_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
input.readMessage(
getEffectiveAtFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 34
case 42: {
offset_ = input.readStringRequireUtf8();
break;
} // case 42
case 50: {
com.google.protobuf.MapEntry
eventsById__ = input.readMessage(
EventsByIdDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableEventsById().getMutableMap().put(
eventsById__.getKey(), eventsById__.getValue());
break;
} // case 50
case 58: {
java.lang.String s = input.readStringRequireUtf8();
ensureRootEventIdsIsMutable();
rootEventIds_.add(s);
break;
} // case 58
case 66: {
domainId_ = input.readStringRequireUtf8();
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object updateId_ = "";
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The updateId.
*/
public java.lang.String getUpdateId() {
java.lang.Object ref = updateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
updateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The bytes for updateId.
*/
public com.google.protobuf.ByteString
getUpdateIdBytes() {
java.lang.Object ref = updateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
updateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @param value The updateId to set.
* @return This builder for chaining.
*/
public Builder setUpdateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
updateId_ = value;
onChanged();
return this;
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return This builder for chaining.
*/
public Builder clearUpdateId() {
updateId_ = getDefaultInstance().getUpdateId();
onChanged();
return this;
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @param value The bytes for updateId to set.
* @return This builder for chaining.
*/
public Builder setUpdateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
updateId_ = value;
onChanged();
return this;
}
private java.lang.Object commandId_ = "";
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The commandId.
*/
public java.lang.String getCommandId() {
java.lang.Object ref = commandId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
commandId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The bytes for commandId.
*/
public com.google.protobuf.ByteString
getCommandIdBytes() {
java.lang.Object ref = commandId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commandId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @param value The commandId to set.
* @return This builder for chaining.
*/
public Builder setCommandId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
commandId_ = value;
onChanged();
return this;
}
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return This builder for chaining.
*/
public Builder clearCommandId() {
commandId_ = getDefaultInstance().getCommandId();
onChanged();
return this;
}
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @param value The bytes for commandId to set.
* @return This builder for chaining.
*/
public Builder setCommandIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
commandId_ = value;
onChanged();
return this;
}
private java.lang.Object workflowId_ = "";
/**
*
* The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The workflowId.
*/
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workflowId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The bytes for workflowId.
*/
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @param value The workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
workflowId_ = value;
onChanged();
return this;
}
/**
*
* The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return This builder for chaining.
*/
public Builder clearWorkflowId() {
workflowId_ = getDefaultInstance().getWorkflowId();
onChanged();
return this;
}
/**
*
* The workflow ID used in command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @param value The bytes for workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
workflowId_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp effectiveAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveAtBuilder_;
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return Whether the effectiveAt field is set.
*/
public boolean hasEffectiveAt() {
return effectiveAtBuilder_ != null || effectiveAt_ != null;
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return The effectiveAt.
*/
public com.google.protobuf.Timestamp getEffectiveAt() {
if (effectiveAtBuilder_ == null) {
return effectiveAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveAt_;
} else {
return effectiveAtBuilder_.getMessage();
}
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public Builder setEffectiveAt(com.google.protobuf.Timestamp value) {
if (effectiveAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
effectiveAt_ = value;
onChanged();
} else {
effectiveAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public Builder setEffectiveAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (effectiveAtBuilder_ == null) {
effectiveAt_ = builderForValue.build();
onChanged();
} else {
effectiveAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public Builder mergeEffectiveAt(com.google.protobuf.Timestamp value) {
if (effectiveAtBuilder_ == null) {
if (effectiveAt_ != null) {
effectiveAt_ =
com.google.protobuf.Timestamp.newBuilder(effectiveAt_).mergeFrom(value).buildPartial();
} else {
effectiveAt_ = value;
}
onChanged();
} else {
effectiveAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public Builder clearEffectiveAt() {
if (effectiveAtBuilder_ == null) {
effectiveAt_ = null;
onChanged();
} else {
effectiveAt_ = null;
effectiveAtBuilder_ = null;
}
return this;
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public com.google.protobuf.Timestamp.Builder getEffectiveAtBuilder() {
onChanged();
return getEffectiveAtFieldBuilder().getBuilder();
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public com.google.protobuf.TimestampOrBuilder getEffectiveAtOrBuilder() {
if (effectiveAtBuilder_ != null) {
return effectiveAtBuilder_.getMessageOrBuilder();
} else {
return effectiveAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : effectiveAt_;
}
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getEffectiveAtFieldBuilder() {
if (effectiveAtBuilder_ == null) {
effectiveAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getEffectiveAt(),
getParentForChildren(),
isClean());
effectiveAt_ = null;
}
return effectiveAtBuilder_;
}
private java.lang.Object offset_ = "";
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 5 [json_name = "offset"];
* @return The offset.
*/
public java.lang.String getOffset() {
java.lang.Object ref = offset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 5 [json_name = "offset"];
* @return The bytes for offset.
*/
public com.google.protobuf.ByteString
getOffsetBytes() {
java.lang.Object ref = offset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 5 [json_name = "offset"];
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
offset_ = value;
onChanged();
return this;
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 5 [json_name = "offset"];
* @return This builder for chaining.
*/
public Builder clearOffset() {
offset_ = getDefaultInstance().getOffset();
onChanged();
return this;
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 5 [json_name = "offset"];
* @param value The bytes for offset to set.
* @return This builder for chaining.
*/
public Builder setOffsetBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
offset_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent> eventsById_;
private com.google.protobuf.MapField
internalGetEventsById() {
if (eventsById_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EventsByIdDefaultEntryHolder.defaultEntry);
}
return eventsById_;
}
private com.google.protobuf.MapField
internalGetMutableEventsById() {
onChanged();;
if (eventsById_ == null) {
eventsById_ = com.google.protobuf.MapField.newMapField(
EventsByIdDefaultEntryHolder.defaultEntry);
}
if (!eventsById_.isMutable()) {
eventsById_ = eventsById_.copy();
}
return eventsById_;
}
public int getEventsByIdCount() {
return internalGetEventsById().getMap().size();
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
@java.lang.Override
public boolean containsEventsById(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetEventsById().getMap().containsKey(key);
}
/**
* Use {@link #getEventsByIdMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getEventsById() {
return getEventsByIdMap();
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
@java.lang.Override
public java.util.Map getEventsByIdMap() {
return internalGetEventsById().getMap();
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent getEventsByIdOrDefault(
java.lang.String key,
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEventsById().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent getEventsByIdOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEventsById().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearEventsById() {
internalGetMutableEventsById().getMutableMap()
.clear();
return this;
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
public Builder removeEventsById(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableEventsById().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableEventsById() {
return internalGetMutableEventsById().getMutableMap();
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
public Builder putEventsById(
java.lang.String key,
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableEventsById().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Changes to the ledger that were caused by this transaction. Nodes of the transaction tree.
* Each key be a valid LedgerString (as describe in ``value.proto``).
* Required
*
*
* map<string, .com.daml.ledger.api.v1.TreeEvent> events_by_id = 6 [json_name = "eventsById"];
*/
public Builder putAllEventsById(
java.util.Map values) {
internalGetMutableEventsById().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.LazyStringList rootEventIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRootEventIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
rootEventIds_ = new com.google.protobuf.LazyStringArrayList(rootEventIds_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @return A list containing the rootEventIds.
*/
public com.google.protobuf.ProtocolStringList
getRootEventIdsList() {
return rootEventIds_.getUnmodifiableView();
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @return The count of rootEventIds.
*/
public int getRootEventIdsCount() {
return rootEventIds_.size();
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @param index The index of the element to return.
* @return The rootEventIds at the given index.
*/
public java.lang.String getRootEventIds(int index) {
return rootEventIds_.get(index);
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @param index The index of the value to return.
* @return The bytes of the rootEventIds at the given index.
*/
public com.google.protobuf.ByteString
getRootEventIdsBytes(int index) {
return rootEventIds_.getByteString(index);
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @param index The index to set the value at.
* @param value The rootEventIds to set.
* @return This builder for chaining.
*/
public Builder setRootEventIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRootEventIdsIsMutable();
rootEventIds_.set(index, value);
onChanged();
return this;
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @param value The rootEventIds to add.
* @return This builder for chaining.
*/
public Builder addRootEventIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRootEventIdsIsMutable();
rootEventIds_.add(value);
onChanged();
return this;
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @param values The rootEventIds to add.
* @return This builder for chaining.
*/
public Builder addAllRootEventIds(
java.lang.Iterable values) {
ensureRootEventIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rootEventIds_);
onChanged();
return this;
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @return This builder for chaining.
*/
public Builder clearRootEventIds() {
rootEventIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Roots of the transaction tree.
* Each element must be a valid LedgerString (as describe in ``value.proto``).
* The elements are in the same order as the commands in the
* corresponding Commands object that triggered this transaction.
* Required
*
*
* repeated string root_event_ids = 7 [json_name = "rootEventIds"];
* @param value The bytes of the rootEventIds to add.
* @return This builder for chaining.
*/
public Builder addRootEventIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRootEventIdsIsMutable();
rootEventIds_.add(value);
onChanged();
return this;
}
private java.lang.Object domainId_ = "";
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 8 [json_name = "domainId"];
* @return The domainId.
*/
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 8 [json_name = "domainId"];
* @return The bytes for domainId.
*/
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 8 [json_name = "domainId"];
* @param value The domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domainId_ = value;
onChanged();
return this;
}
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 8 [json_name = "domainId"];
* @return This builder for chaining.
*/
public Builder clearDomainId() {
domainId_ = getDefaultInstance().getDomainId();
onChanged();
return this;
}
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 8 [json_name = "domainId"];
* @param value The bytes for domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domainId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v2.TransactionTree)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.TransactionTree)
private static final com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree();
}
public static com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionTree parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.daml.ledger.api.v2.TransactionOuterClass.TransactionTree getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v2.Transaction)
com.google.protobuf.MessageOrBuilder {
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The updateId.
*/
java.lang.String getUpdateId();
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The bytes for updateId.
*/
com.google.protobuf.ByteString
getUpdateIdBytes();
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The commandId.
*/
java.lang.String getCommandId();
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The bytes for commandId.
*/
com.google.protobuf.ByteString
getCommandIdBytes();
/**
*
* The workflow ID used in command submission.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The workflowId.
*/
java.lang.String getWorkflowId();
/**
*
* The workflow ID used in command submission.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The bytes for workflowId.
*/
com.google.protobuf.ByteString
getWorkflowIdBytes();
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return Whether the effectiveAt field is set.
*/
boolean hasEffectiveAt();
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return The effectiveAt.
*/
com.google.protobuf.Timestamp getEffectiveAt();
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
com.google.protobuf.TimestampOrBuilder getEffectiveAtOrBuilder();
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
java.util.List
getEventsList();
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
com.daml.ledger.api.v1.EventOuterClass.Event getEvents(int index);
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
int getEventsCount();
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
java.util.List extends com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList();
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index);
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 6 [json_name = "offset"];
* @return The offset.
*/
java.lang.String getOffset();
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 6 [json_name = "offset"];
* @return The bytes for offset.
*/
com.google.protobuf.ByteString
getOffsetBytes();
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 7 [json_name = "domainId"];
* @return The domainId.
*/
java.lang.String getDomainId();
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 7 [json_name = "domainId"];
* @return The bytes for domainId.
*/
com.google.protobuf.ByteString
getDomainIdBytes();
}
/**
*
* Filtered view of an on-ledger transaction's create and archive events.
*
*
* Protobuf type {@code com.daml.ledger.api.v2.Transaction}
*/
public static final class Transaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.Transaction)
TransactionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Transaction.newBuilder() to construct.
private Transaction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Transaction() {
updateId_ = "";
commandId_ = "";
workflowId_ = "";
events_ = java.util.Collections.emptyList();
offset_ = "";
domainId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Transaction();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.TransactionOuterClass.Transaction.class, com.daml.ledger.api.v2.TransactionOuterClass.Transaction.Builder.class);
}
public static final int UPDATE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object updateId_;
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The updateId.
*/
@java.lang.Override
public java.lang.String getUpdateId() {
java.lang.Object ref = updateId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
updateId_ = s;
return s;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The bytes for updateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUpdateIdBytes() {
java.lang.Object ref = updateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
updateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMAND_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object commandId_;
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The commandId.
*/
@java.lang.Override
public java.lang.String getCommandId() {
java.lang.Object ref = commandId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
commandId_ = s;
return s;
}
}
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The bytes for commandId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCommandIdBytes() {
java.lang.Object ref = commandId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commandId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WORKFLOW_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object workflowId_;
/**
*
* The workflow ID used in command submission.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The workflowId.
*/
@java.lang.Override
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workflowId_ = s;
return s;
}
}
/**
*
* The workflow ID used in command submission.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The bytes for workflowId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EFFECTIVE_AT_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp effectiveAt_;
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return Whether the effectiveAt field is set.
*/
@java.lang.Override
public boolean hasEffectiveAt() {
return effectiveAt_ != null;
}
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return The effectiveAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getEffectiveAt() {
return effectiveAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveAt_;
}
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEffectiveAtOrBuilder() {
return getEffectiveAt();
}
public static final int EVENTS_FIELD_NUMBER = 5;
private java.util.List events_;
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
@java.lang.Override
public java.util.List extends com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.Event getEvents(int index) {
return events_.get(index);
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
public static final int OFFSET_FIELD_NUMBER = 6;
private volatile java.lang.Object offset_;
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 6 [json_name = "offset"];
* @return The offset.
*/
@java.lang.Override
public java.lang.String getOffset() {
java.lang.Object ref = offset_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offset_ = s;
return s;
}
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 6 [json_name = "offset"];
* @return The bytes for offset.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOffsetBytes() {
java.lang.Object ref = offset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOMAIN_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object domainId_;
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 7 [json_name = "domainId"];
* @return The domainId.
*/
@java.lang.Override
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainId_ = s;
return s;
}
}
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 7 [json_name = "domainId"];
* @return The bytes for domainId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updateId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, updateId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commandId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_);
}
if (effectiveAt_ != null) {
output.writeMessage(4, getEffectiveAt());
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(5, events_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, offset_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, domainId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updateId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, updateId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commandId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_);
}
if (effectiveAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getEffectiveAt());
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, events_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, offset_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, domainId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.daml.ledger.api.v2.TransactionOuterClass.Transaction)) {
return super.equals(obj);
}
com.daml.ledger.api.v2.TransactionOuterClass.Transaction other = (com.daml.ledger.api.v2.TransactionOuterClass.Transaction) obj;
if (!getUpdateId()
.equals(other.getUpdateId())) return false;
if (!getCommandId()
.equals(other.getCommandId())) return false;
if (!getWorkflowId()
.equals(other.getWorkflowId())) return false;
if (hasEffectiveAt() != other.hasEffectiveAt()) return false;
if (hasEffectiveAt()) {
if (!getEffectiveAt()
.equals(other.getEffectiveAt())) return false;
}
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (!getOffset()
.equals(other.getOffset())) return false;
if (!getDomainId()
.equals(other.getDomainId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + UPDATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getUpdateId().hashCode();
hash = (37 * hash) + COMMAND_ID_FIELD_NUMBER;
hash = (53 * hash) + getCommandId().hashCode();
hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowId().hashCode();
if (hasEffectiveAt()) {
hash = (37 * hash) + EFFECTIVE_AT_FIELD_NUMBER;
hash = (53 * hash) + getEffectiveAt().hashCode();
}
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset().hashCode();
hash = (37 * hash) + DOMAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getDomainId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.daml.ledger.api.v2.TransactionOuterClass.Transaction prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Filtered view of an on-ledger transaction's create and archive events.
*
*
* Protobuf type {@code com.daml.ledger.api.v2.Transaction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.Transaction)
com.daml.ledger.api.v2.TransactionOuterClass.TransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.TransactionOuterClass.Transaction.class, com.daml.ledger.api.v2.TransactionOuterClass.Transaction.Builder.class);
}
// Construct using com.daml.ledger.api.v2.TransactionOuterClass.Transaction.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
updateId_ = "";
commandId_ = "";
workflowId_ = "";
if (effectiveAtBuilder_ == null) {
effectiveAt_ = null;
} else {
effectiveAt_ = null;
effectiveAtBuilder_ = null;
}
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
} else {
events_ = null;
eventsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
offset_ = "";
domainId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v2.TransactionOuterClass.internal_static_com_daml_ledger_api_v2_Transaction_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v2.TransactionOuterClass.Transaction getDefaultInstanceForType() {
return com.daml.ledger.api.v2.TransactionOuterClass.Transaction.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v2.TransactionOuterClass.Transaction build() {
com.daml.ledger.api.v2.TransactionOuterClass.Transaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v2.TransactionOuterClass.Transaction buildPartial() {
com.daml.ledger.api.v2.TransactionOuterClass.Transaction result = new com.daml.ledger.api.v2.TransactionOuterClass.Transaction(this);
int from_bitField0_ = bitField0_;
result.updateId_ = updateId_;
result.commandId_ = commandId_;
result.workflowId_ = workflowId_;
if (effectiveAtBuilder_ == null) {
result.effectiveAt_ = effectiveAt_;
} else {
result.effectiveAt_ = effectiveAtBuilder_.build();
}
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
result.offset_ = offset_;
result.domainId_ = domainId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.daml.ledger.api.v2.TransactionOuterClass.Transaction) {
return mergeFrom((com.daml.ledger.api.v2.TransactionOuterClass.Transaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v2.TransactionOuterClass.Transaction other) {
if (other == com.daml.ledger.api.v2.TransactionOuterClass.Transaction.getDefaultInstance()) return this;
if (!other.getUpdateId().isEmpty()) {
updateId_ = other.updateId_;
onChanged();
}
if (!other.getCommandId().isEmpty()) {
commandId_ = other.commandId_;
onChanged();
}
if (!other.getWorkflowId().isEmpty()) {
workflowId_ = other.workflowId_;
onChanged();
}
if (other.hasEffectiveAt()) {
mergeEffectiveAt(other.getEffectiveAt());
}
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
if (!other.getOffset().isEmpty()) {
offset_ = other.offset_;
onChanged();
}
if (!other.getDomainId().isEmpty()) {
domainId_ = other.domainId_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
updateId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
commandId_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
workflowId_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
input.readMessage(
getEffectiveAtFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 34
case 42: {
com.daml.ledger.api.v1.EventOuterClass.Event m =
input.readMessage(
com.daml.ledger.api.v1.EventOuterClass.Event.parser(),
extensionRegistry);
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(m);
} else {
eventsBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
offset_ = input.readStringRequireUtf8();
break;
} // case 50
case 58: {
domainId_ = input.readStringRequireUtf8();
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object updateId_ = "";
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The updateId.
*/
public java.lang.String getUpdateId() {
java.lang.Object ref = updateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
updateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The bytes for updateId.
*/
public com.google.protobuf.ByteString
getUpdateIdBytes() {
java.lang.Object ref = updateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
updateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @param value The updateId to set.
* @return This builder for chaining.
*/
public Builder setUpdateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
updateId_ = value;
onChanged();
return this;
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return This builder for chaining.
*/
public Builder clearUpdateId() {
updateId_ = getDefaultInstance().getUpdateId();
onChanged();
return this;
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @param value The bytes for updateId to set.
* @return This builder for chaining.
*/
public Builder setUpdateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
updateId_ = value;
onChanged();
return this;
}
private java.lang.Object commandId_ = "";
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The commandId.
*/
public java.lang.String getCommandId() {
java.lang.Object ref = commandId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
commandId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The bytes for commandId.
*/
public com.google.protobuf.ByteString
getCommandIdBytes() {
java.lang.Object ref = commandId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commandId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @param value The commandId to set.
* @return This builder for chaining.
*/
public Builder setCommandId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
commandId_ = value;
onChanged();
return this;
}
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return This builder for chaining.
*/
public Builder clearCommandId() {
commandId_ = getDefaultInstance().getCommandId();
onChanged();
return this;
}
/**
*
* The ID of the command which resulted in this transaction. Missing for everyone except the submitting party.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @param value The bytes for commandId to set.
* @return This builder for chaining.
*/
public Builder setCommandIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
commandId_ = value;
onChanged();
return this;
}
private java.lang.Object workflowId_ = "";
/**
*
* The workflow ID used in command submission.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The workflowId.
*/
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workflowId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The workflow ID used in command submission.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The bytes for workflowId.
*/
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The workflow ID used in command submission.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @param value The workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
workflowId_ = value;
onChanged();
return this;
}
/**
*
* The workflow ID used in command submission.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return This builder for chaining.
*/
public Builder clearWorkflowId() {
workflowId_ = getDefaultInstance().getWorkflowId();
onChanged();
return this;
}
/**
*
* The workflow ID used in command submission.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @param value The bytes for workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
workflowId_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp effectiveAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveAtBuilder_;
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return Whether the effectiveAt field is set.
*/
public boolean hasEffectiveAt() {
return effectiveAtBuilder_ != null || effectiveAt_ != null;
}
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
* @return The effectiveAt.
*/
public com.google.protobuf.Timestamp getEffectiveAt() {
if (effectiveAtBuilder_ == null) {
return effectiveAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveAt_;
} else {
return effectiveAtBuilder_.getMessage();
}
}
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public Builder setEffectiveAt(com.google.protobuf.Timestamp value) {
if (effectiveAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
effectiveAt_ = value;
onChanged();
} else {
effectiveAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public Builder setEffectiveAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (effectiveAtBuilder_ == null) {
effectiveAt_ = builderForValue.build();
onChanged();
} else {
effectiveAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public Builder mergeEffectiveAt(com.google.protobuf.Timestamp value) {
if (effectiveAtBuilder_ == null) {
if (effectiveAt_ != null) {
effectiveAt_ =
com.google.protobuf.Timestamp.newBuilder(effectiveAt_).mergeFrom(value).buildPartial();
} else {
effectiveAt_ = value;
}
onChanged();
} else {
effectiveAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public Builder clearEffectiveAt() {
if (effectiveAtBuilder_ == null) {
effectiveAt_ = null;
onChanged();
} else {
effectiveAt_ = null;
effectiveAtBuilder_ = null;
}
return this;
}
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public com.google.protobuf.Timestamp.Builder getEffectiveAtBuilder() {
onChanged();
return getEffectiveAtFieldBuilder().getBuilder();
}
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
public com.google.protobuf.TimestampOrBuilder getEffectiveAtOrBuilder() {
if (effectiveAtBuilder_ != null) {
return effectiveAtBuilder_.getMessageOrBuilder();
} else {
return effectiveAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : effectiveAt_;
}
}
/**
*
* Ledger effective time.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4 [json_name = "effectiveAt"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getEffectiveAtFieldBuilder() {
if (effectiveAtBuilder_ == null) {
effectiveAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getEffectiveAt(),
getParentForChildren(),
isClean());
effectiveAt_ = null;
}
return effectiveAtBuilder_;
}
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.Event, com.daml.ledger.api.v1.EventOuterClass.Event.Builder, com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder> eventsBuilder_;
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public com.daml.ledger.api.v1.EventOuterClass.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public Builder setEvents(
int index, com.daml.ledger.api.v1.EventOuterClass.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
} else {
eventsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public Builder setEvents(
int index, com.daml.ledger.api.v1.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public Builder addEvents(com.daml.ledger.api.v1.EventOuterClass.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public Builder addEvents(
int index, com.daml.ledger.api.v1.EventOuterClass.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(index, value);
onChanged();
} else {
eventsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public Builder addEvents(
com.daml.ledger.api.v1.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public Builder addEvents(
int index, com.daml.ledger.api.v1.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public Builder addAllEvents(
java.lang.Iterable extends com.daml.ledger.api.v1.EventOuterClass.Event> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public com.daml.ledger.api.v1.EventOuterClass.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public java.util.List extends com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public com.daml.ledger.api.v1.EventOuterClass.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
com.daml.ledger.api.v1.EventOuterClass.Event.getDefaultInstance());
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public com.daml.ledger.api.v1.EventOuterClass.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, com.daml.ledger.api.v1.EventOuterClass.Event.getDefaultInstance());
}
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5 [json_name = "events"];
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.Event, com.daml.ledger.api.v1.EventOuterClass.Event.Builder, com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.Event, com.daml.ledger.api.v1.EventOuterClass.Event.Builder, com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
private java.lang.Object offset_ = "";
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 6 [json_name = "offset"];
* @return The offset.
*/
public java.lang.String getOffset() {
java.lang.Object ref = offset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 6 [json_name = "offset"];
* @return The bytes for offset.
*/
public com.google.protobuf.ByteString
getOffsetBytes() {
java.lang.Object ref = offset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 6 [json_name = "offset"];
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
offset_ = value;
onChanged();
return this;
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 6 [json_name = "offset"];
* @return This builder for chaining.
*/
public Builder clearOffset() {
offset_ = getDefaultInstance().getOffset();
onChanged();
return this;
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 6 [json_name = "offset"];
* @param value The bytes for offset to set.
* @return This builder for chaining.
*/
public Builder setOffsetBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
offset_ = value;
onChanged();
return this;
}
private java.lang.Object domainId_ = "";
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 7 [json_name = "domainId"];
* @return The domainId.
*/
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 7 [json_name = "domainId"];
* @return The bytes for domainId.
*/
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 7 [json_name = "domainId"];
* @param value The domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domainId_ = value;
onChanged();
return this;
}
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 7 [json_name = "domainId"];
* @return This builder for chaining.
*/
public Builder clearDomainId() {
domainId_ = getDefaultInstance().getDomainId();
onChanged();
return this;
}
/**
*
* A valid domain ID.
* Identifies the domain that synchronized the transaction.
* Required
*
*
* string domain_id = 7 [json_name = "domainId"];
* @param value The bytes for domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domainId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v2.Transaction)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.Transaction)
private static final com.daml.ledger.api.v2.TransactionOuterClass.Transaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v2.TransactionOuterClass.Transaction();
}
public static com.daml.ledger.api.v2.TransactionOuterClass.Transaction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Transaction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.daml.ledger.api.v2.TransactionOuterClass.Transaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_TransactionTree_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_TransactionTree_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_TransactionTree_EventsByIdEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_TransactionTree_EventsByIdEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_Transaction_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_Transaction_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n(com/daml/ledger/api/v2/transaction.pro" +
"to\022\026com.daml.ledger.api.v2\032\"com/daml/led" +
"ger/api/v1/event.proto\032(com/daml/ledger/" +
"api/v1/transaction.proto\032\037google/protobu" +
"f/timestamp.proto\"\305\003\n\017TransactionTree\022\033\n" +
"\tupdate_id\030\001 \001(\tR\010updateId\022\035\n\ncommand_id" +
"\030\002 \001(\tR\tcommandId\022\037\n\013workflow_id\030\003 \001(\tR\n" +
"workflowId\022=\n\014effective_at\030\004 \001(\0132\032.googl" +
"e.protobuf.TimestampR\013effectiveAt\022\026\n\006off" +
"set\030\005 \001(\tR\006offset\022Y\n\014events_by_id\030\006 \003(\0132" +
"7.com.daml.ledger.api.v2.TransactionTree" +
".EventsByIdEntryR\neventsById\022$\n\016root_eve" +
"nt_ids\030\007 \003(\tR\014rootEventIds\022\033\n\tdomain_id\030" +
"\010 \001(\tR\010domainId\032`\n\017EventsByIdEntry\022\020\n\003ke" +
"y\030\001 \001(\tR\003key\0227\n\005value\030\002 \001(\0132!.com.daml.l" +
"edger.api.v1.TreeEventR\005value:\0028\001\"\225\002\n\013Tr" +
"ansaction\022\033\n\tupdate_id\030\001 \001(\tR\010updateId\022\035" +
"\n\ncommand_id\030\002 \001(\tR\tcommandId\022\037\n\013workflo" +
"w_id\030\003 \001(\tR\nworkflowId\022=\n\014effective_at\030\004" +
" \001(\0132\032.google.protobuf.TimestampR\013effect" +
"iveAt\0225\n\006events\030\005 \003(\0132\035.com.daml.ledger." +
"api.v1.EventR\006events\022\026\n\006offset\030\006 \001(\tR\006of" +
"fset\022\033\n\tdomain_id\030\007 \001(\tR\010domainIdBH\n\026com" +
".daml.ledger.api.v2B\025TransactionOuterCla" +
"ss\252\002\026Com.Daml.Ledger.Api.V2b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.daml.ledger.api.v1.EventOuterClass.getDescriptor(),
com.daml.ledger.api.v1.TransactionOuterClass.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_com_daml_ledger_api_v2_TransactionTree_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_daml_ledger_api_v2_TransactionTree_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_TransactionTree_descriptor,
new java.lang.String[] { "UpdateId", "CommandId", "WorkflowId", "EffectiveAt", "Offset", "EventsById", "RootEventIds", "DomainId", });
internal_static_com_daml_ledger_api_v2_TransactionTree_EventsByIdEntry_descriptor =
internal_static_com_daml_ledger_api_v2_TransactionTree_descriptor.getNestedTypes().get(0);
internal_static_com_daml_ledger_api_v2_TransactionTree_EventsByIdEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_TransactionTree_EventsByIdEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_com_daml_ledger_api_v2_Transaction_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_daml_ledger_api_v2_Transaction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_Transaction_descriptor,
new java.lang.String[] { "UpdateId", "CommandId", "WorkflowId", "EffectiveAt", "Events", "Offset", "DomainId", });
com.daml.ledger.api.v1.EventOuterClass.getDescriptor();
com.daml.ledger.api.v1.TransactionOuterClass.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy