
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/daml/ledger/api/v2/command_completion_service.proto
package com.daml.ledger.api.v2;
public final class CommandCompletionServiceOuterClass {
private CommandCompletionServiceOuterClass() {}
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 CompletionStreamRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v2.CompletionStreamRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Only completions of commands submitted with the same application_id will be visible in the stream.
* 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 = 1 [json_name = "applicationId"];
* @return The applicationId.
*/
java.lang.String getApplicationId();
/**
*
* Only completions of commands submitted with the same application_id will be visible in the stream.
* 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 = 1 [json_name = "applicationId"];
* @return The bytes for applicationId.
*/
com.google.protobuf.ByteString
getApplicationIdBytes();
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @return A list containing the parties.
*/
java.util.List
getPartiesList();
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @return The count of parties.
*/
int getPartiesCount();
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @param index The index of the element to return.
* @return The parties at the given index.
*/
java.lang.String getParties(int index);
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @param index The index of the value to return.
* @return The bytes of the parties at the given index.
*/
com.google.protobuf.ByteString
getPartiesBytes(int index);
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
* @return Whether the beginExclusive field is set.
*/
boolean hasBeginExclusive();
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
* @return The beginExclusive.
*/
com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset getBeginExclusive();
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
*/
com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffsetOrBuilder getBeginExclusiveOrBuilder();
}
/**
* Protobuf type {@code com.daml.ledger.api.v2.CompletionStreamRequest}
*/
public static final class CompletionStreamRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.CompletionStreamRequest)
CompletionStreamRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompletionStreamRequest.newBuilder() to construct.
private CompletionStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompletionStreamRequest() {
applicationId_ = "";
parties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CompletionStreamRequest();
}
@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.CommandCompletionServiceOuterClass.internal_static_com_daml_ledger_api_v2_CompletionStreamRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.internal_static_com_daml_ledger_api_v2_CompletionStreamRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest.class, com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder.class);
}
public static final int APPLICATION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object applicationId_;
/**
*
* Only completions of commands submitted with the same application_id will be visible in the stream.
* 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 = 1 [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;
}
}
/**
*
* Only completions of commands submitted with the same application_id will be visible in the stream.
* 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 = 1 [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 PARTIES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList parties_;
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @return A list containing the parties.
*/
public com.google.protobuf.ProtocolStringList
getPartiesList() {
return parties_;
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @return The count of parties.
*/
public int getPartiesCount() {
return parties_.size();
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @param index The index of the element to return.
* @return The parties at the given index.
*/
public java.lang.String getParties(int index) {
return parties_.get(index);
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @param index The index of the value to return.
* @return The bytes of the parties at the given index.
*/
public com.google.protobuf.ByteString
getPartiesBytes(int index) {
return parties_.getByteString(index);
}
public static final int BEGIN_EXCLUSIVE_FIELD_NUMBER = 3;
private com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset beginExclusive_;
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
* @return Whether the beginExclusive field is set.
*/
@java.lang.Override
public boolean hasBeginExclusive() {
return beginExclusive_ != null;
}
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
* @return The beginExclusive.
*/
@java.lang.Override
public com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset getBeginExclusive() {
return beginExclusive_ == null ? com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset.getDefaultInstance() : beginExclusive_;
}
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
*/
@java.lang.Override
public com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffsetOrBuilder getBeginExclusiveOrBuilder() {
return getBeginExclusive();
}
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(applicationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, applicationId_);
}
for (int i = 0; i < parties_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parties_.getRaw(i));
}
if (beginExclusive_ != null) {
output.writeMessage(3, getBeginExclusive());
}
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(applicationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, applicationId_);
}
{
int dataSize = 0;
for (int i = 0; i < parties_.size(); i++) {
dataSize += computeStringSizeNoTag(parties_.getRaw(i));
}
size += dataSize;
size += 1 * getPartiesList().size();
}
if (beginExclusive_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getBeginExclusive());
}
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.CommandCompletionServiceOuterClass.CompletionStreamRequest)) {
return super.equals(obj);
}
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest other = (com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest) obj;
if (!getApplicationId()
.equals(other.getApplicationId())) return false;
if (!getPartiesList()
.equals(other.getPartiesList())) return false;
if (hasBeginExclusive() != other.hasBeginExclusive()) return false;
if (hasBeginExclusive()) {
if (!getBeginExclusive()
.equals(other.getBeginExclusive())) 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) + APPLICATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getApplicationId().hashCode();
if (getPartiesCount() > 0) {
hash = (37 * hash) + PARTIES_FIELD_NUMBER;
hash = (53 * hash) + getPartiesList().hashCode();
}
if (hasBeginExclusive()) {
hash = (37 * hash) + BEGIN_EXCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + getBeginExclusive().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest 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.CommandCompletionServiceOuterClass.CompletionStreamRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest 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.CommandCompletionServiceOuterClass.CompletionStreamRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest 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.CommandCompletionServiceOuterClass.CompletionStreamRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest 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.CommandCompletionServiceOuterClass.CompletionStreamRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest 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.CommandCompletionServiceOuterClass.CompletionStreamRequest 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.CommandCompletionServiceOuterClass.CompletionStreamRequest 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.CommandCompletionServiceOuterClass.CompletionStreamRequest 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.CompletionStreamRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.CompletionStreamRequest)
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.internal_static_com_daml_ledger_api_v2_CompletionStreamRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.internal_static_com_daml_ledger_api_v2_CompletionStreamRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest.class, com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest.Builder.class);
}
// Construct using com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
applicationId_ = "";
parties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (beginExclusiveBuilder_ == null) {
beginExclusive_ = null;
} else {
beginExclusive_ = null;
beginExclusiveBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.internal_static_com_daml_ledger_api_v2_CompletionStreamRequest_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest getDefaultInstanceForType() {
return com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest build() {
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest buildPartial() {
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest result = new com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest(this);
int from_bitField0_ = bitField0_;
result.applicationId_ = applicationId_;
if (((bitField0_ & 0x00000001) != 0)) {
parties_ = parties_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.parties_ = parties_;
if (beginExclusiveBuilder_ == null) {
result.beginExclusive_ = beginExclusive_;
} else {
result.beginExclusive_ = beginExclusiveBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest) {
return mergeFrom((com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest other) {
if (other == com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest.getDefaultInstance()) return this;
if (!other.getApplicationId().isEmpty()) {
applicationId_ = other.applicationId_;
onChanged();
}
if (!other.parties_.isEmpty()) {
if (parties_.isEmpty()) {
parties_ = other.parties_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePartiesIsMutable();
parties_.addAll(other.parties_);
}
onChanged();
}
if (other.hasBeginExclusive()) {
mergeBeginExclusive(other.getBeginExclusive());
}
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: {
applicationId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensurePartiesIsMutable();
parties_.add(s);
break;
} // case 18
case 26: {
input.readMessage(
getBeginExclusiveFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object applicationId_ = "";
/**
*
* Only completions of commands submitted with the same application_id will be visible in the stream.
* 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 = 1 [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;
}
}
/**
*
* Only completions of commands submitted with the same application_id will be visible in the stream.
* 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 = 1 [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;
}
}
/**
*
* Only completions of commands submitted with the same application_id will be visible in the stream.
* 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 = 1 [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;
}
/**
*
* Only completions of commands submitted with the same application_id will be visible in the stream.
* 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 = 1 [json_name = "applicationId"];
* @return This builder for chaining.
*/
public Builder clearApplicationId() {
applicationId_ = getDefaultInstance().getApplicationId();
onChanged();
return this;
}
/**
*
* Only completions of commands submitted with the same application_id will be visible in the stream.
* 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 = 1 [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 com.google.protobuf.LazyStringList parties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePartiesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
parties_ = new com.google.protobuf.LazyStringArrayList(parties_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @return A list containing the parties.
*/
public com.google.protobuf.ProtocolStringList
getPartiesList() {
return parties_.getUnmodifiableView();
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @return The count of parties.
*/
public int getPartiesCount() {
return parties_.size();
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @param index The index of the element to return.
* @return The parties at the given index.
*/
public java.lang.String getParties(int index) {
return parties_.get(index);
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @param index The index of the value to return.
* @return The bytes of the parties at the given index.
*/
public com.google.protobuf.ByteString
getPartiesBytes(int index) {
return parties_.getByteString(index);
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @param index The index to set the value at.
* @param value The parties to set.
* @return This builder for chaining.
*/
public Builder setParties(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePartiesIsMutable();
parties_.set(index, value);
onChanged();
return this;
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @param value The parties to add.
* @return This builder for chaining.
*/
public Builder addParties(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePartiesIsMutable();
parties_.add(value);
onChanged();
return this;
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @param values The parties to add.
* @return This builder for chaining.
*/
public Builder addAllParties(
java.lang.Iterable values) {
ensurePartiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parties_);
onChanged();
return this;
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @return This builder for chaining.
*/
public Builder clearParties() {
parties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Non-empty list of parties whose data should be included.
* Only completions of commands for which at least one of the ``act_as`` parties is in the given set of parties
* will be visible in the stream.
* Must be a valid PartyIdString (as described in ``value.proto``).
* Required
*
*
* repeated string parties = 2 [json_name = "parties"];
* @param value The bytes of the parties to add.
* @return This builder for chaining.
*/
public Builder addPartiesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePartiesIsMutable();
parties_.add(value);
onChanged();
return this;
}
private com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset beginExclusive_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset, com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset.Builder, com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffsetOrBuilder> beginExclusiveBuilder_;
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
* @return Whether the beginExclusive field is set.
*/
public boolean hasBeginExclusive() {
return beginExclusiveBuilder_ != null || beginExclusive_ != null;
}
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
* @return The beginExclusive.
*/
public com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset getBeginExclusive() {
if (beginExclusiveBuilder_ == null) {
return beginExclusive_ == null ? com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset.getDefaultInstance() : beginExclusive_;
} else {
return beginExclusiveBuilder_.getMessage();
}
}
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
*/
public Builder setBeginExclusive(com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset value) {
if (beginExclusiveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
beginExclusive_ = value;
onChanged();
} else {
beginExclusiveBuilder_.setMessage(value);
}
return this;
}
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
*/
public Builder setBeginExclusive(
com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset.Builder builderForValue) {
if (beginExclusiveBuilder_ == null) {
beginExclusive_ = builderForValue.build();
onChanged();
} else {
beginExclusiveBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
*/
public Builder mergeBeginExclusive(com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset value) {
if (beginExclusiveBuilder_ == null) {
if (beginExclusive_ != null) {
beginExclusive_ =
com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset.newBuilder(beginExclusive_).mergeFrom(value).buildPartial();
} else {
beginExclusive_ = value;
}
onChanged();
} else {
beginExclusiveBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
*/
public Builder clearBeginExclusive() {
if (beginExclusiveBuilder_ == null) {
beginExclusive_ = null;
onChanged();
} else {
beginExclusive_ = null;
beginExclusiveBuilder_ = null;
}
return this;
}
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
*/
public com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset.Builder getBeginExclusiveBuilder() {
onChanged();
return getBeginExclusiveFieldBuilder().getBuilder();
}
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
*/
public com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffsetOrBuilder getBeginExclusiveOrBuilder() {
if (beginExclusiveBuilder_ != null) {
return beginExclusiveBuilder_.getMessageOrBuilder();
} else {
return beginExclusive_ == null ?
com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset.getDefaultInstance() : beginExclusive_;
}
}
/**
*
* This field indicates the minimum offset for completions. This can be used to resume an earlier completion stream.
* Optional, if not set the ledger uses the current ledger end offset instead.
*
*
* .com.daml.ledger.api.v2.ParticipantOffset begin_exclusive = 3 [json_name = "beginExclusive"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset, com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset.Builder, com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffsetOrBuilder>
getBeginExclusiveFieldBuilder() {
if (beginExclusiveBuilder_ == null) {
beginExclusiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset, com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffset.Builder, com.daml.ledger.api.v2.ParticipantOffsetOuterClass.ParticipantOffsetOrBuilder>(
getBeginExclusive(),
getParentForChildren(),
isClean());
beginExclusive_ = null;
}
return beginExclusiveBuilder_;
}
@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.CompletionStreamRequest)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.CompletionStreamRequest)
private static final com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest();
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CompletionStreamRequest 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.CommandCompletionServiceOuterClass.CompletionStreamRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CompletionStreamResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v2.CompletionStreamResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
* @return Whether the checkpoint field is set.
*/
boolean hasCheckpoint();
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
* @return The checkpoint.
*/
com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint getCheckpoint();
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
*/
com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.CheckpointOrBuilder getCheckpointOrBuilder();
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
* @return Whether the completion field is set.
*/
boolean hasCompletion();
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
* @return The completion.
*/
com.daml.ledger.api.v2.CompletionOuterClass.Completion getCompletion();
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
*/
com.daml.ledger.api.v2.CompletionOuterClass.CompletionOrBuilder getCompletionOrBuilder();
/**
*
* The sequencing domain.
* In case
* - successful/failed transactions: identifies the sequencing domain of the transaction
* - for successful/failed unassign commands: identifies the source domain
* - for successful/failed assign commands: identifies the target domain
* Required
*
*
* string domain_id = 3 [json_name = "domainId"];
* @return The domainId.
*/
java.lang.String getDomainId();
/**
*
* The sequencing domain.
* In case
* - successful/failed transactions: identifies the sequencing domain of the transaction
* - for successful/failed unassign commands: identifies the source domain
* - for successful/failed assign commands: identifies the target domain
* Required
*
*
* string domain_id = 3 [json_name = "domainId"];
* @return The bytes for domainId.
*/
com.google.protobuf.ByteString
getDomainIdBytes();
}
/**
* Protobuf type {@code com.daml.ledger.api.v2.CompletionStreamResponse}
*/
public static final class CompletionStreamResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v2.CompletionStreamResponse)
CompletionStreamResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompletionStreamResponse.newBuilder() to construct.
private CompletionStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompletionStreamResponse() {
domainId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CompletionStreamResponse();
}
@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.CommandCompletionServiceOuterClass.internal_static_com_daml_ledger_api_v2_CompletionStreamResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.internal_static_com_daml_ledger_api_v2_CompletionStreamResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse.class, com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse.Builder.class);
}
public static final int CHECKPOINT_FIELD_NUMBER = 1;
private com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint checkpoint_;
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
* @return Whether the checkpoint field is set.
*/
@java.lang.Override
public boolean hasCheckpoint() {
return checkpoint_ != null;
}
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
* @return The checkpoint.
*/
@java.lang.Override
public com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint getCheckpoint() {
return checkpoint_ == null ? com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint.getDefaultInstance() : checkpoint_;
}
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.CheckpointOrBuilder getCheckpointOrBuilder() {
return getCheckpoint();
}
public static final int COMPLETION_FIELD_NUMBER = 2;
private com.daml.ledger.api.v2.CompletionOuterClass.Completion completion_;
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
* @return Whether the completion field is set.
*/
@java.lang.Override
public boolean hasCompletion() {
return completion_ != null;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
* @return The completion.
*/
@java.lang.Override
public com.daml.ledger.api.v2.CompletionOuterClass.Completion getCompletion() {
return completion_ == null ? com.daml.ledger.api.v2.CompletionOuterClass.Completion.getDefaultInstance() : completion_;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
*/
@java.lang.Override
public com.daml.ledger.api.v2.CompletionOuterClass.CompletionOrBuilder getCompletionOrBuilder() {
return getCompletion();
}
public static final int DOMAIN_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object domainId_;
/**
*
* The sequencing domain.
* In case
* - successful/failed transactions: identifies the sequencing domain of the transaction
* - for successful/failed unassign commands: identifies the source domain
* - for successful/failed assign commands: identifies the target domain
* Required
*
*
* string domain_id = 3 [json_name = "domainId"];
* @return The domainId.
*/
@java.lang.Override
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainId_ = s;
return s;
}
}
/**
*
* The sequencing domain.
* In case
* - successful/failed transactions: identifies the sequencing domain of the transaction
* - for successful/failed unassign commands: identifies the source domain
* - for successful/failed assign commands: identifies the target domain
* Required
*
*
* string domain_id = 3 [json_name = "domainId"];
* @return The bytes for domainId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (checkpoint_ != null) {
output.writeMessage(1, getCheckpoint());
}
if (completion_ != null) {
output.writeMessage(2, getCompletion());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domainId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (checkpoint_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCheckpoint());
}
if (completion_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCompletion());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domainId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse)) {
return super.equals(obj);
}
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse other = (com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse) obj;
if (hasCheckpoint() != other.hasCheckpoint()) return false;
if (hasCheckpoint()) {
if (!getCheckpoint()
.equals(other.getCheckpoint())) return false;
}
if (hasCompletion() != other.hasCompletion()) return false;
if (hasCompletion()) {
if (!getCompletion()
.equals(other.getCompletion())) return false;
}
if (!getDomainId()
.equals(other.getDomainId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCheckpoint()) {
hash = (37 * hash) + CHECKPOINT_FIELD_NUMBER;
hash = (53 * hash) + getCheckpoint().hashCode();
}
if (hasCompletion()) {
hash = (37 * hash) + COMPLETION_FIELD_NUMBER;
hash = (53 * hash) + getCompletion().hashCode();
}
hash = (37 * hash) + DOMAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getDomainId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse 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.CommandCompletionServiceOuterClass.CompletionStreamResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse 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.CommandCompletionServiceOuterClass.CompletionStreamResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse 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.CommandCompletionServiceOuterClass.CompletionStreamResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse 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.CommandCompletionServiceOuterClass.CompletionStreamResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse 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.CommandCompletionServiceOuterClass.CompletionStreamResponse 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.CommandCompletionServiceOuterClass.CompletionStreamResponse 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.CommandCompletionServiceOuterClass.CompletionStreamResponse 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.CompletionStreamResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v2.CompletionStreamResponse)
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.internal_static_com_daml_ledger_api_v2_CompletionStreamResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.internal_static_com_daml_ledger_api_v2_CompletionStreamResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse.class, com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse.Builder.class);
}
// Construct using com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (checkpointBuilder_ == null) {
checkpoint_ = null;
} else {
checkpoint_ = null;
checkpointBuilder_ = null;
}
if (completionBuilder_ == null) {
completion_ = null;
} else {
completion_ = null;
completionBuilder_ = null;
}
domainId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.internal_static_com_daml_ledger_api_v2_CompletionStreamResponse_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse getDefaultInstanceForType() {
return com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse build() {
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse buildPartial() {
com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse result = new com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse(this);
if (checkpointBuilder_ == null) {
result.checkpoint_ = checkpoint_;
} else {
result.checkpoint_ = checkpointBuilder_.build();
}
if (completionBuilder_ == null) {
result.completion_ = completion_;
} else {
result.completion_ = completionBuilder_.build();
}
result.domainId_ = domainId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse) {
return mergeFrom((com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse other) {
if (other == com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse.getDefaultInstance()) return this;
if (other.hasCheckpoint()) {
mergeCheckpoint(other.getCheckpoint());
}
if (other.hasCompletion()) {
mergeCompletion(other.getCompletion());
}
if (!other.getDomainId().isEmpty()) {
domainId_ = other.domainId_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getCheckpointFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getCompletionFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
domainId_ = 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 com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint checkpoint_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint, com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint.Builder, com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.CheckpointOrBuilder> checkpointBuilder_;
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
* @return Whether the checkpoint field is set.
*/
public boolean hasCheckpoint() {
return checkpointBuilder_ != null || checkpoint_ != null;
}
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
* @return The checkpoint.
*/
public com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint getCheckpoint() {
if (checkpointBuilder_ == null) {
return checkpoint_ == null ? com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint.getDefaultInstance() : checkpoint_;
} else {
return checkpointBuilder_.getMessage();
}
}
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
*/
public Builder setCheckpoint(com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint value) {
if (checkpointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
checkpoint_ = value;
onChanged();
} else {
checkpointBuilder_.setMessage(value);
}
return this;
}
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
*/
public Builder setCheckpoint(
com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint.Builder builderForValue) {
if (checkpointBuilder_ == null) {
checkpoint_ = builderForValue.build();
onChanged();
} else {
checkpointBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
*/
public Builder mergeCheckpoint(com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint value) {
if (checkpointBuilder_ == null) {
if (checkpoint_ != null) {
checkpoint_ =
com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint.newBuilder(checkpoint_).mergeFrom(value).buildPartial();
} else {
checkpoint_ = value;
}
onChanged();
} else {
checkpointBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
*/
public Builder clearCheckpoint() {
if (checkpointBuilder_ == null) {
checkpoint_ = null;
onChanged();
} else {
checkpoint_ = null;
checkpointBuilder_ = null;
}
return this;
}
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
*/
public com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint.Builder getCheckpointBuilder() {
onChanged();
return getCheckpointFieldBuilder().getBuilder();
}
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
*/
public com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.CheckpointOrBuilder getCheckpointOrBuilder() {
if (checkpointBuilder_ != null) {
return checkpointBuilder_.getMessageOrBuilder();
} else {
return checkpoint_ == null ?
com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint.getDefaultInstance() : checkpoint_;
}
}
/**
*
* This checkpoint may be used to restart consumption. The
* checkpoint belongs to the completion in this response.
* Required
*
*
* .com.daml.ledger.api.v1.Checkpoint checkpoint = 1 [json_name = "checkpoint"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint, com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint.Builder, com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.CheckpointOrBuilder>
getCheckpointFieldBuilder() {
if (checkpointBuilder_ == null) {
checkpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint, com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.Checkpoint.Builder, com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.CheckpointOrBuilder>(
getCheckpoint(),
getParentForChildren(),
isClean());
checkpoint_ = null;
}
return checkpointBuilder_;
}
private com.daml.ledger.api.v2.CompletionOuterClass.Completion completion_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.CompletionOuterClass.Completion, com.daml.ledger.api.v2.CompletionOuterClass.Completion.Builder, com.daml.ledger.api.v2.CompletionOuterClass.CompletionOrBuilder> completionBuilder_;
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
* @return Whether the completion field is set.
*/
public boolean hasCompletion() {
return completionBuilder_ != null || completion_ != null;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
* @return The completion.
*/
public com.daml.ledger.api.v2.CompletionOuterClass.Completion getCompletion() {
if (completionBuilder_ == null) {
return completion_ == null ? com.daml.ledger.api.v2.CompletionOuterClass.Completion.getDefaultInstance() : completion_;
} else {
return completionBuilder_.getMessage();
}
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
*/
public Builder setCompletion(com.daml.ledger.api.v2.CompletionOuterClass.Completion value) {
if (completionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
completion_ = value;
onChanged();
} else {
completionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
*/
public Builder setCompletion(
com.daml.ledger.api.v2.CompletionOuterClass.Completion.Builder builderForValue) {
if (completionBuilder_ == null) {
completion_ = builderForValue.build();
onChanged();
} else {
completionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
*/
public Builder mergeCompletion(com.daml.ledger.api.v2.CompletionOuterClass.Completion value) {
if (completionBuilder_ == null) {
if (completion_ != null) {
completion_ =
com.daml.ledger.api.v2.CompletionOuterClass.Completion.newBuilder(completion_).mergeFrom(value).buildPartial();
} else {
completion_ = value;
}
onChanged();
} else {
completionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
*/
public Builder clearCompletion() {
if (completionBuilder_ == null) {
completion_ = null;
onChanged();
} else {
completion_ = null;
completionBuilder_ = null;
}
return this;
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
*/
public com.daml.ledger.api.v2.CompletionOuterClass.Completion.Builder getCompletionBuilder() {
onChanged();
return getCompletionFieldBuilder().getBuilder();
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
*/
public com.daml.ledger.api.v2.CompletionOuterClass.CompletionOrBuilder getCompletionOrBuilder() {
if (completionBuilder_ != null) {
return completionBuilder_.getMessageOrBuilder();
} else {
return completion_ == null ?
com.daml.ledger.api.v2.CompletionOuterClass.Completion.getDefaultInstance() : completion_;
}
}
/**
*
* Required
*
*
* .com.daml.ledger.api.v2.Completion completion = 2 [json_name = "completion"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.CompletionOuterClass.Completion, com.daml.ledger.api.v2.CompletionOuterClass.Completion.Builder, com.daml.ledger.api.v2.CompletionOuterClass.CompletionOrBuilder>
getCompletionFieldBuilder() {
if (completionBuilder_ == null) {
completionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v2.CompletionOuterClass.Completion, com.daml.ledger.api.v2.CompletionOuterClass.Completion.Builder, com.daml.ledger.api.v2.CompletionOuterClass.CompletionOrBuilder>(
getCompletion(),
getParentForChildren(),
isClean());
completion_ = null;
}
return completionBuilder_;
}
private java.lang.Object domainId_ = "";
/**
*
* The sequencing domain.
* In case
* - successful/failed transactions: identifies the sequencing domain of the transaction
* - for successful/failed unassign commands: identifies the source domain
* - for successful/failed assign commands: identifies the target domain
* Required
*
*
* string domain_id = 3 [json_name = "domainId"];
* @return The domainId.
*/
public java.lang.String getDomainId() {
java.lang.Object ref = domainId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
domainId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The sequencing domain.
* In case
* - successful/failed transactions: identifies the sequencing domain of the transaction
* - for successful/failed unassign commands: identifies the source domain
* - for successful/failed assign commands: identifies the target domain
* Required
*
*
* string domain_id = 3 [json_name = "domainId"];
* @return The bytes for domainId.
*/
public com.google.protobuf.ByteString
getDomainIdBytes() {
java.lang.Object ref = domainId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The sequencing domain.
* In case
* - successful/failed transactions: identifies the sequencing domain of the transaction
* - for successful/failed unassign commands: identifies the source domain
* - for successful/failed assign commands: identifies the target domain
* Required
*
*
* string domain_id = 3 [json_name = "domainId"];
* @param value The domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
domainId_ = value;
onChanged();
return this;
}
/**
*
* The sequencing domain.
* In case
* - successful/failed transactions: identifies the sequencing domain of the transaction
* - for successful/failed unassign commands: identifies the source domain
* - for successful/failed assign commands: identifies the target domain
* Required
*
*
* string domain_id = 3 [json_name = "domainId"];
* @return This builder for chaining.
*/
public Builder clearDomainId() {
domainId_ = getDefaultInstance().getDomainId();
onChanged();
return this;
}
/**
*
* The sequencing domain.
* In case
* - successful/failed transactions: identifies the sequencing domain of the transaction
* - for successful/failed unassign commands: identifies the source domain
* - for successful/failed assign commands: identifies the target domain
* Required
*
*
* string domain_id = 3 [json_name = "domainId"];
* @param value The bytes for domainId to set.
* @return This builder for chaining.
*/
public Builder setDomainIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domainId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v2.CompletionStreamResponse)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v2.CompletionStreamResponse)
private static final com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse();
}
public static com.daml.ledger.api.v2.CommandCompletionServiceOuterClass.CompletionStreamResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CompletionStreamResponse 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.CommandCompletionServiceOuterClass.CompletionStreamResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_CompletionStreamRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_CompletionStreamRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v2_CompletionStreamResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v2_CompletionStreamResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n7com/daml/ledger/api/v2/command_complet" +
"ion_service.proto\022\026com.daml.ledger.api.v" +
"2\0327com/daml/ledger/api/v1/command_comple" +
"tion_service.proto\032\'com/daml/ledger/api/" +
"v2/completion.proto\032/com/daml/ledger/api" +
"/v2/participant_offset.proto\"\256\001\n\027Complet" +
"ionStreamRequest\022%\n\016application_id\030\001 \001(\t" +
"R\rapplicationId\022\030\n\007parties\030\002 \003(\tR\007partie" +
"s\022R\n\017begin_exclusive\030\003 \001(\0132).com.daml.le" +
"dger.api.v2.ParticipantOffsetR\016beginExcl" +
"usive\"\277\001\n\030CompletionStreamResponse\022B\n\nch" +
"eckpoint\030\001 \001(\0132\".com.daml.ledger.api.v1." +
"CheckpointR\ncheckpoint\022B\n\ncompletion\030\002 \001" +
"(\0132\".com.daml.ledger.api.v2.CompletionR\n" +
"completion\022\033\n\tdomain_id\030\003 \001(\tR\010domainId2" +
"\223\001\n\030CommandCompletionService\022w\n\020Completi" +
"onStream\022/.com.daml.ledger.api.v2.Comple" +
"tionStreamRequest\0320.com.daml.ledger.api." +
"v2.CompletionStreamResponse0\001BU\n\026com.dam" +
"l.ledger.api.v2B\"CommandCompletionServic" +
"eOuterClass\252\002\026Com.Daml.Ledger.Api.V2b\006pr" +
"oto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.getDescriptor(),
com.daml.ledger.api.v2.CompletionOuterClass.getDescriptor(),
com.daml.ledger.api.v2.ParticipantOffsetOuterClass.getDescriptor(),
});
internal_static_com_daml_ledger_api_v2_CompletionStreamRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_daml_ledger_api_v2_CompletionStreamRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_CompletionStreamRequest_descriptor,
new java.lang.String[] { "ApplicationId", "Parties", "BeginExclusive", });
internal_static_com_daml_ledger_api_v2_CompletionStreamResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_daml_ledger_api_v2_CompletionStreamResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v2_CompletionStreamResponse_descriptor,
new java.lang.String[] { "Checkpoint", "Completion", "DomainId", });
com.daml.ledger.api.v1.CommandCompletionServiceOuterClass.getDescriptor();
com.daml.ledger.api.v2.CompletionOuterClass.getDescriptor();
com.daml.ledger.api.v2.ParticipantOffsetOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy