
com.daml.ledger.api.v1.EventQueryServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/daml/ledger/api/v1/event_query_service.proto
package com.daml.ledger.api.v1;
public final class EventQueryServiceOuterClass {
private EventQueryServiceOuterClass() {}
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 GetEventsByContractIdRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.GetEventsByContractIdRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The contract id being queried.
* Required
*
*
* string contract_id = 1 [json_name = "contractId"];
* @return The contractId.
*/
java.lang.String getContractId();
/**
*
* The contract id being queried.
* Required
*
*
* string contract_id = 1 [json_name = "contractId"];
* @return The bytes for contractId.
*/
com.google.protobuf.ByteString
getContractIdBytes();
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @return A list containing the requestingParties.
*/
java.util.List
getRequestingPartiesList();
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @return The count of requestingParties.
*/
int getRequestingPartiesCount();
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @param index The index of the element to return.
* @return The requestingParties at the given index.
*/
java.lang.String getRequestingParties(int index);
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @param index The index of the value to return.
* @return The bytes of the requestingParties at the given index.
*/
com.google.protobuf.ByteString
getRequestingPartiesBytes(int index);
}
/**
* Protobuf type {@code com.daml.ledger.api.v1.GetEventsByContractIdRequest}
*/
public static final class GetEventsByContractIdRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.GetEventsByContractIdRequest)
GetEventsByContractIdRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetEventsByContractIdRequest.newBuilder() to construct.
private GetEventsByContractIdRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEventsByContractIdRequest() {
contractId_ = "";
requestingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetEventsByContractIdRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractIdRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractIdRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest.class, com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest.Builder.class);
}
public static final int CONTRACT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object contractId_;
/**
*
* The contract id being queried.
* 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 contract id being queried.
* 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 REQUESTING_PARTIES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList requestingParties_;
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @return A list containing the requestingParties.
*/
public com.google.protobuf.ProtocolStringList
getRequestingPartiesList() {
return requestingParties_;
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @return The count of requestingParties.
*/
public int getRequestingPartiesCount() {
return requestingParties_.size();
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @param index The index of the element to return.
* @return The requestingParties at the given index.
*/
public java.lang.String getRequestingParties(int index) {
return requestingParties_.get(index);
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @param index The index of the value to return.
* @return The bytes of the requestingParties at the given index.
*/
public com.google.protobuf.ByteString
getRequestingPartiesBytes(int index) {
return requestingParties_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contractId_);
}
for (int i = 0; i < requestingParties_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestingParties_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contractId_);
}
{
int dataSize = 0;
for (int i = 0; i < requestingParties_.size(); i++) {
dataSize += computeStringSizeNoTag(requestingParties_.getRaw(i));
}
size += dataSize;
size += 1 * getRequestingPartiesList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest other = (com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest) obj;
if (!getContractId()
.equals(other.getContractId())) return false;
if (!getRequestingPartiesList()
.equals(other.getRequestingPartiesList())) 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();
if (getRequestingPartiesCount() > 0) {
hash = (37 * hash) + REQUESTING_PARTIES_FIELD_NUMBER;
hash = (53 * hash) + getRequestingPartiesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest 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.v1.GetEventsByContractIdRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.GetEventsByContractIdRequest)
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractIdRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractIdRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest.class, com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest.Builder.class);
}
// Construct using com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
contractId_ = "";
requestingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractIdRequest_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest getDefaultInstanceForType() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest build() {
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest buildPartial() {
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest result = new com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest(this);
int from_bitField0_ = bitField0_;
result.contractId_ = contractId_;
if (((bitField0_ & 0x00000001) != 0)) {
requestingParties_ = requestingParties_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.requestingParties_ = requestingParties_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest) {
return mergeFrom((com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest other) {
if (other == com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest.getDefaultInstance()) return this;
if (!other.getContractId().isEmpty()) {
contractId_ = other.contractId_;
onChanged();
}
if (!other.requestingParties_.isEmpty()) {
if (requestingParties_.isEmpty()) {
requestingParties_ = other.requestingParties_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequestingPartiesIsMutable();
requestingParties_.addAll(other.requestingParties_);
}
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureRequestingPartiesIsMutable();
requestingParties_.add(s);
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object contractId_ = "";
/**
*
* The contract id being queried.
* 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 contract id being queried.
* 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 contract id being queried.
* 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 contract id being queried.
* Required
*
*
* string contract_id = 1 [json_name = "contractId"];
* @return This builder for chaining.
*/
public Builder clearContractId() {
contractId_ = getDefaultInstance().getContractId();
onChanged();
return this;
}
/**
*
* The contract id being queried.
* 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 com.google.protobuf.LazyStringList requestingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRequestingPartiesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
requestingParties_ = new com.google.protobuf.LazyStringArrayList(requestingParties_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @return A list containing the requestingParties.
*/
public com.google.protobuf.ProtocolStringList
getRequestingPartiesList() {
return requestingParties_.getUnmodifiableView();
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @return The count of requestingParties.
*/
public int getRequestingPartiesCount() {
return requestingParties_.size();
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @param index The index of the element to return.
* @return The requestingParties at the given index.
*/
public java.lang.String getRequestingParties(int index) {
return requestingParties_.get(index);
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @param index The index of the value to return.
* @return The bytes of the requestingParties at the given index.
*/
public com.google.protobuf.ByteString
getRequestingPartiesBytes(int index) {
return requestingParties_.getByteString(index);
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @param index The index to set the value at.
* @param value The requestingParties to set.
* @return This builder for chaining.
*/
public Builder setRequestingParties(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestingPartiesIsMutable();
requestingParties_.set(index, value);
onChanged();
return this;
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @param value The requestingParties to add.
* @return This builder for chaining.
*/
public Builder addRequestingParties(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestingPartiesIsMutable();
requestingParties_.add(value);
onChanged();
return this;
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @param values The requestingParties to add.
* @return This builder for chaining.
*/
public Builder addAllRequestingParties(
java.lang.Iterable values) {
ensureRequestingPartiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, requestingParties_);
onChanged();
return this;
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @return This builder for chaining.
*/
public Builder clearRequestingParties() {
requestingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract id will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* Required
*
*
* repeated string requesting_parties = 2 [json_name = "requestingParties"];
* @param value The bytes of the requestingParties to add.
* @return This builder for chaining.
*/
public Builder addRequestingPartiesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRequestingPartiesIsMutable();
requestingParties_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.GetEventsByContractIdRequest)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.GetEventsByContractIdRequest)
private static final com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest();
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetEventsByContractIdRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetEventsByContractIdResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.GetEventsByContractIdResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return Whether the createEvent field is set.
*/
boolean hasCreateEvent();
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return The createEvent.
*/
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreateEvent();
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreateEventOrBuilder();
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return Whether the archiveEvent field is set.
*/
boolean hasArchiveEvent();
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return The archiveEvent.
*/
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getArchiveEvent();
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder getArchiveEventOrBuilder();
}
/**
* Protobuf type {@code com.daml.ledger.api.v1.GetEventsByContractIdResponse}
*/
public static final class GetEventsByContractIdResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.GetEventsByContractIdResponse)
GetEventsByContractIdResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetEventsByContractIdResponse.newBuilder() to construct.
private GetEventsByContractIdResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEventsByContractIdResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetEventsByContractIdResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractIdResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractIdResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse.class, com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse.Builder.class);
}
public static final int CREATE_EVENT_FIELD_NUMBER = 1;
private com.daml.ledger.api.v1.EventOuterClass.CreatedEvent createEvent_;
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return Whether the createEvent field is set.
*/
@java.lang.Override
public boolean hasCreateEvent() {
return createEvent_ != null;
}
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return The createEvent.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreateEvent() {
return createEvent_ == null ? com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance() : createEvent_;
}
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreateEventOrBuilder() {
return getCreateEvent();
}
public static final int ARCHIVE_EVENT_FIELD_NUMBER = 2;
private com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent archiveEvent_;
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return Whether the archiveEvent field is set.
*/
@java.lang.Override
public boolean hasArchiveEvent() {
return archiveEvent_ != null;
}
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return The archiveEvent.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getArchiveEvent() {
return archiveEvent_ == null ? com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance() : archiveEvent_;
}
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder getArchiveEventOrBuilder() {
return getArchiveEvent();
}
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 (createEvent_ != null) {
output.writeMessage(1, getCreateEvent());
}
if (archiveEvent_ != null) {
output.writeMessage(2, getArchiveEvent());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (createEvent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCreateEvent());
}
if (archiveEvent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getArchiveEvent());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse other = (com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse) obj;
if (hasCreateEvent() != other.hasCreateEvent()) return false;
if (hasCreateEvent()) {
if (!getCreateEvent()
.equals(other.getCreateEvent())) return false;
}
if (hasArchiveEvent() != other.hasArchiveEvent()) return false;
if (hasArchiveEvent()) {
if (!getArchiveEvent()
.equals(other.getArchiveEvent())) 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 (hasCreateEvent()) {
hash = (37 * hash) + CREATE_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getCreateEvent().hashCode();
}
if (hasArchiveEvent()) {
hash = (37 * hash) + ARCHIVE_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getArchiveEvent().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse 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.v1.GetEventsByContractIdResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.GetEventsByContractIdResponse)
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractIdResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractIdResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse.class, com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse.Builder.class);
}
// Construct using com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (createEventBuilder_ == null) {
createEvent_ = null;
} else {
createEvent_ = null;
createEventBuilder_ = null;
}
if (archiveEventBuilder_ == null) {
archiveEvent_ = null;
} else {
archiveEvent_ = null;
archiveEventBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractIdResponse_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse getDefaultInstanceForType() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse build() {
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse buildPartial() {
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse result = new com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse(this);
if (createEventBuilder_ == null) {
result.createEvent_ = createEvent_;
} else {
result.createEvent_ = createEventBuilder_.build();
}
if (archiveEventBuilder_ == null) {
result.archiveEvent_ = archiveEvent_;
} else {
result.archiveEvent_ = archiveEventBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse) {
return mergeFrom((com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse other) {
if (other == com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse.getDefaultInstance()) return this;
if (other.hasCreateEvent()) {
mergeCreateEvent(other.getCreateEvent());
}
if (other.hasArchiveEvent()) {
mergeArchiveEvent(other.getArchiveEvent());
}
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(
getCreateEventFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getArchiveEventFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private com.daml.ledger.api.v1.EventOuterClass.CreatedEvent createEvent_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder> createEventBuilder_;
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return Whether the createEvent field is set.
*/
public boolean hasCreateEvent() {
return createEventBuilder_ != null || createEvent_ != null;
}
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return The createEvent.
*/
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreateEvent() {
if (createEventBuilder_ == null) {
return createEvent_ == null ? com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance() : createEvent_;
} else {
return createEventBuilder_.getMessage();
}
}
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public Builder setCreateEvent(com.daml.ledger.api.v1.EventOuterClass.CreatedEvent value) {
if (createEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createEvent_ = value;
onChanged();
} else {
createEventBuilder_.setMessage(value);
}
return this;
}
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public Builder setCreateEvent(
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder builderForValue) {
if (createEventBuilder_ == null) {
createEvent_ = builderForValue.build();
onChanged();
} else {
createEventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public Builder mergeCreateEvent(com.daml.ledger.api.v1.EventOuterClass.CreatedEvent value) {
if (createEventBuilder_ == null) {
if (createEvent_ != null) {
createEvent_ =
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.newBuilder(createEvent_).mergeFrom(value).buildPartial();
} else {
createEvent_ = value;
}
onChanged();
} else {
createEventBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public Builder clearCreateEvent() {
if (createEventBuilder_ == null) {
createEvent_ = null;
onChanged();
} else {
createEvent_ = null;
createEventBuilder_ = null;
}
return this;
}
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder getCreateEventBuilder() {
onChanged();
return getCreateEventFieldBuilder().getBuilder();
}
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreateEventOrBuilder() {
if (createEventBuilder_ != null) {
return createEventBuilder_.getMessageOrBuilder();
} else {
return createEvent_ == null ?
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance() : createEvent_;
}
}
/**
*
* The create event for the contract with the ``contract_id`` given in the request
* provided it exists and has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder>
getCreateEventFieldBuilder() {
if (createEventBuilder_ == null) {
createEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder>(
getCreateEvent(),
getParentForChildren(),
isClean());
createEvent_ = null;
}
return createEventBuilder_;
}
private com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent archiveEvent_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder> archiveEventBuilder_;
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return Whether the archiveEvent field is set.
*/
public boolean hasArchiveEvent() {
return archiveEventBuilder_ != null || archiveEvent_ != null;
}
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return The archiveEvent.
*/
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getArchiveEvent() {
if (archiveEventBuilder_ == null) {
return archiveEvent_ == null ? com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance() : archiveEvent_;
} else {
return archiveEventBuilder_.getMessage();
}
}
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public Builder setArchiveEvent(com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent value) {
if (archiveEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
archiveEvent_ = value;
onChanged();
} else {
archiveEventBuilder_.setMessage(value);
}
return this;
}
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public Builder setArchiveEvent(
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder builderForValue) {
if (archiveEventBuilder_ == null) {
archiveEvent_ = builderForValue.build();
onChanged();
} else {
archiveEventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public Builder mergeArchiveEvent(com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent value) {
if (archiveEventBuilder_ == null) {
if (archiveEvent_ != null) {
archiveEvent_ =
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.newBuilder(archiveEvent_).mergeFrom(value).buildPartial();
} else {
archiveEvent_ = value;
}
onChanged();
} else {
archiveEventBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public Builder clearArchiveEvent() {
if (archiveEventBuilder_ == null) {
archiveEvent_ = null;
onChanged();
} else {
archiveEvent_ = null;
archiveEventBuilder_ = null;
}
return this;
}
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder getArchiveEventBuilder() {
onChanged();
return getArchiveEventFieldBuilder().getBuilder();
}
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder getArchiveEventOrBuilder() {
if (archiveEventBuilder_ != null) {
return archiveEventBuilder_.getMessageOrBuilder();
} else {
return archiveEvent_ == null ?
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance() : archiveEvent_;
}
}
/**
*
* The archive event for the contract with the ``contract_id`` given in the request
* provided such an archive event exists and it has not yet been pruned.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder>
getArchiveEventFieldBuilder() {
if (archiveEventBuilder_ == null) {
archiveEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder>(
getArchiveEvent(),
getParentForChildren(),
isClean());
archiveEvent_ = null;
}
return archiveEventBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.GetEventsByContractIdResponse)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.GetEventsByContractIdResponse)
private static final com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse();
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetEventsByContractIdResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractIdResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetEventsByContractKeyRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.GetEventsByContractKeyRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
* @return Whether the contractKey field is set.
*/
boolean hasContractKey();
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
* @return The contractKey.
*/
com.daml.ledger.api.v1.ValueOuterClass.Value getContractKey();
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
*/
com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder();
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
* @return Whether the templateId field is set.
*/
boolean hasTemplateId();
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
* @return The templateId.
*/
com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId();
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
*/
com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder();
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @return A list containing the requestingParties.
*/
java.util.List
getRequestingPartiesList();
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @return The count of requestingParties.
*/
int getRequestingPartiesCount();
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @param index The index of the element to return.
* @return The requestingParties at the given index.
*/
java.lang.String getRequestingParties(int index);
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @param index The index of the value to return.
* @return The bytes of the requestingParties at the given index.
*/
com.google.protobuf.ByteString
getRequestingPartiesBytes(int index);
/**
*
* A ``continuation_token`` associated with a previous response.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The continuationToken.
*/
java.lang.String getContinuationToken();
/**
*
* A ``continuation_token`` associated with a previous response.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The bytes for continuationToken.
*/
com.google.protobuf.ByteString
getContinuationTokenBytes();
}
/**
* Protobuf type {@code com.daml.ledger.api.v1.GetEventsByContractKeyRequest}
*/
public static final class GetEventsByContractKeyRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.GetEventsByContractKeyRequest)
GetEventsByContractKeyRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetEventsByContractKeyRequest.newBuilder() to construct.
private GetEventsByContractKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEventsByContractKeyRequest() {
requestingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
continuationToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetEventsByContractKeyRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest.class, com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder.class);
}
public static final int CONTRACT_KEY_FIELD_NUMBER = 1;
private com.daml.ledger.api.v1.ValueOuterClass.Value contractKey_;
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
* @return Whether the contractKey field is set.
*/
@java.lang.Override
public boolean hasContractKey() {
return contractKey_ != null;
}
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
* @return The contractKey.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Value getContractKey() {
return contractKey_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : contractKey_;
}
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder() {
return getContractKey();
}
public static final int TEMPLATE_ID_FIELD_NUMBER = 2;
private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_;
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
* @return Whether the templateId field is set.
*/
@java.lang.Override
public boolean hasTemplateId() {
return templateId_ != null;
}
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
* @return The templateId.
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() {
return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
return getTemplateId();
}
public static final int REQUESTING_PARTIES_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList requestingParties_;
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @return A list containing the requestingParties.
*/
public com.google.protobuf.ProtocolStringList
getRequestingPartiesList() {
return requestingParties_;
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @return The count of requestingParties.
*/
public int getRequestingPartiesCount() {
return requestingParties_.size();
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @param index The index of the element to return.
* @return The requestingParties at the given index.
*/
public java.lang.String getRequestingParties(int index) {
return requestingParties_.get(index);
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @param index The index of the value to return.
* @return The bytes of the requestingParties at the given index.
*/
public com.google.protobuf.ByteString
getRequestingPartiesBytes(int index) {
return requestingParties_.getByteString(index);
}
public static final int CONTINUATION_TOKEN_FIELD_NUMBER = 4;
private volatile java.lang.Object continuationToken_;
/**
*
* A ``continuation_token`` associated with a previous response.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The continuationToken.
*/
@java.lang.Override
public java.lang.String getContinuationToken() {
java.lang.Object ref = continuationToken_;
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();
continuationToken_ = s;
return s;
}
}
/**
*
* A ``continuation_token`` associated with a previous response.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The bytes for continuationToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContinuationTokenBytes() {
java.lang.Object ref = continuationToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
continuationToken_ = 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 (contractKey_ != null) {
output.writeMessage(1, getContractKey());
}
if (templateId_ != null) {
output.writeMessage(2, getTemplateId());
}
for (int i = 0; i < requestingParties_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestingParties_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(continuationToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, continuationToken_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contractKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContractKey());
}
if (templateId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTemplateId());
}
{
int dataSize = 0;
for (int i = 0; i < requestingParties_.size(); i++) {
dataSize += computeStringSizeNoTag(requestingParties_.getRaw(i));
}
size += dataSize;
size += 1 * getRequestingPartiesList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(continuationToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, continuationToken_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest other = (com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest) obj;
if (hasContractKey() != other.hasContractKey()) return false;
if (hasContractKey()) {
if (!getContractKey()
.equals(other.getContractKey())) return false;
}
if (hasTemplateId() != other.hasTemplateId()) return false;
if (hasTemplateId()) {
if (!getTemplateId()
.equals(other.getTemplateId())) return false;
}
if (!getRequestingPartiesList()
.equals(other.getRequestingPartiesList())) return false;
if (!getContinuationToken()
.equals(other.getContinuationToken())) 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 (hasContractKey()) {
hash = (37 * hash) + CONTRACT_KEY_FIELD_NUMBER;
hash = (53 * hash) + getContractKey().hashCode();
}
if (hasTemplateId()) {
hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTemplateId().hashCode();
}
if (getRequestingPartiesCount() > 0) {
hash = (37 * hash) + REQUESTING_PARTIES_FIELD_NUMBER;
hash = (53 * hash) + getRequestingPartiesList().hashCode();
}
hash = (37 * hash) + CONTINUATION_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getContinuationToken().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest 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.v1.GetEventsByContractKeyRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.GetEventsByContractKeyRequest)
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest.class, com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder.class);
}
// Construct using com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (contractKeyBuilder_ == null) {
contractKey_ = null;
} else {
contractKey_ = null;
contractKeyBuilder_ = null;
}
if (templateIdBuilder_ == null) {
templateId_ = null;
} else {
templateId_ = null;
templateIdBuilder_ = null;
}
requestingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
continuationToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyRequest_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest getDefaultInstanceForType() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest build() {
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest buildPartial() {
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest result = new com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest(this);
int from_bitField0_ = bitField0_;
if (contractKeyBuilder_ == null) {
result.contractKey_ = contractKey_;
} else {
result.contractKey_ = contractKeyBuilder_.build();
}
if (templateIdBuilder_ == null) {
result.templateId_ = templateId_;
} else {
result.templateId_ = templateIdBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
requestingParties_ = requestingParties_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.requestingParties_ = requestingParties_;
result.continuationToken_ = continuationToken_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest) {
return mergeFrom((com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest other) {
if (other == com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest.getDefaultInstance()) return this;
if (other.hasContractKey()) {
mergeContractKey(other.getContractKey());
}
if (other.hasTemplateId()) {
mergeTemplateId(other.getTemplateId());
}
if (!other.requestingParties_.isEmpty()) {
if (requestingParties_.isEmpty()) {
requestingParties_ = other.requestingParties_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequestingPartiesIsMutable();
requestingParties_.addAll(other.requestingParties_);
}
onChanged();
}
if (!other.getContinuationToken().isEmpty()) {
continuationToken_ = other.continuationToken_;
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(
getContractKeyFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getTemplateIdFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureRequestingPartiesIsMutable();
requestingParties_.add(s);
break;
} // case 26
case 34: {
continuationToken_ = input.readStringRequireUtf8();
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.daml.ledger.api.v1.ValueOuterClass.Value contractKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder> contractKeyBuilder_;
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
* @return Whether the contractKey field is set.
*/
public boolean hasContractKey() {
return contractKeyBuilder_ != null || contractKey_ != null;
}
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
* @return The contractKey.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Value getContractKey() {
if (contractKeyBuilder_ == null) {
return contractKey_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : contractKey_;
} else {
return contractKeyBuilder_.getMessage();
}
}
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
*/
public Builder setContractKey(com.daml.ledger.api.v1.ValueOuterClass.Value value) {
if (contractKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractKey_ = value;
onChanged();
} else {
contractKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
*/
public Builder setContractKey(
com.daml.ledger.api.v1.ValueOuterClass.Value.Builder builderForValue) {
if (contractKeyBuilder_ == null) {
contractKey_ = builderForValue.build();
onChanged();
} else {
contractKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
*/
public Builder mergeContractKey(com.daml.ledger.api.v1.ValueOuterClass.Value value) {
if (contractKeyBuilder_ == null) {
if (contractKey_ != null) {
contractKey_ =
com.daml.ledger.api.v1.ValueOuterClass.Value.newBuilder(contractKey_).mergeFrom(value).buildPartial();
} else {
contractKey_ = value;
}
onChanged();
} else {
contractKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
*/
public Builder clearContractKey() {
if (contractKeyBuilder_ == null) {
contractKey_ = null;
onChanged();
} else {
contractKey_ = null;
contractKeyBuilder_ = null;
}
return this;
}
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
*/
public com.daml.ledger.api.v1.ValueOuterClass.Value.Builder getContractKeyBuilder() {
onChanged();
return getContractKeyFieldBuilder().getBuilder();
}
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
*/
public com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder() {
if (contractKeyBuilder_ != null) {
return contractKeyBuilder_.getMessageOrBuilder();
} else {
return contractKey_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Value.getDefaultInstance() : contractKey_;
}
}
/**
*
* The contract key to search for.
* Required
*
*
* .com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>
getContractKeyFieldBuilder() {
if (contractKeyBuilder_ == null) {
contractKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Value, com.daml.ledger.api.v1.ValueOuterClass.Value.Builder, com.daml.ledger.api.v1.ValueOuterClass.ValueOrBuilder>(
getContractKey(),
getParentForChildren(),
isClean());
contractKey_ = null;
}
return contractKeyBuilder_;
}
private com.daml.ledger.api.v1.ValueOuterClass.Identifier templateId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder> templateIdBuilder_;
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
* @return Whether the templateId field is set.
*/
public boolean hasTemplateId() {
return templateIdBuilder_ != null || templateId_ != null;
}
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
* @return The templateId.
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier getTemplateId() {
if (templateIdBuilder_ == null) {
return templateId_ == null ? com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
} else {
return templateIdBuilder_.getMessage();
}
}
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
*/
public Builder setTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (templateIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
templateId_ = value;
onChanged();
} else {
templateIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
*/
public Builder setTemplateId(
com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder builderForValue) {
if (templateIdBuilder_ == null) {
templateId_ = builderForValue.build();
onChanged();
} else {
templateIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
*/
public Builder mergeTemplateId(com.daml.ledger.api.v1.ValueOuterClass.Identifier value) {
if (templateIdBuilder_ == null) {
if (templateId_ != null) {
templateId_ =
com.daml.ledger.api.v1.ValueOuterClass.Identifier.newBuilder(templateId_).mergeFrom(value).buildPartial();
} else {
templateId_ = value;
}
onChanged();
} else {
templateIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
*/
public Builder clearTemplateId() {
if (templateIdBuilder_ == null) {
templateId_ = null;
onChanged();
} else {
templateId_ = null;
templateIdBuilder_ = null;
}
return this;
}
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
*/
public com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() {
onChanged();
return getTemplateIdFieldBuilder().getBuilder();
}
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
*/
public com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
if (templateIdBuilder_ != null) {
return templateIdBuilder_.getMessageOrBuilder();
} else {
return templateId_ == null ?
com.daml.ledger.api.v1.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
}
/**
*
* The template id associated with the contract key
* Required
*
*
* .com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>
getTemplateIdFieldBuilder() {
if (templateIdBuilder_ == null) {
templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.ValueOuterClass.Identifier, com.daml.ledger.api.v1.ValueOuterClass.Identifier.Builder, com.daml.ledger.api.v1.ValueOuterClass.IdentifierOrBuilder>(
getTemplateId(),
getParentForChildren(),
isClean());
templateId_ = null;
}
return templateIdBuilder_;
}
private com.google.protobuf.LazyStringList requestingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRequestingPartiesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
requestingParties_ = new com.google.protobuf.LazyStringArrayList(requestingParties_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @return A list containing the requestingParties.
*/
public com.google.protobuf.ProtocolStringList
getRequestingPartiesList() {
return requestingParties_.getUnmodifiableView();
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @return The count of requestingParties.
*/
public int getRequestingPartiesCount() {
return requestingParties_.size();
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @param index The index of the element to return.
* @return The requestingParties at the given index.
*/
public java.lang.String getRequestingParties(int index) {
return requestingParties_.get(index);
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @param index The index of the value to return.
* @return The bytes of the requestingParties at the given index.
*/
public com.google.protobuf.ByteString
getRequestingPartiesBytes(int index) {
return requestingParties_.getByteString(index);
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @param index The index to set the value at.
* @param value The requestingParties to set.
* @return This builder for chaining.
*/
public Builder setRequestingParties(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestingPartiesIsMutable();
requestingParties_.set(index, value);
onChanged();
return this;
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @param value The requestingParties to add.
* @return This builder for chaining.
*/
public Builder addRequestingParties(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestingPartiesIsMutable();
requestingParties_.add(value);
onChanged();
return this;
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @param values The requestingParties to add.
* @return This builder for chaining.
*/
public Builder addAllRequestingParties(
java.lang.Iterable values) {
ensureRequestingPartiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, requestingParties_);
onChanged();
return this;
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @return This builder for chaining.
*/
public Builder clearRequestingParties() {
requestingParties_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The parties whose events the client expects to see.
* The events associated with the contract key will only be returned if the requesting parties includes
* at least one party that is a stakeholder of the event. For a definition of stakeholders see
* https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders
* To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as
* a requesting party.
* Required
*
*
* repeated string requesting_parties = 3 [json_name = "requestingParties"];
* @param value The bytes of the requestingParties to add.
* @return This builder for chaining.
*/
public Builder addRequestingPartiesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRequestingPartiesIsMutable();
requestingParties_.add(value);
onChanged();
return this;
}
private java.lang.Object continuationToken_ = "";
/**
*
* A ``continuation_token`` associated with a previous response.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The continuationToken.
*/
public java.lang.String getContinuationToken() {
java.lang.Object ref = continuationToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
continuationToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A ``continuation_token`` associated with a previous response.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The bytes for continuationToken.
*/
public com.google.protobuf.ByteString
getContinuationTokenBytes() {
java.lang.Object ref = continuationToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
continuationToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A ``continuation_token`` associated with a previous response.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @param value The continuationToken to set.
* @return This builder for chaining.
*/
public Builder setContinuationToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
continuationToken_ = value;
onChanged();
return this;
}
/**
*
* A ``continuation_token`` associated with a previous response.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return This builder for chaining.
*/
public Builder clearContinuationToken() {
continuationToken_ = getDefaultInstance().getContinuationToken();
onChanged();
return this;
}
/**
*
* A ``continuation_token`` associated with a previous response.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @param value The bytes for continuationToken to set.
* @return This builder for chaining.
*/
public Builder setContinuationTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
continuationToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.GetEventsByContractKeyRequest)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.GetEventsByContractKeyRequest)
private static final com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest();
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetEventsByContractKeyRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetEventsByContractKeyResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.GetEventsByContractKeyResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return Whether the createEvent field is set.
*/
boolean hasCreateEvent();
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return The createEvent.
*/
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreateEvent();
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreateEventOrBuilder();
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return Whether the archiveEvent field is set.
*/
boolean hasArchiveEvent();
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return The archiveEvent.
*/
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getArchiveEvent();
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder getArchiveEventOrBuilder();
/**
*
* If the ``continuation_token`` is populated then there may be additional events available. To retrieve
* these events use the ``continuation_token`` in a subsequent request.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The continuationToken.
*/
java.lang.String getContinuationToken();
/**
*
* If the ``continuation_token`` is populated then there may be additional events available. To retrieve
* these events use the ``continuation_token`` in a subsequent request.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The bytes for continuationToken.
*/
com.google.protobuf.ByteString
getContinuationTokenBytes();
}
/**
* Protobuf type {@code com.daml.ledger.api.v1.GetEventsByContractKeyResponse}
*/
public static final class GetEventsByContractKeyResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.GetEventsByContractKeyResponse)
GetEventsByContractKeyResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetEventsByContractKeyResponse.newBuilder() to construct.
private GetEventsByContractKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEventsByContractKeyResponse() {
continuationToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetEventsByContractKeyResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse.class, com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse.Builder.class);
}
public static final int CREATE_EVENT_FIELD_NUMBER = 1;
private com.daml.ledger.api.v1.EventOuterClass.CreatedEvent createEvent_;
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return Whether the createEvent field is set.
*/
@java.lang.Override
public boolean hasCreateEvent() {
return createEvent_ != null;
}
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return The createEvent.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreateEvent() {
return createEvent_ == null ? com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance() : createEvent_;
}
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreateEventOrBuilder() {
return getCreateEvent();
}
public static final int ARCHIVE_EVENT_FIELD_NUMBER = 2;
private com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent archiveEvent_;
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return Whether the archiveEvent field is set.
*/
@java.lang.Override
public boolean hasArchiveEvent() {
return archiveEvent_ != null;
}
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return The archiveEvent.
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getArchiveEvent() {
return archiveEvent_ == null ? com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance() : archiveEvent_;
}
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
@java.lang.Override
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder getArchiveEventOrBuilder() {
return getArchiveEvent();
}
public static final int CONTINUATION_TOKEN_FIELD_NUMBER = 4;
private volatile java.lang.Object continuationToken_;
/**
*
* If the ``continuation_token`` is populated then there may be additional events available. To retrieve
* these events use the ``continuation_token`` in a subsequent request.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The continuationToken.
*/
@java.lang.Override
public java.lang.String getContinuationToken() {
java.lang.Object ref = continuationToken_;
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();
continuationToken_ = s;
return s;
}
}
/**
*
* If the ``continuation_token`` is populated then there may be additional events available. To retrieve
* these events use the ``continuation_token`` in a subsequent request.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The bytes for continuationToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContinuationTokenBytes() {
java.lang.Object ref = continuationToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
continuationToken_ = 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 (createEvent_ != null) {
output.writeMessage(1, getCreateEvent());
}
if (archiveEvent_ != null) {
output.writeMessage(2, getArchiveEvent());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(continuationToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, continuationToken_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (createEvent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCreateEvent());
}
if (archiveEvent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getArchiveEvent());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(continuationToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, continuationToken_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse other = (com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse) obj;
if (hasCreateEvent() != other.hasCreateEvent()) return false;
if (hasCreateEvent()) {
if (!getCreateEvent()
.equals(other.getCreateEvent())) return false;
}
if (hasArchiveEvent() != other.hasArchiveEvent()) return false;
if (hasArchiveEvent()) {
if (!getArchiveEvent()
.equals(other.getArchiveEvent())) return false;
}
if (!getContinuationToken()
.equals(other.getContinuationToken())) 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 (hasCreateEvent()) {
hash = (37 * hash) + CREATE_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getCreateEvent().hashCode();
}
if (hasArchiveEvent()) {
hash = (37 * hash) + ARCHIVE_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getArchiveEvent().hashCode();
}
hash = (37 * hash) + CONTINUATION_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getContinuationToken().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse 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.v1.GetEventsByContractKeyResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.GetEventsByContractKeyResponse)
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse.class, com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse.Builder.class);
}
// Construct using com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (createEventBuilder_ == null) {
createEvent_ = null;
} else {
createEvent_ = null;
createEventBuilder_ = null;
}
if (archiveEventBuilder_ == null) {
archiveEvent_ = null;
} else {
archiveEvent_ = null;
archiveEventBuilder_ = null;
}
continuationToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyResponse_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse getDefaultInstanceForType() {
return com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse build() {
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse buildPartial() {
com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse result = new com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse(this);
if (createEventBuilder_ == null) {
result.createEvent_ = createEvent_;
} else {
result.createEvent_ = createEventBuilder_.build();
}
if (archiveEventBuilder_ == null) {
result.archiveEvent_ = archiveEvent_;
} else {
result.archiveEvent_ = archiveEventBuilder_.build();
}
result.continuationToken_ = continuationToken_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse) {
return mergeFrom((com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse other) {
if (other == com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse.getDefaultInstance()) return this;
if (other.hasCreateEvent()) {
mergeCreateEvent(other.getCreateEvent());
}
if (other.hasArchiveEvent()) {
mergeArchiveEvent(other.getArchiveEvent());
}
if (!other.getContinuationToken().isEmpty()) {
continuationToken_ = other.continuationToken_;
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(
getCreateEventFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getArchiveEventFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 34: {
continuationToken_ = input.readStringRequireUtf8();
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private com.daml.ledger.api.v1.EventOuterClass.CreatedEvent createEvent_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder> createEventBuilder_;
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return Whether the createEvent field is set.
*/
public boolean hasCreateEvent() {
return createEventBuilder_ != null || createEvent_ != null;
}
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
* @return The createEvent.
*/
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent getCreateEvent() {
if (createEventBuilder_ == null) {
return createEvent_ == null ? com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance() : createEvent_;
} else {
return createEventBuilder_.getMessage();
}
}
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public Builder setCreateEvent(com.daml.ledger.api.v1.EventOuterClass.CreatedEvent value) {
if (createEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createEvent_ = value;
onChanged();
} else {
createEventBuilder_.setMessage(value);
}
return this;
}
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public Builder setCreateEvent(
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder builderForValue) {
if (createEventBuilder_ == null) {
createEvent_ = builderForValue.build();
onChanged();
} else {
createEventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public Builder mergeCreateEvent(com.daml.ledger.api.v1.EventOuterClass.CreatedEvent value) {
if (createEventBuilder_ == null) {
if (createEvent_ != null) {
createEvent_ =
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.newBuilder(createEvent_).mergeFrom(value).buildPartial();
} else {
createEvent_ = value;
}
onChanged();
} else {
createEventBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public Builder clearCreateEvent() {
if (createEventBuilder_ == null) {
createEvent_ = null;
onChanged();
} else {
createEvent_ = null;
createEventBuilder_ = null;
}
return this;
}
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder getCreateEventBuilder() {
onChanged();
return getCreateEventFieldBuilder().getBuilder();
}
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
public com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder getCreateEventOrBuilder() {
if (createEventBuilder_ != null) {
return createEventBuilder_.getMessageOrBuilder();
} else {
return createEvent_ == null ?
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.getDefaultInstance() : createEvent_;
}
}
/**
*
* The most recent create event for a contract with the key given in the request, if
* no ``continuation_token`` is provided. If a ``continuation_token`` is provided, then
* this is the most recent create event preceding the create event whose
* ``continuation_token`` was provided.
* Optional
*
*
* .com.daml.ledger.api.v1.CreatedEvent create_event = 1 [json_name = "createEvent"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder>
getCreateEventFieldBuilder() {
if (createEventBuilder_ == null) {
createEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.CreatedEvent, com.daml.ledger.api.v1.EventOuterClass.CreatedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.CreatedEventOrBuilder>(
getCreateEvent(),
getParentForChildren(),
isClean());
createEvent_ = null;
}
return createEventBuilder_;
}
private com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent archiveEvent_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder> archiveEventBuilder_;
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return Whether the archiveEvent field is set.
*/
public boolean hasArchiveEvent() {
return archiveEventBuilder_ != null || archiveEvent_ != null;
}
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
* @return The archiveEvent.
*/
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent getArchiveEvent() {
if (archiveEventBuilder_ == null) {
return archiveEvent_ == null ? com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance() : archiveEvent_;
} else {
return archiveEventBuilder_.getMessage();
}
}
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public Builder setArchiveEvent(com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent value) {
if (archiveEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
archiveEvent_ = value;
onChanged();
} else {
archiveEventBuilder_.setMessage(value);
}
return this;
}
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public Builder setArchiveEvent(
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder builderForValue) {
if (archiveEventBuilder_ == null) {
archiveEvent_ = builderForValue.build();
onChanged();
} else {
archiveEventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public Builder mergeArchiveEvent(com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent value) {
if (archiveEventBuilder_ == null) {
if (archiveEvent_ != null) {
archiveEvent_ =
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.newBuilder(archiveEvent_).mergeFrom(value).buildPartial();
} else {
archiveEvent_ = value;
}
onChanged();
} else {
archiveEventBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public Builder clearArchiveEvent() {
if (archiveEventBuilder_ == null) {
archiveEvent_ = null;
onChanged();
} else {
archiveEvent_ = null;
archiveEventBuilder_ = null;
}
return this;
}
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder getArchiveEventBuilder() {
onChanged();
return getArchiveEventFieldBuilder().getBuilder();
}
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
public com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder getArchiveEventOrBuilder() {
if (archiveEventBuilder_ != null) {
return archiveEventBuilder_.getMessageOrBuilder();
} else {
return archiveEvent_ == null ?
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.getDefaultInstance() : archiveEvent_;
}
}
/**
*
* The archive event for the create event provided the created contract is archived.
* Optional
*
*
* .com.daml.ledger.api.v1.ArchivedEvent archive_event = 2 [json_name = "archiveEvent"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder>
getArchiveEventFieldBuilder() {
if (archiveEventBuilder_ == null) {
archiveEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent, com.daml.ledger.api.v1.EventOuterClass.ArchivedEvent.Builder, com.daml.ledger.api.v1.EventOuterClass.ArchivedEventOrBuilder>(
getArchiveEvent(),
getParentForChildren(),
isClean());
archiveEvent_ = null;
}
return archiveEventBuilder_;
}
private java.lang.Object continuationToken_ = "";
/**
*
* If the ``continuation_token`` is populated then there may be additional events available. To retrieve
* these events use the ``continuation_token`` in a subsequent request.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The continuationToken.
*/
public java.lang.String getContinuationToken() {
java.lang.Object ref = continuationToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
continuationToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If the ``continuation_token`` is populated then there may be additional events available. To retrieve
* these events use the ``continuation_token`` in a subsequent request.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return The bytes for continuationToken.
*/
public com.google.protobuf.ByteString
getContinuationTokenBytes() {
java.lang.Object ref = continuationToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
continuationToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If the ``continuation_token`` is populated then there may be additional events available. To retrieve
* these events use the ``continuation_token`` in a subsequent request.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @param value The continuationToken to set.
* @return This builder for chaining.
*/
public Builder setContinuationToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
continuationToken_ = value;
onChanged();
return this;
}
/**
*
* If the ``continuation_token`` is populated then there may be additional events available. To retrieve
* these events use the ``continuation_token`` in a subsequent request.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @return This builder for chaining.
*/
public Builder clearContinuationToken() {
continuationToken_ = getDefaultInstance().getContinuationToken();
onChanged();
return this;
}
/**
*
* If the ``continuation_token`` is populated then there may be additional events available. To retrieve
* these events use the ``continuation_token`` in a subsequent request.
* Optional
*
*
* string continuation_token = 4 [json_name = "continuationToken"];
* @param value The bytes for continuationToken to set.
* @return This builder for chaining.
*/
public Builder setContinuationTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
continuationToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.GetEventsByContractKeyResponse)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.GetEventsByContractKeyResponse)
private static final com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse();
}
public static com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetEventsByContractKeyResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_GetEventsByContractIdRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_GetEventsByContractIdRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_GetEventsByContractIdResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_GetEventsByContractIdResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n0com/daml/ledger/api/v1/event_query_ser" +
"vice.proto\022\026com.daml.ledger.api.v1\032\"com/" +
"daml/ledger/api/v1/event.proto\032\"com/daml" +
"/ledger/api/v1/value.proto\"n\n\034GetEventsB" +
"yContractIdRequest\022\037\n\013contract_id\030\001 \001(\tR" +
"\ncontractId\022-\n\022requesting_parties\030\002 \003(\tR" +
"\021requestingParties\"\264\001\n\035GetEventsByContra" +
"ctIdResponse\022G\n\014create_event\030\001 \001(\0132$.com" +
".daml.ledger.api.v1.CreatedEventR\013create" +
"Event\022J\n\rarchive_event\030\002 \001(\0132%.com.daml." +
"ledger.api.v1.ArchivedEventR\014archiveEven" +
"t\"\204\002\n\035GetEventsByContractKeyRequest\022@\n\014c" +
"ontract_key\030\001 \001(\0132\035.com.daml.ledger.api." +
"v1.ValueR\013contractKey\022C\n\013template_id\030\002 \001" +
"(\0132\".com.daml.ledger.api.v1.IdentifierR\n" +
"templateId\022-\n\022requesting_parties\030\003 \003(\tR\021" +
"requestingParties\022-\n\022continuation_token\030" +
"\004 \001(\tR\021continuationToken\"\344\001\n\036GetEventsBy" +
"ContractKeyResponse\022G\n\014create_event\030\001 \001(" +
"\0132$.com.daml.ledger.api.v1.CreatedEventR" +
"\013createEvent\022J\n\rarchive_event\030\002 \001(\0132%.co" +
"m.daml.ledger.api.v1.ArchivedEventR\014arch" +
"iveEvent\022-\n\022continuation_token\030\004 \001(\tR\021co" +
"ntinuationToken2\244\002\n\021EventQueryService\022\204\001" +
"\n\025GetEventsByContractId\0224.com.daml.ledge" +
"r.api.v1.GetEventsByContractIdRequest\0325." +
"com.daml.ledger.api.v1.GetEventsByContra" +
"ctIdResponse\022\207\001\n\026GetEventsByContractKey\022" +
"5.com.daml.ledger.api.v1.GetEventsByCont" +
"ractKeyRequest\0326.com.daml.ledger.api.v1." +
"GetEventsByContractKeyResponseBN\n\026com.da" +
"ml.ledger.api.v1B\033EventQueryServiceOuter" +
"Class\252\002\026Com.Daml.Ledger.Api.V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.daml.ledger.api.v1.EventOuterClass.getDescriptor(),
com.daml.ledger.api.v1.ValueOuterClass.getDescriptor(),
});
internal_static_com_daml_ledger_api_v1_GetEventsByContractIdRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_daml_ledger_api_v1_GetEventsByContractIdRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_GetEventsByContractIdRequest_descriptor,
new java.lang.String[] { "ContractId", "RequestingParties", });
internal_static_com_daml_ledger_api_v1_GetEventsByContractIdResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_daml_ledger_api_v1_GetEventsByContractIdResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_GetEventsByContractIdResponse_descriptor,
new java.lang.String[] { "CreateEvent", "ArchiveEvent", });
internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyRequest_descriptor,
new java.lang.String[] { "ContractKey", "TemplateId", "RequestingParties", "ContinuationToken", });
internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_GetEventsByContractKeyResponse_descriptor,
new java.lang.String[] { "CreateEvent", "ArchiveEvent", "ContinuationToken", });
com.daml.ledger.api.v1.EventOuterClass.getDescriptor();
com.daml.ledger.api.v1.ValueOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy