
com.daml.ledger.api.v1.EventOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/daml/ledger/api/v1/event.proto
package com.daml.ledger.api.v1;
public final class EventOuterClass {
private EventOuterClass() {}
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 EventOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.Event)
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.ArchivedEvent archived = 3;
* @return Whether the archived field is set.
*/
boolean hasArchived();
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
* @return The archived.
*/
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getArchived();
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
*/
com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder getArchivedOrBuilder();
public com.daml.ledger.api.v1.EventOuterClass.Event.EventCase getEventCase();
}
/**
*
* An event in the flat transaction stream can either be the creation
* or the archiving of a contract.
* In the transaction service the events are restricted to the events
* visible for the parties specified in the transaction filter. Each
* event message type below contains a ``witness_parties`` field which
* indicates the subset of the requested parties that can see the event
* in question. In the flat transaction stream you'll only receive events
* that have witnesses.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.Event}
*/
public static final class Event extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.Event)
EventOrBuilder {
private static final long serialVersionUID = 0L;
// Use Event.newBuilder() to construct.
private Event(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Event() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Event();
}
@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.EventOuterClass.internal_static_com_daml_ledger_api_v1_Event_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventOuterClass.Event.class, com.daml.ledger.api.v1.EventOuterClass.Event.Builder.class);
}
private int eventCase_ = 0;
private java.lang.Object event_;
public enum EventCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CREATED(1),
ARCHIVED(3),
EVENT_NOT_SET(0);
private final int value;
private EventCase(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 EventCase valueOf(int value) {
return forNumber(value);
}
public static EventCase forNumber(int value) {
switch (value) {
case 1: return CREATED;
case 3: return ARCHIVED;
case 0: return EVENT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EventCase
getEventCase() {
return EventCase.forNumber(
eventCase_);
}
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 eventCase_ == 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 (eventCase_ == 1) {
return (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) event_;
}
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 (eventCase_ == 1) {
return (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) event_;
}
return com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance();
}
public static final int ARCHIVED_FIELD_NUMBER = 3;
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
* @return Whether the archived field is set.
*/
@java.lang.Override
public boolean hasArchived() {
return eventCase_ == 3;
}
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
* @return The archived.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getArchived() {
if (eventCase_ == 3) {
return (com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent) event_;
}
return com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance();
}
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder getArchivedOrBuilder() {
if (eventCase_ == 3) {
return (com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent) event_;
}
return com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.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 (eventCase_ == 1) {
output.writeMessage(1, (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) event_);
}
if (eventCase_ == 3) {
output.writeMessage(3, (com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent) event_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (eventCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) event_);
}
if (eventCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent) event_);
}
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.EventOuterClass.Event)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.EventOuterClass.Event other = (com.daml.ledger.api.v1.EventOuterClass.Event) obj;
if (!getEventCase().equals(other.getEventCase())) return false;
switch (eventCase_) {
case 1:
if (!getCreated()
.equals(other.getCreated())) return false;
break;
case 3:
if (!getArchived()
.equals(other.getArchived())) 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 (eventCase_) {
case 1:
hash = (37 * hash) + CREATED_FIELD_NUMBER;
hash = (53 * hash) + getCreated().hashCode();
break;
case 3:
hash = (37 * hash) + ARCHIVED_FIELD_NUMBER;
hash = (53 * hash) + getArchived().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.EventOuterClass.Event parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.Event 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.EventOuterClass.Event parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.Event 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.EventOuterClass.Event parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.Event 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.EventOuterClass.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventOuterClass.Event 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.EventOuterClass.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventOuterClass.Event 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.EventOuterClass.Event 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.EventOuterClass.Event 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.EventOuterClass.Event 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;
}
/**
*
* An event in the flat transaction stream can either be the creation
* or the archiving of a contract.
* In the transaction service the events are restricted to the events
* visible for the parties specified in the transaction filter. Each
* event message type below contains a ``witness_parties`` field which
* indicates the subset of the requested parties that can see the event
* in question. In the flat transaction stream you'll only receive events
* that have witnesses.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.Event}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.Event)
com.daml.ledger.api.v1.EventOuterClass.EventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_Event_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventOuterClass.Event.class, com.daml.ledger.api.v1.EventOuterClass.Event.Builder.class);
}
// Construct using com.daml.ledger.api.v1.EventOuterClass.Event.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 (archivedBuilder_ != null) {
archivedBuilder_.clear();
}
eventCase_ = 0;
event_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_Event_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.Event getDefaultInstanceForType() {
return com.daml.ledger.api.v1.EventOuterClass.Event.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.Event build() {
com.daml.ledger.api.v1.EventOuterClass.Event result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.Event buildPartial() {
com.daml.ledger.api.v1.EventOuterClass.Event result = new com.daml.ledger.api.v1.EventOuterClass.Event(this);
if (eventCase_ == 1) {
if (createdBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = createdBuilder_.build();
}
}
if (eventCase_ == 3) {
if (archivedBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = archivedBuilder_.build();
}
}
result.eventCase_ = eventCase_;
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.EventOuterClass.Event) {
return mergeFrom((com.daml.ledger.api.v1.EventOuterClass.Event)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.EventOuterClass.Event other) {
if (other == com.daml.ledger.api.v1.EventOuterClass.Event.getDefaultInstance()) return this;
switch (other.getEventCase()) {
case CREATED: {
mergeCreated(other.getCreated());
break;
}
case ARCHIVED: {
mergeArchived(other.getArchived());
break;
}
case EVENT_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);
eventCase_ = 1;
break;
} // case 10
case 26: {
input.readMessage(
getArchivedFieldBuilder().getBuilder(),
extensionRegistry);
eventCase_ = 3;
break;
} // case 26
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 eventCase_ = 0;
private java.lang.Object event_;
public EventCase
getEventCase() {
return EventCase.forNumber(
eventCase_);
}
public Builder clearEvent() {
eventCase_ = 0;
event_ = 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 eventCase_ == 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 (eventCase_ == 1) {
return (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) event_;
}
return com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance();
} else {
if (eventCase_ == 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();
}
event_ = value;
onChanged();
} else {
createdBuilder_.setMessage(value);
}
eventCase_ = 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) {
event_ = builderForValue.build();
onChanged();
} else {
createdBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 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 (eventCase_ == 1 &&
event_ != com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance()) {
event_ = com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.newBuilder((com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 1) {
createdBuilder_.mergeFrom(value);
}
createdBuilder_.setMessage(value);
}
eventCase_ = 1;
return this;
}
/**
* .com.daml.ledger.api.v1.CreatedEvent created = 1;
*/
public Builder clearCreated() {
if (createdBuilder_ == null) {
if (eventCase_ == 1) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 1) {
eventCase_ = 0;
event_ = 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 ((eventCase_ == 1) && (createdBuilder_ != null)) {
return createdBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 1) {
return (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) event_;
}
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 (!(eventCase_ == 1)) {
event_ = 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) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 1;
onChanged();;
return createdBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder> archivedBuilder_;
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
* @return Whether the archived field is set.
*/
@java.lang.Override
public boolean hasArchived() {
return eventCase_ == 3;
}
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
* @return The archived.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getArchived() {
if (archivedBuilder_ == null) {
if (eventCase_ == 3) {
return (com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent) event_;
}
return com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance();
} else {
if (eventCase_ == 3) {
return archivedBuilder_.getMessage();
}
return com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
*/
public Builder setArchived(com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent value) {
if (archivedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
archivedBuilder_.setMessage(value);
}
eventCase_ = 3;
return this;
}
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
*/
public Builder setArchived(
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder builderForValue) {
if (archivedBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
archivedBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 3;
return this;
}
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
*/
public Builder mergeArchived(com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent value) {
if (archivedBuilder_ == null) {
if (eventCase_ == 3 &&
event_ != com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance()) {
event_ = com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.newBuilder((com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 3) {
archivedBuilder_.mergeFrom(value);
}
archivedBuilder_.setMessage(value);
}
eventCase_ = 3;
return this;
}
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
*/
public Builder clearArchived() {
if (archivedBuilder_ == null) {
if (eventCase_ == 3) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 3) {
eventCase_ = 0;
event_ = null;
}
archivedBuilder_.clear();
}
return this;
}
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
*/
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder getArchivedBuilder() {
return getArchivedFieldBuilder().getBuilder();
}
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder getArchivedOrBuilder() {
if ((eventCase_ == 3) && (archivedBuilder_ != null)) {
return archivedBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 3) {
return (com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent) event_;
}
return com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v1.ArchivedEvent archived = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder>
getArchivedFieldBuilder() {
if (archivedBuilder_ == null) {
if (!(eventCase_ == 3)) {
event_ = com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance();
}
archivedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder>(
(com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 3;
onChanged();;
return archivedBuilder_;
}
@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.Event)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.Event)
private static final com.daml.ledger.api.v1.EventOuterClass.Event DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.EventOuterClass.Event();
}
public static com.daml.ledger.api.v1.EventOuterClass.Event getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Event 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.EventOuterClass.Event getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreatedEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.CreatedEvent)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The eventId.
*/
java.lang.String getEventId();
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The bytes for eventId.
*/
com.google.protobuf.ByteString
getEventIdBytes();
/**
*
* The ID of the created contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The contractId.
*/
java.lang.String getContractId();
/**
*
* The ID of the created contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The bytes for contractId.
*/
com.google.protobuf.ByteString
getContractIdBytes();
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return Whether the templateId field is set.
*/
boolean hasTemplateId();
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return The templateId.
*/
com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId();
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder();
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
* @return Whether the contractKey field is set.
*/
boolean hasContractKey();
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
* @return The contractKey.
*/
com.daml.ledger.api.v1.ValueOuterClass.Value getContractKey();
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
*/
com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder();
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
* @return Whether the createArguments field is set.
*/
boolean hasCreateArguments();
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
* @return The createArguments.
*/
com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments();
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
*/
com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder();
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
* @return Whether the createArgumentsBlob field is set.
*/
boolean hasCreateArgumentsBlob();
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
* @return The createArgumentsBlob.
*/
com.google.protobuf.Any getCreateArgumentsBlob();
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
*/
com.google.protobuf.AnyOrBuilder getCreateArgumentsBlobOrBuilder();
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
java.util.List
getInterfaceViewsList();
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
com.daml.ledger.api.v1.EventOuterClass.InterfaceView getInterfaceViews(int index);
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
int getInterfaceViewsCount();
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
java.util.List extends com.daml.ledger.api.v1.EventOuterClass.InterfaceViewOrBuilder>
getInterfaceViewsOrBuilderList();
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
com.daml.ledger.api.v1.EventOuterClass.InterfaceViewOrBuilder getInterfaceViewsOrBuilder(
int index);
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @return A list containing the witnessParties.
*/
java.util.List
getWitnessPartiesList();
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @return The count of witnessParties.
*/
int getWitnessPartiesCount();
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @param index The index of the element to return.
* @return The witnessParties at the given index.
*/
java.lang.String getWitnessParties(int index);
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @param index The index of the value to return.
* @return The bytes of the witnessParties at the given index.
*/
com.google.protobuf.ByteString
getWitnessPartiesBytes(int index);
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @return A list containing the signatories.
*/
java.util.List
getSignatoriesList();
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @return The count of signatories.
*/
int getSignatoriesCount();
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @param index The index of the element to return.
* @return The signatories at the given index.
*/
java.lang.String getSignatories(int index);
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @param index The index of the value to return.
* @return The bytes of the signatories at the given index.
*/
com.google.protobuf.ByteString
getSignatoriesBytes(int index);
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @return A list containing the observers.
*/
java.util.List
getObserversList();
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @return The count of observers.
*/
int getObserversCount();
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @param index The index of the element to return.
* @return The observers at the given index.
*/
java.lang.String getObservers(int index);
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @param index The index of the value to return.
* @return The bytes of the observers at the given index.
*/
com.google.protobuf.ByteString
getObserversBytes(int index);
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
* @return Whether the agreementText field is set.
*/
boolean hasAgreementText();
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
* @return The agreementText.
*/
com.google.protobuf.StringValue getAgreementText();
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
*/
com.google.protobuf.StringValueOrBuilder getAgreementTextOrBuilder();
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
* @return The metadata.
*/
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata getMetadata();
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
*/
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder getMetadataOrBuilder();
}
/**
*
* Records that a contract has been created, and choices may now be exercised on it.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.CreatedEvent}
*/
public static final class CreatedEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.CreatedEvent)
CreatedEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreatedEvent.newBuilder() to construct.
private CreatedEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreatedEvent() {
eventId_ = "";
contractId_ = "";
interfaceViews_ = java.util.Collections.emptyList();
witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
signatories_ = com.google.protobuf.LazyStringArrayList.EMPTY;
observers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreatedEvent();
}
@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.EventOuterClass.internal_static_com_daml_ledger_api_v1_CreatedEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_CreatedEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.class, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder.class);
}
public static final int EVENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object eventId_;
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The eventId.
*/
@java.lang.Override
public java.lang.String getEventId() {
java.lang.Object ref = eventId_;
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();
eventId_ = s;
return s;
}
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The bytes for eventId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEventIdBytes() {
java.lang.Object ref = eventId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTRACT_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object contractId_;
/**
*
* The ID of the created contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The contractId.
*/
@java.lang.Override
public java.lang.String getContractId() {
java.lang.Object ref = contractId_;
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();
contractId_ = s;
return s;
}
}
/**
*
* The ID of the created contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The bytes for contractId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContractIdBytes() {
java.lang.Object ref = contractId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contractId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEMPLATE_ID_FIELD_NUMBER = 3;
private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_;
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return Whether the templateId field is set.
*/
@java.lang.Override
public boolean hasTemplateId() {
return templateId_ != null;
}
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return The templateId.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() {
return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
return getTemplateId();
}
public static final int CONTRACT_KEY_FIELD_NUMBER = 7;
private com.daml.ledger.api.v1.ValueOuterClass.Value contractKey_;
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
* @return Whether the contractKey field is set.
*/
@java.lang.Override
public boolean hasContractKey() {
return contractKey_ != null;
}
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
* @return The contractKey.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Value getContractKey() {
return contractKey_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : contractKey_;
}
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder() {
return getContractKey();
}
public static final int CREATE_ARGUMENTS_FIELD_NUMBER = 4;
private com.daml.ledger.api.v1.ValueOuterClass.Record createArguments_;
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
* @return Whether the createArguments field is set.
*/
@java.lang.Override
public boolean hasCreateArguments() {
return createArguments_ != null;
}
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
* @return The createArguments.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments() {
return createArguments_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : createArguments_;
}
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder() {
return getCreateArguments();
}
public static final int CREATE_ARGUMENTS_BLOB_FIELD_NUMBER = 12;
private com.google.protobuf.Any createArgumentsBlob_;
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
* @return Whether the createArgumentsBlob field is set.
*/
@java.lang.Override
public boolean hasCreateArgumentsBlob() {
return createArgumentsBlob_ != null;
}
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
* @return The createArgumentsBlob.
*/
@java.lang.Override
public com.google.protobuf.Any getCreateArgumentsBlob() {
return createArgumentsBlob_ == null ? com.google.protobuf.Any.getDefaultInstance() : createArgumentsBlob_;
}
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getCreateArgumentsBlobOrBuilder() {
return getCreateArgumentsBlob();
}
public static final int INTERFACE_VIEWS_FIELD_NUMBER = 11;
private java.util.List interfaceViews_;
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
@java.lang.Override
public java.util.List getInterfaceViewsList() {
return interfaceViews_;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
@java.lang.Override
public java.util.List extends com.daml.ledger.api.v1.EventOuterClass.InterfaceViewOrBuilder>
getInterfaceViewsOrBuilderList() {
return interfaceViews_;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
@java.lang.Override
public int getInterfaceViewsCount() {
return interfaceViews_.size();
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.InterfaceView getInterfaceViews(int index) {
return interfaceViews_.get(index);
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.InterfaceViewOrBuilder getInterfaceViewsOrBuilder(
int index) {
return interfaceViews_.get(index);
}
public static final int WITNESS_PARTIES_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList witnessParties_;
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @return A list containing the witnessParties.
*/
public com.google.protobuf.ProtocolStringList
getWitnessPartiesList() {
return witnessParties_;
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @return The count of witnessParties.
*/
public int getWitnessPartiesCount() {
return witnessParties_.size();
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @param index The index of the element to return.
* @return The witnessParties at the given index.
*/
public java.lang.String getWitnessParties(int index) {
return witnessParties_.get(index);
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @param index The index of the value to return.
* @return The bytes of the witnessParties at the given index.
*/
public com.google.protobuf.ByteString
getWitnessPartiesBytes(int index) {
return witnessParties_.getByteString(index);
}
public static final int SIGNATORIES_FIELD_NUMBER = 8;
private com.google.protobuf.LazyStringList signatories_;
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @return A list containing the signatories.
*/
public com.google.protobuf.ProtocolStringList
getSignatoriesList() {
return signatories_;
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @return The count of signatories.
*/
public int getSignatoriesCount() {
return signatories_.size();
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @param index The index of the element to return.
* @return The signatories at the given index.
*/
public java.lang.String getSignatories(int index) {
return signatories_.get(index);
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @param index The index of the value to return.
* @return The bytes of the signatories at the given index.
*/
public com.google.protobuf.ByteString
getSignatoriesBytes(int index) {
return signatories_.getByteString(index);
}
public static final int OBSERVERS_FIELD_NUMBER = 9;
private com.google.protobuf.LazyStringList observers_;
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @return A list containing the observers.
*/
public com.google.protobuf.ProtocolStringList
getObserversList() {
return observers_;
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @return The count of observers.
*/
public int getObserversCount() {
return observers_.size();
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @param index The index of the element to return.
* @return The observers at the given index.
*/
public java.lang.String getObservers(int index) {
return observers_.get(index);
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @param index The index of the value to return.
* @return The bytes of the observers at the given index.
*/
public com.google.protobuf.ByteString
getObserversBytes(int index) {
return observers_.getByteString(index);
}
public static final int AGREEMENT_TEXT_FIELD_NUMBER = 6;
private com.google.protobuf.StringValue agreementText_;
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
* @return Whether the agreementText field is set.
*/
@java.lang.Override
public boolean hasAgreementText() {
return agreementText_ != null;
}
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
* @return The agreementText.
*/
@java.lang.Override
public com.google.protobuf.StringValue getAgreementText() {
return agreementText_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : agreementText_;
}
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getAgreementTextOrBuilder() {
return getAgreementText();
}
public static final int METADATA_FIELD_NUMBER = 10;
private com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata metadata_;
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
* @return The metadata.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata getMetadata() {
return metadata_ == null ? com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.getDefaultInstance() : metadata_;
}
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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(eventId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractId_);
}
if (templateId_ != null) {
output.writeMessage(3, getTemplateId());
}
if (createArguments_ != null) {
output.writeMessage(4, getCreateArguments());
}
for (int i = 0; i < witnessParties_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, witnessParties_.getRaw(i));
}
if (agreementText_ != null) {
output.writeMessage(6, getAgreementText());
}
if (contractKey_ != null) {
output.writeMessage(7, getContractKey());
}
for (int i = 0; i < signatories_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, signatories_.getRaw(i));
}
for (int i = 0; i < observers_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, observers_.getRaw(i));
}
if (metadata_ != null) {
output.writeMessage(10, getMetadata());
}
for (int i = 0; i < interfaceViews_.size(); i++) {
output.writeMessage(11, interfaceViews_.get(i));
}
if (createArgumentsBlob_ != null) {
output.writeMessage(12, getCreateArgumentsBlob());
}
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(eventId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractId_);
}
if (templateId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTemplateId());
}
if (createArguments_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCreateArguments());
}
{
int dataSize = 0;
for (int i = 0; i < witnessParties_.size(); i++) {
dataSize += computeStringSizeNoTag(witnessParties_.getRaw(i));
}
size += dataSize;
size += 1 * getWitnessPartiesList().size();
}
if (agreementText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getAgreementText());
}
if (contractKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getContractKey());
}
{
int dataSize = 0;
for (int i = 0; i < signatories_.size(); i++) {
dataSize += computeStringSizeNoTag(signatories_.getRaw(i));
}
size += dataSize;
size += 1 * getSignatoriesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < observers_.size(); i++) {
dataSize += computeStringSizeNoTag(observers_.getRaw(i));
}
size += dataSize;
size += 1 * getObserversList().size();
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getMetadata());
}
for (int i = 0; i < interfaceViews_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, interfaceViews_.get(i));
}
if (createArgumentsBlob_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getCreateArgumentsBlob());
}
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.EventOuterClass.CreatedEvent)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent other = (com.daml.ledger.api.v1.EventOuterClass.CreatedEvent) obj;
if (!getEventId()
.equals(other.getEventId())) return false;
if (!getContractId()
.equals(other.getContractId())) return false;
if (hasTemplateId() != other.hasTemplateId()) return false;
if (hasTemplateId()) {
if (!getTemplateId()
.equals(other.getTemplateId())) return false;
}
if (hasContractKey() != other.hasContractKey()) return false;
if (hasContractKey()) {
if (!getContractKey()
.equals(other.getContractKey())) return false;
}
if (hasCreateArguments() != other.hasCreateArguments()) return false;
if (hasCreateArguments()) {
if (!getCreateArguments()
.equals(other.getCreateArguments())) return false;
}
if (hasCreateArgumentsBlob() != other.hasCreateArgumentsBlob()) return false;
if (hasCreateArgumentsBlob()) {
if (!getCreateArgumentsBlob()
.equals(other.getCreateArgumentsBlob())) return false;
}
if (!getInterfaceViewsList()
.equals(other.getInterfaceViewsList())) return false;
if (!getWitnessPartiesList()
.equals(other.getWitnessPartiesList())) return false;
if (!getSignatoriesList()
.equals(other.getSignatoriesList())) return false;
if (!getObserversList()
.equals(other.getObserversList())) return false;
if (hasAgreementText() != other.hasAgreementText()) return false;
if (hasAgreementText()) {
if (!getAgreementText()
.equals(other.getAgreementText())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) 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) + EVENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getEventId().hashCode();
hash = (37 * hash) + CONTRACT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContractId().hashCode();
if (hasTemplateId()) {
hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTemplateId().hashCode();
}
if (hasContractKey()) {
hash = (37 * hash) + CONTRACT_KEY_FIELD_NUMBER;
hash = (53 * hash) + getContractKey().hashCode();
}
if (hasCreateArguments()) {
hash = (37 * hash) + CREATE_ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getCreateArguments().hashCode();
}
if (hasCreateArgumentsBlob()) {
hash = (37 * hash) + CREATE_ARGUMENTS_BLOB_FIELD_NUMBER;
hash = (53 * hash) + getCreateArgumentsBlob().hashCode();
}
if (getInterfaceViewsCount() > 0) {
hash = (37 * hash) + INTERFACE_VIEWS_FIELD_NUMBER;
hash = (53 * hash) + getInterfaceViewsList().hashCode();
}
if (getWitnessPartiesCount() > 0) {
hash = (37 * hash) + WITNESS_PARTIES_FIELD_NUMBER;
hash = (53 * hash) + getWitnessPartiesList().hashCode();
}
if (getSignatoriesCount() > 0) {
hash = (37 * hash) + SIGNATORIES_FIELD_NUMBER;
hash = (53 * hash) + getSignatoriesList().hashCode();
}
if (getObserversCount() > 0) {
hash = (37 * hash) + OBSERVERS_FIELD_NUMBER;
hash = (53 * hash) + getObserversList().hashCode();
}
if (hasAgreementText()) {
hash = (37 * hash) + AGREEMENT_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getAgreementText().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.EventOuterClass.CreatedEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.CreatedEvent 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.EventOuterClass.CreatedEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.CreatedEvent 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.EventOuterClass.CreatedEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.CreatedEvent 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.EventOuterClass.CreatedEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventOuterClass.CreatedEvent 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.EventOuterClass.CreatedEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventOuterClass.CreatedEvent 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.EventOuterClass.CreatedEvent 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.EventOuterClass.CreatedEvent 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.EventOuterClass.CreatedEvent 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;
}
/**
*
* Records that a contract has been created, and choices may now be exercised on it.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.CreatedEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.CreatedEvent)
com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_CreatedEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_CreatedEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.class, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder.class);
}
// Construct using com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
eventId_ = "";
contractId_ = "";
if (templateIdBuilder_ == null) {
templateId_ = null;
} else {
templateId_ = null;
templateIdBuilder_ = null;
}
if (contractKeyBuilder_ == null) {
contractKey_ = null;
} else {
contractKey_ = null;
contractKeyBuilder_ = null;
}
if (createArgumentsBuilder_ == null) {
createArguments_ = null;
} else {
createArguments_ = null;
createArgumentsBuilder_ = null;
}
if (createArgumentsBlobBuilder_ == null) {
createArgumentsBlob_ = null;
} else {
createArgumentsBlob_ = null;
createArgumentsBlobBuilder_ = null;
}
if (interfaceViewsBuilder_ == null) {
interfaceViews_ = java.util.Collections.emptyList();
} else {
interfaceViews_ = null;
interfaceViewsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
signatories_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
observers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
if (agreementTextBuilder_ == null) {
agreementText_ = null;
} else {
agreementText_ = null;
agreementTextBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_CreatedEvent_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getDefaultInstanceForType() {
return com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent build() {
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent buildPartial() {
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent result = new com.daml.ledger.api.v1.EventOuterClass.CreatedEvent(this);
int from_bitField0_ = bitField0_;
result.eventId_ = eventId_;
result.contractId_ = contractId_;
if (templateIdBuilder_ == null) {
result.templateId_ = templateId_;
} else {
result.templateId_ = templateIdBuilder_.build();
}
if (contractKeyBuilder_ == null) {
result.contractKey_ = contractKey_;
} else {
result.contractKey_ = contractKeyBuilder_.build();
}
if (createArgumentsBuilder_ == null) {
result.createArguments_ = createArguments_;
} else {
result.createArguments_ = createArgumentsBuilder_.build();
}
if (createArgumentsBlobBuilder_ == null) {
result.createArgumentsBlob_ = createArgumentsBlob_;
} else {
result.createArgumentsBlob_ = createArgumentsBlobBuilder_.build();
}
if (interfaceViewsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
interfaceViews_ = java.util.Collections.unmodifiableList(interfaceViews_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.interfaceViews_ = interfaceViews_;
} else {
result.interfaceViews_ = interfaceViewsBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
witnessParties_ = witnessParties_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.witnessParties_ = witnessParties_;
if (((bitField0_ & 0x00000004) != 0)) {
signatories_ = signatories_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.signatories_ = signatories_;
if (((bitField0_ & 0x00000008) != 0)) {
observers_ = observers_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.observers_ = observers_;
if (agreementTextBuilder_ == null) {
result.agreementText_ = agreementText_;
} else {
result.agreementText_ = agreementTextBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
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.EventOuterClass.CreatedEvent) {
return mergeFrom((com.daml.ledger.api.v1.EventOuterClass.CreatedEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.EventOuterClass.CreatedEvent other) {
if (other == com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance()) return this;
if (!other.getEventId().isEmpty()) {
eventId_ = other.eventId_;
onChanged();
}
if (!other.getContractId().isEmpty()) {
contractId_ = other.contractId_;
onChanged();
}
if (other.hasTemplateId()) {
mergeTemplateId(other.getTemplateId());
}
if (other.hasContractKey()) {
mergeContractKey(other.getContractKey());
}
if (other.hasCreateArguments()) {
mergeCreateArguments(other.getCreateArguments());
}
if (other.hasCreateArgumentsBlob()) {
mergeCreateArgumentsBlob(other.getCreateArgumentsBlob());
}
if (interfaceViewsBuilder_ == null) {
if (!other.interfaceViews_.isEmpty()) {
if (interfaceViews_.isEmpty()) {
interfaceViews_ = other.interfaceViews_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInterfaceViewsIsMutable();
interfaceViews_.addAll(other.interfaceViews_);
}
onChanged();
}
} else {
if (!other.interfaceViews_.isEmpty()) {
if (interfaceViewsBuilder_.isEmpty()) {
interfaceViewsBuilder_.dispose();
interfaceViewsBuilder_ = null;
interfaceViews_ = other.interfaceViews_;
bitField0_ = (bitField0_ & ~0x00000001);
interfaceViewsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInterfaceViewsFieldBuilder() : null;
} else {
interfaceViewsBuilder_.addAllMessages(other.interfaceViews_);
}
}
}
if (!other.witnessParties_.isEmpty()) {
if (witnessParties_.isEmpty()) {
witnessParties_ = other.witnessParties_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureWitnessPartiesIsMutable();
witnessParties_.addAll(other.witnessParties_);
}
onChanged();
}
if (!other.signatories_.isEmpty()) {
if (signatories_.isEmpty()) {
signatories_ = other.signatories_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSignatoriesIsMutable();
signatories_.addAll(other.signatories_);
}
onChanged();
}
if (!other.observers_.isEmpty()) {
if (observers_.isEmpty()) {
observers_ = other.observers_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureObserversIsMutable();
observers_.addAll(other.observers_);
}
onChanged();
}
if (other.hasAgreementText()) {
mergeAgreementText(other.getAgreementText());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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: {
eventId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
contractId_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
input.readMessage(
getTemplateIdFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
case 34: {
input.readMessage(
getCreateArgumentsFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 34
case 42: {
java.lang.String s = input.readStringRequireUtf8();
ensureWitnessPartiesIsMutable();
witnessParties_.add(s);
break;
} // case 42
case 50: {
input.readMessage(
getAgreementTextFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 50
case 58: {
input.readMessage(
getContractKeyFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 58
case 66: {
java.lang.String s = input.readStringRequireUtf8();
ensureSignatoriesIsMutable();
signatories_.add(s);
break;
} // case 66
case 74: {
java.lang.String s = input.readStringRequireUtf8();
ensureObserversIsMutable();
observers_.add(s);
break;
} // case 74
case 82: {
input.readMessage(
getMetadataFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 82
case 90: {
com.daml.ledger.api.v1.EventOuterClass.InterfaceView m =
input.readMessage(
com.daml.ledger.api.v1.EventOuterClass.InterfaceView.parser(),
extensionRegistry);
if (interfaceViewsBuilder_ == null) {
ensureInterfaceViewsIsMutable();
interfaceViews_.add(m);
} else {
interfaceViewsBuilder_.addMessage(m);
}
break;
} // case 90
case 98: {
input.readMessage(
getCreateArgumentsBlobFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 98
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 eventId_ = "";
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The eventId.
*/
public java.lang.String getEventId() {
java.lang.Object ref = eventId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The bytes for eventId.
*/
public com.google.protobuf.ByteString
getEventIdBytes() {
java.lang.Object ref = eventId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @param value The eventId to set.
* @return This builder for chaining.
*/
public Builder setEventId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
eventId_ = value;
onChanged();
return this;
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return This builder for chaining.
*/
public Builder clearEventId() {
eventId_ = getDefaultInstance().getEventId();
onChanged();
return this;
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @param value The bytes for eventId to set.
* @return This builder for chaining.
*/
public Builder setEventIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
eventId_ = value;
onChanged();
return this;
}
private java.lang.Object contractId_ = "";
/**
*
* The ID of the created contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The contractId.
*/
public java.lang.String getContractId() {
java.lang.Object ref = contractId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contractId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the created contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The bytes for contractId.
*/
public com.google.protobuf.ByteString
getContractIdBytes() {
java.lang.Object ref = contractId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contractId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the created contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @param value The contractId to set.
* @return This builder for chaining.
*/
public Builder setContractId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
contractId_ = value;
onChanged();
return this;
}
/**
*
* The ID of the created contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return This builder for chaining.
*/
public Builder clearContractId() {
contractId_ = getDefaultInstance().getContractId();
onChanged();
return this;
}
/**
*
* The ID of the created contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @param value The bytes for contractId to set.
* @return This builder for chaining.
*/
public Builder setContractIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contractId_ = value;
onChanged();
return this;
}
private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> templateIdBuilder_;
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return Whether the templateId field is set.
*/
public boolean hasTemplateId() {
return templateIdBuilder_ != null || templateId_ != null;
}
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return The templateId.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() {
if (templateIdBuilder_ == null) {
return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
} else {
return templateIdBuilder_.getMessage();
}
}
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder setTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (templateIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
templateId_ = value;
onChanged();
} else {
templateIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder setTemplateId(
com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) {
if (templateIdBuilder_ == null) {
templateId_ = builderForValue.build();
onChanged();
} else {
templateIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder mergeTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (templateIdBuilder_ == null) {
if (templateId_ != null) {
templateId_ =
com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(templateId_).mergeFrom(value).buildPartial();
} else {
templateId_ = value;
}
onChanged();
} else {
templateIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder clearTemplateId() {
if (templateIdBuilder_ == null) {
templateId_ = null;
onChanged();
} else {
templateId_ = null;
templateIdBuilder_ = null;
}
return this;
}
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() {
onChanged();
return getTemplateIdFieldBuilder().getBuilder();
}
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
if (templateIdBuilder_ != null) {
return templateIdBuilder_.getMessageOrBuilder();
} else {
return templateId_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
}
/**
*
* The template of the created contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>
getTemplateIdFieldBuilder() {
if (templateIdBuilder_ == null) {
templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>(
getTemplateId(),
getParentForChildren(),
isClean());
templateId_ = null;
}
return templateIdBuilder_;
}
private com.daml.ledger.api.v1.ValueOuterClass.Value contractKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> contractKeyBuilder_;
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
* @return Whether the contractKey field is set.
*/
public boolean hasContractKey() {
return contractKeyBuilder_ != null || contractKey_ != null;
}
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
* @return The contractKey.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Value getContractKey() {
if (contractKeyBuilder_ == null) {
return contractKey_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : contractKey_;
} else {
return contractKeyBuilder_.getMessage();
}
}
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
*/
public Builder setContractKey(com.daml.ledger.api.v1.ValueOuterClass.Value value) {
if (contractKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractKey_ = value;
onChanged();
} else {
contractKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
*/
public Builder setContractKey(
com.daml.ledger.api.v1.ValueOuterClass.Value.Builder builderForValue) {
if (contractKeyBuilder_ == null) {
contractKey_ = builderForValue.build();
onChanged();
} else {
contractKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
*/
public Builder mergeContractKey(com.daml.ledger.api.v1.ValueOuterClass.Value value) {
if (contractKeyBuilder_ == null) {
if (contractKey_ != null) {
contractKey_ =
com.daml.ledger.api.v1.ValueOuterClass.Value.newBuilder(contractKey_).mergeFrom(value).buildPartial();
} else {
contractKey_ = value;
}
onChanged();
} else {
contractKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
*/
public Builder clearContractKey() {
if (contractKeyBuilder_ == null) {
contractKey_ = null;
onChanged();
} else {
contractKey_ = null;
contractKeyBuilder_ = null;
}
return this;
}
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
*/
public com.daml.ledger.api.v1.ValueOuterClass.Value.Builder getContractKeyBuilder() {
onChanged();
return getContractKeyFieldBuilder().getBuilder();
}
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
*/
public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder() {
if (contractKeyBuilder_ != null) {
return contractKeyBuilder_.getMessageOrBuilder();
} else {
return contractKey_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : contractKey_;
}
}
/**
*
* The key of the created contract.
* This will be set if and only if ``create_arguments`` is set and ``template_id`` defines a contract key.
* Optional
*
*
* .com.daml.ledger.api.v1.Value contract_key = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>
getContractKeyFieldBuilder() {
if (contractKeyBuilder_ == null) {
contractKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>(
getContractKey(),
getParentForChildren(),
isClean());
contractKey_ = null;
}
return contractKeyBuilder_;
}
private com.daml.ledger.api.v1.ValueOuterClass.Record createArguments_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder> createArgumentsBuilder_;
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
* @return Whether the createArguments field is set.
*/
public boolean hasCreateArguments() {
return createArgumentsBuilder_ != null || createArguments_ != null;
}
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
* @return The createArguments.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Record getCreateArguments() {
if (createArgumentsBuilder_ == null) {
return createArguments_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : createArguments_;
} else {
return createArgumentsBuilder_.getMessage();
}
}
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
*/
public Builder setCreateArguments(com.daml.ledger.api.v1.ValueOuterClass.Record value) {
if (createArgumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createArguments_ = value;
onChanged();
} else {
createArgumentsBuilder_.setMessage(value);
}
return this;
}
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
*/
public Builder setCreateArguments(
com.daml.ledger.api.v1.ValueOuterClass.Record.Builder builderForValue) {
if (createArgumentsBuilder_ == null) {
createArguments_ = builderForValue.build();
onChanged();
} else {
createArgumentsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
*/
public Builder mergeCreateArguments(com.daml.ledger.api.v1.ValueOuterClass.Record value) {
if (createArgumentsBuilder_ == null) {
if (createArguments_ != null) {
createArguments_ =
com.daml.ledger.api.v1.ValueOuterClass.Record.newBuilder(createArguments_).mergeFrom(value).buildPartial();
} else {
createArguments_ = value;
}
onChanged();
} else {
createArgumentsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
*/
public Builder clearCreateArguments() {
if (createArgumentsBuilder_ == null) {
createArguments_ = null;
onChanged();
} else {
createArguments_ = null;
createArgumentsBuilder_ = null;
}
return this;
}
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
*/
public com.daml.ledger.api.v1.ValueOuterClass.Record.Builder getCreateArgumentsBuilder() {
onChanged();
return getCreateArgumentsFieldBuilder().getBuilder();
}
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
*/
public com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder() {
if (createArgumentsBuilder_ != null) {
return createArgumentsBuilder_.getMessageOrBuilder();
} else {
return createArguments_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : createArguments_;
}
}
/**
*
* The arguments that have been used to create the contract.
* Set either:
* - if there was a party, which is in the ``witness_parties`` of this event,
* and for which an ``InclusiveFilters`` exists with the ``template_id`` of this event
* among the ``template_ids``,
* - or if there was a party, which is in the ``witness_parties`` of this event,
* and for which a wildcard filter exists (``Filters`` without ``InclusiveFilters``,
* or with an ``InclusiveFilters`` with empty ``template_ids`` and empty ``interface_filters``).
* Optional
*
*
* .com.daml.ledger.api.v1.Record create_arguments = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder>
getCreateArgumentsFieldBuilder() {
if (createArgumentsBuilder_ == null) {
createArgumentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder>(
getCreateArguments(),
getParentForChildren(),
isClean());
createArguments_ = null;
}
return createArgumentsBuilder_;
}
private com.google.protobuf.Any createArgumentsBlob_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> createArgumentsBlobBuilder_;
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
* @return Whether the createArgumentsBlob field is set.
*/
public boolean hasCreateArgumentsBlob() {
return createArgumentsBlobBuilder_ != null || createArgumentsBlob_ != null;
}
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
* @return The createArgumentsBlob.
*/
public com.google.protobuf.Any getCreateArgumentsBlob() {
if (createArgumentsBlobBuilder_ == null) {
return createArgumentsBlob_ == null ? com.google.protobuf.Any.getDefaultInstance() : createArgumentsBlob_;
} else {
return createArgumentsBlobBuilder_.getMessage();
}
}
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
*/
public Builder setCreateArgumentsBlob(com.google.protobuf.Any value) {
if (createArgumentsBlobBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createArgumentsBlob_ = value;
onChanged();
} else {
createArgumentsBlobBuilder_.setMessage(value);
}
return this;
}
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
*/
public Builder setCreateArgumentsBlob(
com.google.protobuf.Any.Builder builderForValue) {
if (createArgumentsBlobBuilder_ == null) {
createArgumentsBlob_ = builderForValue.build();
onChanged();
} else {
createArgumentsBlobBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
*/
public Builder mergeCreateArgumentsBlob(com.google.protobuf.Any value) {
if (createArgumentsBlobBuilder_ == null) {
if (createArgumentsBlob_ != null) {
createArgumentsBlob_ =
com.google.protobuf.Any.newBuilder(createArgumentsBlob_).mergeFrom(value).buildPartial();
} else {
createArgumentsBlob_ = value;
}
onChanged();
} else {
createArgumentsBlobBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
*/
public Builder clearCreateArgumentsBlob() {
if (createArgumentsBlobBuilder_ == null) {
createArgumentsBlob_ = null;
onChanged();
} else {
createArgumentsBlob_ = null;
createArgumentsBlobBuilder_ = null;
}
return this;
}
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
*/
public com.google.protobuf.Any.Builder getCreateArgumentsBlobBuilder() {
onChanged();
return getCreateArgumentsBlobFieldBuilder().getBuilder();
}
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
*/
public com.google.protobuf.AnyOrBuilder getCreateArgumentsBlobOrBuilder() {
if (createArgumentsBlobBuilder_ != null) {
return createArgumentsBlobBuilder_.getMessageOrBuilder();
} else {
return createArgumentsBlob_ == null ?
com.google.protobuf.Any.getDefaultInstance() : createArgumentsBlob_;
}
}
/**
*
* Opaque representation of contract payload intended for forwarding
* to an API server as a contract disclosed as part of a command
* submission.
* Optional
*
*
* .google.protobuf.Any create_arguments_blob = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getCreateArgumentsBlobFieldBuilder() {
if (createArgumentsBlobBuilder_ == null) {
createArgumentsBlobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getCreateArgumentsBlob(),
getParentForChildren(),
isClean());
createArgumentsBlob_ = null;
}
return createArgumentsBlobBuilder_;
}
private java.util.List interfaceViews_ =
java.util.Collections.emptyList();
private void ensureInterfaceViewsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
interfaceViews_ = new java.util.ArrayList(interfaceViews_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.InterfaceView, com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder, com.daml.ledger.api.v1.EventOuterClass.InterfaceViewOrBuilder> interfaceViewsBuilder_;
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public java.util.List getInterfaceViewsList() {
if (interfaceViewsBuilder_ == null) {
return java.util.Collections.unmodifiableList(interfaceViews_);
} else {
return interfaceViewsBuilder_.getMessageList();
}
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public int getInterfaceViewsCount() {
if (interfaceViewsBuilder_ == null) {
return interfaceViews_.size();
} else {
return interfaceViewsBuilder_.getCount();
}
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public com.daml.ledger.api.v1.EventOuterClass.InterfaceView getInterfaceViews(int index) {
if (interfaceViewsBuilder_ == null) {
return interfaceViews_.get(index);
} else {
return interfaceViewsBuilder_.getMessage(index);
}
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public Builder setInterfaceViews(
int index, com.daml.ledger.api.v1.EventOuterClass.InterfaceView value) {
if (interfaceViewsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInterfaceViewsIsMutable();
interfaceViews_.set(index, value);
onChanged();
} else {
interfaceViewsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public Builder setInterfaceViews(
int index, com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder builderForValue) {
if (interfaceViewsBuilder_ == null) {
ensureInterfaceViewsIsMutable();
interfaceViews_.set(index, builderForValue.build());
onChanged();
} else {
interfaceViewsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public Builder addInterfaceViews(com.daml.ledger.api.v1.EventOuterClass.InterfaceView value) {
if (interfaceViewsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInterfaceViewsIsMutable();
interfaceViews_.add(value);
onChanged();
} else {
interfaceViewsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public Builder addInterfaceViews(
int index, com.daml.ledger.api.v1.EventOuterClass.InterfaceView value) {
if (interfaceViewsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInterfaceViewsIsMutable();
interfaceViews_.add(index, value);
onChanged();
} else {
interfaceViewsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public Builder addInterfaceViews(
com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder builderForValue) {
if (interfaceViewsBuilder_ == null) {
ensureInterfaceViewsIsMutable();
interfaceViews_.add(builderForValue.build());
onChanged();
} else {
interfaceViewsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public Builder addInterfaceViews(
int index, com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder builderForValue) {
if (interfaceViewsBuilder_ == null) {
ensureInterfaceViewsIsMutable();
interfaceViews_.add(index, builderForValue.build());
onChanged();
} else {
interfaceViewsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public Builder addAllInterfaceViews(
java.lang.Iterable extends com.daml.ledger.api.v1.EventOuterClass.InterfaceView> values) {
if (interfaceViewsBuilder_ == null) {
ensureInterfaceViewsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, interfaceViews_);
onChanged();
} else {
interfaceViewsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public Builder clearInterfaceViews() {
if (interfaceViewsBuilder_ == null) {
interfaceViews_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
interfaceViewsBuilder_.clear();
}
return this;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public Builder removeInterfaceViews(int index) {
if (interfaceViewsBuilder_ == null) {
ensureInterfaceViewsIsMutable();
interfaceViews_.remove(index);
onChanged();
} else {
interfaceViewsBuilder_.remove(index);
}
return this;
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder getInterfaceViewsBuilder(
int index) {
return getInterfaceViewsFieldBuilder().getBuilder(index);
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public com.daml.ledger.api.v1.EventOuterClass.InterfaceViewOrBuilder getInterfaceViewsOrBuilder(
int index) {
if (interfaceViewsBuilder_ == null) {
return interfaceViews_.get(index); } else {
return interfaceViewsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public java.util.List extends com.daml.ledger.api.v1.EventOuterClass.InterfaceViewOrBuilder>
getInterfaceViewsOrBuilderList() {
if (interfaceViewsBuilder_ != null) {
return interfaceViewsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(interfaceViews_);
}
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder addInterfaceViewsBuilder() {
return getInterfaceViewsFieldBuilder().addBuilder(
com.daml.ledger.api.v1.EventOuterClass.InterfaceView.getDefaultInstance());
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder addInterfaceViewsBuilder(
int index) {
return getInterfaceViewsFieldBuilder().addBuilder(
index, com.daml.ledger.api.v1.EventOuterClass.InterfaceView.getDefaultInstance());
}
/**
*
* Interface views specified in the transaction filter.
* Includes an ``InterfaceView`` for each interface for which there is a ``InterfaceFilter`` with
* - its party in the ``witness_parties`` of this event,
* - and which is implemented by the template of this event,
* - and which has ``include_interface_view`` set.
* Optional
*
*
* repeated .com.daml.ledger.api.v1.InterfaceView interface_views = 11;
*/
public java.util.List
getInterfaceViewsBuilderList() {
return getInterfaceViewsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.InterfaceView, com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder, com.daml.ledger.api.v1.EventOuterClass.InterfaceViewOrBuilder>
getInterfaceViewsFieldBuilder() {
if (interfaceViewsBuilder_ == null) {
interfaceViewsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.InterfaceView, com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder, com.daml.ledger.api.v1.EventOuterClass.InterfaceViewOrBuilder>(
interfaceViews_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
interfaceViews_ = null;
}
return interfaceViewsBuilder_;
}
private com.google.protobuf.LazyStringList witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureWitnessPartiesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
witnessParties_ = new com.google.protobuf.LazyStringArrayList(witnessParties_);
bitField0_ |= 0x00000002;
}
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @return A list containing the witnessParties.
*/
public com.google.protobuf.ProtocolStringList
getWitnessPartiesList() {
return witnessParties_.getUnmodifiableView();
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @return The count of witnessParties.
*/
public int getWitnessPartiesCount() {
return witnessParties_.size();
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @param index The index of the element to return.
* @return The witnessParties at the given index.
*/
public java.lang.String getWitnessParties(int index) {
return witnessParties_.get(index);
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @param index The index of the value to return.
* @return The bytes of the witnessParties at the given index.
*/
public com.google.protobuf.ByteString
getWitnessPartiesBytes(int index) {
return witnessParties_.getByteString(index);
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @param index The index to set the value at.
* @param value The witnessParties to set.
* @return This builder for chaining.
*/
public Builder setWitnessParties(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWitnessPartiesIsMutable();
witnessParties_.set(index, value);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @param value The witnessParties to add.
* @return This builder for chaining.
*/
public Builder addWitnessParties(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWitnessPartiesIsMutable();
witnessParties_.add(value);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @param values The witnessParties to add.
* @return This builder for chaining.
*/
public Builder addAllWitnessParties(
java.lang.Iterable values) {
ensureWitnessPartiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, witnessParties_);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @return This builder for chaining.
*/
public Builder clearWitnessParties() {
witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. When a ``CreatedEvent``
* is returned as part of a transaction tree, this will include all
* the parties specified in the ``TransactionFilter`` that are informees
* of the event. If served as part of a flat transaction those will
* be limited to all parties specified in the ``TransactionFilter`` that
* are stakeholders of the contract (i.e. either signatories or observers).
* Required
*
*
* repeated string witness_parties = 5;
* @param value The bytes of the witnessParties to add.
* @return This builder for chaining.
*/
public Builder addWitnessPartiesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureWitnessPartiesIsMutable();
witnessParties_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList signatories_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSignatoriesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
signatories_ = new com.google.protobuf.LazyStringArrayList(signatories_);
bitField0_ |= 0x00000004;
}
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @return A list containing the signatories.
*/
public com.google.protobuf.ProtocolStringList
getSignatoriesList() {
return signatories_.getUnmodifiableView();
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @return The count of signatories.
*/
public int getSignatoriesCount() {
return signatories_.size();
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @param index The index of the element to return.
* @return The signatories at the given index.
*/
public java.lang.String getSignatories(int index) {
return signatories_.get(index);
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @param index The index of the value to return.
* @return The bytes of the signatories at the given index.
*/
public com.google.protobuf.ByteString
getSignatoriesBytes(int index) {
return signatories_.getByteString(index);
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @param index The index to set the value at.
* @param value The signatories to set.
* @return This builder for chaining.
*/
public Builder setSignatories(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSignatoriesIsMutable();
signatories_.set(index, value);
onChanged();
return this;
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @param value The signatories to add.
* @return This builder for chaining.
*/
public Builder addSignatories(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSignatoriesIsMutable();
signatories_.add(value);
onChanged();
return this;
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @param values The signatories to add.
* @return This builder for chaining.
*/
public Builder addAllSignatories(
java.lang.Iterable values) {
ensureSignatoriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, signatories_);
onChanged();
return this;
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @return This builder for chaining.
*/
public Builder clearSignatories() {
signatories_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* The signatories for this contract as specified by the template.
* Required
*
*
* repeated string signatories = 8;
* @param value The bytes of the signatories to add.
* @return This builder for chaining.
*/
public Builder addSignatoriesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSignatoriesIsMutable();
signatories_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList observers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureObserversIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
observers_ = new com.google.protobuf.LazyStringArrayList(observers_);
bitField0_ |= 0x00000008;
}
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @return A list containing the observers.
*/
public com.google.protobuf.ProtocolStringList
getObserversList() {
return observers_.getUnmodifiableView();
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @return The count of observers.
*/
public int getObserversCount() {
return observers_.size();
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @param index The index of the element to return.
* @return The observers at the given index.
*/
public java.lang.String getObservers(int index) {
return observers_.get(index);
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @param index The index of the value to return.
* @return The bytes of the observers at the given index.
*/
public com.google.protobuf.ByteString
getObserversBytes(int index) {
return observers_.getByteString(index);
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @param index The index to set the value at.
* @param value The observers to set.
* @return This builder for chaining.
*/
public Builder setObservers(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureObserversIsMutable();
observers_.set(index, value);
onChanged();
return this;
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @param value The observers to add.
* @return This builder for chaining.
*/
public Builder addObservers(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureObserversIsMutable();
observers_.add(value);
onChanged();
return this;
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @param values The observers to add.
* @return This builder for chaining.
*/
public Builder addAllObservers(
java.lang.Iterable values) {
ensureObserversIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, observers_);
onChanged();
return this;
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @return This builder for chaining.
*/
public Builder clearObservers() {
observers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* The observers for this contract as specified explicitly by the template or implicitly as choice controllers.
* This field never contains parties that are signatories.
* Required
*
*
* repeated string observers = 9;
* @param value The bytes of the observers to add.
* @return This builder for chaining.
*/
public Builder addObserversBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureObserversIsMutable();
observers_.add(value);
onChanged();
return this;
}
private com.google.protobuf.StringValue agreementText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> agreementTextBuilder_;
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
* @return Whether the agreementText field is set.
*/
public boolean hasAgreementText() {
return agreementTextBuilder_ != null || agreementText_ != null;
}
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
* @return The agreementText.
*/
public com.google.protobuf.StringValue getAgreementText() {
if (agreementTextBuilder_ == null) {
return agreementText_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : agreementText_;
} else {
return agreementTextBuilder_.getMessage();
}
}
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
*/
public Builder setAgreementText(com.google.protobuf.StringValue value) {
if (agreementTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agreementText_ = value;
onChanged();
} else {
agreementTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
*/
public Builder setAgreementText(
com.google.protobuf.StringValue.Builder builderForValue) {
if (agreementTextBuilder_ == null) {
agreementText_ = builderForValue.build();
onChanged();
} else {
agreementTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
*/
public Builder mergeAgreementText(com.google.protobuf.StringValue value) {
if (agreementTextBuilder_ == null) {
if (agreementText_ != null) {
agreementText_ =
com.google.protobuf.StringValue.newBuilder(agreementText_).mergeFrom(value).buildPartial();
} else {
agreementText_ = value;
}
onChanged();
} else {
agreementTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
*/
public Builder clearAgreementText() {
if (agreementTextBuilder_ == null) {
agreementText_ = null;
onChanged();
} else {
agreementText_ = null;
agreementTextBuilder_ = null;
}
return this;
}
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
*/
public com.google.protobuf.StringValue.Builder getAgreementTextBuilder() {
onChanged();
return getAgreementTextFieldBuilder().getBuilder();
}
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
*/
public com.google.protobuf.StringValueOrBuilder getAgreementTextOrBuilder() {
if (agreementTextBuilder_ != null) {
return agreementTextBuilder_.getMessageOrBuilder();
} else {
return agreementText_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : agreementText_;
}
}
/**
*
* The agreement text of the contract.
* We use StringValue to properly reflect optionality on the wire for backwards compatibility.
* This is necessary since the empty string is an acceptable (and in fact the default) agreement
* text, but also the default string in protobuf.
* This means a newer client works with an older sandbox seamlessly.
* Optional
*
*
* .google.protobuf.StringValue agreement_text = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getAgreementTextFieldBuilder() {
if (agreementTextBuilder_ == null) {
agreementTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getAgreementText(),
getParentForChildren(),
isClean());
agreementText_ = null;
}
return agreementTextBuilder_;
}
private com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder> metadataBuilder_;
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
* @return The metadata.
*/
public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
*/
public Builder setMetadata(com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
*/
public Builder setMetadata(
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
*/
public Builder mergeMetadata(com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
*/
public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
*/
public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.getDefaultInstance() : metadata_;
}
}
/**
*
* Metadata of the contract. Required for contracts created
* after the introduction of explicit disclosure.
* Optional
*
*
* .com.daml.ledger.api.v1.ContractMetadata metadata = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.CreatedEvent)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.CreatedEvent)
private static final com.daml.ledger.api.v1.EventOuterClass.CreatedEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.EventOuterClass.CreatedEvent();
}
public static com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreatedEvent 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.EventOuterClass.CreatedEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InterfaceViewOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.InterfaceView)
com.google.protobuf.MessageOrBuilder {
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
* @return Whether the interfaceId field is set.
*/
boolean hasInterfaceId();
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
* @return The interfaceId.
*/
com.daml.ledger.api.v1.ValueOuterClass.Identifier getInterfaceId();
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
*/
com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder();
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
* @return Whether the viewStatus field is set.
*/
boolean hasViewStatus();
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
* @return The viewStatus.
*/
com.google.rpc.Status getViewStatus();
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
*/
com.google.rpc.StatusOrBuilder getViewStatusOrBuilder();
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
* @return Whether the viewValue field is set.
*/
boolean hasViewValue();
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
* @return The viewValue.
*/
com.daml.ledger.api.v1.ValueOuterClass.Record getViewValue();
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
*/
com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getViewValueOrBuilder();
}
/**
*
* View of a create event matched by an interface filter.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.InterfaceView}
*/
public static final class InterfaceView extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.InterfaceView)
InterfaceViewOrBuilder {
private static final long serialVersionUID = 0L;
// Use InterfaceView.newBuilder() to construct.
private InterfaceView(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InterfaceView() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InterfaceView();
}
@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.EventOuterClass.internal_static_com_daml_ledger_api_v1_InterfaceView_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_InterfaceView_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventOuterClass.InterfaceView.class, com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder.class);
}
public static final int INTERFACE_ID_FIELD_NUMBER = 1;
private com.daml.ledger.api.v1.ValueOuterClass.Identifier interfaceId_;
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
* @return Whether the interfaceId field is set.
*/
@java.lang.Override
public boolean hasInterfaceId() {
return interfaceId_ != null;
}
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
* @return The interfaceId.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getInterfaceId() {
return interfaceId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_;
}
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder() {
return getInterfaceId();
}
public static final int VIEW_STATUS_FIELD_NUMBER = 2;
private com.google.rpc.Status viewStatus_;
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
* @return Whether the viewStatus field is set.
*/
@java.lang.Override
public boolean hasViewStatus() {
return viewStatus_ != null;
}
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
* @return The viewStatus.
*/
@java.lang.Override
public com.google.rpc.Status getViewStatus() {
return viewStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : viewStatus_;
}
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getViewStatusOrBuilder() {
return getViewStatus();
}
public static final int VIEW_VALUE_FIELD_NUMBER = 3;
private com.daml.ledger.api.v1.ValueOuterClass.Record viewValue_;
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
* @return Whether the viewValue field is set.
*/
@java.lang.Override
public boolean hasViewValue() {
return viewValue_ != null;
}
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
* @return The viewValue.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Record getViewValue() {
return viewValue_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : viewValue_;
}
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getViewValueOrBuilder() {
return getViewValue();
}
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 (interfaceId_ != null) {
output.writeMessage(1, getInterfaceId());
}
if (viewStatus_ != null) {
output.writeMessage(2, getViewStatus());
}
if (viewValue_ != null) {
output.writeMessage(3, getViewValue());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (interfaceId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getInterfaceId());
}
if (viewStatus_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getViewStatus());
}
if (viewValue_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getViewValue());
}
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.EventOuterClass.InterfaceView)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.EventOuterClass.InterfaceView other = (com.daml.ledger.api.v1.EventOuterClass.InterfaceView) obj;
if (hasInterfaceId() != other.hasInterfaceId()) return false;
if (hasInterfaceId()) {
if (!getInterfaceId()
.equals(other.getInterfaceId())) return false;
}
if (hasViewStatus() != other.hasViewStatus()) return false;
if (hasViewStatus()) {
if (!getViewStatus()
.equals(other.getViewStatus())) return false;
}
if (hasViewValue() != other.hasViewValue()) return false;
if (hasViewValue()) {
if (!getViewValue()
.equals(other.getViewValue())) 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();
if (hasInterfaceId()) {
hash = (37 * hash) + INTERFACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInterfaceId().hashCode();
}
if (hasViewStatus()) {
hash = (37 * hash) + VIEW_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getViewStatus().hashCode();
}
if (hasViewValue()) {
hash = (37 * hash) + VIEW_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getViewValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.EventOuterClass.InterfaceView parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.InterfaceView 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.EventOuterClass.InterfaceView parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.InterfaceView 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.EventOuterClass.InterfaceView parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.InterfaceView 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.EventOuterClass.InterfaceView parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventOuterClass.InterfaceView 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.EventOuterClass.InterfaceView parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventOuterClass.InterfaceView 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.EventOuterClass.InterfaceView 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.EventOuterClass.InterfaceView 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.EventOuterClass.InterfaceView 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;
}
/**
*
* View of a create event matched by an interface filter.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.InterfaceView}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.InterfaceView)
com.daml.ledger.api.v1.EventOuterClass.InterfaceViewOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_InterfaceView_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_InterfaceView_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventOuterClass.InterfaceView.class, com.daml.ledger.api.v1.EventOuterClass.InterfaceView.Builder.class);
}
// Construct using com.daml.ledger.api.v1.EventOuterClass.InterfaceView.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (interfaceIdBuilder_ == null) {
interfaceId_ = null;
} else {
interfaceId_ = null;
interfaceIdBuilder_ = null;
}
if (viewStatusBuilder_ == null) {
viewStatus_ = null;
} else {
viewStatus_ = null;
viewStatusBuilder_ = null;
}
if (viewValueBuilder_ == null) {
viewValue_ = null;
} else {
viewValue_ = null;
viewValueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_InterfaceView_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.InterfaceView getDefaultInstanceForType() {
return com.daml.ledger.api.v1.EventOuterClass.InterfaceView.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.InterfaceView build() {
com.daml.ledger.api.v1.EventOuterClass.InterfaceView result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.InterfaceView buildPartial() {
com.daml.ledger.api.v1.EventOuterClass.InterfaceView result = new com.daml.ledger.api.v1.EventOuterClass.InterfaceView(this);
if (interfaceIdBuilder_ == null) {
result.interfaceId_ = interfaceId_;
} else {
result.interfaceId_ = interfaceIdBuilder_.build();
}
if (viewStatusBuilder_ == null) {
result.viewStatus_ = viewStatus_;
} else {
result.viewStatus_ = viewStatusBuilder_.build();
}
if (viewValueBuilder_ == null) {
result.viewValue_ = viewValue_;
} else {
result.viewValue_ = viewValueBuilder_.build();
}
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.EventOuterClass.InterfaceView) {
return mergeFrom((com.daml.ledger.api.v1.EventOuterClass.InterfaceView)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.EventOuterClass.InterfaceView other) {
if (other == com.daml.ledger.api.v1.EventOuterClass.InterfaceView.getDefaultInstance()) return this;
if (other.hasInterfaceId()) {
mergeInterfaceId(other.getInterfaceId());
}
if (other.hasViewStatus()) {
mergeViewStatus(other.getViewStatus());
}
if (other.hasViewValue()) {
mergeViewValue(other.getViewValue());
}
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(
getInterfaceIdFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getViewStatusFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
input.readMessage(
getViewValueFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
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 com.daml.ledger.api.v1.ValueOuterClass.Identifier interfaceId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> interfaceIdBuilder_;
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
* @return Whether the interfaceId field is set.
*/
public boolean hasInterfaceId() {
return interfaceIdBuilder_ != null || interfaceId_ != null;
}
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
* @return The interfaceId.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getInterfaceId() {
if (interfaceIdBuilder_ == null) {
return interfaceId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_;
} else {
return interfaceIdBuilder_.getMessage();
}
}
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
*/
public Builder setInterfaceId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (interfaceIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
interfaceId_ = value;
onChanged();
} else {
interfaceIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
*/
public Builder setInterfaceId(
com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) {
if (interfaceIdBuilder_ == null) {
interfaceId_ = builderForValue.build();
onChanged();
} else {
interfaceIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
*/
public Builder mergeInterfaceId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (interfaceIdBuilder_ == null) {
if (interfaceId_ != null) {
interfaceId_ =
com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(interfaceId_).mergeFrom(value).buildPartial();
} else {
interfaceId_ = value;
}
onChanged();
} else {
interfaceIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
*/
public Builder clearInterfaceId() {
if (interfaceIdBuilder_ == null) {
interfaceId_ = null;
onChanged();
} else {
interfaceId_ = null;
interfaceIdBuilder_ = null;
}
return this;
}
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getInterfaceIdBuilder() {
onChanged();
return getInterfaceIdFieldBuilder().getBuilder();
}
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
*/
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder() {
if (interfaceIdBuilder_ != null) {
return interfaceIdBuilder_.getMessageOrBuilder();
} else {
return interfaceId_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_;
}
}
/**
*
* The interface implemented by the matched event.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>
getInterfaceIdFieldBuilder() {
if (interfaceIdBuilder_ == null) {
interfaceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>(
getInterfaceId(),
getParentForChildren(),
isClean());
interfaceId_ = null;
}
return interfaceIdBuilder_;
}
private com.google.rpc.Status viewStatus_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> viewStatusBuilder_;
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
* @return Whether the viewStatus field is set.
*/
public boolean hasViewStatus() {
return viewStatusBuilder_ != null || viewStatus_ != null;
}
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
* @return The viewStatus.
*/
public com.google.rpc.Status getViewStatus() {
if (viewStatusBuilder_ == null) {
return viewStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : viewStatus_;
} else {
return viewStatusBuilder_.getMessage();
}
}
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
*/
public Builder setViewStatus(com.google.rpc.Status value) {
if (viewStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
viewStatus_ = value;
onChanged();
} else {
viewStatusBuilder_.setMessage(value);
}
return this;
}
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
*/
public Builder setViewStatus(
com.google.rpc.Status.Builder builderForValue) {
if (viewStatusBuilder_ == null) {
viewStatus_ = builderForValue.build();
onChanged();
} else {
viewStatusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
*/
public Builder mergeViewStatus(com.google.rpc.Status value) {
if (viewStatusBuilder_ == null) {
if (viewStatus_ != null) {
viewStatus_ =
com.google.rpc.Status.newBuilder(viewStatus_).mergeFrom(value).buildPartial();
} else {
viewStatus_ = value;
}
onChanged();
} else {
viewStatusBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
*/
public Builder clearViewStatus() {
if (viewStatusBuilder_ == null) {
viewStatus_ = null;
onChanged();
} else {
viewStatus_ = null;
viewStatusBuilder_ = null;
}
return this;
}
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
*/
public com.google.rpc.Status.Builder getViewStatusBuilder() {
onChanged();
return getViewStatusFieldBuilder().getBuilder();
}
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
*/
public com.google.rpc.StatusOrBuilder getViewStatusOrBuilder() {
if (viewStatusBuilder_ != null) {
return viewStatusBuilder_.getMessageOrBuilder();
} else {
return viewStatus_ == null ?
com.google.rpc.Status.getDefaultInstance() : viewStatus_;
}
}
/**
*
* Whether the view was successfully computed, and if not,
* the reason for the error. The error is reported using the same rules
* for error codes and messages as the errors returned for API requests.
* Required
*
*
* .google.rpc.Status view_status = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getViewStatusFieldBuilder() {
if (viewStatusBuilder_ == null) {
viewStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
getViewStatus(),
getParentForChildren(),
isClean());
viewStatus_ = null;
}
return viewStatusBuilder_;
}
private com.daml.ledger.api.v1.ValueOuterClass.Record viewValue_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder> viewValueBuilder_;
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
* @return Whether the viewValue field is set.
*/
public boolean hasViewValue() {
return viewValueBuilder_ != null || viewValue_ != null;
}
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
* @return The viewValue.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Record getViewValue() {
if (viewValueBuilder_ == null) {
return viewValue_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : viewValue_;
} else {
return viewValueBuilder_.getMessage();
}
}
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
*/
public Builder setViewValue(com.daml.ledger.api.v1.ValueOuterClass.Record value) {
if (viewValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
viewValue_ = value;
onChanged();
} else {
viewValueBuilder_.setMessage(value);
}
return this;
}
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
*/
public Builder setViewValue(
com.daml.ledger.api.v1.ValueOuterClass.Record.Builder builderForValue) {
if (viewValueBuilder_ == null) {
viewValue_ = builderForValue.build();
onChanged();
} else {
viewValueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
*/
public Builder mergeViewValue(com.daml.ledger.api.v1.ValueOuterClass.Record value) {
if (viewValueBuilder_ == null) {
if (viewValue_ != null) {
viewValue_ =
com.daml.ledger.api.v1.ValueOuterClass.Record.newBuilder(viewValue_).mergeFrom(value).buildPartial();
} else {
viewValue_ = value;
}
onChanged();
} else {
viewValueBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
*/
public Builder clearViewValue() {
if (viewValueBuilder_ == null) {
viewValue_ = null;
onChanged();
} else {
viewValue_ = null;
viewValueBuilder_ = null;
}
return this;
}
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
*/
public com.daml.ledger.api.v1.ValueOuterClass.Record.Builder getViewValueBuilder() {
onChanged();
return getViewValueFieldBuilder().getBuilder();
}
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
*/
public com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder getViewValueOrBuilder() {
if (viewValueBuilder_ != null) {
return viewValueBuilder_.getMessageOrBuilder();
} else {
return viewValue_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Record.getDefaultInstance() : viewValue_;
}
}
/**
*
* The value of the interface's view method on this event.
* Set if it was requested in the ``InterfaceFilter`` and it could be
* sucessfully computed.
* Optional
*
*
* .com.daml.ledger.api.v1.Record view_value = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder>
getViewValueFieldBuilder() {
if (viewValueBuilder_ == null) {
viewValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Record, com.daml.ledger.api.v1.ValueOuterClass.Record.Builder, com.daml.ledger.api.v1.ValueOuterClass.RecordOrBuilder>(
getViewValue(),
getParentForChildren(),
isClean());
viewValue_ = null;
}
return viewValueBuilder_;
}
@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.InterfaceView)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.InterfaceView)
private static final com.daml.ledger.api.v1.EventOuterClass.InterfaceView DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.EventOuterClass.InterfaceView();
}
public static com.daml.ledger.api.v1.EventOuterClass.InterfaceView getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InterfaceView 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.EventOuterClass.InterfaceView getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ArchivedEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.ArchivedEvent)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The eventId.
*/
java.lang.String getEventId();
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The bytes for eventId.
*/
com.google.protobuf.ByteString
getEventIdBytes();
/**
*
* The ID of the archived contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The contractId.
*/
java.lang.String getContractId();
/**
*
* The ID of the archived contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The bytes for contractId.
*/
com.google.protobuf.ByteString
getContractIdBytes();
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return Whether the templateId field is set.
*/
boolean hasTemplateId();
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return The templateId.
*/
com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId();
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder();
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @return A list containing the witnessParties.
*/
java.util.List
getWitnessPartiesList();
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @return The count of witnessParties.
*/
int getWitnessPartiesCount();
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @param index The index of the element to return.
* @return The witnessParties at the given index.
*/
java.lang.String getWitnessParties(int index);
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @param index The index of the value to return.
* @return The bytes of the witnessParties at the given index.
*/
com.google.protobuf.ByteString
getWitnessPartiesBytes(int index);
}
/**
*
* Records that a contract has been archived, and choices may no longer be exercised on it.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.ArchivedEvent}
*/
public static final class ArchivedEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.ArchivedEvent)
ArchivedEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use ArchivedEvent.newBuilder() to construct.
private ArchivedEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ArchivedEvent() {
eventId_ = "";
contractId_ = "";
witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ArchivedEvent();
}
@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.EventOuterClass.internal_static_com_daml_ledger_api_v1_ArchivedEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_ArchivedEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.class, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder.class);
}
public static final int EVENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object eventId_;
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The eventId.
*/
@java.lang.Override
public java.lang.String getEventId() {
java.lang.Object ref = eventId_;
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();
eventId_ = s;
return s;
}
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The bytes for eventId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEventIdBytes() {
java.lang.Object ref = eventId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTRACT_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object contractId_;
/**
*
* The ID of the archived contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The contractId.
*/
@java.lang.Override
public java.lang.String getContractId() {
java.lang.Object ref = contractId_;
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();
contractId_ = s;
return s;
}
}
/**
*
* The ID of the archived contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The bytes for contractId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContractIdBytes() {
java.lang.Object ref = contractId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contractId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEMPLATE_ID_FIELD_NUMBER = 3;
private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_;
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return Whether the templateId field is set.
*/
@java.lang.Override
public boolean hasTemplateId() {
return templateId_ != null;
}
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return The templateId.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() {
return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
return getTemplateId();
}
public static final int WITNESS_PARTIES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList witnessParties_;
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @return A list containing the witnessParties.
*/
public com.google.protobuf.ProtocolStringList
getWitnessPartiesList() {
return witnessParties_;
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @return The count of witnessParties.
*/
public int getWitnessPartiesCount() {
return witnessParties_.size();
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @param index The index of the element to return.
* @return The witnessParties at the given index.
*/
public java.lang.String getWitnessParties(int index) {
return witnessParties_.get(index);
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @param index The index of the value to return.
* @return The bytes of the witnessParties at the given index.
*/
public com.google.protobuf.ByteString
getWitnessPartiesBytes(int index) {
return witnessParties_.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(eventId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractId_);
}
if (templateId_ != null) {
output.writeMessage(3, getTemplateId());
}
for (int i = 0; i < witnessParties_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, witnessParties_.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(eventId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractId_);
}
if (templateId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTemplateId());
}
{
int dataSize = 0;
for (int i = 0; i < witnessParties_.size(); i++) {
dataSize += computeStringSizeNoTag(witnessParties_.getRaw(i));
}
size += dataSize;
size += 1 * getWitnessPartiesList().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.EventOuterClass.ArchivedEvent)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent other = (com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent) obj;
if (!getEventId()
.equals(other.getEventId())) return false;
if (!getContractId()
.equals(other.getContractId())) return false;
if (hasTemplateId() != other.hasTemplateId()) return false;
if (hasTemplateId()) {
if (!getTemplateId()
.equals(other.getTemplateId())) return false;
}
if (!getWitnessPartiesList()
.equals(other.getWitnessPartiesList())) 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) + EVENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getEventId().hashCode();
hash = (37 * hash) + CONTRACT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContractId().hashCode();
if (hasTemplateId()) {
hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTemplateId().hashCode();
}
if (getWitnessPartiesCount() > 0) {
hash = (37 * hash) + WITNESS_PARTIES_FIELD_NUMBER;
hash = (53 * hash) + getWitnessPartiesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent 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.EventOuterClass.ArchivedEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent 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.EventOuterClass.ArchivedEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent 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.EventOuterClass.ArchivedEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent 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.EventOuterClass.ArchivedEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent 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.EventOuterClass.ArchivedEvent 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.EventOuterClass.ArchivedEvent 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.EventOuterClass.ArchivedEvent 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;
}
/**
*
* Records that a contract has been archived, and choices may no longer be exercised on it.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.ArchivedEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.ArchivedEvent)
com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_ArchivedEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_ArchivedEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.class, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder.class);
}
// Construct using com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
eventId_ = "";
contractId_ = "";
if (templateIdBuilder_ == null) {
templateId_ = null;
} else {
templateId_ = null;
templateIdBuilder_ = null;
}
witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_ArchivedEvent_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getDefaultInstanceForType() {
return com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent build() {
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent buildPartial() {
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent result = new com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent(this);
int from_bitField0_ = bitField0_;
result.eventId_ = eventId_;
result.contractId_ = contractId_;
if (templateIdBuilder_ == null) {
result.templateId_ = templateId_;
} else {
result.templateId_ = templateIdBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
witnessParties_ = witnessParties_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.witnessParties_ = witnessParties_;
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.EventOuterClass.ArchivedEvent) {
return mergeFrom((com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent other) {
if (other == com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance()) return this;
if (!other.getEventId().isEmpty()) {
eventId_ = other.eventId_;
onChanged();
}
if (!other.getContractId().isEmpty()) {
contractId_ = other.contractId_;
onChanged();
}
if (other.hasTemplateId()) {
mergeTemplateId(other.getTemplateId());
}
if (!other.witnessParties_.isEmpty()) {
if (witnessParties_.isEmpty()) {
witnessParties_ = other.witnessParties_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureWitnessPartiesIsMutable();
witnessParties_.addAll(other.witnessParties_);
}
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: {
eventId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
contractId_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
input.readMessage(
getTemplateIdFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
case 34: {
java.lang.String s = input.readStringRequireUtf8();
ensureWitnessPartiesIsMutable();
witnessParties_.add(s);
break;
} // case 34
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 eventId_ = "";
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The eventId.
*/
public java.lang.String getEventId() {
java.lang.Object ref = eventId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The bytes for eventId.
*/
public com.google.protobuf.ByteString
getEventIdBytes() {
java.lang.Object ref = eventId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @param value The eventId to set.
* @return This builder for chaining.
*/
public Builder setEventId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
eventId_ = value;
onChanged();
return this;
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return This builder for chaining.
*/
public Builder clearEventId() {
eventId_ = getDefaultInstance().getEventId();
onChanged();
return this;
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @param value The bytes for eventId to set.
* @return This builder for chaining.
*/
public Builder setEventIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
eventId_ = value;
onChanged();
return this;
}
private java.lang.Object contractId_ = "";
/**
*
* The ID of the archived contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The contractId.
*/
public java.lang.String getContractId() {
java.lang.Object ref = contractId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contractId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the archived contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The bytes for contractId.
*/
public com.google.protobuf.ByteString
getContractIdBytes() {
java.lang.Object ref = contractId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contractId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the archived contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @param value The contractId to set.
* @return This builder for chaining.
*/
public Builder setContractId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
contractId_ = value;
onChanged();
return this;
}
/**
*
* The ID of the archived contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return This builder for chaining.
*/
public Builder clearContractId() {
contractId_ = getDefaultInstance().getContractId();
onChanged();
return this;
}
/**
*
* The ID of the archived contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @param value The bytes for contractId to set.
* @return This builder for chaining.
*/
public Builder setContractIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contractId_ = value;
onChanged();
return this;
}
private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> templateIdBuilder_;
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return Whether the templateId field is set.
*/
public boolean hasTemplateId() {
return templateIdBuilder_ != null || templateId_ != null;
}
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return The templateId.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() {
if (templateIdBuilder_ == null) {
return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
} else {
return templateIdBuilder_.getMessage();
}
}
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder setTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (templateIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
templateId_ = value;
onChanged();
} else {
templateIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder setTemplateId(
com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) {
if (templateIdBuilder_ == null) {
templateId_ = builderForValue.build();
onChanged();
} else {
templateIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder mergeTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (templateIdBuilder_ == null) {
if (templateId_ != null) {
templateId_ =
com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(templateId_).mergeFrom(value).buildPartial();
} else {
templateId_ = value;
}
onChanged();
} else {
templateIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder clearTemplateId() {
if (templateIdBuilder_ == null) {
templateId_ = null;
onChanged();
} else {
templateId_ = null;
templateIdBuilder_ = null;
}
return this;
}
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() {
onChanged();
return getTemplateIdFieldBuilder().getBuilder();
}
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
if (templateIdBuilder_ != null) {
return templateIdBuilder_.getMessageOrBuilder();
} else {
return templateId_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
}
/**
*
* The template of the archived contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>
getTemplateIdFieldBuilder() {
if (templateIdBuilder_ == null) {
templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>(
getTemplateId(),
getParentForChildren(),
isClean());
templateId_ = null;
}
return templateIdBuilder_;
}
private com.google.protobuf.LazyStringList witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureWitnessPartiesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
witnessParties_ = new com.google.protobuf.LazyStringArrayList(witnessParties_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @return A list containing the witnessParties.
*/
public com.google.protobuf.ProtocolStringList
getWitnessPartiesList() {
return witnessParties_.getUnmodifiableView();
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @return The count of witnessParties.
*/
public int getWitnessPartiesCount() {
return witnessParties_.size();
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @param index The index of the element to return.
* @return The witnessParties at the given index.
*/
public java.lang.String getWitnessParties(int index) {
return witnessParties_.get(index);
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @param index The index of the value to return.
* @return The bytes of the witnessParties at the given index.
*/
public com.google.protobuf.ByteString
getWitnessPartiesBytes(int index) {
return witnessParties_.getByteString(index);
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @param index The index to set the value at.
* @param value The witnessParties to set.
* @return This builder for chaining.
*/
public Builder setWitnessParties(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWitnessPartiesIsMutable();
witnessParties_.set(index, value);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @param value The witnessParties to add.
* @return This builder for chaining.
*/
public Builder addWitnessParties(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWitnessPartiesIsMutable();
witnessParties_.add(value);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @param values The witnessParties to add.
* @return This builder for chaining.
*/
public Builder addAllWitnessParties(
java.lang.Iterable values) {
ensureWitnessPartiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, witnessParties_);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @return This builder for chaining.
*/
public Builder clearWitnessParties() {
witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. For an ``ArchivedEvent``,
* these are the intersection of the stakeholders of the contract in
* question and the parties specified in the ``TransactionFilter``. The
* stakeholders are the union of the signatories and the observers of
* the contract.
* Each one of its elements must be a valid PartyIdString (as described
* in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 4;
* @param value The bytes of the witnessParties to add.
* @return This builder for chaining.
*/
public Builder addWitnessPartiesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureWitnessPartiesIsMutable();
witnessParties_.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.ArchivedEvent)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.ArchivedEvent)
private static final com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent();
}
public static com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ArchivedEvent 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.EventOuterClass.ArchivedEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExercisedEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.ExercisedEvent)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The eventId.
*/
java.lang.String getEventId();
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The bytes for eventId.
*/
com.google.protobuf.ByteString
getEventIdBytes();
/**
*
* The ID of the target contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The contractId.
*/
java.lang.String getContractId();
/**
*
* The ID of the target contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The bytes for contractId.
*/
com.google.protobuf.ByteString
getContractIdBytes();
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return Whether the templateId field is set.
*/
boolean hasTemplateId();
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return The templateId.
*/
com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId();
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder();
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
* @return Whether the interfaceId field is set.
*/
boolean hasInterfaceId();
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
* @return The interfaceId.
*/
com.daml.ledger.api.v1.ValueOuterClass.Identifier getInterfaceId();
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
*/
com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder();
/**
*
* The choice that was exercised on the target contract.
* Must be a valid NameString (as described in ``value.proto``).
* Required
*
*
* string choice = 5;
* @return The choice.
*/
java.lang.String getChoice();
/**
*
* The choice that was exercised on the target contract.
* Must be a valid NameString (as described in ``value.proto``).
* Required
*
*
* string choice = 5;
* @return The bytes for choice.
*/
com.google.protobuf.ByteString
getChoiceBytes();
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
* @return Whether the choiceArgument field is set.
*/
boolean hasChoiceArgument();
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
* @return The choiceArgument.
*/
com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument();
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
*/
com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder();
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @return A list containing the actingParties.
*/
java.util.List
getActingPartiesList();
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @return The count of actingParties.
*/
int getActingPartiesCount();
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @param index The index of the element to return.
* @return The actingParties at the given index.
*/
java.lang.String getActingParties(int index);
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @param index The index of the value to return.
* @return The bytes of the actingParties at the given index.
*/
com.google.protobuf.ByteString
getActingPartiesBytes(int index);
/**
*
* If true, the target contract may no longer be exercised.
* Required
*
*
* bool consuming = 8;
* @return The consuming.
*/
boolean getConsuming();
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @return A list containing the witnessParties.
*/
java.util.List
getWitnessPartiesList();
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @return The count of witnessParties.
*/
int getWitnessPartiesCount();
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @param index The index of the element to return.
* @return The witnessParties at the given index.
*/
java.lang.String getWitnessParties(int index);
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @param index The index of the value to return.
* @return The bytes of the witnessParties at the given index.
*/
com.google.protobuf.ByteString
getWitnessPartiesBytes(int index);
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @return A list containing the childEventIds.
*/
java.util.List
getChildEventIdsList();
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @return The count of childEventIds.
*/
int getChildEventIdsCount();
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @param index The index of the element to return.
* @return The childEventIds at the given index.
*/
java.lang.String getChildEventIds(int index);
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @param index The index of the value to return.
* @return The bytes of the childEventIds at the given index.
*/
com.google.protobuf.ByteString
getChildEventIdsBytes(int index);
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
* @return Whether the exerciseResult field is set.
*/
boolean hasExerciseResult();
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
* @return The exerciseResult.
*/
com.daml.ledger.api.v1.ValueOuterClass.Value getExerciseResult();
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
*/
com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getExerciseResultOrBuilder();
}
/**
*
* Records that a choice has been exercised on a target contract.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.ExercisedEvent}
*/
public static final class ExercisedEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.ExercisedEvent)
ExercisedEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExercisedEvent.newBuilder() to construct.
private ExercisedEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExercisedEvent() {
eventId_ = "";
contractId_ = "";
choice_ = "";
actingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
childEventIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExercisedEvent();
}
@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.EventOuterClass.internal_static_com_daml_ledger_api_v1_ExercisedEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_ExercisedEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.class, com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.Builder.class);
}
public static final int EVENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object eventId_;
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The eventId.
*/
@java.lang.Override
public java.lang.String getEventId() {
java.lang.Object ref = eventId_;
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();
eventId_ = s;
return s;
}
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The bytes for eventId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEventIdBytes() {
java.lang.Object ref = eventId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTRACT_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object contractId_;
/**
*
* The ID of the target contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The contractId.
*/
@java.lang.Override
public java.lang.String getContractId() {
java.lang.Object ref = contractId_;
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();
contractId_ = s;
return s;
}
}
/**
*
* The ID of the target contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The bytes for contractId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContractIdBytes() {
java.lang.Object ref = contractId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contractId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEMPLATE_ID_FIELD_NUMBER = 3;
private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_;
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return Whether the templateId field is set.
*/
@java.lang.Override
public boolean hasTemplateId() {
return templateId_ != null;
}
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return The templateId.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() {
return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
return getTemplateId();
}
public static final int INTERFACE_ID_FIELD_NUMBER = 13;
private com.daml.ledger.api.v1.ValueOuterClass.Identifier interfaceId_;
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
* @return Whether the interfaceId field is set.
*/
@java.lang.Override
public boolean hasInterfaceId() {
return interfaceId_ != null;
}
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
* @return The interfaceId.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getInterfaceId() {
return interfaceId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_;
}
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder() {
return getInterfaceId();
}
public static final int CHOICE_FIELD_NUMBER = 5;
private volatile java.lang.Object choice_;
/**
*
* The choice that was exercised on the target contract.
* Must be a valid NameString (as described in ``value.proto``).
* Required
*
*
* string choice = 5;
* @return The choice.
*/
@java.lang.Override
public java.lang.String getChoice() {
java.lang.Object ref = choice_;
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();
choice_ = s;
return s;
}
}
/**
*
* The choice that was exercised on the target contract.
* Must be a valid NameString (as described in ``value.proto``).
* Required
*
*
* string choice = 5;
* @return The bytes for choice.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChoiceBytes() {
java.lang.Object ref = choice_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
choice_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHOICE_ARGUMENT_FIELD_NUMBER = 6;
private com.daml.ledger.api.v1.ValueOuterClass.Value choiceArgument_;
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
* @return Whether the choiceArgument field is set.
*/
@java.lang.Override
public boolean hasChoiceArgument() {
return choiceArgument_ != null;
}
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
* @return The choiceArgument.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument() {
return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_;
}
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder() {
return getChoiceArgument();
}
public static final int ACTING_PARTIES_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList actingParties_;
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @return A list containing the actingParties.
*/
public com.google.protobuf.ProtocolStringList
getActingPartiesList() {
return actingParties_;
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @return The count of actingParties.
*/
public int getActingPartiesCount() {
return actingParties_.size();
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @param index The index of the element to return.
* @return The actingParties at the given index.
*/
public java.lang.String getActingParties(int index) {
return actingParties_.get(index);
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @param index The index of the value to return.
* @return The bytes of the actingParties at the given index.
*/
public com.google.protobuf.ByteString
getActingPartiesBytes(int index) {
return actingParties_.getByteString(index);
}
public static final int CONSUMING_FIELD_NUMBER = 8;
private boolean consuming_;
/**
*
* If true, the target contract may no longer be exercised.
* Required
*
*
* bool consuming = 8;
* @return The consuming.
*/
@java.lang.Override
public boolean getConsuming() {
return consuming_;
}
public static final int WITNESS_PARTIES_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList witnessParties_;
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @return A list containing the witnessParties.
*/
public com.google.protobuf.ProtocolStringList
getWitnessPartiesList() {
return witnessParties_;
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @return The count of witnessParties.
*/
public int getWitnessPartiesCount() {
return witnessParties_.size();
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @param index The index of the element to return.
* @return The witnessParties at the given index.
*/
public java.lang.String getWitnessParties(int index) {
return witnessParties_.get(index);
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @param index The index of the value to return.
* @return The bytes of the witnessParties at the given index.
*/
public com.google.protobuf.ByteString
getWitnessPartiesBytes(int index) {
return witnessParties_.getByteString(index);
}
public static final int CHILD_EVENT_IDS_FIELD_NUMBER = 11;
private com.google.protobuf.LazyStringList childEventIds_;
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @return A list containing the childEventIds.
*/
public com.google.protobuf.ProtocolStringList
getChildEventIdsList() {
return childEventIds_;
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @return The count of childEventIds.
*/
public int getChildEventIdsCount() {
return childEventIds_.size();
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @param index The index of the element to return.
* @return The childEventIds at the given index.
*/
public java.lang.String getChildEventIds(int index) {
return childEventIds_.get(index);
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @param index The index of the value to return.
* @return The bytes of the childEventIds at the given index.
*/
public com.google.protobuf.ByteString
getChildEventIdsBytes(int index) {
return childEventIds_.getByteString(index);
}
public static final int EXERCISE_RESULT_FIELD_NUMBER = 12;
private com.daml.ledger.api.v1.ValueOuterClass.Value exerciseResult_;
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
* @return Whether the exerciseResult field is set.
*/
@java.lang.Override
public boolean hasExerciseResult() {
return exerciseResult_ != null;
}
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
* @return The exerciseResult.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Value getExerciseResult() {
return exerciseResult_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : exerciseResult_;
}
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getExerciseResultOrBuilder() {
return getExerciseResult();
}
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(eventId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractId_);
}
if (templateId_ != null) {
output.writeMessage(3, getTemplateId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(choice_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, choice_);
}
if (choiceArgument_ != null) {
output.writeMessage(6, getChoiceArgument());
}
for (int i = 0; i < actingParties_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, actingParties_.getRaw(i));
}
if (consuming_ != false) {
output.writeBool(8, consuming_);
}
for (int i = 0; i < witnessParties_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, witnessParties_.getRaw(i));
}
for (int i = 0; i < childEventIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, childEventIds_.getRaw(i));
}
if (exerciseResult_ != null) {
output.writeMessage(12, getExerciseResult());
}
if (interfaceId_ != null) {
output.writeMessage(13, getInterfaceId());
}
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(eventId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractId_);
}
if (templateId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTemplateId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(choice_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, choice_);
}
if (choiceArgument_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getChoiceArgument());
}
{
int dataSize = 0;
for (int i = 0; i < actingParties_.size(); i++) {
dataSize += computeStringSizeNoTag(actingParties_.getRaw(i));
}
size += dataSize;
size += 1 * getActingPartiesList().size();
}
if (consuming_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, consuming_);
}
{
int dataSize = 0;
for (int i = 0; i < witnessParties_.size(); i++) {
dataSize += computeStringSizeNoTag(witnessParties_.getRaw(i));
}
size += dataSize;
size += 1 * getWitnessPartiesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < childEventIds_.size(); i++) {
dataSize += computeStringSizeNoTag(childEventIds_.getRaw(i));
}
size += dataSize;
size += 1 * getChildEventIdsList().size();
}
if (exerciseResult_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getExerciseResult());
}
if (interfaceId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getInterfaceId());
}
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.EventOuterClass.ExercisedEvent)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent other = (com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent) obj;
if (!getEventId()
.equals(other.getEventId())) return false;
if (!getContractId()
.equals(other.getContractId())) return false;
if (hasTemplateId() != other.hasTemplateId()) return false;
if (hasTemplateId()) {
if (!getTemplateId()
.equals(other.getTemplateId())) return false;
}
if (hasInterfaceId() != other.hasInterfaceId()) return false;
if (hasInterfaceId()) {
if (!getInterfaceId()
.equals(other.getInterfaceId())) return false;
}
if (!getChoice()
.equals(other.getChoice())) return false;
if (hasChoiceArgument() != other.hasChoiceArgument()) return false;
if (hasChoiceArgument()) {
if (!getChoiceArgument()
.equals(other.getChoiceArgument())) return false;
}
if (!getActingPartiesList()
.equals(other.getActingPartiesList())) return false;
if (getConsuming()
!= other.getConsuming()) return false;
if (!getWitnessPartiesList()
.equals(other.getWitnessPartiesList())) return false;
if (!getChildEventIdsList()
.equals(other.getChildEventIdsList())) return false;
if (hasExerciseResult() != other.hasExerciseResult()) return false;
if (hasExerciseResult()) {
if (!getExerciseResult()
.equals(other.getExerciseResult())) 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) + EVENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getEventId().hashCode();
hash = (37 * hash) + CONTRACT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContractId().hashCode();
if (hasTemplateId()) {
hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTemplateId().hashCode();
}
if (hasInterfaceId()) {
hash = (37 * hash) + INTERFACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInterfaceId().hashCode();
}
hash = (37 * hash) + CHOICE_FIELD_NUMBER;
hash = (53 * hash) + getChoice().hashCode();
if (hasChoiceArgument()) {
hash = (37 * hash) + CHOICE_ARGUMENT_FIELD_NUMBER;
hash = (53 * hash) + getChoiceArgument().hashCode();
}
if (getActingPartiesCount() > 0) {
hash = (37 * hash) + ACTING_PARTIES_FIELD_NUMBER;
hash = (53 * hash) + getActingPartiesList().hashCode();
}
hash = (37 * hash) + CONSUMING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getConsuming());
if (getWitnessPartiesCount() > 0) {
hash = (37 * hash) + WITNESS_PARTIES_FIELD_NUMBER;
hash = (53 * hash) + getWitnessPartiesList().hashCode();
}
if (getChildEventIdsCount() > 0) {
hash = (37 * hash) + CHILD_EVENT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getChildEventIdsList().hashCode();
}
if (hasExerciseResult()) {
hash = (37 * hash) + EXERCISE_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getExerciseResult().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent 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.EventOuterClass.ExercisedEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent 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.EventOuterClass.ExercisedEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent 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.EventOuterClass.ExercisedEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent 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.EventOuterClass.ExercisedEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent 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.EventOuterClass.ExercisedEvent 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.EventOuterClass.ExercisedEvent 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.EventOuterClass.ExercisedEvent 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;
}
/**
*
* Records that a choice has been exercised on a target contract.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.ExercisedEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.ExercisedEvent)
com.daml.ledger.api.v1.EventOuterClass.ExercisedEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_ExercisedEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_ExercisedEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.class, com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.Builder.class);
}
// Construct using com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
eventId_ = "";
contractId_ = "";
if (templateIdBuilder_ == null) {
templateId_ = null;
} else {
templateId_ = null;
templateIdBuilder_ = null;
}
if (interfaceIdBuilder_ == null) {
interfaceId_ = null;
} else {
interfaceId_ = null;
interfaceIdBuilder_ = null;
}
choice_ = "";
if (choiceArgumentBuilder_ == null) {
choiceArgument_ = null;
} else {
choiceArgument_ = null;
choiceArgumentBuilder_ = null;
}
actingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
consuming_ = false;
witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
childEventIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
if (exerciseResultBuilder_ == null) {
exerciseResult_ = null;
} else {
exerciseResult_ = null;
exerciseResultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.EventOuterClass.internal_static_com_daml_ledger_api_v1_ExercisedEvent_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent getDefaultInstanceForType() {
return com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent build() {
com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent buildPartial() {
com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent result = new com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent(this);
int from_bitField0_ = bitField0_;
result.eventId_ = eventId_;
result.contractId_ = contractId_;
if (templateIdBuilder_ == null) {
result.templateId_ = templateId_;
} else {
result.templateId_ = templateIdBuilder_.build();
}
if (interfaceIdBuilder_ == null) {
result.interfaceId_ = interfaceId_;
} else {
result.interfaceId_ = interfaceIdBuilder_.build();
}
result.choice_ = choice_;
if (choiceArgumentBuilder_ == null) {
result.choiceArgument_ = choiceArgument_;
} else {
result.choiceArgument_ = choiceArgumentBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
actingParties_ = actingParties_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.actingParties_ = actingParties_;
result.consuming_ = consuming_;
if (((bitField0_ & 0x00000002) != 0)) {
witnessParties_ = witnessParties_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.witnessParties_ = witnessParties_;
if (((bitField0_ & 0x00000004) != 0)) {
childEventIds_ = childEventIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.childEventIds_ = childEventIds_;
if (exerciseResultBuilder_ == null) {
result.exerciseResult_ = exerciseResult_;
} else {
result.exerciseResult_ = exerciseResultBuilder_.build();
}
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.EventOuterClass.ExercisedEvent) {
return mergeFrom((com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent other) {
if (other == com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent.getDefaultInstance()) return this;
if (!other.getEventId().isEmpty()) {
eventId_ = other.eventId_;
onChanged();
}
if (!other.getContractId().isEmpty()) {
contractId_ = other.contractId_;
onChanged();
}
if (other.hasTemplateId()) {
mergeTemplateId(other.getTemplateId());
}
if (other.hasInterfaceId()) {
mergeInterfaceId(other.getInterfaceId());
}
if (!other.getChoice().isEmpty()) {
choice_ = other.choice_;
onChanged();
}
if (other.hasChoiceArgument()) {
mergeChoiceArgument(other.getChoiceArgument());
}
if (!other.actingParties_.isEmpty()) {
if (actingParties_.isEmpty()) {
actingParties_ = other.actingParties_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureActingPartiesIsMutable();
actingParties_.addAll(other.actingParties_);
}
onChanged();
}
if (other.getConsuming() != false) {
setConsuming(other.getConsuming());
}
if (!other.witnessParties_.isEmpty()) {
if (witnessParties_.isEmpty()) {
witnessParties_ = other.witnessParties_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureWitnessPartiesIsMutable();
witnessParties_.addAll(other.witnessParties_);
}
onChanged();
}
if (!other.childEventIds_.isEmpty()) {
if (childEventIds_.isEmpty()) {
childEventIds_ = other.childEventIds_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureChildEventIdsIsMutable();
childEventIds_.addAll(other.childEventIds_);
}
onChanged();
}
if (other.hasExerciseResult()) {
mergeExerciseResult(other.getExerciseResult());
}
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: {
eventId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
contractId_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
input.readMessage(
getTemplateIdFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
case 42: {
choice_ = input.readStringRequireUtf8();
break;
} // case 42
case 50: {
input.readMessage(
getChoiceArgumentFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 50
case 58: {
java.lang.String s = input.readStringRequireUtf8();
ensureActingPartiesIsMutable();
actingParties_.add(s);
break;
} // case 58
case 64: {
consuming_ = input.readBool();
break;
} // case 64
case 82: {
java.lang.String s = input.readStringRequireUtf8();
ensureWitnessPartiesIsMutable();
witnessParties_.add(s);
break;
} // case 82
case 90: {
java.lang.String s = input.readStringRequireUtf8();
ensureChildEventIdsIsMutable();
childEventIds_.add(s);
break;
} // case 90
case 98: {
input.readMessage(
getExerciseResultFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 98
case 106: {
input.readMessage(
getInterfaceIdFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 106
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 eventId_ = "";
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The eventId.
*/
public java.lang.String getEventId() {
java.lang.Object ref = eventId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return The bytes for eventId.
*/
public com.google.protobuf.ByteString
getEventIdBytes() {
java.lang.Object ref = eventId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @param value The eventId to set.
* @return This builder for chaining.
*/
public Builder setEventId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
eventId_ = value;
onChanged();
return this;
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @return This builder for chaining.
*/
public Builder clearEventId() {
eventId_ = getDefaultInstance().getEventId();
onChanged();
return this;
}
/**
*
* The ID of this particular event.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string event_id = 1;
* @param value The bytes for eventId to set.
* @return This builder for chaining.
*/
public Builder setEventIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
eventId_ = value;
onChanged();
return this;
}
private java.lang.Object contractId_ = "";
/**
*
* The ID of the target contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The contractId.
*/
public java.lang.String getContractId() {
java.lang.Object ref = contractId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contractId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the target contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return The bytes for contractId.
*/
public com.google.protobuf.ByteString
getContractIdBytes() {
java.lang.Object ref = contractId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contractId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the target contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @param value The contractId to set.
* @return This builder for chaining.
*/
public Builder setContractId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
contractId_ = value;
onChanged();
return this;
}
/**
*
* The ID of the target contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @return This builder for chaining.
*/
public Builder clearContractId() {
contractId_ = getDefaultInstance().getContractId();
onChanged();
return this;
}
/**
*
* The ID of the target contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2;
* @param value The bytes for contractId to set.
* @return This builder for chaining.
*/
public Builder setContractIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contractId_ = value;
onChanged();
return this;
}
private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> templateIdBuilder_;
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return Whether the templateId field is set.
*/
public boolean hasTemplateId() {
return templateIdBuilder_ != null || templateId_ != null;
}
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
* @return The templateId.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() {
if (templateIdBuilder_ == null) {
return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
} else {
return templateIdBuilder_.getMessage();
}
}
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder setTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (templateIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
templateId_ = value;
onChanged();
} else {
templateIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder setTemplateId(
com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) {
if (templateIdBuilder_ == null) {
templateId_ = builderForValue.build();
onChanged();
} else {
templateIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder mergeTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (templateIdBuilder_ == null) {
if (templateId_ != null) {
templateId_ =
com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(templateId_).mergeFrom(value).buildPartial();
} else {
templateId_ = value;
}
onChanged();
} else {
templateIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public Builder clearTemplateId() {
if (templateIdBuilder_ == null) {
templateId_ = null;
onChanged();
} else {
templateId_ = null;
templateIdBuilder_ = null;
}
return this;
}
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() {
onChanged();
return getTemplateIdFieldBuilder().getBuilder();
}
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
if (templateIdBuilder_ != null) {
return templateIdBuilder_.getMessageOrBuilder();
} else {
return templateId_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
}
/**
*
* The template of the target contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>
getTemplateIdFieldBuilder() {
if (templateIdBuilder_ == null) {
templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>(
getTemplateId(),
getParentForChildren(),
isClean());
templateId_ = null;
}
return templateIdBuilder_;
}
private com.daml.ledger.api.v1.ValueOuterClass.Identifier interfaceId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> interfaceIdBuilder_;
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
* @return Whether the interfaceId field is set.
*/
public boolean hasInterfaceId() {
return interfaceIdBuilder_ != null || interfaceId_ != null;
}
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
* @return The interfaceId.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getInterfaceId() {
if (interfaceIdBuilder_ == null) {
return interfaceId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_;
} else {
return interfaceIdBuilder_.getMessage();
}
}
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
*/
public Builder setInterfaceId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (interfaceIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
interfaceId_ = value;
onChanged();
} else {
interfaceIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
*/
public Builder setInterfaceId(
com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) {
if (interfaceIdBuilder_ == null) {
interfaceId_ = builderForValue.build();
onChanged();
} else {
interfaceIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
*/
public Builder mergeInterfaceId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (interfaceIdBuilder_ == null) {
if (interfaceId_ != null) {
interfaceId_ =
com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(interfaceId_).mergeFrom(value).buildPartial();
} else {
interfaceId_ = value;
}
onChanged();
} else {
interfaceIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
*/
public Builder clearInterfaceId() {
if (interfaceIdBuilder_ == null) {
interfaceId_ = null;
onChanged();
} else {
interfaceId_ = null;
interfaceIdBuilder_ = null;
}
return this;
}
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getInterfaceIdBuilder() {
onChanged();
return getInterfaceIdFieldBuilder().getBuilder();
}
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
*/
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder() {
if (interfaceIdBuilder_ != null) {
return interfaceIdBuilder_.getMessageOrBuilder();
} else {
return interfaceId_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_;
}
}
/**
*
* The interface where the choice is defined, if inherited.
* Optional
*
*
* .com.daml.ledger.api.v1.Identifier interface_id = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>
getInterfaceIdFieldBuilder() {
if (interfaceIdBuilder_ == null) {
interfaceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>(
getInterfaceId(),
getParentForChildren(),
isClean());
interfaceId_ = null;
}
return interfaceIdBuilder_;
}
private java.lang.Object choice_ = "";
/**
*
* The choice that was exercised on the target contract.
* Must be a valid NameString (as described in ``value.proto``).
* Required
*
*
* string choice = 5;
* @return The choice.
*/
public java.lang.String getChoice() {
java.lang.Object ref = choice_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
choice_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The choice that was exercised on the target contract.
* Must be a valid NameString (as described in ``value.proto``).
* Required
*
*
* string choice = 5;
* @return The bytes for choice.
*/
public com.google.protobuf.ByteString
getChoiceBytes() {
java.lang.Object ref = choice_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
choice_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The choice that was exercised on the target contract.
* Must be a valid NameString (as described in ``value.proto``).
* Required
*
*
* string choice = 5;
* @param value The choice to set.
* @return This builder for chaining.
*/
public Builder setChoice(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
choice_ = value;
onChanged();
return this;
}
/**
*
* The choice that was exercised on the target contract.
* Must be a valid NameString (as described in ``value.proto``).
* Required
*
*
* string choice = 5;
* @return This builder for chaining.
*/
public Builder clearChoice() {
choice_ = getDefaultInstance().getChoice();
onChanged();
return this;
}
/**
*
* The choice that was exercised on the target contract.
* Must be a valid NameString (as described in ``value.proto``).
* Required
*
*
* string choice = 5;
* @param value The bytes for choice to set.
* @return This builder for chaining.
*/
public Builder setChoiceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
choice_ = value;
onChanged();
return this;
}
private com.daml.ledger.api.v1.ValueOuterClass.Value choiceArgument_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> choiceArgumentBuilder_;
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
* @return Whether the choiceArgument field is set.
*/
public boolean hasChoiceArgument() {
return choiceArgumentBuilder_ != null || choiceArgument_ != null;
}
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
* @return The choiceArgument.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Value getChoiceArgument() {
if (choiceArgumentBuilder_ == null) {
return choiceArgument_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_;
} else {
return choiceArgumentBuilder_.getMessage();
}
}
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
*/
public Builder setChoiceArgument(com.daml.ledger.api.v1.ValueOuterClass.Value value) {
if (choiceArgumentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
choiceArgument_ = value;
onChanged();
} else {
choiceArgumentBuilder_.setMessage(value);
}
return this;
}
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
*/
public Builder setChoiceArgument(
com.daml.ledger.api.v1.ValueOuterClass.Value.Builder builderForValue) {
if (choiceArgumentBuilder_ == null) {
choiceArgument_ = builderForValue.build();
onChanged();
} else {
choiceArgumentBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
*/
public Builder mergeChoiceArgument(com.daml.ledger.api.v1.ValueOuterClass.Value value) {
if (choiceArgumentBuilder_ == null) {
if (choiceArgument_ != null) {
choiceArgument_ =
com.daml.ledger.api.v1.ValueOuterClass.Value.newBuilder(choiceArgument_).mergeFrom(value).buildPartial();
} else {
choiceArgument_ = value;
}
onChanged();
} else {
choiceArgumentBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
*/
public Builder clearChoiceArgument() {
if (choiceArgumentBuilder_ == null) {
choiceArgument_ = null;
onChanged();
} else {
choiceArgument_ = null;
choiceArgumentBuilder_ = null;
}
return this;
}
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
*/
public com.daml.ledger.api.v1.ValueOuterClass.Value.Builder getChoiceArgumentBuilder() {
onChanged();
return getChoiceArgumentFieldBuilder().getBuilder();
}
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
*/
public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder() {
if (choiceArgumentBuilder_ != null) {
return choiceArgumentBuilder_.getMessageOrBuilder();
} else {
return choiceArgument_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : choiceArgument_;
}
}
/**
*
* The argument of the exercised choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value choice_argument = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>
getChoiceArgumentFieldBuilder() {
if (choiceArgumentBuilder_ == null) {
choiceArgumentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>(
getChoiceArgument(),
getParentForChildren(),
isClean());
choiceArgument_ = null;
}
return choiceArgumentBuilder_;
}
private com.google.protobuf.LazyStringList actingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureActingPartiesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
actingParties_ = new com.google.protobuf.LazyStringArrayList(actingParties_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @return A list containing the actingParties.
*/
public com.google.protobuf.ProtocolStringList
getActingPartiesList() {
return actingParties_.getUnmodifiableView();
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @return The count of actingParties.
*/
public int getActingPartiesCount() {
return actingParties_.size();
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @param index The index of the element to return.
* @return The actingParties at the given index.
*/
public java.lang.String getActingParties(int index) {
return actingParties_.get(index);
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @param index The index of the value to return.
* @return The bytes of the actingParties at the given index.
*/
public com.google.protobuf.ByteString
getActingPartiesBytes(int index) {
return actingParties_.getByteString(index);
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @param index The index to set the value at.
* @param value The actingParties to set.
* @return This builder for chaining.
*/
public Builder setActingParties(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureActingPartiesIsMutable();
actingParties_.set(index, value);
onChanged();
return this;
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @param value The actingParties to add.
* @return This builder for chaining.
*/
public Builder addActingParties(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureActingPartiesIsMutable();
actingParties_.add(value);
onChanged();
return this;
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @param values The actingParties to add.
* @return This builder for chaining.
*/
public Builder addAllActingParties(
java.lang.Iterable values) {
ensureActingPartiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, actingParties_);
onChanged();
return this;
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @return This builder for chaining.
*/
public Builder clearActingParties() {
actingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The parties that exercised the choice.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string acting_parties = 7;
* @param value The bytes of the actingParties to add.
* @return This builder for chaining.
*/
public Builder addActingPartiesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureActingPartiesIsMutable();
actingParties_.add(value);
onChanged();
return this;
}
private boolean consuming_ ;
/**
*
* If true, the target contract may no longer be exercised.
* Required
*
*
* bool consuming = 8;
* @return The consuming.
*/
@java.lang.Override
public boolean getConsuming() {
return consuming_;
}
/**
*
* If true, the target contract may no longer be exercised.
* Required
*
*
* bool consuming = 8;
* @param value The consuming to set.
* @return This builder for chaining.
*/
public Builder setConsuming(boolean value) {
consuming_ = value;
onChanged();
return this;
}
/**
*
* If true, the target contract may no longer be exercised.
* Required
*
*
* bool consuming = 8;
* @return This builder for chaining.
*/
public Builder clearConsuming() {
consuming_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureWitnessPartiesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
witnessParties_ = new com.google.protobuf.LazyStringArrayList(witnessParties_);
bitField0_ |= 0x00000002;
}
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @return A list containing the witnessParties.
*/
public com.google.protobuf.ProtocolStringList
getWitnessPartiesList() {
return witnessParties_.getUnmodifiableView();
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @return The count of witnessParties.
*/
public int getWitnessPartiesCount() {
return witnessParties_.size();
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @param index The index of the element to return.
* @return The witnessParties at the given index.
*/
public java.lang.String getWitnessParties(int index) {
return witnessParties_.get(index);
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @param index The index of the value to return.
* @return The bytes of the witnessParties at the given index.
*/
public com.google.protobuf.ByteString
getWitnessPartiesBytes(int index) {
return witnessParties_.getByteString(index);
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @param index The index to set the value at.
* @param value The witnessParties to set.
* @return This builder for chaining.
*/
public Builder setWitnessParties(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWitnessPartiesIsMutable();
witnessParties_.set(index, value);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @param value The witnessParties to add.
* @return This builder for chaining.
*/
public Builder addWitnessParties(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureWitnessPartiesIsMutable();
witnessParties_.add(value);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @param values The witnessParties to add.
* @return This builder for chaining.
*/
public Builder addAllWitnessParties(
java.lang.Iterable values) {
ensureWitnessPartiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, witnessParties_);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @return This builder for chaining.
*/
public Builder clearWitnessParties() {
witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The parties that are notified of this event. The witnesses of an exercise
* node will depend on whether the exercise was consuming or not.
* If consuming, the witnesses are the union of the stakeholders and
* the actors.
* If not consuming, the witnesses are the union of the signatories and
* the actors. Note that the actors might not necessarily be observers
* and thus signatories. This is the case when the controllers of a
* choice are specified using "flexible controllers", using the
* ``choice ... controller`` syntax, and said controllers are not
* explicitly marked as observers.
* Each element must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string witness_parties = 10;
* @param value The bytes of the witnessParties to add.
* @return This builder for chaining.
*/
public Builder addWitnessPartiesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureWitnessPartiesIsMutable();
witnessParties_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList childEventIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureChildEventIdsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
childEventIds_ = new com.google.protobuf.LazyStringArrayList(childEventIds_);
bitField0_ |= 0x00000004;
}
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @return A list containing the childEventIds.
*/
public com.google.protobuf.ProtocolStringList
getChildEventIdsList() {
return childEventIds_.getUnmodifiableView();
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @return The count of childEventIds.
*/
public int getChildEventIdsCount() {
return childEventIds_.size();
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @param index The index of the element to return.
* @return The childEventIds at the given index.
*/
public java.lang.String getChildEventIds(int index) {
return childEventIds_.get(index);
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @param index The index of the value to return.
* @return The bytes of the childEventIds at the given index.
*/
public com.google.protobuf.ByteString
getChildEventIdsBytes(int index) {
return childEventIds_.getByteString(index);
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @param index The index to set the value at.
* @param value The childEventIds to set.
* @return This builder for chaining.
*/
public Builder setChildEventIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureChildEventIdsIsMutable();
childEventIds_.set(index, value);
onChanged();
return this;
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @param value The childEventIds to add.
* @return This builder for chaining.
*/
public Builder addChildEventIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureChildEventIdsIsMutable();
childEventIds_.add(value);
onChanged();
return this;
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @param values The childEventIds to add.
* @return This builder for chaining.
*/
public Builder addAllChildEventIds(
java.lang.Iterable values) {
ensureChildEventIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, childEventIds_);
onChanged();
return this;
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @return This builder for chaining.
*/
public Builder clearChildEventIds() {
childEventIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* References to further events in the same transaction that appeared as a result of this ``ExercisedEvent``.
* It contains only the immediate children of this event, not all members of the subtree rooted at this node.
* The order of the children is the same as the event order in the transaction.
* Each element must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* repeated string child_event_ids = 11;
* @param value The bytes of the childEventIds to add.
* @return This builder for chaining.
*/
public Builder addChildEventIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureChildEventIdsIsMutable();
childEventIds_.add(value);
onChanged();
return this;
}
private com.daml.ledger.api.v1.ValueOuterClass.Value exerciseResult_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> exerciseResultBuilder_;
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
* @return Whether the exerciseResult field is set.
*/
public boolean hasExerciseResult() {
return exerciseResultBuilder_ != null || exerciseResult_ != null;
}
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
* @return The exerciseResult.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Value getExerciseResult() {
if (exerciseResultBuilder_ == null) {
return exerciseResult_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : exerciseResult_;
} else {
return exerciseResultBuilder_.getMessage();
}
}
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
*/
public Builder setExerciseResult(com.daml.ledger.api.v1.ValueOuterClass.Value value) {
if (exerciseResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exerciseResult_ = value;
onChanged();
} else {
exerciseResultBuilder_.setMessage(value);
}
return this;
}
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
*/
public Builder setExerciseResult(
com.daml.ledger.api.v1.ValueOuterClass.Value.Builder builderForValue) {
if (exerciseResultBuilder_ == null) {
exerciseResult_ = builderForValue.build();
onChanged();
} else {
exerciseResultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
*/
public Builder mergeExerciseResult(com.daml.ledger.api.v1.ValueOuterClass.Value value) {
if (exerciseResultBuilder_ == null) {
if (exerciseResult_ != null) {
exerciseResult_ =
com.daml.ledger.api.v1.ValueOuterClass.Value.newBuilder(exerciseResult_).mergeFrom(value).buildPartial();
} else {
exerciseResult_ = value;
}
onChanged();
} else {
exerciseResultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
*/
public Builder clearExerciseResult() {
if (exerciseResultBuilder_ == null) {
exerciseResult_ = null;
onChanged();
} else {
exerciseResult_ = null;
exerciseResultBuilder_ = null;
}
return this;
}
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
*/
public com.daml.ledger.api.v1.ValueOuterClass.Value.Builder getExerciseResultBuilder() {
onChanged();
return getExerciseResultFieldBuilder().getBuilder();
}
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
*/
public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getExerciseResultOrBuilder() {
if (exerciseResultBuilder_ != null) {
return exerciseResultBuilder_.getMessageOrBuilder();
} else {
return exerciseResult_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : exerciseResult_;
}
}
/**
*
* The result of exercising the choice.
* Required
*
*
* .com.daml.ledger.api.v1.Value exercise_result = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>
getExerciseResultFieldBuilder() {
if (exerciseResultBuilder_ == null) {
exerciseResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>(
getExerciseResult(),
getParentForChildren(),
isClean());
exerciseResult_ = null;
}
return exerciseResultBuilder_;
}
@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.ExercisedEvent)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.ExercisedEvent)
private static final com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent();
}
public static com.daml.ledger.api.v1.EventOuterClass.ExercisedEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExercisedEvent 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.EventOuterClass.ExercisedEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_Event_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_Event_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_CreatedEvent_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_CreatedEvent_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_InterfaceView_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_InterfaceView_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_ArchivedEvent_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_ArchivedEvent_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_ExercisedEvent_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_ExercisedEvent_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/event.proto\022\026co" +
"m.daml.ledger.api.v1\032.com/daml/ledger/ap" +
"i/v1/contract_metadata.proto\032\"com/daml/l" +
"edger/api/v1/value.proto\032\036google/protobu" +
"f/wrappers.proto\032\031google/protobuf/any.pr" +
"oto\032\027google/rpc/status.proto\"\225\001\n\005Event\0227" +
"\n\007created\030\001 \001(\0132$.com.daml.ledger.api.v1" +
".CreatedEventH\000\0229\n\010archived\030\003 \001(\0132%.com." +
"daml.ledger.api.v1.ArchivedEventH\000B\007\n\005ev" +
"entJ\004\010\002\020\003R\texercised\"\205\004\n\014CreatedEvent\022\020\n" +
"\010event_id\030\001 \001(\t\022\023\n\013contract_id\030\002 \001(\t\0227\n\013" +
"template_id\030\003 \001(\0132\".com.daml.ledger.api." +
"v1.Identifier\0223\n\014contract_key\030\007 \001(\0132\035.co" +
"m.daml.ledger.api.v1.Value\0228\n\020create_arg" +
"uments\030\004 \001(\0132\036.com.daml.ledger.api.v1.Re" +
"cord\0223\n\025create_arguments_blob\030\014 \001(\0132\024.go" +
"ogle.protobuf.Any\022>\n\017interface_views\030\013 \003" +
"(\0132%.com.daml.ledger.api.v1.InterfaceVie" +
"w\022\027\n\017witness_parties\030\005 \003(\t\022\023\n\013signatorie" +
"s\030\010 \003(\t\022\021\n\tobservers\030\t \003(\t\0224\n\016agreement_" +
"text\030\006 \001(\0132\034.google.protobuf.StringValue" +
"\022:\n\010metadata\030\n \001(\0132(.com.daml.ledger.api" +
".v1.ContractMetadata\"\246\001\n\rInterfaceView\0228" +
"\n\014interface_id\030\001 \001(\0132\".com.daml.ledger.a" +
"pi.v1.Identifier\022\'\n\013view_status\030\002 \001(\0132\022." +
"google.rpc.Status\0222\n\nview_value\030\003 \001(\0132\036." +
"com.daml.ledger.api.v1.Record\"\210\001\n\rArchiv" +
"edEvent\022\020\n\010event_id\030\001 \001(\t\022\023\n\013contract_id" +
"\030\002 \001(\t\0227\n\013template_id\030\003 \001(\0132\".com.daml.l" +
"edger.api.v1.Identifier\022\027\n\017witness_parti" +
"es\030\004 \003(\t\"\223\003\n\016ExercisedEvent\022\020\n\010event_id\030" +
"\001 \001(\t\022\023\n\013contract_id\030\002 \001(\t\0227\n\013template_i" +
"d\030\003 \001(\0132\".com.daml.ledger.api.v1.Identif" +
"ier\0228\n\014interface_id\030\r \001(\0132\".com.daml.led" +
"ger.api.v1.Identifier\022\016\n\006choice\030\005 \001(\t\0226\n" +
"\017choice_argument\030\006 \001(\0132\035.com.daml.ledger" +
".api.v1.Value\022\026\n\016acting_parties\030\007 \003(\t\022\021\n" +
"\tconsuming\030\010 \001(\010\022\027\n\017witness_parties\030\n \003(" +
"\t\022\027\n\017child_event_ids\030\013 \003(\t\0226\n\017exercise_r" +
"esult\030\014 \001(\0132\035.com.daml.ledger.api.v1.Val" +
"ueJ\004\010\004\020\005J\004\010\t\020\nBB\n\026com.daml.ledger.api.v1" +
"B\017EventOuterClass\252\002\026Com.Daml.Ledger.Api." +
"V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.daml.ledger.api.v1.ContractMetadataOuterClass.getDescriptor(),
com.daml.ledger.api.v1.ValueOuterClass.getDescriptor(),
com.google.protobuf.WrappersProto.getDescriptor(),
com.google.protobuf.AnyProto.getDescriptor(),
com.google.rpc.StatusProto.getDescriptor(),
});
internal_static_com_daml_ledger_api_v1_Event_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_daml_ledger_api_v1_Event_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_Event_descriptor,
new java.lang.String[] { "Created", "Archived", "Event", });
internal_static_com_daml_ledger_api_v1_CreatedEvent_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_daml_ledger_api_v1_CreatedEvent_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_CreatedEvent_descriptor,
new java.lang.String[] { "EventId", "ContractId", "TemplateId", "ContractKey", "CreateArguments", "CreateArgumentsBlob", "InterfaceViews", "WitnessParties", "Signatories", "Observers", "AgreementText", "Metadata", });
internal_static_com_daml_ledger_api_v1_InterfaceView_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_daml_ledger_api_v1_InterfaceView_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_InterfaceView_descriptor,
new java.lang.String[] { "InterfaceId", "ViewStatus", "ViewValue", });
internal_static_com_daml_ledger_api_v1_ArchivedEvent_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_daml_ledger_api_v1_ArchivedEvent_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_ArchivedEvent_descriptor,
new java.lang.String[] { "EventId", "ContractId", "TemplateId", "WitnessParties", });
internal_static_com_daml_ledger_api_v1_ExercisedEvent_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_com_daml_ledger_api_v1_ExercisedEvent_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_ExercisedEvent_descriptor,
new java.lang.String[] { "EventId", "ContractId", "TemplateId", "InterfaceId", "Choice", "ChoiceArgument", "ActingParties", "Consuming", "WitnessParties", "ChildEventIds", "ExerciseResult", });
com.daml.ledger.api.v1.ContractMetadataOuterClass.getDescriptor();
com.daml.ledger.api.v1.ValueOuterClass.getDescriptor();
com.google.protobuf.WrappersProto.getDescriptor();
com.google.protobuf.AnyProto.getDescriptor();
com.google.rpc.StatusProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy