
com.daml.ledger.api.v2.ReassignmentOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/daml/ledger/api/v2/reassignment.proto
package com.daml.ledger.api.v2;
public final class ReassignmentOuterClass {
private ReassignmentOuterClass() {}
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 ReassignmentOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v2.Reassignment)
com.google.protobuf.MessageOrBuilder {
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The updateId.
*/
java.lang.String getUpdateId();
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The bytes for updateId.
*/
com.google.protobuf.ByteString
getUpdateIdBytes();
/**
*
* The ID of the command which resulted in this reassignment. Missing for everyone except the submitting party on the submitting participant.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The commandId.
*/
java.lang.String getCommandId();
/**
*
* The ID of the command which resulted in this reassignment. Missing for everyone except the submitting party on the submitting participant.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The bytes for commandId.
*/
com.google.protobuf.ByteString
getCommandIdBytes();
/**
*
* The workflow ID used in reassignment command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The workflowId.
*/
java.lang.String getWorkflowId();
/**
*
* The workflow ID used in reassignment command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The bytes for workflowId.
*/
com.google.protobuf.ByteString
getWorkflowIdBytes();
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 4 [json_name = "offset"];
* @return The offset.
*/
java.lang.String getOffset();
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 4 [json_name = "offset"];
* @return The bytes for offset.
*/
com.google.protobuf.ByteString
getOffsetBytes();
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
* @return Whether the unassignedEvent field is set.
*/
boolean hasUnassignedEvent();
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
* @return The unassignedEvent.
*/
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent getUnassignedEvent();
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
*/
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEventOrBuilder getUnassignedEventOrBuilder();
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
* @return Whether the assignedEvent field is set.
*/
boolean hasAssignedEvent();
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
* @return The assignedEvent.
*/
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent getAssignedEvent();
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
*/
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEventOrBuilder getAssignedEventOrBuilder();
public com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment.EventCase getEventCase();
}
/**
*
* Complete view of an on-ledger reassignment.
*
*
* Protobuf type {@code com.daml.ledger.api.v2.Reassignment}
*/
public static final class Reassignment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.Reassignment)
ReassignmentOrBuilder {
private static final long serialVersionUID = 0L;
// Use Reassignment.newBuilder() to construct.
private Reassignment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Reassignment() {
updateId_ = "";
commandId_ = "";
workflowId_ = "";
offset_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Reassignment();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_Reassignment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_Reassignment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment.class, com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment.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 {
UNASSIGNED_EVENT(5),
ASSIGNED_EVENT(6),
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 5: return UNASSIGNED_EVENT;
case 6: return ASSIGNED_EVENT;
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 UPDATE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object updateId_;
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The updateId.
*/
@java.lang.Override
public java.lang.String getUpdateId() {
java.lang.Object ref = updateId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
updateId_ = s;
return s;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The bytes for updateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUpdateIdBytes() {
java.lang.Object ref = updateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
updateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMAND_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object commandId_;
/**
*
* The ID of the command which resulted in this reassignment. Missing for everyone except the submitting party on the submitting participant.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The commandId.
*/
@java.lang.Override
public java.lang.String getCommandId() {
java.lang.Object ref = commandId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
commandId_ = s;
return s;
}
}
/**
*
* The ID of the command which resulted in this reassignment. Missing for everyone except the submitting party on the submitting participant.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The bytes for commandId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCommandIdBytes() {
java.lang.Object ref = commandId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commandId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WORKFLOW_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object workflowId_;
/**
*
* The workflow ID used in reassignment command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The workflowId.
*/
@java.lang.Override
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workflowId_ = s;
return s;
}
}
/**
*
* The workflow ID used in reassignment command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The bytes for workflowId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OFFSET_FIELD_NUMBER = 4;
private volatile java.lang.Object offset_;
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 4 [json_name = "offset"];
* @return The offset.
*/
@java.lang.Override
public java.lang.String getOffset() {
java.lang.Object ref = offset_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offset_ = s;
return s;
}
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 4 [json_name = "offset"];
* @return The bytes for offset.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOffsetBytes() {
java.lang.Object ref = offset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNASSIGNED_EVENT_FIELD_NUMBER = 5;
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
* @return Whether the unassignedEvent field is set.
*/
@java.lang.Override
public boolean hasUnassignedEvent() {
return eventCase_ == 5;
}
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
* @return The unassignedEvent.
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent getUnassignedEvent() {
if (eventCase_ == 5) {
return (com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent) event_;
}
return com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.getDefaultInstance();
}
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEventOrBuilder getUnassignedEventOrBuilder() {
if (eventCase_ == 5) {
return (com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent) event_;
}
return com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.getDefaultInstance();
}
public static final int ASSIGNED_EVENT_FIELD_NUMBER = 6;
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
* @return Whether the assignedEvent field is set.
*/
@java.lang.Override
public boolean hasAssignedEvent() {
return eventCase_ == 6;
}
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
* @return The assignedEvent.
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent getAssignedEvent() {
if (eventCase_ == 6) {
return (com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent) event_;
}
return com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.getDefaultInstance();
}
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEventOrBuilder getAssignedEventOrBuilder() {
if (eventCase_ == 6) {
return (com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent) event_;
}
return com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updateId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, updateId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commandId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, offset_);
}
if (eventCase_ == 5) {
output.writeMessage(5, (com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent) event_);
}
if (eventCase_ == 6) {
output.writeMessage(6, (com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent) event_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updateId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, updateId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commandId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, offset_);
}
if (eventCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent) event_);
}
if (eventCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent) 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.v2.ReassignmentOuterClass.Reassignment)) {
return super.equals(obj);
}
com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment other = (com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment) obj;
if (!getUpdateId()
.equals(other.getUpdateId())) return false;
if (!getCommandId()
.equals(other.getCommandId())) return false;
if (!getWorkflowId()
.equals(other.getWorkflowId())) return false;
if (!getOffset()
.equals(other.getOffset())) return false;
if (!getEventCase().equals(other.getEventCase())) return false;
switch (eventCase_) {
case 5:
if (!getUnassignedEvent()
.equals(other.getUnassignedEvent())) return false;
break;
case 6:
if (!getAssignedEvent()
.equals(other.getAssignedEvent())) 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();
hash = (37 * hash) + UPDATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getUpdateId().hashCode();
hash = (37 * hash) + COMMAND_ID_FIELD_NUMBER;
hash = (53 * hash) + getCommandId().hashCode();
hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowId().hashCode();
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset().hashCode();
switch (eventCase_) {
case 5:
hash = (37 * hash) + UNASSIGNED_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getUnassignedEvent().hashCode();
break;
case 6:
hash = (37 * hash) + ASSIGNED_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getAssignedEvent().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Complete view of an on-ledger reassignment.
*
*
* Protobuf type {@code com.daml.ledger.api.v2.Reassignment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.Reassignment)
com.daml.ledger.api.v2.ReassignmentOuterClass.ReassignmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_Reassignment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_Reassignment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment.class, com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment.Builder.class);
}
// Construct using com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
updateId_ = "";
commandId_ = "";
workflowId_ = "";
offset_ = "";
if (unassignedEventBuilder_ != null) {
unassignedEventBuilder_.clear();
}
if (assignedEventBuilder_ != null) {
assignedEventBuilder_.clear();
}
eventCase_ = 0;
event_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_Reassignment_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment getDefaultInstanceForType() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment build() {
com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment buildPartial() {
com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment result = new com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment(this);
result.updateId_ = updateId_;
result.commandId_ = commandId_;
result.workflowId_ = workflowId_;
result.offset_ = offset_;
if (eventCase_ == 5) {
if (unassignedEventBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = unassignedEventBuilder_.build();
}
}
if (eventCase_ == 6) {
if (assignedEventBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = assignedEventBuilder_.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.v2.ReassignmentOuterClass.Reassignment) {
return mergeFrom((com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment other) {
if (other == com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment.getDefaultInstance()) return this;
if (!other.getUpdateId().isEmpty()) {
updateId_ = other.updateId_;
onChanged();
}
if (!other.getCommandId().isEmpty()) {
commandId_ = other.commandId_;
onChanged();
}
if (!other.getWorkflowId().isEmpty()) {
workflowId_ = other.workflowId_;
onChanged();
}
if (!other.getOffset().isEmpty()) {
offset_ = other.offset_;
onChanged();
}
switch (other.getEventCase()) {
case UNASSIGNED_EVENT: {
mergeUnassignedEvent(other.getUnassignedEvent());
break;
}
case ASSIGNED_EVENT: {
mergeAssignedEvent(other.getAssignedEvent());
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: {
updateId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
commandId_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
workflowId_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
offset_ = input.readStringRequireUtf8();
break;
} // case 34
case 42: {
input.readMessage(
getUnassignedEventFieldBuilder().getBuilder(),
extensionRegistry);
eventCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getAssignedEventFieldBuilder().getBuilder(),
extensionRegistry);
eventCase_ = 6;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int 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 java.lang.Object updateId_ = "";
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The updateId.
*/
public java.lang.String getUpdateId() {
java.lang.Object ref = updateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
updateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return The bytes for updateId.
*/
public com.google.protobuf.ByteString
getUpdateIdBytes() {
java.lang.Object ref = updateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
updateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @param value The updateId to set.
* @return This builder for chaining.
*/
public Builder setUpdateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
updateId_ = value;
onChanged();
return this;
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @return This builder for chaining.
*/
public Builder clearUpdateId() {
updateId_ = getDefaultInstance().getUpdateId();
onChanged();
return this;
}
/**
*
* Assigned by the server. Useful for correlating logs.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string update_id = 1 [json_name = "updateId"];
* @param value The bytes for updateId to set.
* @return This builder for chaining.
*/
public Builder setUpdateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
updateId_ = value;
onChanged();
return this;
}
private java.lang.Object commandId_ = "";
/**
*
* The ID of the command which resulted in this reassignment. Missing for everyone except the submitting party on the submitting participant.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The commandId.
*/
public java.lang.String getCommandId() {
java.lang.Object ref = commandId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
commandId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the command which resulted in this reassignment. Missing for everyone except the submitting party on the submitting participant.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return The bytes for commandId.
*/
public com.google.protobuf.ByteString
getCommandIdBytes() {
java.lang.Object ref = commandId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commandId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the command which resulted in this reassignment. Missing for everyone except the submitting party on the submitting participant.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @param value The commandId to set.
* @return This builder for chaining.
*/
public Builder setCommandId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
commandId_ = value;
onChanged();
return this;
}
/**
*
* The ID of the command which resulted in this reassignment. Missing for everyone except the submitting party on the submitting participant.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @return This builder for chaining.
*/
public Builder clearCommandId() {
commandId_ = getDefaultInstance().getCommandId();
onChanged();
return this;
}
/**
*
* The ID of the command which resulted in this reassignment. Missing for everyone except the submitting party on the submitting participant.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string command_id = 2 [json_name = "commandId"];
* @param value The bytes for commandId to set.
* @return This builder for chaining.
*/
public Builder setCommandIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
commandId_ = value;
onChanged();
return this;
}
private java.lang.Object workflowId_ = "";
/**
*
* The workflow ID used in reassignment command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The workflowId.
*/
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workflowId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The workflow ID used in reassignment command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return The bytes for workflowId.
*/
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The workflow ID used in reassignment command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @param value The workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
workflowId_ = value;
onChanged();
return this;
}
/**
*
* The workflow ID used in reassignment command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @return This builder for chaining.
*/
public Builder clearWorkflowId() {
workflowId_ = getDefaultInstance().getWorkflowId();
onChanged();
return this;
}
/**
*
* The workflow ID used in reassignment command submission. Only set if the ``workflow_id`` for the command was set.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 3 [json_name = "workflowId"];
* @param value The bytes for workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
workflowId_ = value;
onChanged();
return this;
}
private java.lang.Object offset_ = "";
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 4 [json_name = "offset"];
* @return The offset.
*/
public java.lang.String getOffset() {
java.lang.Object ref = offset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 4 [json_name = "offset"];
* @return The bytes for offset.
*/
public com.google.protobuf.ByteString
getOffsetBytes() {
java.lang.Object ref = offset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 4 [json_name = "offset"];
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
offset_ = value;
onChanged();
return this;
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 4 [json_name = "offset"];
* @return This builder for chaining.
*/
public Builder clearOffset() {
offset_ = getDefaultInstance().getOffset();
onChanged();
return this;
}
/**
*
* The absolute offset. The format of this field is described in ``participant_offset.proto``.
* Required
*
*
* string offset = 4 [json_name = "offset"];
* @param value The bytes for offset to set.
* @return This builder for chaining.
*/
public Builder setOffsetBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
offset_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent, com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.Builder, com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEventOrBuilder> unassignedEventBuilder_;
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
* @return Whether the unassignedEvent field is set.
*/
@java.lang.Override
public boolean hasUnassignedEvent() {
return eventCase_ == 5;
}
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
* @return The unassignedEvent.
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent getUnassignedEvent() {
if (unassignedEventBuilder_ == null) {
if (eventCase_ == 5) {
return (com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent) event_;
}
return com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.getDefaultInstance();
} else {
if (eventCase_ == 5) {
return unassignedEventBuilder_.getMessage();
}
return com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
*/
public Builder setUnassignedEvent(com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent value) {
if (unassignedEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
unassignedEventBuilder_.setMessage(value);
}
eventCase_ = 5;
return this;
}
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
*/
public Builder setUnassignedEvent(
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.Builder builderForValue) {
if (unassignedEventBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
unassignedEventBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 5;
return this;
}
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
*/
public Builder mergeUnassignedEvent(com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent value) {
if (unassignedEventBuilder_ == null) {
if (eventCase_ == 5 &&
event_ != com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.getDefaultInstance()) {
event_ = com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.newBuilder((com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 5) {
unassignedEventBuilder_.mergeFrom(value);
}
unassignedEventBuilder_.setMessage(value);
}
eventCase_ = 5;
return this;
}
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
*/
public Builder clearUnassignedEvent() {
if (unassignedEventBuilder_ == null) {
if (eventCase_ == 5) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 5) {
eventCase_ = 0;
event_ = null;
}
unassignedEventBuilder_.clear();
}
return this;
}
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
*/
public com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.Builder getUnassignedEventBuilder() {
return getUnassignedEventFieldBuilder().getBuilder();
}
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEventOrBuilder getUnassignedEventOrBuilder() {
if ((eventCase_ == 5) && (unassignedEventBuilder_ != null)) {
return unassignedEventBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 5) {
return (com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent) event_;
}
return com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v2.UnassignedEvent unassigned_event = 5 [json_name = "unassignedEvent"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent, com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.Builder, com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEventOrBuilder>
getUnassignedEventFieldBuilder() {
if (unassignedEventBuilder_ == null) {
if (!(eventCase_ == 5)) {
event_ = com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.getDefaultInstance();
}
unassignedEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent, com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.Builder, com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEventOrBuilder>(
(com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 5;
onChanged();;
return unassignedEventBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent, com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.Builder, com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEventOrBuilder> assignedEventBuilder_;
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
* @return Whether the assignedEvent field is set.
*/
@java.lang.Override
public boolean hasAssignedEvent() {
return eventCase_ == 6;
}
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
* @return The assignedEvent.
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent getAssignedEvent() {
if (assignedEventBuilder_ == null) {
if (eventCase_ == 6) {
return (com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent) event_;
}
return com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.getDefaultInstance();
} else {
if (eventCase_ == 6) {
return assignedEventBuilder_.getMessage();
}
return com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
*/
public Builder setAssignedEvent(com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent value) {
if (assignedEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
assignedEventBuilder_.setMessage(value);
}
eventCase_ = 6;
return this;
}
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
*/
public Builder setAssignedEvent(
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.Builder builderForValue) {
if (assignedEventBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
assignedEventBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 6;
return this;
}
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
*/
public Builder mergeAssignedEvent(com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent value) {
if (assignedEventBuilder_ == null) {
if (eventCase_ == 6 &&
event_ != com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.getDefaultInstance()) {
event_ = com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.newBuilder((com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 6) {
assignedEventBuilder_.mergeFrom(value);
}
assignedEventBuilder_.setMessage(value);
}
eventCase_ = 6;
return this;
}
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
*/
public Builder clearAssignedEvent() {
if (assignedEventBuilder_ == null) {
if (eventCase_ == 6) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 6) {
eventCase_ = 0;
event_ = null;
}
assignedEventBuilder_.clear();
}
return this;
}
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
*/
public com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.Builder getAssignedEventBuilder() {
return getAssignedEventFieldBuilder().getBuilder();
}
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEventOrBuilder getAssignedEventOrBuilder() {
if ((eventCase_ == 6) && (assignedEventBuilder_ != null)) {
return assignedEventBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 6) {
return (com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent) event_;
}
return com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v2.AssignedEvent assigned_event = 6 [json_name = "assignedEvent"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent, com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.Builder, com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEventOrBuilder>
getAssignedEventFieldBuilder() {
if (assignedEventBuilder_ == null) {
if (!(eventCase_ == 6)) {
event_ = com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.getDefaultInstance();
}
assignedEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent, com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.Builder, com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEventOrBuilder>(
(com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 6;
onChanged();;
return assignedEventBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v2.Reassignment)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.Reassignment)
private static final com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment();
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Reassignment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.Reassignment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnassignedEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v2.UnassignedEvent)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 1 [json_name = "unassignId"];
* @return The unassignId.
*/
java.lang.String getUnassignId();
/**
*
* The ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 1 [json_name = "unassignId"];
* @return The bytes for unassignId.
*/
com.google.protobuf.ByteString
getUnassignIdBytes();
/**
*
* The ID of the reassigned contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2 [json_name = "contractId"];
* @return The contractId.
*/
java.lang.String getContractId();
/**
*
* The ID of the reassigned contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2 [json_name = "contractId"];
* @return The bytes for contractId.
*/
com.google.protobuf.ByteString
getContractIdBytes();
/**
*
* The template of the reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
* @return Whether the templateId field is set.
*/
boolean hasTemplateId();
/**
*
* The template of the reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
* @return The templateId.
*/
com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId();
/**
*
* The template of the reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
*/
com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder();
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 4 [json_name = "source"];
* @return The source.
*/
java.lang.String getSource();
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 4 [json_name = "source"];
* @return The bytes for source.
*/
com.google.protobuf.ByteString
getSourceBytes();
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 5 [json_name = "target"];
* @return The target.
*/
java.lang.String getTarget();
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 5 [json_name = "target"];
* @return The bytes for target.
*/
com.google.protobuf.ByteString
getTargetBytes();
/**
*
* Party on whose behalf the unassign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 6 [json_name = "submitter"];
* @return The submitter.
*/
java.lang.String getSubmitter();
/**
*
* Party on whose behalf the unassign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 6 [json_name = "submitter"];
* @return The bytes for submitter.
*/
com.google.protobuf.ByteString
getSubmitterBytes();
/**
*
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
* equals zero.
* Required
*
*
* uint64 reassignment_counter = 7 [json_name = "reassignmentCounter"];
* @return The reassignmentCounter.
*/
long getReassignmentCounter();
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
* @return Whether the assignmentExclusivity field is set.
*/
boolean hasAssignmentExclusivity();
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
* @return The assignmentExclusivity.
*/
com.google.protobuf.Timestamp getAssignmentExclusivity();
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
*/
com.google.protobuf.TimestampOrBuilder getAssignmentExclusivityOrBuilder();
/**
*
* The parties that are notified of this event.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @return A list containing the witnessParties.
*/
java.util.List
getWitnessPartiesList();
/**
*
* The parties that are notified of this event.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @return The count of witnessParties.
*/
int getWitnessPartiesCount();
/**
*
* The parties that are notified of this event.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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 unassigned, and it becomes unusable on the source domain
*
*
* Protobuf type {@code com.daml.ledger.api.v2.UnassignedEvent}
*/
public static final class UnassignedEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.UnassignedEvent)
UnassignedEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use UnassignedEvent.newBuilder() to construct.
private UnassignedEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UnassignedEvent() {
unassignId_ = "";
contractId_ = "";
source_ = "";
target_ = "";
submitter_ = "";
witnessParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UnassignedEvent();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_UnassignedEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_UnassignedEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.class, com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.Builder.class);
}
public static final int UNASSIGN_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object unassignId_;
/**
*
* The ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 1 [json_name = "unassignId"];
* @return The unassignId.
*/
@java.lang.Override
public java.lang.String getUnassignId() {
java.lang.Object ref = unassignId_;
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();
unassignId_ = s;
return s;
}
}
/**
*
* The ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 1 [json_name = "unassignId"];
* @return The bytes for unassignId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnassignIdBytes() {
java.lang.Object ref = unassignId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unassignId_ = 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 reassigned contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2 [json_name = "contractId"];
* @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 reassigned contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2 [json_name = "contractId"];
* @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 reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
* @return Whether the templateId field is set.
*/
@java.lang.Override
public boolean hasTemplateId() {
return templateId_ != null;
}
/**
*
* The template of the reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
* @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 reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
return getTemplateId();
}
public static final int SOURCE_FIELD_NUMBER = 4;
private volatile java.lang.Object source_;
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 4 [json_name = "source"];
* @return The source.
*/
@java.lang.Override
public java.lang.String getSource() {
java.lang.Object ref = source_;
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();
source_ = s;
return s;
}
}
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 4 [json_name = "source"];
* @return The bytes for source.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TARGET_FIELD_NUMBER = 5;
private volatile java.lang.Object target_;
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 5 [json_name = "target"];
* @return The target.
*/
@java.lang.Override
public java.lang.String getTarget() {
java.lang.Object ref = target_;
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();
target_ = s;
return s;
}
}
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 5 [json_name = "target"];
* @return The bytes for target.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBMITTER_FIELD_NUMBER = 6;
private volatile java.lang.Object submitter_;
/**
*
* Party on whose behalf the unassign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 6 [json_name = "submitter"];
* @return The submitter.
*/
@java.lang.Override
public java.lang.String getSubmitter() {
java.lang.Object ref = submitter_;
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();
submitter_ = s;
return s;
}
}
/**
*
* Party on whose behalf the unassign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 6 [json_name = "submitter"];
* @return The bytes for submitter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubmitterBytes() {
java.lang.Object ref = submitter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REASSIGNMENT_COUNTER_FIELD_NUMBER = 7;
private long reassignmentCounter_;
/**
*
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
* equals zero.
* Required
*
*
* uint64 reassignment_counter = 7 [json_name = "reassignmentCounter"];
* @return The reassignmentCounter.
*/
@java.lang.Override
public long getReassignmentCounter() {
return reassignmentCounter_;
}
public static final int ASSIGNMENT_EXCLUSIVITY_FIELD_NUMBER = 8;
private com.google.protobuf.Timestamp assignmentExclusivity_;
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
* @return Whether the assignmentExclusivity field is set.
*/
@java.lang.Override
public boolean hasAssignmentExclusivity() {
return assignmentExclusivity_ != null;
}
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
* @return The assignmentExclusivity.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getAssignmentExclusivity() {
return assignmentExclusivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : assignmentExclusivity_;
}
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getAssignmentExclusivityOrBuilder() {
return getAssignmentExclusivity();
}
public static final int WITNESS_PARTIES_FIELD_NUMBER = 9;
private com.google.protobuf.LazyStringList witnessParties_;
/**
*
* The parties that are notified of this event.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @return A list containing the witnessParties.
*/
public com.google.protobuf.ProtocolStringList
getWitnessPartiesList() {
return witnessParties_;
}
/**
*
* The parties that are notified of this event.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @return The count of witnessParties.
*/
public int getWitnessPartiesCount() {
return witnessParties_.size();
}
/**
*
* The parties that are notified of this event.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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(unassignId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unassignId_);
}
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(source_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, target_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submitter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, submitter_);
}
if (reassignmentCounter_ != 0L) {
output.writeUInt64(7, reassignmentCounter_);
}
if (assignmentExclusivity_ != null) {
output.writeMessage(8, getAssignmentExclusivity());
}
for (int i = 0; i < witnessParties_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, 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(unassignId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, unassignId_);
}
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(source_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submitter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, submitter_);
}
if (reassignmentCounter_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, reassignmentCounter_);
}
if (assignmentExclusivity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getAssignmentExclusivity());
}
{
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.v2.ReassignmentOuterClass.UnassignedEvent)) {
return super.equals(obj);
}
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent other = (com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent) obj;
if (!getUnassignId()
.equals(other.getUnassignId())) 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 (!getSource()
.equals(other.getSource())) return false;
if (!getTarget()
.equals(other.getTarget())) return false;
if (!getSubmitter()
.equals(other.getSubmitter())) return false;
if (getReassignmentCounter()
!= other.getReassignmentCounter()) return false;
if (hasAssignmentExclusivity() != other.hasAssignmentExclusivity()) return false;
if (hasAssignmentExclusivity()) {
if (!getAssignmentExclusivity()
.equals(other.getAssignmentExclusivity())) 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) + UNASSIGN_ID_FIELD_NUMBER;
hash = (53 * hash) + getUnassignId().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();
}
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
hash = (37 * hash) + SUBMITTER_FIELD_NUMBER;
hash = (53 * hash) + getSubmitter().hashCode();
hash = (37 * hash) + REASSIGNMENT_COUNTER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReassignmentCounter());
if (hasAssignmentExclusivity()) {
hash = (37 * hash) + ASSIGNMENT_EXCLUSIVITY_FIELD_NUMBER;
hash = (53 * hash) + getAssignmentExclusivity().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.v2.ReassignmentOuterClass.UnassignedEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent 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 unassigned, and it becomes unusable on the source domain
*
*
* Protobuf type {@code com.daml.ledger.api.v2.UnassignedEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.UnassignedEvent)
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_UnassignedEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_UnassignedEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.class, com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.Builder.class);
}
// Construct using com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
unassignId_ = "";
contractId_ = "";
if (templateIdBuilder_ == null) {
templateId_ = null;
} else {
templateId_ = null;
templateIdBuilder_ = null;
}
source_ = "";
target_ = "";
submitter_ = "";
reassignmentCounter_ = 0L;
if (assignmentExclusivityBuilder_ == null) {
assignmentExclusivity_ = null;
} else {
assignmentExclusivity_ = null;
assignmentExclusivityBuilder_ = 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.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_UnassignedEvent_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent getDefaultInstanceForType() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent build() {
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent buildPartial() {
com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent result = new com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent(this);
int from_bitField0_ = bitField0_;
result.unassignId_ = unassignId_;
result.contractId_ = contractId_;
if (templateIdBuilder_ == null) {
result.templateId_ = templateId_;
} else {
result.templateId_ = templateIdBuilder_.build();
}
result.source_ = source_;
result.target_ = target_;
result.submitter_ = submitter_;
result.reassignmentCounter_ = reassignmentCounter_;
if (assignmentExclusivityBuilder_ == null) {
result.assignmentExclusivity_ = assignmentExclusivity_;
} else {
result.assignmentExclusivity_ = assignmentExclusivityBuilder_.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.v2.ReassignmentOuterClass.UnassignedEvent) {
return mergeFrom((com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent other) {
if (other == com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent.getDefaultInstance()) return this;
if (!other.getUnassignId().isEmpty()) {
unassignId_ = other.unassignId_;
onChanged();
}
if (!other.getContractId().isEmpty()) {
contractId_ = other.contractId_;
onChanged();
}
if (other.hasTemplateId()) {
mergeTemplateId(other.getTemplateId());
}
if (!other.getSource().isEmpty()) {
source_ = other.source_;
onChanged();
}
if (!other.getTarget().isEmpty()) {
target_ = other.target_;
onChanged();
}
if (!other.getSubmitter().isEmpty()) {
submitter_ = other.submitter_;
onChanged();
}
if (other.getReassignmentCounter() != 0L) {
setReassignmentCounter(other.getReassignmentCounter());
}
if (other.hasAssignmentExclusivity()) {
mergeAssignmentExclusivity(other.getAssignmentExclusivity());
}
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: {
unassignId_ = 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: {
source_ = input.readStringRequireUtf8();
break;
} // case 34
case 42: {
target_ = input.readStringRequireUtf8();
break;
} // case 42
case 50: {
submitter_ = input.readStringRequireUtf8();
break;
} // case 50
case 56: {
reassignmentCounter_ = input.readUInt64();
break;
} // case 56
case 66: {
input.readMessage(
getAssignmentExclusivityFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 66
case 74: {
java.lang.String s = input.readStringRequireUtf8();
ensureWitnessPartiesIsMutable();
witnessParties_.add(s);
break;
} // case 74
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 unassignId_ = "";
/**
*
* The ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 1 [json_name = "unassignId"];
* @return The unassignId.
*/
public java.lang.String getUnassignId() {
java.lang.Object ref = unassignId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
unassignId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 1 [json_name = "unassignId"];
* @return The bytes for unassignId.
*/
public com.google.protobuf.ByteString
getUnassignIdBytes() {
java.lang.Object ref = unassignId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unassignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 1 [json_name = "unassignId"];
* @param value The unassignId to set.
* @return This builder for chaining.
*/
public Builder setUnassignId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
unassignId_ = value;
onChanged();
return this;
}
/**
*
* The ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 1 [json_name = "unassignId"];
* @return This builder for chaining.
*/
public Builder clearUnassignId() {
unassignId_ = getDefaultInstance().getUnassignId();
onChanged();
return this;
}
/**
*
* The ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 1 [json_name = "unassignId"];
* @param value The bytes for unassignId to set.
* @return This builder for chaining.
*/
public Builder setUnassignIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
unassignId_ = value;
onChanged();
return this;
}
private java.lang.Object contractId_ = "";
/**
*
* The ID of the reassigned contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2 [json_name = "contractId"];
* @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 reassigned contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2 [json_name = "contractId"];
* @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 reassigned contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2 [json_name = "contractId"];
* @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 reassigned contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2 [json_name = "contractId"];
* @return This builder for chaining.
*/
public Builder clearContractId() {
contractId_ = getDefaultInstance().getContractId();
onChanged();
return this;
}
/**
*
* The ID of the reassigned contract.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 2 [json_name = "contractId"];
* @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 reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
* @return Whether the templateId field is set.
*/
public boolean hasTemplateId() {
return templateIdBuilder_ != null || templateId_ != null;
}
/**
*
* The template of the reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
* @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 reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
*/
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 reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
*/
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 reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
*/
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 reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
*/
public Builder clearTemplateId() {
if (templateIdBuilder_ == null) {
templateId_ = null;
onChanged();
} else {
templateId_ = null;
templateIdBuilder_ = null;
}
return this;
}
/**
*
* The template of the reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() {
onChanged();
return getTemplateIdFieldBuilder().getBuilder();
}
/**
*
* The template of the reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "templateId"];
*/
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 reassigned contract.
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 3 [json_name = "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>
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 java.lang.Object source_ = "";
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 4 [json_name = "source"];
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
source_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 4 [json_name = "source"];
* @return The bytes for source.
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 4 [json_name = "source"];
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
return this;
}
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 4 [json_name = "source"];
* @return This builder for chaining.
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 4 [json_name = "source"];
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
source_ = value;
onChanged();
return this;
}
private java.lang.Object target_ = "";
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 5 [json_name = "target"];
* @return The target.
*/
public java.lang.String getTarget() {
java.lang.Object ref = target_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
target_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 5 [json_name = "target"];
* @return The bytes for target.
*/
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 5 [json_name = "target"];
* @param value The target to set.
* @return This builder for chaining.
*/
public Builder setTarget(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
return this;
}
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 5 [json_name = "target"];
* @return This builder for chaining.
*/
public Builder clearTarget() {
target_ = getDefaultInstance().getTarget();
onChanged();
return this;
}
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 5 [json_name = "target"];
* @param value The bytes for target to set.
* @return This builder for chaining.
*/
public Builder setTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
target_ = value;
onChanged();
return this;
}
private java.lang.Object submitter_ = "";
/**
*
* Party on whose behalf the unassign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 6 [json_name = "submitter"];
* @return The submitter.
*/
public java.lang.String getSubmitter() {
java.lang.Object ref = submitter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
submitter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Party on whose behalf the unassign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 6 [json_name = "submitter"];
* @return The bytes for submitter.
*/
public com.google.protobuf.ByteString
getSubmitterBytes() {
java.lang.Object ref = submitter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Party on whose behalf the unassign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 6 [json_name = "submitter"];
* @param value The submitter to set.
* @return This builder for chaining.
*/
public Builder setSubmitter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
submitter_ = value;
onChanged();
return this;
}
/**
*
* Party on whose behalf the unassign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 6 [json_name = "submitter"];
* @return This builder for chaining.
*/
public Builder clearSubmitter() {
submitter_ = getDefaultInstance().getSubmitter();
onChanged();
return this;
}
/**
*
* Party on whose behalf the unassign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 6 [json_name = "submitter"];
* @param value The bytes for submitter to set.
* @return This builder for chaining.
*/
public Builder setSubmitterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
submitter_ = value;
onChanged();
return this;
}
private long reassignmentCounter_ ;
/**
*
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
* equals zero.
* Required
*
*
* uint64 reassignment_counter = 7 [json_name = "reassignmentCounter"];
* @return The reassignmentCounter.
*/
@java.lang.Override
public long getReassignmentCounter() {
return reassignmentCounter_;
}
/**
*
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
* equals zero.
* Required
*
*
* uint64 reassignment_counter = 7 [json_name = "reassignmentCounter"];
* @param value The reassignmentCounter to set.
* @return This builder for chaining.
*/
public Builder setReassignmentCounter(long value) {
reassignmentCounter_ = value;
onChanged();
return this;
}
/**
*
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
* equals zero.
* Required
*
*
* uint64 reassignment_counter = 7 [json_name = "reassignmentCounter"];
* @return This builder for chaining.
*/
public Builder clearReassignmentCounter() {
reassignmentCounter_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Timestamp assignmentExclusivity_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> assignmentExclusivityBuilder_;
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
* @return Whether the assignmentExclusivity field is set.
*/
public boolean hasAssignmentExclusivity() {
return assignmentExclusivityBuilder_ != null || assignmentExclusivity_ != null;
}
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
* @return The assignmentExclusivity.
*/
public com.google.protobuf.Timestamp getAssignmentExclusivity() {
if (assignmentExclusivityBuilder_ == null) {
return assignmentExclusivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : assignmentExclusivity_;
} else {
return assignmentExclusivityBuilder_.getMessage();
}
}
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
*/
public Builder setAssignmentExclusivity(com.google.protobuf.Timestamp value) {
if (assignmentExclusivityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assignmentExclusivity_ = value;
onChanged();
} else {
assignmentExclusivityBuilder_.setMessage(value);
}
return this;
}
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
*/
public Builder setAssignmentExclusivity(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (assignmentExclusivityBuilder_ == null) {
assignmentExclusivity_ = builderForValue.build();
onChanged();
} else {
assignmentExclusivityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
*/
public Builder mergeAssignmentExclusivity(com.google.protobuf.Timestamp value) {
if (assignmentExclusivityBuilder_ == null) {
if (assignmentExclusivity_ != null) {
assignmentExclusivity_ =
com.google.protobuf.Timestamp.newBuilder(assignmentExclusivity_).mergeFrom(value).buildPartial();
} else {
assignmentExclusivity_ = value;
}
onChanged();
} else {
assignmentExclusivityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
*/
public Builder clearAssignmentExclusivity() {
if (assignmentExclusivityBuilder_ == null) {
assignmentExclusivity_ = null;
onChanged();
} else {
assignmentExclusivity_ = null;
assignmentExclusivityBuilder_ = null;
}
return this;
}
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
*/
public com.google.protobuf.Timestamp.Builder getAssignmentExclusivityBuilder() {
onChanged();
return getAssignmentExclusivityFieldBuilder().getBuilder();
}
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
*/
public com.google.protobuf.TimestampOrBuilder getAssignmentExclusivityOrBuilder() {
if (assignmentExclusivityBuilder_ != null) {
return assignmentExclusivityBuilder_.getMessageOrBuilder();
} else {
return assignmentExclusivity_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : assignmentExclusivity_;
}
}
/**
*
* Assignment exclusivity
* Before this time (measured on the target domain), only the submitter of the unassignment can initiate the assignment
* Defined for reassigning participants.
* Optional
*
*
* .google.protobuf.Timestamp assignment_exclusivity = 8 [json_name = "assignmentExclusivity"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getAssignmentExclusivityFieldBuilder() {
if (assignmentExclusivityBuilder_ == null) {
assignmentExclusivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getAssignmentExclusivity(),
getParentForChildren(),
isClean());
assignmentExclusivity_ = null;
}
return assignmentExclusivityBuilder_;
}
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.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @return A list containing the witnessParties.
*/
public com.google.protobuf.ProtocolStringList
getWitnessPartiesList() {
return witnessParties_.getUnmodifiableView();
}
/**
*
* The parties that are notified of this event.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @return The count of witnessParties.
*/
public int getWitnessPartiesCount() {
return witnessParties_.size();
}
/**
*
* The parties that are notified of this event.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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.
* Required
*
*
* repeated string witness_parties = 9 [json_name = "witnessParties"];
* @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.v2.UnassignedEvent)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.UnassignedEvent)
private static final com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent();
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UnassignedEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.UnassignedEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AssignedEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v2.AssignedEvent)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ID of the source domain.
* Must be a valid domain ID.
* Required
*
*
* string source = 1 [json_name = "source"];
* @return The source.
*/
java.lang.String getSource();
/**
*
* The ID of the source domain.
* Must be a valid domain ID.
* Required
*
*
* string source = 1 [json_name = "source"];
* @return The bytes for source.
*/
com.google.protobuf.ByteString
getSourceBytes();
/**
*
* The ID of the target domain.
* Must be a valid domain ID.
* Required
*
*
* string target = 2 [json_name = "target"];
* @return The target.
*/
java.lang.String getTarget();
/**
*
* The ID of the target domain.
* Must be a valid domain ID.
* Required
*
*
* string target = 2 [json_name = "target"];
* @return The bytes for target.
*/
com.google.protobuf.ByteString
getTargetBytes();
/**
*
* The ID from the unassigned event.
* For correlation capabilities.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 3 [json_name = "unassignId"];
* @return The unassignId.
*/
java.lang.String getUnassignId();
/**
*
* The ID from the unassigned event.
* For correlation capabilities.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 3 [json_name = "unassignId"];
* @return The bytes for unassignId.
*/
com.google.protobuf.ByteString
getUnassignIdBytes();
/**
*
* Party on whose behalf the assign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 4 [json_name = "submitter"];
* @return The submitter.
*/
java.lang.String getSubmitter();
/**
*
* Party on whose behalf the assign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 4 [json_name = "submitter"];
* @return The bytes for submitter.
*/
com.google.protobuf.ByteString
getSubmitterBytes();
/**
*
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
* equals zero.
* Required
*
*
* uint64 reassignment_counter = 5 [json_name = "reassignmentCounter"];
* @return The reassignmentCounter.
*/
long getReassignmentCounter();
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
* @return Whether the createdEvent field is set.
*/
boolean hasCreatedEvent();
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
* @return The createdEvent.
*/
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreatedEvent();
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
*/
com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreatedEventOrBuilder();
}
/**
*
* Records that a contract has been assigned, and it can be used on the target domain.
*
*
* Protobuf type {@code com.daml.ledger.api.v2.AssignedEvent}
*/
public static final class AssignedEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.AssignedEvent)
AssignedEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssignedEvent.newBuilder() to construct.
private AssignedEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssignedEvent() {
source_ = "";
target_ = "";
unassignId_ = "";
submitter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AssignedEvent();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_AssignedEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_AssignedEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.class, com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.Builder.class);
}
public static final int SOURCE_FIELD_NUMBER = 1;
private volatile java.lang.Object source_;
/**
*
* The ID of the source domain.
* Must be a valid domain ID.
* Required
*
*
* string source = 1 [json_name = "source"];
* @return The source.
*/
@java.lang.Override
public java.lang.String getSource() {
java.lang.Object ref = source_;
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();
source_ = s;
return s;
}
}
/**
*
* The ID of the source domain.
* Must be a valid domain ID.
* Required
*
*
* string source = 1 [json_name = "source"];
* @return The bytes for source.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TARGET_FIELD_NUMBER = 2;
private volatile java.lang.Object target_;
/**
*
* The ID of the target domain.
* Must be a valid domain ID.
* Required
*
*
* string target = 2 [json_name = "target"];
* @return The target.
*/
@java.lang.Override
public java.lang.String getTarget() {
java.lang.Object ref = target_;
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();
target_ = s;
return s;
}
}
/**
*
* The ID of the target domain.
* Must be a valid domain ID.
* Required
*
*
* string target = 2 [json_name = "target"];
* @return The bytes for target.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNASSIGN_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object unassignId_;
/**
*
* The ID from the unassigned event.
* For correlation capabilities.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 3 [json_name = "unassignId"];
* @return The unassignId.
*/
@java.lang.Override
public java.lang.String getUnassignId() {
java.lang.Object ref = unassignId_;
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();
unassignId_ = s;
return s;
}
}
/**
*
* The ID from the unassigned event.
* For correlation capabilities.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 3 [json_name = "unassignId"];
* @return The bytes for unassignId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnassignIdBytes() {
java.lang.Object ref = unassignId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unassignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBMITTER_FIELD_NUMBER = 4;
private volatile java.lang.Object submitter_;
/**
*
* Party on whose behalf the assign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 4 [json_name = "submitter"];
* @return The submitter.
*/
@java.lang.Override
public java.lang.String getSubmitter() {
java.lang.Object ref = submitter_;
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();
submitter_ = s;
return s;
}
}
/**
*
* Party on whose behalf the assign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 4 [json_name = "submitter"];
* @return The bytes for submitter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubmitterBytes() {
java.lang.Object ref = submitter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REASSIGNMENT_COUNTER_FIELD_NUMBER = 5;
private long reassignmentCounter_;
/**
*
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
* equals zero.
* Required
*
*
* uint64 reassignment_counter = 5 [json_name = "reassignmentCounter"];
* @return The reassignmentCounter.
*/
@java.lang.Override
public long getReassignmentCounter() {
return reassignmentCounter_;
}
public static final int CREATED_EVENT_FIELD_NUMBER = 6;
private com.daml.ledger.api.v1.EventOuterClass.CreatedEvent createdEvent_;
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
* @return Whether the createdEvent field is set.
*/
@java.lang.Override
public boolean hasCreatedEvent() {
return createdEvent_ != null;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
* @return The createdEvent.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreatedEvent() {
return createdEvent_ == null ? com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance() : createdEvent_;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreatedEventOrBuilder() {
return getCreatedEvent();
}
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(source_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, target_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unassignId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unassignId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submitter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, submitter_);
}
if (reassignmentCounter_ != 0L) {
output.writeUInt64(5, reassignmentCounter_);
}
if (createdEvent_ != null) {
output.writeMessage(6, getCreatedEvent());
}
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(source_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, target_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unassignId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, unassignId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submitter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, submitter_);
}
if (reassignmentCounter_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, reassignmentCounter_);
}
if (createdEvent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getCreatedEvent());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent)) {
return super.equals(obj);
}
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent other = (com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent) obj;
if (!getSource()
.equals(other.getSource())) return false;
if (!getTarget()
.equals(other.getTarget())) return false;
if (!getUnassignId()
.equals(other.getUnassignId())) return false;
if (!getSubmitter()
.equals(other.getSubmitter())) return false;
if (getReassignmentCounter()
!= other.getReassignmentCounter()) return false;
if (hasCreatedEvent() != other.hasCreatedEvent()) return false;
if (hasCreatedEvent()) {
if (!getCreatedEvent()
.equals(other.getCreatedEvent())) 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) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
hash = (37 * hash) + UNASSIGN_ID_FIELD_NUMBER;
hash = (53 * hash) + getUnassignId().hashCode();
hash = (37 * hash) + SUBMITTER_FIELD_NUMBER;
hash = (53 * hash) + getSubmitter().hashCode();
hash = (37 * hash) + REASSIGNMENT_COUNTER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReassignmentCounter());
if (hasCreatedEvent()) {
hash = (37 * hash) + CREATED_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedEvent().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent 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 assigned, and it can be used on the target domain.
*
*
* Protobuf type {@code com.daml.ledger.api.v2.AssignedEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.AssignedEvent)
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_AssignedEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_AssignedEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.class, com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.Builder.class);
}
// Construct using com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
source_ = "";
target_ = "";
unassignId_ = "";
submitter_ = "";
reassignmentCounter_ = 0L;
if (createdEventBuilder_ == null) {
createdEvent_ = null;
} else {
createdEvent_ = null;
createdEventBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.internal_static_com_daml_ledger_api_v2_AssignedEvent_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent getDefaultInstanceForType() {
return com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent build() {
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent buildPartial() {
com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent result = new com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent(this);
result.source_ = source_;
result.target_ = target_;
result.unassignId_ = unassignId_;
result.submitter_ = submitter_;
result.reassignmentCounter_ = reassignmentCounter_;
if (createdEventBuilder_ == null) {
result.createdEvent_ = createdEvent_;
} else {
result.createdEvent_ = createdEventBuilder_.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.v2.ReassignmentOuterClass.AssignedEvent) {
return mergeFrom((com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent other) {
if (other == com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent.getDefaultInstance()) return this;
if (!other.getSource().isEmpty()) {
source_ = other.source_;
onChanged();
}
if (!other.getTarget().isEmpty()) {
target_ = other.target_;
onChanged();
}
if (!other.getUnassignId().isEmpty()) {
unassignId_ = other.unassignId_;
onChanged();
}
if (!other.getSubmitter().isEmpty()) {
submitter_ = other.submitter_;
onChanged();
}
if (other.getReassignmentCounter() != 0L) {
setReassignmentCounter(other.getReassignmentCounter());
}
if (other.hasCreatedEvent()) {
mergeCreatedEvent(other.getCreatedEvent());
}
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: {
source_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
target_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
unassignId_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
submitter_ = input.readStringRequireUtf8();
break;
} // case 34
case 40: {
reassignmentCounter_ = input.readUInt64();
break;
} // case 40
case 50: {
input.readMessage(
getCreatedEventFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private java.lang.Object source_ = "";
/**
*
* The ID of the source domain.
* Must be a valid domain ID.
* Required
*
*
* string source = 1 [json_name = "source"];
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
source_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the source domain.
* Must be a valid domain ID.
* Required
*
*
* string source = 1 [json_name = "source"];
* @return The bytes for source.
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the source domain.
* Must be a valid domain ID.
* Required
*
*
* string source = 1 [json_name = "source"];
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
return this;
}
/**
*
* The ID of the source domain.
* Must be a valid domain ID.
* Required
*
*
* string source = 1 [json_name = "source"];
* @return This builder for chaining.
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
*
* The ID of the source domain.
* Must be a valid domain ID.
* Required
*
*
* string source = 1 [json_name = "source"];
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
source_ = value;
onChanged();
return this;
}
private java.lang.Object target_ = "";
/**
*
* The ID of the target domain.
* Must be a valid domain ID.
* Required
*
*
* string target = 2 [json_name = "target"];
* @return The target.
*/
public java.lang.String getTarget() {
java.lang.Object ref = target_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
target_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the target domain.
* Must be a valid domain ID.
* Required
*
*
* string target = 2 [json_name = "target"];
* @return The bytes for target.
*/
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the target domain.
* Must be a valid domain ID.
* Required
*
*
* string target = 2 [json_name = "target"];
* @param value The target to set.
* @return This builder for chaining.
*/
public Builder setTarget(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
return this;
}
/**
*
* The ID of the target domain.
* Must be a valid domain ID.
* Required
*
*
* string target = 2 [json_name = "target"];
* @return This builder for chaining.
*/
public Builder clearTarget() {
target_ = getDefaultInstance().getTarget();
onChanged();
return this;
}
/**
*
* The ID of the target domain.
* Must be a valid domain ID.
* Required
*
*
* string target = 2 [json_name = "target"];
* @param value The bytes for target to set.
* @return This builder for chaining.
*/
public Builder setTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
target_ = value;
onChanged();
return this;
}
private java.lang.Object unassignId_ = "";
/**
*
* The ID from the unassigned event.
* For correlation capabilities.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 3 [json_name = "unassignId"];
* @return The unassignId.
*/
public java.lang.String getUnassignId() {
java.lang.Object ref = unassignId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
unassignId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID from the unassigned event.
* For correlation capabilities.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 3 [json_name = "unassignId"];
* @return The bytes for unassignId.
*/
public com.google.protobuf.ByteString
getUnassignIdBytes() {
java.lang.Object ref = unassignId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unassignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID from the unassigned event.
* For correlation capabilities.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 3 [json_name = "unassignId"];
* @param value The unassignId to set.
* @return This builder for chaining.
*/
public Builder setUnassignId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
unassignId_ = value;
onChanged();
return this;
}
/**
*
* The ID from the unassigned event.
* For correlation capabilities.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 3 [json_name = "unassignId"];
* @return This builder for chaining.
*/
public Builder clearUnassignId() {
unassignId_ = getDefaultInstance().getUnassignId();
onChanged();
return this;
}
/**
*
* The ID from the unassigned event.
* For correlation capabilities.
* For one contract the (unassign_id, source domain) pair is unique.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string unassign_id = 3 [json_name = "unassignId"];
* @param value The bytes for unassignId to set.
* @return This builder for chaining.
*/
public Builder setUnassignIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
unassignId_ = value;
onChanged();
return this;
}
private java.lang.Object submitter_ = "";
/**
*
* Party on whose behalf the assign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 4 [json_name = "submitter"];
* @return The submitter.
*/
public java.lang.String getSubmitter() {
java.lang.Object ref = submitter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
submitter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Party on whose behalf the assign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 4 [json_name = "submitter"];
* @return The bytes for submitter.
*/
public com.google.protobuf.ByteString
getSubmitterBytes() {
java.lang.Object ref = submitter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Party on whose behalf the assign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 4 [json_name = "submitter"];
* @param value The submitter to set.
* @return This builder for chaining.
*/
public Builder setSubmitter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
submitter_ = value;
onChanged();
return this;
}
/**
*
* Party on whose behalf the assign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 4 [json_name = "submitter"];
* @return This builder for chaining.
*/
public Builder clearSubmitter() {
submitter_ = getDefaultInstance().getSubmitter();
onChanged();
return this;
}
/**
*
* Party on whose behalf the assign command was executed.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* string submitter = 4 [json_name = "submitter"];
* @param value The bytes for submitter to set.
* @return This builder for chaining.
*/
public Builder setSubmitterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
submitter_ = value;
onChanged();
return this;
}
private long reassignmentCounter_ ;
/**
*
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
* equals zero.
* Required
*
*
* uint64 reassignment_counter = 5 [json_name = "reassignmentCounter"];
* @return The reassignmentCounter.
*/
@java.lang.Override
public long getReassignmentCounter() {
return reassignmentCounter_;
}
/**
*
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
* equals zero.
* Required
*
*
* uint64 reassignment_counter = 5 [json_name = "reassignmentCounter"];
* @param value The reassignmentCounter to set.
* @return This builder for chaining.
*/
public Builder setReassignmentCounter(long value) {
reassignmentCounter_ = value;
onChanged();
return this;
}
/**
*
* Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
* with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
* equals zero.
* Required
*
*
* uint64 reassignment_counter = 5 [json_name = "reassignmentCounter"];
* @return This builder for chaining.
*/
public Builder clearReassignmentCounter() {
reassignmentCounter_ = 0L;
onChanged();
return this;
}
private com.daml.ledger.api.v1.EventOuterClass.CreatedEvent createdEvent_;
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> createdEventBuilder_;
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
* @return Whether the createdEvent field is set.
*/
public boolean hasCreatedEvent() {
return createdEventBuilder_ != null || createdEvent_ != null;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
* @return The createdEvent.
*/
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreatedEvent() {
if (createdEventBuilder_ == null) {
return createdEvent_ == null ? com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance() : createdEvent_;
} else {
return createdEventBuilder_.getMessage();
}
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
*/
public Builder setCreatedEvent(com.daml.ledger.api.v1.EventOuterClass.CreatedEvent value) {
if (createdEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdEvent_ = value;
onChanged();
} else {
createdEventBuilder_.setMessage(value);
}
return this;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
*/
public Builder setCreatedEvent(
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder builderForValue) {
if (createdEventBuilder_ == null) {
createdEvent_ = builderForValue.build();
onChanged();
} else {
createdEventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
*/
public Builder mergeCreatedEvent(com.daml.ledger.api.v1.EventOuterClass.CreatedEvent value) {
if (createdEventBuilder_ == null) {
if (createdEvent_ != null) {
createdEvent_ =
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.newBuilder(createdEvent_).mergeFrom(value).buildPartial();
} else {
createdEvent_ = value;
}
onChanged();
} else {
createdEventBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
*/
public Builder clearCreatedEvent() {
if (createdEventBuilder_ == null) {
createdEvent_ = null;
onChanged();
} else {
createdEvent_ = null;
createdEventBuilder_ = null;
}
return this;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
*/
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder getCreatedEventBuilder() {
onChanged();
return getCreatedEventFieldBuilder().getBuilder();
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
*/
public com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreatedEventOrBuilder() {
if (createdEventBuilder_ != null) {
return createdEventBuilder_.getMessageOrBuilder();
} else {
return createdEvent_ == null ?
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance() : createdEvent_;
}
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v1.CreatedEvent created_event = 6 [json_name = "createdEvent"];
*/
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>
getCreatedEventFieldBuilder() {
if (createdEventBuilder_ == null) {
createdEventBuilder_ = 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>(
getCreatedEvent(),
getParentForChildren(),
isClean());
createdEvent_ = null;
}
return createdEventBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v2.AssignedEvent)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.AssignedEvent)
private static final com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent();
}
public static com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssignedEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentOuterClass.AssignedEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_Reassignment_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_Reassignment_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_UnassignedEvent_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_UnassignedEvent_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_AssignedEvent_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_AssignedEvent_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n)com/daml/ledger/api/v2/reassignment.pr" +
"oto\022\026com.daml.ledger.api.v2\032\"com/daml/le" +
"dger/api/v1/event.proto\032\"com/daml/ledger" +
"/api/v1/value.proto\032\037google/protobuf/tim" +
"estamp.proto\"\262\002\n\014Reassignment\022\033\n\tupdate_" +
"id\030\001 \001(\tR\010updateId\022\035\n\ncommand_id\030\002 \001(\tR\t" +
"commandId\022\037\n\013workflow_id\030\003 \001(\tR\nworkflow" +
"Id\022\026\n\006offset\030\004 \001(\tR\006offset\022T\n\020unassigned" +
"_event\030\005 \001(\0132\'.com.daml.ledger.api.v2.Un" +
"assignedEventH\000R\017unassignedEvent\022N\n\016assi" +
"gned_event\030\006 \001(\0132%.com.daml.ledger.api.v" +
"2.AssignedEventH\000R\rassignedEventB\007\n\005even" +
"t\"\225\003\n\017UnassignedEvent\022\037\n\013unassign_id\030\001 \001" +
"(\tR\nunassignId\022\037\n\013contract_id\030\002 \001(\tR\ncon" +
"tractId\022C\n\013template_id\030\003 \001(\0132\".com.daml." +
"ledger.api.v1.IdentifierR\ntemplateId\022\026\n\006" +
"source\030\004 \001(\tR\006source\022\026\n\006target\030\005 \001(\tR\006ta" +
"rget\022\034\n\tsubmitter\030\006 \001(\tR\tsubmitter\0221\n\024re" +
"assignment_counter\030\007 \001(\004R\023reassignmentCo" +
"unter\022Q\n\026assignment_exclusivity\030\010 \001(\0132\032." +
"google.protobuf.TimestampR\025assignmentExc" +
"lusivity\022\'\n\017witness_parties\030\t \003(\tR\016witne" +
"ssParties\"\374\001\n\rAssignedEvent\022\026\n\006source\030\001 " +
"\001(\tR\006source\022\026\n\006target\030\002 \001(\tR\006target\022\037\n\013u" +
"nassign_id\030\003 \001(\tR\nunassignId\022\034\n\tsubmitte" +
"r\030\004 \001(\tR\tsubmitter\0221\n\024reassignment_count" +
"er\030\005 \001(\004R\023reassignmentCounter\022I\n\rcreated" +
"_event\030\006 \001(\0132$.com.daml.ledger.api.v1.Cr" +
"eatedEventR\014createdEventBI\n\026com.daml.led" +
"ger.api.v2B\026ReassignmentOuterClass\252\002\026Com" +
".Daml.Ledger.Api.V2b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.daml.ledger.api.v1.EventOuterClass.getDescriptor(),
com.daml.ledger.api.v1.ValueOuterClass.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_com_daml_ledger_api_v2_Reassignment_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_daml_ledger_api_v2_Reassignment_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_Reassignment_descriptor,
new java.lang.String[] { "UpdateId", "CommandId", "WorkflowId", "Offset", "UnassignedEvent", "AssignedEvent", "Event", });
internal_static_com_daml_ledger_api_v2_UnassignedEvent_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_daml_ledger_api_v2_UnassignedEvent_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_UnassignedEvent_descriptor,
new java.lang.String[] { "UnassignId", "ContractId", "TemplateId", "Source", "Target", "Submitter", "ReassignmentCounter", "AssignmentExclusivity", "WitnessParties", });
internal_static_com_daml_ledger_api_v2_AssignedEvent_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_daml_ledger_api_v2_AssignedEvent_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_AssignedEvent_descriptor,
new java.lang.String[] { "Source", "Target", "UnassignId", "Submitter", "ReassignmentCounter", "CreatedEvent", });
com.daml.ledger.api.v1.EventOuterClass.getDescriptor();
com.daml.ledger.api.v1.ValueOuterClass.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy