
com.daml.ledger.api.v2.ReassignmentCommandOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/daml/ledger/api/v2/reassignment_command.proto
package com.daml.ledger.api.v2;
public final class ReassignmentCommandOuterClass {
private ReassignmentCommandOuterClass() {}
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 ReassignmentCommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v2.ReassignmentCommand)
com.google.protobuf.MessageOrBuilder {
/**
*
* Identifier of the on-ledger workflow that this command is a part of.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 1 [json_name = "workflowId"];
* @return The workflowId.
*/
java.lang.String getWorkflowId();
/**
*
* Identifier of the on-ledger workflow that this command is a part of.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 1 [json_name = "workflowId"];
* @return The bytes for workflowId.
*/
com.google.protobuf.ByteString
getWorkflowIdBytes();
/**
*
* Uniquely identifies the application or participant user that issued the command.
* Must be a valid ApplicationIdString (as described in ``value.proto``).
* Required unless authentication is used with a user token or a custom token specifying an application-id.
* In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
*
*
* string application_id = 2 [json_name = "applicationId"];
* @return The applicationId.
*/
java.lang.String getApplicationId();
/**
*
* Uniquely identifies the application or participant user that issued the command.
* Must be a valid ApplicationIdString (as described in ``value.proto``).
* Required unless authentication is used with a user token or a custom token specifying an application-id.
* In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
*
*
* string application_id = 2 [json_name = "applicationId"];
* @return The bytes for applicationId.
*/
com.google.protobuf.ByteString
getApplicationIdBytes();
/**
*
* Uniquely identifies the command.
* The triple (application_id, submitter, command_id) constitutes the change ID for the intended ledger change.
* The change ID can be used for matching the intended ledger changes with all their completions.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string command_id = 3 [json_name = "commandId"];
* @return The commandId.
*/
java.lang.String getCommandId();
/**
*
* Uniquely identifies the command.
* The triple (application_id, submitter, command_id) constitutes the change ID for the intended ledger change.
* The change ID can be used for matching the intended ledger changes with all their completions.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string command_id = 3 [json_name = "commandId"];
* @return The bytes for commandId.
*/
com.google.protobuf.ByteString
getCommandIdBytes();
/**
*
* Party on whose behalf the command should be executed.
* If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
* to act on behalf of the given party.
* 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 command should be executed.
* If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
* to act on behalf of the given party.
* 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();
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
* @return Whether the unassignCommand field is set.
*/
boolean hasUnassignCommand();
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
* @return The unassignCommand.
*/
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand getUnassignCommand();
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
*/
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommandOrBuilder getUnassignCommandOrBuilder();
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
* @return Whether the assignCommand field is set.
*/
boolean hasAssignCommand();
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
* @return The assignCommand.
*/
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand getAssignCommand();
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
*/
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommandOrBuilder getAssignCommandOrBuilder();
/**
*
* A unique identifier to distinguish completions for different submissions with the same change ID.
* Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
* with the same change ID.
* Must be a valid LedgerString (as described in ``value.proto``).
* If omitted, the participant or the committer may set a value of their choice.
* Optional
*
*
* string submission_id = 7 [json_name = "submissionId"];
* @return The submissionId.
*/
java.lang.String getSubmissionId();
/**
*
* A unique identifier to distinguish completions for different submissions with the same change ID.
* Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
* with the same change ID.
* Must be a valid LedgerString (as described in ``value.proto``).
* If omitted, the participant or the committer may set a value of their choice.
* Optional
*
*
* string submission_id = 7 [json_name = "submissionId"];
* @return The bytes for submissionId.
*/
com.google.protobuf.ByteString
getSubmissionIdBytes();
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand.CommandCase getCommandCase();
}
/**
* Protobuf type {@code com.daml.ledger.api.v2.ReassignmentCommand}
*/
public static final class ReassignmentCommand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.ReassignmentCommand)
ReassignmentCommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReassignmentCommand.newBuilder() to construct.
private ReassignmentCommand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReassignmentCommand() {
workflowId_ = "";
applicationId_ = "";
commandId_ = "";
submitter_ = "";
submissionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReassignmentCommand();
}
@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.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_ReassignmentCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_ReassignmentCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand.class, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand.Builder.class);
}
private int commandCase_ = 0;
private java.lang.Object command_;
public enum CommandCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
UNASSIGN_COMMAND(5),
ASSIGN_COMMAND(6),
COMMAND_NOT_SET(0);
private final int value;
private CommandCase(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 CommandCase valueOf(int value) {
return forNumber(value);
}
public static CommandCase forNumber(int value) {
switch (value) {
case 5: return UNASSIGN_COMMAND;
case 6: return ASSIGN_COMMAND;
case 0: return COMMAND_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public CommandCase
getCommandCase() {
return CommandCase.forNumber(
commandCase_);
}
public static final int WORKFLOW_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object workflowId_;
/**
*
* Identifier of the on-ledger workflow that this command is a part of.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 1 [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;
}
}
/**
*
* Identifier of the on-ledger workflow that this command is a part of.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 1 [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 APPLICATION_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object applicationId_;
/**
*
* Uniquely identifies the application or participant user that issued the command.
* Must be a valid ApplicationIdString (as described in ``value.proto``).
* Required unless authentication is used with a user token or a custom token specifying an application-id.
* In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
*
*
* string application_id = 2 [json_name = "applicationId"];
* @return The applicationId.
*/
@java.lang.Override
public java.lang.String getApplicationId() {
java.lang.Object ref = applicationId_;
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();
applicationId_ = s;
return s;
}
}
/**
*
* Uniquely identifies the application or participant user that issued the command.
* Must be a valid ApplicationIdString (as described in ``value.proto``).
* Required unless authentication is used with a user token or a custom token specifying an application-id.
* In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
*
*
* string application_id = 2 [json_name = "applicationId"];
* @return The bytes for applicationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApplicationIdBytes() {
java.lang.Object ref = applicationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
applicationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMAND_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object commandId_;
/**
*
* Uniquely identifies the command.
* The triple (application_id, submitter, command_id) constitutes the change ID for the intended ledger change.
* The change ID can be used for matching the intended ledger changes with all their completions.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string command_id = 3 [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;
}
}
/**
*
* Uniquely identifies the command.
* The triple (application_id, submitter, command_id) constitutes the change ID for the intended ledger change.
* The change ID can be used for matching the intended ledger changes with all their completions.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string command_id = 3 [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 SUBMITTER_FIELD_NUMBER = 4;
private volatile java.lang.Object submitter_;
/**
*
* Party on whose behalf the command should be executed.
* If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
* to act on behalf of the given party.
* 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 command should be executed.
* If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
* to act on behalf of the given party.
* 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 UNASSIGN_COMMAND_FIELD_NUMBER = 5;
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
* @return Whether the unassignCommand field is set.
*/
@java.lang.Override
public boolean hasUnassignCommand() {
return commandCase_ == 5;
}
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
* @return The unassignCommand.
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand getUnassignCommand() {
if (commandCase_ == 5) {
return (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand) command_;
}
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.getDefaultInstance();
}
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommandOrBuilder getUnassignCommandOrBuilder() {
if (commandCase_ == 5) {
return (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand) command_;
}
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.getDefaultInstance();
}
public static final int ASSIGN_COMMAND_FIELD_NUMBER = 6;
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
* @return Whether the assignCommand field is set.
*/
@java.lang.Override
public boolean hasAssignCommand() {
return commandCase_ == 6;
}
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
* @return The assignCommand.
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand getAssignCommand() {
if (commandCase_ == 6) {
return (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand) command_;
}
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.getDefaultInstance();
}
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommandOrBuilder getAssignCommandOrBuilder() {
if (commandCase_ == 6) {
return (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand) command_;
}
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.getDefaultInstance();
}
public static final int SUBMISSION_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object submissionId_;
/**
*
* A unique identifier to distinguish completions for different submissions with the same change ID.
* Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
* with the same change ID.
* Must be a valid LedgerString (as described in ``value.proto``).
* If omitted, the participant or the committer may set a value of their choice.
* Optional
*
*
* string submission_id = 7 [json_name = "submissionId"];
* @return The submissionId.
*/
@java.lang.Override
public java.lang.String getSubmissionId() {
java.lang.Object ref = submissionId_;
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();
submissionId_ = s;
return s;
}
}
/**
*
* A unique identifier to distinguish completions for different submissions with the same change ID.
* Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
* with the same change ID.
* Must be a valid LedgerString (as described in ``value.proto``).
* If omitted, the participant or the committer may set a value of their choice.
* Optional
*
*
* string submission_id = 7 [json_name = "submissionId"];
* @return The bytes for submissionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubmissionIdBytes() {
java.lang.Object ref = submissionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submissionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workflowId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applicationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, commandId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submitter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, submitter_);
}
if (commandCase_ == 5) {
output.writeMessage(5, (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand) command_);
}
if (commandCase_ == 6) {
output.writeMessage(6, (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand) command_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submissionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, submissionId_);
}
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(workflowId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workflowId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applicationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, applicationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commandId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, commandId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submitter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, submitter_);
}
if (commandCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand) command_);
}
if (commandCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand) command_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submissionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, submissionId_);
}
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.ReassignmentCommandOuterClass.ReassignmentCommand)) {
return super.equals(obj);
}
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand other = (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand) obj;
if (!getWorkflowId()
.equals(other.getWorkflowId())) return false;
if (!getApplicationId()
.equals(other.getApplicationId())) return false;
if (!getCommandId()
.equals(other.getCommandId())) return false;
if (!getSubmitter()
.equals(other.getSubmitter())) return false;
if (!getSubmissionId()
.equals(other.getSubmissionId())) return false;
if (!getCommandCase().equals(other.getCommandCase())) return false;
switch (commandCase_) {
case 5:
if (!getUnassignCommand()
.equals(other.getUnassignCommand())) return false;
break;
case 6:
if (!getAssignCommand()
.equals(other.getAssignCommand())) 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) + WORKFLOW_ID_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowId().hashCode();
hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getApplicationId().hashCode();
hash = (37 * hash) + COMMAND_ID_FIELD_NUMBER;
hash = (53 * hash) + getCommandId().hashCode();
hash = (37 * hash) + SUBMITTER_FIELD_NUMBER;
hash = (53 * hash) + getSubmitter().hashCode();
hash = (37 * hash) + SUBMISSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSubmissionId().hashCode();
switch (commandCase_) {
case 5:
hash = (37 * hash) + UNASSIGN_COMMAND_FIELD_NUMBER;
hash = (53 * hash) + getUnassignCommand().hashCode();
break;
case 6:
hash = (37 * hash) + ASSIGN_COMMAND_FIELD_NUMBER;
hash = (53 * hash) + getAssignCommand().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand 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.ReassignmentCommandOuterClass.ReassignmentCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand 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.ReassignmentCommandOuterClass.ReassignmentCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand 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.ReassignmentCommandOuterClass.ReassignmentCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand 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.ReassignmentCommandOuterClass.ReassignmentCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand 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.ReassignmentCommandOuterClass.ReassignmentCommand 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.ReassignmentCommandOuterClass.ReassignmentCommand 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.ReassignmentCommandOuterClass.ReassignmentCommand 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;
}
/**
* Protobuf type {@code com.daml.ledger.api.v2.ReassignmentCommand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.ReassignmentCommand)
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_ReassignmentCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_ReassignmentCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand.class, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand.Builder.class);
}
// Construct using com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
workflowId_ = "";
applicationId_ = "";
commandId_ = "";
submitter_ = "";
if (unassignCommandBuilder_ != null) {
unassignCommandBuilder_.clear();
}
if (assignCommandBuilder_ != null) {
assignCommandBuilder_.clear();
}
submissionId_ = "";
commandCase_ = 0;
command_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_ReassignmentCommand_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand getDefaultInstanceForType() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand build() {
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand buildPartial() {
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand result = new com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand(this);
result.workflowId_ = workflowId_;
result.applicationId_ = applicationId_;
result.commandId_ = commandId_;
result.submitter_ = submitter_;
if (commandCase_ == 5) {
if (unassignCommandBuilder_ == null) {
result.command_ = command_;
} else {
result.command_ = unassignCommandBuilder_.build();
}
}
if (commandCase_ == 6) {
if (assignCommandBuilder_ == null) {
result.command_ = command_;
} else {
result.command_ = assignCommandBuilder_.build();
}
}
result.submissionId_ = submissionId_;
result.commandCase_ = commandCase_;
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.ReassignmentCommandOuterClass.ReassignmentCommand) {
return mergeFrom((com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand other) {
if (other == com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand.getDefaultInstance()) return this;
if (!other.getWorkflowId().isEmpty()) {
workflowId_ = other.workflowId_;
onChanged();
}
if (!other.getApplicationId().isEmpty()) {
applicationId_ = other.applicationId_;
onChanged();
}
if (!other.getCommandId().isEmpty()) {
commandId_ = other.commandId_;
onChanged();
}
if (!other.getSubmitter().isEmpty()) {
submitter_ = other.submitter_;
onChanged();
}
if (!other.getSubmissionId().isEmpty()) {
submissionId_ = other.submissionId_;
onChanged();
}
switch (other.getCommandCase()) {
case UNASSIGN_COMMAND: {
mergeUnassignCommand(other.getUnassignCommand());
break;
}
case ASSIGN_COMMAND: {
mergeAssignCommand(other.getAssignCommand());
break;
}
case COMMAND_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: {
workflowId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
applicationId_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
commandId_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
submitter_ = input.readStringRequireUtf8();
break;
} // case 34
case 42: {
input.readMessage(
getUnassignCommandFieldBuilder().getBuilder(),
extensionRegistry);
commandCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getAssignCommandFieldBuilder().getBuilder(),
extensionRegistry);
commandCase_ = 6;
break;
} // case 50
case 58: {
submissionId_ = input.readStringRequireUtf8();
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int commandCase_ = 0;
private java.lang.Object command_;
public CommandCase
getCommandCase() {
return CommandCase.forNumber(
commandCase_);
}
public Builder clearCommand() {
commandCase_ = 0;
command_ = null;
onChanged();
return this;
}
private java.lang.Object workflowId_ = "";
/**
*
* Identifier of the on-ledger workflow that this command is a part of.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 1 [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;
}
}
/**
*
* Identifier of the on-ledger workflow that this command is a part of.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 1 [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;
}
}
/**
*
* Identifier of the on-ledger workflow that this command is a part of.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 1 [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;
}
/**
*
* Identifier of the on-ledger workflow that this command is a part of.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 1 [json_name = "workflowId"];
* @return This builder for chaining.
*/
public Builder clearWorkflowId() {
workflowId_ = getDefaultInstance().getWorkflowId();
onChanged();
return this;
}
/**
*
* Identifier of the on-ledger workflow that this command is a part of.
* Must be a valid LedgerString (as described in ``value.proto``).
* Optional
*
*
* string workflow_id = 1 [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 applicationId_ = "";
/**
*
* Uniquely identifies the application or participant user that issued the command.
* Must be a valid ApplicationIdString (as described in ``value.proto``).
* Required unless authentication is used with a user token or a custom token specifying an application-id.
* In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
*
*
* string application_id = 2 [json_name = "applicationId"];
* @return The applicationId.
*/
public java.lang.String getApplicationId() {
java.lang.Object ref = applicationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
applicationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Uniquely identifies the application or participant user that issued the command.
* Must be a valid ApplicationIdString (as described in ``value.proto``).
* Required unless authentication is used with a user token or a custom token specifying an application-id.
* In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
*
*
* string application_id = 2 [json_name = "applicationId"];
* @return The bytes for applicationId.
*/
public com.google.protobuf.ByteString
getApplicationIdBytes() {
java.lang.Object ref = applicationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
applicationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Uniquely identifies the application or participant user that issued the command.
* Must be a valid ApplicationIdString (as described in ``value.proto``).
* Required unless authentication is used with a user token or a custom token specifying an application-id.
* In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
*
*
* string application_id = 2 [json_name = "applicationId"];
* @param value The applicationId to set.
* @return This builder for chaining.
*/
public Builder setApplicationId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
applicationId_ = value;
onChanged();
return this;
}
/**
*
* Uniquely identifies the application or participant user that issued the command.
* Must be a valid ApplicationIdString (as described in ``value.proto``).
* Required unless authentication is used with a user token or a custom token specifying an application-id.
* In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
*
*
* string application_id = 2 [json_name = "applicationId"];
* @return This builder for chaining.
*/
public Builder clearApplicationId() {
applicationId_ = getDefaultInstance().getApplicationId();
onChanged();
return this;
}
/**
*
* Uniquely identifies the application or participant user that issued the command.
* Must be a valid ApplicationIdString (as described in ``value.proto``).
* Required unless authentication is used with a user token or a custom token specifying an application-id.
* In that case, the token's user-id, respectively application-id, will be used for the request's application_id.
*
*
* string application_id = 2 [json_name = "applicationId"];
* @param value The bytes for applicationId to set.
* @return This builder for chaining.
*/
public Builder setApplicationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
applicationId_ = value;
onChanged();
return this;
}
private java.lang.Object commandId_ = "";
/**
*
* Uniquely identifies the command.
* The triple (application_id, submitter, command_id) constitutes the change ID for the intended ledger change.
* The change ID can be used for matching the intended ledger changes with all their completions.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string command_id = 3 [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;
}
}
/**
*
* Uniquely identifies the command.
* The triple (application_id, submitter, command_id) constitutes the change ID for the intended ledger change.
* The change ID can be used for matching the intended ledger changes with all their completions.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string command_id = 3 [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;
}
}
/**
*
* Uniquely identifies the command.
* The triple (application_id, submitter, command_id) constitutes the change ID for the intended ledger change.
* The change ID can be used for matching the intended ledger changes with all their completions.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string command_id = 3 [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;
}
/**
*
* Uniquely identifies the command.
* The triple (application_id, submitter, command_id) constitutes the change ID for the intended ledger change.
* The change ID can be used for matching the intended ledger changes with all their completions.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string command_id = 3 [json_name = "commandId"];
* @return This builder for chaining.
*/
public Builder clearCommandId() {
commandId_ = getDefaultInstance().getCommandId();
onChanged();
return this;
}
/**
*
* Uniquely identifies the command.
* The triple (application_id, submitter, command_id) constitutes the change ID for the intended ledger change.
* The change ID can be used for matching the intended ledger changes with all their completions.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string command_id = 3 [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 submitter_ = "";
/**
*
* Party on whose behalf the command should be executed.
* If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
* to act on behalf of the given party.
* 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 command should be executed.
* If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
* to act on behalf of the given party.
* 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 command should be executed.
* If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
* to act on behalf of the given party.
* 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 command should be executed.
* If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
* to act on behalf of the given party.
* 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 command should be executed.
* If ledger API authorization is enabled, then the authorization metadata must authorize the sender of the request
* to act on behalf of the given party.
* 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 com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.Builder, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommandOrBuilder> unassignCommandBuilder_;
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
* @return Whether the unassignCommand field is set.
*/
@java.lang.Override
public boolean hasUnassignCommand() {
return commandCase_ == 5;
}
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
* @return The unassignCommand.
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand getUnassignCommand() {
if (unassignCommandBuilder_ == null) {
if (commandCase_ == 5) {
return (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand) command_;
}
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.getDefaultInstance();
} else {
if (commandCase_ == 5) {
return unassignCommandBuilder_.getMessage();
}
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
*/
public Builder setUnassignCommand(com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand value) {
if (unassignCommandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
command_ = value;
onChanged();
} else {
unassignCommandBuilder_.setMessage(value);
}
commandCase_ = 5;
return this;
}
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
*/
public Builder setUnassignCommand(
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.Builder builderForValue) {
if (unassignCommandBuilder_ == null) {
command_ = builderForValue.build();
onChanged();
} else {
unassignCommandBuilder_.setMessage(builderForValue.build());
}
commandCase_ = 5;
return this;
}
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
*/
public Builder mergeUnassignCommand(com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand value) {
if (unassignCommandBuilder_ == null) {
if (commandCase_ == 5 &&
command_ != com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.getDefaultInstance()) {
command_ = com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.newBuilder((com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand) command_)
.mergeFrom(value).buildPartial();
} else {
command_ = value;
}
onChanged();
} else {
if (commandCase_ == 5) {
unassignCommandBuilder_.mergeFrom(value);
}
unassignCommandBuilder_.setMessage(value);
}
commandCase_ = 5;
return this;
}
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
*/
public Builder clearUnassignCommand() {
if (unassignCommandBuilder_ == null) {
if (commandCase_ == 5) {
commandCase_ = 0;
command_ = null;
onChanged();
}
} else {
if (commandCase_ == 5) {
commandCase_ = 0;
command_ = null;
}
unassignCommandBuilder_.clear();
}
return this;
}
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
*/
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.Builder getUnassignCommandBuilder() {
return getUnassignCommandFieldBuilder().getBuilder();
}
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommandOrBuilder getUnassignCommandOrBuilder() {
if ((commandCase_ == 5) && (unassignCommandBuilder_ != null)) {
return unassignCommandBuilder_.getMessageOrBuilder();
} else {
if (commandCase_ == 5) {
return (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand) command_;
}
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v2.UnassignCommand unassign_command = 5 [json_name = "unassignCommand"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.Builder, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommandOrBuilder>
getUnassignCommandFieldBuilder() {
if (unassignCommandBuilder_ == null) {
if (!(commandCase_ == 5)) {
command_ = com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.getDefaultInstance();
}
unassignCommandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.Builder, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommandOrBuilder>(
(com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand) command_,
getParentForChildren(),
isClean());
command_ = null;
}
commandCase_ = 5;
onChanged();;
return unassignCommandBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.Builder, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommandOrBuilder> assignCommandBuilder_;
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
* @return Whether the assignCommand field is set.
*/
@java.lang.Override
public boolean hasAssignCommand() {
return commandCase_ == 6;
}
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
* @return The assignCommand.
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand getAssignCommand() {
if (assignCommandBuilder_ == null) {
if (commandCase_ == 6) {
return (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand) command_;
}
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.getDefaultInstance();
} else {
if (commandCase_ == 6) {
return assignCommandBuilder_.getMessage();
}
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
*/
public Builder setAssignCommand(com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand value) {
if (assignCommandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
command_ = value;
onChanged();
} else {
assignCommandBuilder_.setMessage(value);
}
commandCase_ = 6;
return this;
}
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
*/
public Builder setAssignCommand(
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.Builder builderForValue) {
if (assignCommandBuilder_ == null) {
command_ = builderForValue.build();
onChanged();
} else {
assignCommandBuilder_.setMessage(builderForValue.build());
}
commandCase_ = 6;
return this;
}
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
*/
public Builder mergeAssignCommand(com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand value) {
if (assignCommandBuilder_ == null) {
if (commandCase_ == 6 &&
command_ != com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.getDefaultInstance()) {
command_ = com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.newBuilder((com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand) command_)
.mergeFrom(value).buildPartial();
} else {
command_ = value;
}
onChanged();
} else {
if (commandCase_ == 6) {
assignCommandBuilder_.mergeFrom(value);
}
assignCommandBuilder_.setMessage(value);
}
commandCase_ = 6;
return this;
}
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
*/
public Builder clearAssignCommand() {
if (assignCommandBuilder_ == null) {
if (commandCase_ == 6) {
commandCase_ = 0;
command_ = null;
onChanged();
}
} else {
if (commandCase_ == 6) {
commandCase_ = 0;
command_ = null;
}
assignCommandBuilder_.clear();
}
return this;
}
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
*/
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.Builder getAssignCommandBuilder() {
return getAssignCommandFieldBuilder().getBuilder();
}
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
*/
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommandOrBuilder getAssignCommandOrBuilder() {
if ((commandCase_ == 6) && (assignCommandBuilder_ != null)) {
return assignCommandBuilder_.getMessageOrBuilder();
} else {
if (commandCase_ == 6) {
return (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand) command_;
}
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.getDefaultInstance();
}
}
/**
* .com.daml.ledger.api.v2.AssignCommand assign_command = 6 [json_name = "assignCommand"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.Builder, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommandOrBuilder>
getAssignCommandFieldBuilder() {
if (assignCommandBuilder_ == null) {
if (!(commandCase_ == 6)) {
command_ = com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.getDefaultInstance();
}
assignCommandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.Builder, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommandOrBuilder>(
(com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand) command_,
getParentForChildren(),
isClean());
command_ = null;
}
commandCase_ = 6;
onChanged();;
return assignCommandBuilder_;
}
private java.lang.Object submissionId_ = "";
/**
*
* A unique identifier to distinguish completions for different submissions with the same change ID.
* Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
* with the same change ID.
* Must be a valid LedgerString (as described in ``value.proto``).
* If omitted, the participant or the committer may set a value of their choice.
* Optional
*
*
* string submission_id = 7 [json_name = "submissionId"];
* @return The submissionId.
*/
public java.lang.String getSubmissionId() {
java.lang.Object ref = submissionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
submissionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A unique identifier to distinguish completions for different submissions with the same change ID.
* Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
* with the same change ID.
* Must be a valid LedgerString (as described in ``value.proto``).
* If omitted, the participant or the committer may set a value of their choice.
* Optional
*
*
* string submission_id = 7 [json_name = "submissionId"];
* @return The bytes for submissionId.
*/
public com.google.protobuf.ByteString
getSubmissionIdBytes() {
java.lang.Object ref = submissionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submissionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A unique identifier to distinguish completions for different submissions with the same change ID.
* Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
* with the same change ID.
* Must be a valid LedgerString (as described in ``value.proto``).
* If omitted, the participant or the committer may set a value of their choice.
* Optional
*
*
* string submission_id = 7 [json_name = "submissionId"];
* @param value The submissionId to set.
* @return This builder for chaining.
*/
public Builder setSubmissionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
submissionId_ = value;
onChanged();
return this;
}
/**
*
* A unique identifier to distinguish completions for different submissions with the same change ID.
* Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
* with the same change ID.
* Must be a valid LedgerString (as described in ``value.proto``).
* If omitted, the participant or the committer may set a value of their choice.
* Optional
*
*
* string submission_id = 7 [json_name = "submissionId"];
* @return This builder for chaining.
*/
public Builder clearSubmissionId() {
submissionId_ = getDefaultInstance().getSubmissionId();
onChanged();
return this;
}
/**
*
* A unique identifier to distinguish completions for different submissions with the same change ID.
* Typically a random UUID. Applications are expected to use a different UUID for each retry of a submission
* with the same change ID.
* Must be a valid LedgerString (as described in ``value.proto``).
* If omitted, the participant or the committer may set a value of their choice.
* Optional
*
*
* string submission_id = 7 [json_name = "submissionId"];
* @param value The bytes for submissionId to set.
* @return This builder for chaining.
*/
public Builder setSubmissionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
submissionId_ = 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.ReassignmentCommand)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.ReassignmentCommand)
private static final com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand();
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.ReassignmentCommand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReassignmentCommand 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.ReassignmentCommandOuterClass.ReassignmentCommand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnassignCommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v2.UnassignCommand)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ID of the contract the client wants to unassign.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 1 [json_name = "contractId"];
* @return The contractId.
*/
java.lang.String getContractId();
/**
*
* The ID of the contract the client wants to unassign.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 1 [json_name = "contractId"];
* @return The bytes for contractId.
*/
com.google.protobuf.ByteString
getContractIdBytes();
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 2 [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 = 2 [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 = 3 [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 = 3 [json_name = "target"];
* @return The bytes for target.
*/
com.google.protobuf.ByteString
getTargetBytes();
}
/**
*
* Unassign a contract
*
*
* Protobuf type {@code com.daml.ledger.api.v2.UnassignCommand}
*/
public static final class UnassignCommand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.UnassignCommand)
UnassignCommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use UnassignCommand.newBuilder() to construct.
private UnassignCommand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UnassignCommand() {
contractId_ = "";
source_ = "";
target_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UnassignCommand();
}
@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.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_UnassignCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_UnassignCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.class, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.Builder.class);
}
public static final int CONTRACT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object contractId_;
/**
*
* The ID of the contract the client wants to unassign.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 1 [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 contract the client wants to unassign.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 1 [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 SOURCE_FIELD_NUMBER = 2;
private volatile java.lang.Object source_;
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 2 [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 = 2 [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 = 3;
private volatile java.lang.Object target_;
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 3 [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 = 3 [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;
}
}
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(contractId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contractId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_);
}
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(contractId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contractId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_);
}
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.ReassignmentCommandOuterClass.UnassignCommand)) {
return super.equals(obj);
}
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand other = (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand) obj;
if (!getContractId()
.equals(other.getContractId())) return false;
if (!getSource()
.equals(other.getSource())) return false;
if (!getTarget()
.equals(other.getTarget())) 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) + CONTRACT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContractId().hashCode();
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand 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.ReassignmentCommandOuterClass.UnassignCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand 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.ReassignmentCommandOuterClass.UnassignCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand 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.ReassignmentCommandOuterClass.UnassignCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand 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.ReassignmentCommandOuterClass.UnassignCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand 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.ReassignmentCommandOuterClass.UnassignCommand 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.ReassignmentCommandOuterClass.UnassignCommand 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.ReassignmentCommandOuterClass.UnassignCommand 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;
}
/**
*
* Unassign a contract
*
*
* Protobuf type {@code com.daml.ledger.api.v2.UnassignCommand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.UnassignCommand)
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_UnassignCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_UnassignCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.class, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.Builder.class);
}
// Construct using com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
contractId_ = "";
source_ = "";
target_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_UnassignCommand_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand getDefaultInstanceForType() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand build() {
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand buildPartial() {
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand result = new com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand(this);
result.contractId_ = contractId_;
result.source_ = source_;
result.target_ = target_;
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.ReassignmentCommandOuterClass.UnassignCommand) {
return mergeFrom((com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand other) {
if (other == com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand.getDefaultInstance()) return this;
if (!other.getContractId().isEmpty()) {
contractId_ = other.contractId_;
onChanged();
}
if (!other.getSource().isEmpty()) {
source_ = other.source_;
onChanged();
}
if (!other.getTarget().isEmpty()) {
target_ = other.target_;
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: {
contractId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
source_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
target_ = input.readStringRequireUtf8();
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private java.lang.Object contractId_ = "";
/**
*
* The ID of the contract the client wants to unassign.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 1 [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 contract the client wants to unassign.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 1 [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 contract the client wants to unassign.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 1 [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 contract the client wants to unassign.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 1 [json_name = "contractId"];
* @return This builder for chaining.
*/
public Builder clearContractId() {
contractId_ = getDefaultInstance().getContractId();
onChanged();
return this;
}
/**
*
* The ID of the contract the client wants to unassign.
* Must be a valid LedgerString (as described in ``value.proto``).
* Required
*
*
* string contract_id = 1 [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 java.lang.Object source_ = "";
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 2 [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 = 2 [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 = 2 [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 = 2 [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 = 2 [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 = 3 [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 = 3 [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 = 3 [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 = 3 [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 = 3 [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;
}
@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.UnassignCommand)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.UnassignCommand)
private static final com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand();
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.UnassignCommand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UnassignCommand 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.ReassignmentCommandOuterClass.UnassignCommand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AssignCommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v2.AssignCommand)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ID from the unassigned event to be completed by this assignment.
* 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 from the unassigned event to be completed by this assignment.
* 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 source domain
* Must be a valid domain ID
* Required
*
*
* string source = 2 [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 = 2 [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 = 3 [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 = 3 [json_name = "target"];
* @return The bytes for target.
*/
com.google.protobuf.ByteString
getTargetBytes();
}
/**
*
* Assign a contract
*
*
* Protobuf type {@code com.daml.ledger.api.v2.AssignCommand}
*/
public static final class AssignCommand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.AssignCommand)
AssignCommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssignCommand.newBuilder() to construct.
private AssignCommand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssignCommand() {
unassignId_ = "";
source_ = "";
target_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AssignCommand();
}
@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.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_AssignCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_AssignCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.class, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.Builder.class);
}
public static final int UNASSIGN_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object unassignId_;
/**
*
* The ID from the unassigned event to be completed by this assignment.
* 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 from the unassigned event to be completed by this assignment.
* 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 SOURCE_FIELD_NUMBER = 2;
private volatile java.lang.Object source_;
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 2 [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 = 2 [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 = 3;
private volatile java.lang.Object target_;
/**
*
* The ID of the target domain
* Must be a valid domain ID
* Required
*
*
* string target = 3 [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 = 3 [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;
}
}
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(source_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_);
}
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(source_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_);
}
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.ReassignmentCommandOuterClass.AssignCommand)) {
return super.equals(obj);
}
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand other = (com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand) obj;
if (!getUnassignId()
.equals(other.getUnassignId())) return false;
if (!getSource()
.equals(other.getSource())) return false;
if (!getTarget()
.equals(other.getTarget())) 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) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand 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.ReassignmentCommandOuterClass.AssignCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand 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.ReassignmentCommandOuterClass.AssignCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand 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.ReassignmentCommandOuterClass.AssignCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand 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.ReassignmentCommandOuterClass.AssignCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand 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.ReassignmentCommandOuterClass.AssignCommand 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.ReassignmentCommandOuterClass.AssignCommand 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.ReassignmentCommandOuterClass.AssignCommand 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;
}
/**
*
* Assign a contract
*
*
* Protobuf type {@code com.daml.ledger.api.v2.AssignCommand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.AssignCommand)
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_AssignCommand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_AssignCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.class, com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.Builder.class);
}
// Construct using com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
unassignId_ = "";
source_ = "";
target_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.internal_static_com_daml_ledger_api_v2_AssignCommand_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand getDefaultInstanceForType() {
return com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand build() {
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand buildPartial() {
com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand result = new com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand(this);
result.unassignId_ = unassignId_;
result.source_ = source_;
result.target_ = target_;
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.ReassignmentCommandOuterClass.AssignCommand) {
return mergeFrom((com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand other) {
if (other == com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand.getDefaultInstance()) return this;
if (!other.getUnassignId().isEmpty()) {
unassignId_ = other.unassignId_;
onChanged();
}
if (!other.getSource().isEmpty()) {
source_ = other.source_;
onChanged();
}
if (!other.getTarget().isEmpty()) {
target_ = other.target_;
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: {
source_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
target_ = input.readStringRequireUtf8();
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private java.lang.Object unassignId_ = "";
/**
*
* The ID from the unassigned event to be completed by this assignment.
* 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 from the unassigned event to be completed by this assignment.
* 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 from the unassigned event to be completed by this assignment.
* 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 from the unassigned event to be completed by this assignment.
* 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 from the unassigned event to be completed by this assignment.
* 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 source_ = "";
/**
*
* The ID of the source domain
* Must be a valid domain ID
* Required
*
*
* string source = 2 [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 = 2 [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 = 2 [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 = 2 [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 = 2 [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 = 3 [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 = 3 [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 = 3 [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 = 3 [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 = 3 [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;
}
@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.AssignCommand)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.AssignCommand)
private static final com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand();
}
public static com.daml.ledger.api.v2.ReassignmentCommandOuterClass.AssignCommand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssignCommand 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.ReassignmentCommandOuterClass.AssignCommand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_ReassignmentCommand_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_ReassignmentCommand_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_UnassignCommand_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_UnassignCommand_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_AssignCommand_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_AssignCommand_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n1com/daml/ledger/api/v2/reassignment_co" +
"mmand.proto\022\026com.daml.ledger.api.v2\"\360\002\n\023" +
"ReassignmentCommand\022\037\n\013workflow_id\030\001 \001(\t" +
"R\nworkflowId\022%\n\016application_id\030\002 \001(\tR\rap" +
"plicationId\022\035\n\ncommand_id\030\003 \001(\tR\tcommand" +
"Id\022\034\n\tsubmitter\030\004 \001(\tR\tsubmitter\022T\n\020unas" +
"sign_command\030\005 \001(\0132\'.com.daml.ledger.api" +
".v2.UnassignCommandH\000R\017unassignCommand\022N" +
"\n\016assign_command\030\006 \001(\0132%.com.daml.ledger" +
".api.v2.AssignCommandH\000R\rassignCommand\022#" +
"\n\rsubmission_id\030\007 \001(\tR\014submissionIdB\t\n\007c" +
"ommand\"b\n\017UnassignCommand\022\037\n\013contract_id" +
"\030\001 \001(\tR\ncontractId\022\026\n\006source\030\002 \001(\tR\006sour" +
"ce\022\026\n\006target\030\003 \001(\tR\006target\"`\n\rAssignComm" +
"and\022\037\n\013unassign_id\030\001 \001(\tR\nunassignId\022\026\n\006" +
"source\030\002 \001(\tR\006source\022\026\n\006target\030\003 \001(\tR\006ta" +
"rgetBP\n\026com.daml.ledger.api.v2B\035Reassign" +
"mentCommandOuterClass\252\002\026Com.Daml.Ledger." +
"Api.V2b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_com_daml_ledger_api_v2_ReassignmentCommand_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_daml_ledger_api_v2_ReassignmentCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_ReassignmentCommand_descriptor,
new java.lang.String[] { "WorkflowId", "ApplicationId", "CommandId", "Submitter", "UnassignCommand", "AssignCommand", "SubmissionId", "Command", });
internal_static_com_daml_ledger_api_v2_UnassignCommand_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_daml_ledger_api_v2_UnassignCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_UnassignCommand_descriptor,
new java.lang.String[] { "ContractId", "Source", "Target", });
internal_static_com_daml_ledger_api_v2_AssignCommand_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_daml_ledger_api_v2_AssignCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_AssignCommand_descriptor,
new java.lang.String[] { "UnassignId", "Source", "Target", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy