
com.daml.ledger.api.v1.TransactionOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/daml/ledger/api/v1/transaction.proto
package com.daml.ledger.api.v1;
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.v1.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 transaction_id = 1;
* @return The transactionId.
*/
java.lang.String getTransactionId();
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @return The bytes for transactionId.
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
/**
*
* 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;
* @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;
* @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;
* @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;
* @return The bytes for workflowId.
*/
com.google.protobuf.ByteString
getWorkflowIdBytes();
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4;
* @return Whether the effectiveAt field is set.
*/
boolean hasEffectiveAt();
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4;
* @return The effectiveAt.
*/
com.google.protobuf.Timestamp getEffectiveAt();
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4;
*/
com.google.protobuf.TimestampOrBuilder getEffectiveAtOrBuilder();
/**
*
* The absolute offset. The format of this field is described in ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @return The offset.
*/
java.lang.String getOffset();
/**
*
* The absolute offset. The format of this field is described in ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 8;
* @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 = 8;
* @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 = 8;
* @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 = 8;
* @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);
}
/**
*
* Complete view of an on-ledger transaction.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.TransactionTree}
*/
public static final class TransactionTree extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.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() {
transactionId_ = "";
commandId_ = "";
workflowId_ = "";
offset_ = "";
rootEventIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@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.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_TransactionTree_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
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.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_TransactionTree_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree.class, com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree.Builder.class);
}
public static final int TRANSACTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object transactionId_;
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @return The transactionId.
*/
@java.lang.Override
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
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();
transactionId_ = s;
return s;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @return The bytes for transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = 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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEffectiveAtOrBuilder() {
return getEffectiveAt();
}
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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 = 7;
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.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_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 = 7;
*/
@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 = 7;
*/
@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 = 7;
*/
@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 = 7;
*/
@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 = 8;
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 = 8;
* @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 = 8;
* @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 = 8;
* @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 = 8;
* @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);
}
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(transactionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transactionId_);
}
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, 6, offset_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetEventsById(),
EventsByIdDefaultEntryHolder.defaultEntry,
7);
for (int i = 0; i < rootEventIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, rootEventIds_.getRaw(i));
}
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(transactionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transactionId_);
}
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(6, 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(7, eventsById__);
}
{
int dataSize = 0;
for (int i = 0; i < rootEventIds_.size(); i++) {
dataSize += computeStringSizeNoTag(rootEventIds_.getRaw(i));
}
size += dataSize;
size += 1 * getRootEventIdsList().size();
}
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.v1.TransactionOuterClass.TransactionTree)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree other = (com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree) obj;
if (!getTransactionId()
.equals(other.getTransactionId())) 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 (!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) + TRANSACTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.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.v1.TransactionOuterClass.TransactionTree parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.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.v1.TransactionOuterClass.TransactionTree parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.TransactionTree}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.TransactionTree)
com.daml.ledger.api.v1.TransactionOuterClass.TransactionTreeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_TransactionTree_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetEventsById();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 7:
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.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_TransactionTree_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree.class, com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree.Builder.class);
}
// Construct using com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
transactionId_ = "";
commandId_ = "";
workflowId_ = "";
if (effectiveAtBuilder_ == null) {
effectiveAt_ = null;
} else {
effectiveAt_ = null;
effectiveAtBuilder_ = null;
}
offset_ = "";
internalGetMutableEventsById().clear();
rootEventIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_TransactionTree_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree getDefaultInstanceForType() {
return com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree build() {
com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree buildPartial() {
com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree result = new com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree(this);
int from_bitField0_ = bitField0_;
result.transactionId_ = transactionId_;
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_;
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.v1.TransactionOuterClass.TransactionTree) {
return mergeFrom((com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree other) {
if (other == com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree.getDefaultInstance()) return this;
if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
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();
}
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: {
transactionId_ = 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 50: {
offset_ = input.readStringRequireUtf8();
break;
} // case 50
case 58: {
com.google.protobuf.MapEntry
eventsById__ = input.readMessage(
EventsByIdDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableEventsById().getMutableMap().put(
eventsById__.getKey(), eventsById__.getValue());
break;
} // case 58
case 66: {
java.lang.String s = input.readStringRequireUtf8();
ensureRootEventIdsIsMutable();
rootEventIds_.add(s);
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 transactionId_ = "";
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @return The transactionId.
*/
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionId_ = 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 transaction_id = 1;
* @return The bytes for transactionId.
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = 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 transaction_id = 1;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
transactionId_ = value;
onChanged();
return this;
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
onChanged();
return this;
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @param value The bytes for transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
transactionId_ = 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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
public com.google.protobuf.Timestamp.Builder getEffectiveAtBuilder() {
onChanged();
return getEffectiveAtFieldBuilder().getBuilder();
}
/**
*
* Ledger effective time.
* Required
*
*
* .google.protobuf.Timestamp effective_at = 4;
*/
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;
*/
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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 = 7;
*/
@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 = 7;
*/
@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 = 7;
*/
@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 = 7;
*/
@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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 8;
* @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 = 8;
* @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 = 8;
* @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 = 8;
* @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 = 8;
* @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 = 8;
* @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 = 8;
* @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 = 8;
* @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 = 8;
* @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;
}
@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.v1.TransactionTree)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.TransactionTree)
private static final com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.TransactionOuterClass.TransactionTree();
}
public static com.daml.ledger.api.v1.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.v1.TransactionOuterClass.TransactionTree getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TreeEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.TreeEvent)
com.google.protobuf.MessageOrBuilder {
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
* @return Whether the created field is set.
*/
boolean hasCreated();
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
* @return The created.
*/
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreated();
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
*/
com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreatedOrBuilder();
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
* @return Whether the exercised field is set.
*/
boolean hasExercised();
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
* @return The exercised.
*/
com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent getExercised();
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
*/
com.daml.ledger.api.v1.EventOuterClass.ExercisedEventOrBuilder getExercisedOrBuilder();
public com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent.KindCase getKindCase();
}
/**
*
* Each tree event message type below contains a ``witness_parties`` field which
* indicates the subset of the requested parties that can see the event
* in question.
* Note that transaction trees might contain events with
* _no_ witness parties, which were included simply because they were
* children of events which have witnesses.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.TreeEvent}
*/
public static final class TreeEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.TreeEvent)
TreeEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use TreeEvent.newBuilder() to construct.
private TreeEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TreeEvent() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TreeEvent();
}
@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.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_TreeEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_TreeEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent.class, com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent.Builder.class);
}
private int kindCase_ = 0;
private java.lang.Object kind_;
public enum KindCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CREATED(1),
EXERCISED(2),
KIND_NOT_SET(0);
private final int value;
private KindCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static KindCase valueOf(int value) {
return forNumber(value);
}
public static KindCase forNumber(int value) {
switch (value) {
case 1: return CREATED;
case 2: return EXERCISED;
case 0: return KIND_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public KindCase
getKindCase() {
return KindCase.forNumber(
kindCase_);
}
public static final int CREATED_FIELD_NUMBER = 1;
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
* @return Whether the created field is set.
*/
@java.lang.Override
public boolean hasCreated() {
return kindCase_ == 1;
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
* @return The created.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreated() {
if (kindCase_ == 1) {
return (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) kind_;
}
return com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance();
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreatedOrBuilder() {
if (kindCase_ == 1) {
return (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) kind_;
}
return com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance();
}
public static final int EXERCISED_FIELD_NUMBER = 2;
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
* @return Whether the exercised field is set.
*/
@java.lang.Override
public boolean hasExercised() {
return kindCase_ == 2;
}
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
* @return The exercised.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent getExercised() {
if (kindCase_ == 2) {
return (com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent) kind_;
}
return com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.getDefaultInstance();
}
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ExercisedEventOrBuilder getExercisedOrBuilder() {
if (kindCase_ == 2) {
return (com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent) kind_;
}
return com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.getDefaultInstance();
}
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 (kindCase_ == 1) {
output.writeMessage(1, (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) kind_);
}
if (kindCase_ == 2) {
output.writeMessage(2, (com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent) kind_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (kindCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) kind_);
}
if (kindCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent) kind_);
}
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.v1.TransactionOuterClass.TreeEvent)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent other = (com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent) obj;
if (!getKindCase().equals(other.getKindCase())) return false;
switch (kindCase_) {
case 1:
if (!getCreated()
.equals(other.getCreated())) return false;
break;
case 2:
if (!getExercised()
.equals(other.getExercised())) return false;
break;
case 0:
default:
}
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();
switch (kindCase_) {
case 1:
hash = (37 * hash) + CREATED_FIELD_NUMBER;
hash = (53 * hash) + getCreated().hashCode();
break;
case 2:
hash = (37 * hash) + EXERCISED_FIELD_NUMBER;
hash = (53 * hash) + getExercised().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent 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.v1.TransactionOuterClass.TreeEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent 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.v1.TransactionOuterClass.TreeEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent 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.v1.TransactionOuterClass.TreeEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent 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.v1.TransactionOuterClass.TreeEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent 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.v1.TransactionOuterClass.TreeEvent 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;
}
/**
*
* Each tree event message type below contains a ``witness_parties`` field which
* indicates the subset of the requested parties that can see the event
* in question.
* Note that transaction trees might contain events with
* _no_ witness parties, which were included simply because they were
* children of events which have witnesses.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.TreeEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.TreeEvent)
com.daml.ledger.api.v1.TransactionOuterClass.TreeEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_TreeEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_TreeEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent.class, com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent.Builder.class);
}
// Construct using com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (createdBuilder_ != null) {
createdBuilder_.clear();
}
if (exercisedBuilder_ != null) {
exercisedBuilder_.clear();
}
kindCase_ = 0;
kind_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_TreeEvent_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent getDefaultInstanceForType() {
return com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent build() {
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent buildPartial() {
com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent result = new com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent(this);
if (kindCase_ == 1) {
if (createdBuilder_ == null) {
result.kind_ = kind_;
} else {
result.kind_ = createdBuilder_.build();
}
}
if (kindCase_ == 2) {
if (exercisedBuilder_ == null) {
result.kind_ = kind_;
} else {
result.kind_ = exercisedBuilder_.build();
}
}
result.kindCase_ = kindCase_;
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.v1.TransactionOuterClass.TreeEvent) {
return mergeFrom((com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent other) {
if (other == com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent.getDefaultInstance()) return this;
switch (other.getKindCase()) {
case CREATED: {
mergeCreated(other.getCreated());
break;
}
case EXERCISED: {
mergeExercised(other.getExercised());
break;
}
case KIND_NOT_SET: {
break;
}
}
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: {
input.readMessage(
getCreatedFieldBuilder().getBuilder(),
extensionRegistry);
kindCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getExercisedFieldBuilder().getBuilder(),
extensionRegistry);
kindCase_ = 2;
break;
} // case 18
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 kindCase_ = 0;
private java.lang.Object kind_;
public KindCase
getKindCase() {
return KindCase.forNumber(
kindCase_);
}
public Builder clearKind() {
kindCase_ = 0;
kind_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder> createdBuilder_;
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
* @return Whether the created field is set.
*/
@java.lang.Override
public boolean hasCreated() {
return kindCase_ == 1;
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
* @return The created.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreated() {
if (createdBuilder_ == null) {
if (kindCase_ == 1) {
return (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) kind_;
}
return com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance();
} else {
if (kindCase_ == 1) {
return createdBuilder_.getMessage();
}
return com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
*/
public Builder setCreated(com.daml.ledger.api.v1.EventOuterClass.CreatedEvent value) {
if (createdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
createdBuilder_.setMessage(value);
}
kindCase_ = 1;
return this;
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
*/
public Builder setCreated(
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder builderForValue) {
if (createdBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
createdBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 1;
return this;
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
*/
public Builder mergeCreated(com.daml.ledger.api.v1.EventOuterClass.CreatedEvent value) {
if (createdBuilder_ == null) {
if (kindCase_ == 1 &&
kind_ != com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance()) {
kind_ = com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.newBuilder((com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) kind_)
.mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 1) {
createdBuilder_.mergeFrom(value);
}
createdBuilder_.setMessage(value);
}
kindCase_ = 1;
return this;
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
*/
public Builder clearCreated() {
if (createdBuilder_ == null) {
if (kindCase_ == 1) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 1) {
kindCase_ = 0;
kind_ = null;
}
createdBuilder_.clear();
}
return this;
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
*/
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder getCreatedBuilder() {
return getCreatedFieldBuilder().getBuilder();
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreatedOrBuilder() {
if ((kindCase_ == 1) && (createdBuilder_ != null)) {
return createdBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 1) {
return (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) kind_;
}
return com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder>
getCreatedFieldBuilder() {
if (createdBuilder_ == null) {
if (!(kindCase_ == 1)) {
kind_ = com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance();
}
createdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder>(
(com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 1;
onChanged();;
return createdBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent, com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ExercisedEventOrBuilder> exercisedBuilder_;
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
* @return Whether the exercised field is set.
*/
@java.lang.Override
public boolean hasExercised() {
return kindCase_ == 2;
}
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
* @return The exercised.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent getExercised() {
if (exercisedBuilder_ == null) {
if (kindCase_ == 2) {
return (com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent) kind_;
}
return com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.getDefaultInstance();
} else {
if (kindCase_ == 2) {
return exercisedBuilder_.getMessage();
}
return com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
*/
public Builder setExercised(com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent value) {
if (exercisedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
exercisedBuilder_.setMessage(value);
}
kindCase_ = 2;
return this;
}
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
*/
public Builder setExercised(
com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.Builder builderForValue) {
if (exercisedBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
exercisedBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 2;
return this;
}
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
*/
public Builder mergeExercised(com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent value) {
if (exercisedBuilder_ == null) {
if (kindCase_ == 2 &&
kind_ != com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.getDefaultInstance()) {
kind_ = com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.newBuilder((com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent) kind_)
.mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 2) {
exercisedBuilder_.mergeFrom(value);
}
exercisedBuilder_.setMessage(value);
}
kindCase_ = 2;
return this;
}
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
*/
public Builder clearExercised() {
if (exercisedBuilder_ == null) {
if (kindCase_ == 2) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 2) {
kindCase_ = 0;
kind_ = null;
}
exercisedBuilder_.clear();
}
return this;
}
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
*/
public com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.Builder getExercisedBuilder() {
return getExercisedFieldBuilder().getBuilder();
}
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ExercisedEventOrBuilder getExercisedOrBuilder() {
if ((kindCase_ == 2) && (exercisedBuilder_ != null)) {
return exercisedBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 2) {
return (com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent) kind_;
}
return com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v1.ExercisedEvent exercised = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent, com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ExercisedEventOrBuilder>
getExercisedFieldBuilder() {
if (exercisedBuilder_ == null) {
if (!(kindCase_ == 2)) {
kind_ = com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.getDefaultInstance();
}
exercisedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent, com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ExercisedEventOrBuilder>(
(com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 2;
onChanged();;
return exercisedBuilder_;
}
@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.v1.TreeEvent)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.TreeEvent)
private static final com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent();
}
public static com.daml.ledger.api.v1.TransactionOuterClass.TreeEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TreeEvent 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.v1.TransactionOuterClass.TreeEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.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 transaction_id = 1;
* @return The transactionId.
*/
java.lang.String getTransactionId();
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @return The bytes for transactionId.
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
/**
*
* 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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
*/
com.google.protobuf.TimestampOrBuilder getEffectiveAtOrBuilder();
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5;
*/
java.util.List
getEventsList();
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5;
*/
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;
*/
int getEventsCount();
/**
*
* The collection of events.
* Only contains ``CreatedEvent`` or ``ArchivedEvent``.
* Required
*
*
* repeated .com.daml.ledger.api.v1.Event events = 5;
*/
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;
*/
com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index);
/**
*
* The absolute offset. The format of this field is described in ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @return The offset.
*/
java.lang.String getOffset();
/**
*
* The absolute offset. The format of this field is described in ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @return The bytes for offset.
*/
com.google.protobuf.ByteString
getOffsetBytes();
}
/**
*
* Filtered view of an on-ledger transaction's create and archive events.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.Transaction}
*/
public static final class Transaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.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() {
transactionId_ = "";
commandId_ = "";
workflowId_ = "";
events_ = java.util.Collections.emptyList();
offset_ = "";
}
@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.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.TransactionOuterClass.Transaction.class, com.daml.ledger.api.v1.TransactionOuterClass.Transaction.Builder.class);
}
public static final int TRANSACTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object transactionId_;
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @return The transactionId.
*/
@java.lang.Override
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
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();
transactionId_ = s;
return s;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @return The bytes for transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = 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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
*/
@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;
*/
@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;
*/
@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;
*/
@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;
*/
@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;
*/
@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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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;
}
}
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(transactionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transactionId_);
}
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_);
}
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(transactionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transactionId_);
}
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_);
}
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.v1.TransactionOuterClass.Transaction)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.TransactionOuterClass.Transaction other = (com.daml.ledger.api.v1.TransactionOuterClass.Transaction) obj;
if (!getTransactionId()
.equals(other.getTransactionId())) 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 (!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) + TRANSACTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.TransactionOuterClass.Transaction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.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.v1.TransactionOuterClass.Transaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.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.v1.TransactionOuterClass.Transaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Transaction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.Transaction)
com.daml.ledger.api.v1.TransactionOuterClass.TransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.TransactionOuterClass.Transaction.class, com.daml.ledger.api.v1.TransactionOuterClass.Transaction.Builder.class);
}
// Construct using com.daml.ledger.api.v1.TransactionOuterClass.Transaction.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
transactionId_ = "";
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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.TransactionOuterClass.internal_static_com_daml_ledger_api_v1_Transaction_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.Transaction getDefaultInstanceForType() {
return com.daml.ledger.api.v1.TransactionOuterClass.Transaction.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.Transaction build() {
com.daml.ledger.api.v1.TransactionOuterClass.Transaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.TransactionOuterClass.Transaction buildPartial() {
com.daml.ledger.api.v1.TransactionOuterClass.Transaction result = new com.daml.ledger.api.v1.TransactionOuterClass.Transaction(this);
int from_bitField0_ = bitField0_;
result.transactionId_ = transactionId_;
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_;
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.v1.TransactionOuterClass.Transaction) {
return mergeFrom((com.daml.ledger.api.v1.TransactionOuterClass.Transaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.TransactionOuterClass.Transaction other) {
if (other == com.daml.ledger.api.v1.TransactionOuterClass.Transaction.getDefaultInstance()) return this;
if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
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();
}
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: {
transactionId_ = 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
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 transactionId_ = "";
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @return The transactionId.
*/
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionId_ = 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 transaction_id = 1;
* @return The bytes for transactionId.
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = 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 transaction_id = 1;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
transactionId_ = value;
onChanged();
return this;
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
onChanged();
return this;
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string transaction_id = 1;
* @param value The bytes for transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
transactionId_ = 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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
* @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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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 ``ledger_offset.proto``.
* Required
*
*
* string offset = 6;
* @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;
}
@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.v1.Transaction)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.Transaction)
private static final com.daml.ledger.api.v1.TransactionOuterClass.Transaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.TransactionOuterClass.Transaction();
}
public static com.daml.ledger.api.v1.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.v1.TransactionOuterClass.Transaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_TransactionTree_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_TransactionTree_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_TransactionTree_EventsByIdEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_TransactionTree_EventsByIdEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_TreeEvent_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_TreeEvent_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_Transaction_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_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/v1/transaction.pro" +
"to\022\026com.daml.ledger.api.v1\032\"com/daml/led" +
"ger/api/v1/event.proto\032\037google/protobuf/" +
"timestamp.proto\"\327\002\n\017TransactionTree\022\026\n\016t" +
"ransaction_id\030\001 \001(\t\022\022\n\ncommand_id\030\002 \001(\t\022" +
"\023\n\013workflow_id\030\003 \001(\t\0220\n\014effective_at\030\004 \001" +
"(\0132\032.google.protobuf.Timestamp\022\016\n\006offset" +
"\030\006 \001(\t\022M\n\014events_by_id\030\007 \003(\01327.com.daml." +
"ledger.api.v1.TransactionTree.EventsById" +
"Entry\022\026\n\016root_event_ids\030\010 \003(\t\032T\n\017EventsB" +
"yIdEntry\022\013\n\003key\030\001 \001(\t\0220\n\005value\030\002 \001(\0132!.c" +
"om.daml.ledger.api.v1.TreeEvent:\0028\001J\004\010\005\020" +
"\006\"\211\001\n\tTreeEvent\0227\n\007created\030\001 \001(\0132$.com.d" +
"aml.ledger.api.v1.CreatedEventH\000\022;\n\texer" +
"cised\030\002 \001(\0132&.com.daml.ledger.api.v1.Exe" +
"rcisedEventH\000B\006\n\004kind\"\277\001\n\013Transaction\022\026\n" +
"\016transaction_id\030\001 \001(\t\022\022\n\ncommand_id\030\002 \001(" +
"\t\022\023\n\013workflow_id\030\003 \001(\t\0220\n\014effective_at\030\004" +
" \001(\0132\032.google.protobuf.Timestamp\022-\n\006even" +
"ts\030\005 \003(\0132\035.com.daml.ledger.api.v1.Event\022" +
"\016\n\006offset\030\006 \001(\tBH\n\026com.daml.ledger.api.v" +
"1B\025TransactionOuterClass\252\002\026Com.Daml.Ledg" +
"er.Api.V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.daml.ledger.api.v1.EventOuterClass.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_com_daml_ledger_api_v1_TransactionTree_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_daml_ledger_api_v1_TransactionTree_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_TransactionTree_descriptor,
new java.lang.String[] { "TransactionId", "CommandId", "WorkflowId", "EffectiveAt", "Offset", "EventsById", "RootEventIds", });
internal_static_com_daml_ledger_api_v1_TransactionTree_EventsByIdEntry_descriptor =
internal_static_com_daml_ledger_api_v1_TransactionTree_descriptor.getNestedTypes().get(0);
internal_static_com_daml_ledger_api_v1_TransactionTree_EventsByIdEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_TransactionTree_EventsByIdEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_com_daml_ledger_api_v1_TreeEvent_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_daml_ledger_api_v1_TreeEvent_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_TreeEvent_descriptor,
new java.lang.String[] { "Created", "Exercised", "Kind", });
internal_static_com_daml_ledger_api_v1_Transaction_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_daml_ledger_api_v1_Transaction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_Transaction_descriptor,
new java.lang.String[] { "TransactionId", "CommandId", "WorkflowId", "EffectiveAt", "Events", "Offset", });
com.daml.ledger.api.v1.EventOuterClass.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy