Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/daml/lf/transaction.proto
package com.daml.lf.transaction;
public final class TransactionOuterClass {
private TransactionOuterClass() {}
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 TransactionOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.Transaction)
com.google.protobuf.MessageOrBuilder {
/**
* string version = 1;
* @return The version.
*/
java.lang.String getVersion();
/**
* string version = 1;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* repeated string roots = 2;
* @return A list containing the roots.
*/
java.util.List
getRootsList();
/**
* repeated string roots = 2;
* @return The count of roots.
*/
int getRootsCount();
/**
* repeated string roots = 2;
* @param index The index of the element to return.
* @return The roots at the given index.
*/
java.lang.String getRoots(int index);
/**
* repeated string roots = 2;
* @param index The index of the value to return.
* @return The bytes of the roots at the given index.
*/
com.google.protobuf.ByteString
getRootsBytes(int index);
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
java.util.List
getNodesList();
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
com.daml.lf.transaction.TransactionOuterClass.Node getNodes(int index);
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
int getNodesCount();
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
java.util.List extends com.daml.lf.transaction.TransactionOuterClass.NodeOrBuilder>
getNodesOrBuilderList();
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
com.daml.lf.transaction.TransactionOuterClass.NodeOrBuilder getNodesOrBuilder(
int index);
}
/**
*
* data structure represent an update to the ledger. executing a Daml-LF action of type
* Update A produces produces one of these.
* architecture-handbook-entry-begin: Transaction
*
*
* Protobuf type {@code com.daml.lf.transaction.Transaction}
*/
public static final class Transaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.lf.transaction.Transaction)
TransactionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Transaction.newBuilder() to construct.
private Transaction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Transaction() {
version_ = "";
roots_ =
com.google.protobuf.LazyStringArrayList.emptyList();
nodes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Transaction();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.Transaction.class, com.daml.lf.transaction.TransactionOuterClass.Transaction.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object version_ = "";
/**
* string version = 1;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
* string version = 1;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROOTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList roots_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string roots = 2;
* @return A list containing the roots.
*/
public com.google.protobuf.ProtocolStringList
getRootsList() {
return roots_;
}
/**
* repeated string roots = 2;
* @return The count of roots.
*/
public int getRootsCount() {
return roots_.size();
}
/**
* repeated string roots = 2;
* @param index The index of the element to return.
* @return The roots at the given index.
*/
public java.lang.String getRoots(int index) {
return roots_.get(index);
}
/**
* repeated string roots = 2;
* @param index The index of the value to return.
* @return The bytes of the roots at the given index.
*/
public com.google.protobuf.ByteString
getRootsBytes(int index) {
return roots_.getByteString(index);
}
public static final int NODES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List nodes_;
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
@java.lang.Override
public java.util.List getNodesList() {
return nodes_;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
@java.lang.Override
public java.util.List extends com.daml.lf.transaction.TransactionOuterClass.NodeOrBuilder>
getNodesOrBuilderList() {
return nodes_;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
@java.lang.Override
public int getNodesCount() {
return nodes_.size();
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node getNodes(int index) {
return nodes_.get(index);
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.NodeOrBuilder getNodesOrBuilder(
int index) {
return nodes_.get(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(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
for (int i = 0; i < roots_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roots_.getRaw(i));
}
for (int i = 0; i < nodes_.size(); i++) {
output.writeMessage(3, nodes_.get(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(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
}
{
int dataSize = 0;
for (int i = 0; i < roots_.size(); i++) {
dataSize += computeStringSizeNoTag(roots_.getRaw(i));
}
size += dataSize;
size += 1 * getRootsList().size();
}
for (int i = 0; i < nodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, nodes_.get(i));
}
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.lf.transaction.TransactionOuterClass.Transaction)) {
return super.equals(obj);
}
com.daml.lf.transaction.TransactionOuterClass.Transaction other = (com.daml.lf.transaction.TransactionOuterClass.Transaction) obj;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!getRootsList()
.equals(other.getRootsList())) return false;
if (!getNodesList()
.equals(other.getNodesList())) 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) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
if (getRootsCount() > 0) {
hash = (37 * hash) + ROOTS_FIELD_NUMBER;
hash = (53 * hash) + getRootsList().hashCode();
}
if (getNodesCount() > 0) {
hash = (37 * hash) + NODES_FIELD_NUMBER;
hash = (53 * hash) + getNodesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.lf.transaction.TransactionOuterClass.Transaction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Transaction parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.lf.transaction.TransactionOuterClass.Transaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Transaction 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.lf.transaction.TransactionOuterClass.Transaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Transaction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.lf.transaction.TransactionOuterClass.Transaction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Transaction 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.lf.transaction.TransactionOuterClass.Transaction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Transaction 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.lf.transaction.TransactionOuterClass.Transaction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Transaction 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.lf.transaction.TransactionOuterClass.Transaction 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;
}
/**
*
* data structure represent an update to the ledger. executing a Daml-LF action of type
* Update A produces produces one of these.
* architecture-handbook-entry-begin: Transaction
*
*
* Protobuf type {@code com.daml.lf.transaction.Transaction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.Transaction)
com.daml.lf.transaction.TransactionOuterClass.TransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.Transaction.class, com.daml.lf.transaction.TransactionOuterClass.Transaction.Builder.class);
}
// Construct using com.daml.lf.transaction.TransactionOuterClass.Transaction.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
version_ = "";
roots_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
} else {
nodes_ = null;
nodesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Transaction_descriptor;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Transaction getDefaultInstanceForType() {
return com.daml.lf.transaction.TransactionOuterClass.Transaction.getDefaultInstance();
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Transaction build() {
com.daml.lf.transaction.TransactionOuterClass.Transaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Transaction buildPartial() {
com.daml.lf.transaction.TransactionOuterClass.Transaction result = new com.daml.lf.transaction.TransactionOuterClass.Transaction(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.daml.lf.transaction.TransactionOuterClass.Transaction result) {
if (nodesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.nodes_ = nodes_;
} else {
result.nodes_ = nodesBuilder_.build();
}
}
private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.Transaction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.version_ = version_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
roots_.makeImmutable();
result.roots_ = roots_;
}
}
@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.lf.transaction.TransactionOuterClass.Transaction) {
return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.Transaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.Transaction other) {
if (other == com.daml.lf.transaction.TransactionOuterClass.Transaction.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.roots_.isEmpty()) {
if (roots_.isEmpty()) {
roots_ = other.roots_;
bitField0_ |= 0x00000002;
} else {
ensureRootsIsMutable();
roots_.addAll(other.roots_);
}
onChanged();
}
if (nodesBuilder_ == null) {
if (!other.nodes_.isEmpty()) {
if (nodes_.isEmpty()) {
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureNodesIsMutable();
nodes_.addAll(other.nodes_);
}
onChanged();
}
} else {
if (!other.nodes_.isEmpty()) {
if (nodesBuilder_.isEmpty()) {
nodesBuilder_.dispose();
nodesBuilder_ = null;
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000004);
nodesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNodesFieldBuilder() : null;
} else {
nodesBuilder_.addAllMessages(other.nodes_);
}
}
}
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: {
version_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureRootsIsMutable();
roots_.add(s);
break;
} // case 18
case 26: {
com.daml.lf.transaction.TransactionOuterClass.Node m =
input.readMessage(
com.daml.lf.transaction.TransactionOuterClass.Node.parser(),
extensionRegistry);
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(m);
} else {
nodesBuilder_.addMessage(m);
}
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object version_ = "";
/**
* string version = 1;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string version = 1;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string version = 1;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList roots_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRootsIsMutable() {
if (!roots_.isModifiable()) {
roots_ = new com.google.protobuf.LazyStringArrayList(roots_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated string roots = 2;
* @return A list containing the roots.
*/
public com.google.protobuf.ProtocolStringList
getRootsList() {
roots_.makeImmutable();
return roots_;
}
/**
* repeated string roots = 2;
* @return The count of roots.
*/
public int getRootsCount() {
return roots_.size();
}
/**
* repeated string roots = 2;
* @param index The index of the element to return.
* @return The roots at the given index.
*/
public java.lang.String getRoots(int index) {
return roots_.get(index);
}
/**
* repeated string roots = 2;
* @param index The index of the value to return.
* @return The bytes of the roots at the given index.
*/
public com.google.protobuf.ByteString
getRootsBytes(int index) {
return roots_.getByteString(index);
}
/**
* repeated string roots = 2;
* @param index The index to set the value at.
* @param value The roots to set.
* @return This builder for chaining.
*/
public Builder setRoots(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRootsIsMutable();
roots_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string roots = 2;
* @param value The roots to add.
* @return This builder for chaining.
*/
public Builder addRoots(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRootsIsMutable();
roots_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string roots = 2;
* @param values The roots to add.
* @return This builder for chaining.
*/
public Builder addAllRoots(
java.lang.Iterable values) {
ensureRootsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, roots_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string roots = 2;
* @return This builder for chaining.
*/
public Builder clearRoots() {
roots_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
* repeated string roots = 2;
* @param value The bytes of the roots to add.
* @return This builder for chaining.
*/
public Builder addRootsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureRootsIsMutable();
roots_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.util.List nodes_ =
java.util.Collections.emptyList();
private void ensureNodesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
nodes_ = new java.util.ArrayList(nodes_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node, com.daml.lf.transaction.TransactionOuterClass.Node.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeOrBuilder> nodesBuilder_;
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public java.util.List getNodesList() {
if (nodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodes_);
} else {
return nodesBuilder_.getMessageList();
}
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public int getNodesCount() {
if (nodesBuilder_ == null) {
return nodes_.size();
} else {
return nodesBuilder_.getCount();
}
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public com.daml.lf.transaction.TransactionOuterClass.Node getNodes(int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index);
} else {
return nodesBuilder_.getMessage(index);
}
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public Builder setNodes(
int index, com.daml.lf.transaction.TransactionOuterClass.Node value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.set(index, value);
onChanged();
} else {
nodesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public Builder setNodes(
int index, com.daml.lf.transaction.TransactionOuterClass.Node.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.set(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public Builder addNodes(com.daml.lf.transaction.TransactionOuterClass.Node value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(value);
onChanged();
} else {
nodesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public Builder addNodes(
int index, com.daml.lf.transaction.TransactionOuterClass.Node value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(index, value);
onChanged();
} else {
nodesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public Builder addNodes(
com.daml.lf.transaction.TransactionOuterClass.Node.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public Builder addNodes(
int index, com.daml.lf.transaction.TransactionOuterClass.Node.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public Builder addAllNodes(
java.lang.Iterable extends com.daml.lf.transaction.TransactionOuterClass.Node> values) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodes_);
onChanged();
} else {
nodesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public Builder clearNodes() {
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
nodesBuilder_.clear();
}
return this;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public Builder removeNodes(int index) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.remove(index);
onChanged();
} else {
nodesBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public com.daml.lf.transaction.TransactionOuterClass.Node.Builder getNodesBuilder(
int index) {
return getNodesFieldBuilder().getBuilder(index);
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public com.daml.lf.transaction.TransactionOuterClass.NodeOrBuilder getNodesOrBuilder(
int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index); } else {
return nodesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public java.util.List extends com.daml.lf.transaction.TransactionOuterClass.NodeOrBuilder>
getNodesOrBuilderList() {
if (nodesBuilder_ != null) {
return nodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodes_);
}
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public com.daml.lf.transaction.TransactionOuterClass.Node.Builder addNodesBuilder() {
return getNodesFieldBuilder().addBuilder(
com.daml.lf.transaction.TransactionOuterClass.Node.getDefaultInstance());
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public com.daml.lf.transaction.TransactionOuterClass.Node.Builder addNodesBuilder(
int index) {
return getNodesFieldBuilder().addBuilder(
index, com.daml.lf.transaction.TransactionOuterClass.Node.getDefaultInstance());
}
/**
* repeated .com.daml.lf.transaction.Node nodes = 3;
*/
public java.util.List
getNodesBuilderList() {
return getNodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node, com.daml.lf.transaction.TransactionOuterClass.Node.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeOrBuilder>
getNodesFieldBuilder() {
if (nodesBuilder_ == null) {
nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node, com.daml.lf.transaction.TransactionOuterClass.Node.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeOrBuilder>(
nodes_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
nodes_ = null;
}
return nodesBuilder_;
}
@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.lf.transaction.Transaction)
}
// @@protoc_insertion_point(class_scope:com.daml.lf.transaction.Transaction)
private static final com.daml.lf.transaction.TransactionOuterClass.Transaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.Transaction();
}
public static com.daml.lf.transaction.TransactionOuterClass.Transaction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Transaction 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.lf.transaction.TransactionOuterClass.Transaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContractInstanceOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.ContractInstance)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* repeated string maintainers = 2;
* @return A list containing the maintainers.
*/
java.util.List
getMaintainersList();
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @return The count of maintainers.
*/
int getMaintainersCount();
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @param index The index of the element to return.
* @return The maintainers at the given index.
*/
java.lang.String getMaintainers(int index);
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @param index The index of the value to return.
* @return The bytes of the maintainers at the given index.
*/
com.google.protobuf.ByteString
getMaintainersBytes(int index);
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.KeyCase getKeyCase();
}
/**
* Protobuf type {@code com.daml.lf.transaction.KeyWithMaintainers}
*/
public static final class KeyWithMaintainers extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.lf.transaction.KeyWithMaintainers)
KeyWithMaintainersOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeyWithMaintainers.newBuilder() to construct.
private KeyWithMaintainers(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeyWithMaintainers() {
maintainers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeyWithMaintainers();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_KeyWithMaintainers_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_KeyWithMaintainers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.class, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder.class);
}
private int keyCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object key_;
public enum KeyCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
KEY_VERSIONED(1),
KEY_UNVERSIONED(3),
KEY_NOT_SET(0);
private final int value;
private KeyCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static KeyCase valueOf(int value) {
return forNumber(value);
}
public static KeyCase forNumber(int value) {
switch (value) {
case 1: return KEY_VERSIONED;
case 3: return KEY_UNVERSIONED;
case 0: return KEY_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public KeyCase
getKeyCase() {
return KeyCase.forNumber(
keyCase_);
}
public static final int KEY_VERSIONED_FIELD_NUMBER = 1;
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue key_versioned = 1;
* @return Whether the keyVersioned field is set.
*/
@java.lang.Override
public boolean hasKeyVersioned() {
return keyCase_ == 1;
}
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue key_versioned = 1;
* @return The keyVersioned.
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.VersionedValue getKeyVersioned() {
if (keyCase_ == 1) {
return (com.daml.lf.value.ValueOuterClass.VersionedValue) key_;
}
return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
}
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue key_versioned = 1;
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getKeyVersionedOrBuilder() {
if (keyCase_ == 1) {
return (com.daml.lf.value.ValueOuterClass.VersionedValue) key_;
}
return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
}
public static final int KEY_UNVERSIONED_FIELD_NUMBER = 3;
/**
* bytes key_unversioned = 3;
* @return Whether the keyUnversioned field is set.
*/
@java.lang.Override
public boolean hasKeyUnversioned() {
return keyCase_ == 3;
}
/**
* bytes key_unversioned = 3;
* @return The keyUnversioned.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKeyUnversioned() {
if (keyCase_ == 3) {
return (com.google.protobuf.ByteString) key_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int MAINTAINERS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList maintainers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @return A list containing the maintainers.
*/
public com.google.protobuf.ProtocolStringList
getMaintainersList() {
return maintainers_;
}
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @return The count of maintainers.
*/
public int getMaintainersCount() {
return maintainers_.size();
}
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @param index The index of the element to return.
* @return The maintainers at the given index.
*/
public java.lang.String getMaintainers(int index) {
return maintainers_.get(index);
}
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @param index The index of the value to return.
* @return The bytes of the maintainers at the given index.
*/
public com.google.protobuf.ByteString
getMaintainersBytes(int index) {
return maintainers_.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 (keyCase_ == 1) {
output.writeMessage(1, (com.daml.lf.value.ValueOuterClass.VersionedValue) key_);
}
for (int i = 0; i < maintainers_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, maintainers_.getRaw(i));
}
if (keyCase_ == 3) {
output.writeBytes(
3, (com.google.protobuf.ByteString) key_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (keyCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.daml.lf.value.ValueOuterClass.VersionedValue) key_);
}
{
int dataSize = 0;
for (int i = 0; i < maintainers_.size(); i++) {
dataSize += computeStringSizeNoTag(maintainers_.getRaw(i));
}
size += dataSize;
size += 1 * getMaintainersList().size();
}
if (keyCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
3, (com.google.protobuf.ByteString) key_);
}
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.lf.transaction.TransactionOuterClass.KeyWithMaintainers)) {
return super.equals(obj);
}
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers other = (com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers) obj;
if (!getMaintainersList()
.equals(other.getMaintainersList())) return false;
if (!getKeyCase().equals(other.getKeyCase())) return false;
switch (keyCase_) {
case 1:
if (!getKeyVersioned()
.equals(other.getKeyVersioned())) return false;
break;
case 3:
if (!getKeyUnversioned()
.equals(other.getKeyUnversioned())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getMaintainersCount() > 0) {
hash = (37 * hash) + MAINTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getMaintainersList().hashCode();
}
switch (keyCase_) {
case 1:
hash = (37 * hash) + KEY_VERSIONED_FIELD_NUMBER;
hash = (53 * hash) + getKeyVersioned().hashCode();
break;
case 3:
hash = (37 * hash) + KEY_UNVERSIONED_FIELD_NUMBER;
hash = (53 * hash) + getKeyUnversioned().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers 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.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers 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.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers 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.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers 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.lf.transaction.TransactionOuterClass.KeyWithMaintainers 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.lf.transaction.KeyWithMaintainers}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.KeyWithMaintainers)
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_KeyWithMaintainers_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_KeyWithMaintainers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.class, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder.class);
}
// Construct using com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (keyVersionedBuilder_ != null) {
keyVersionedBuilder_.clear();
}
maintainers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
keyCase_ = 0;
key_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_KeyWithMaintainers_descriptor;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getDefaultInstanceForType() {
return com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance();
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers build() {
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers buildPartial() {
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers result = new com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
maintainers_.makeImmutable();
result.maintainers_ = maintainers_;
}
}
private void buildPartialOneofs(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers result) {
result.keyCase_ = keyCase_;
result.key_ = this.key_;
if (keyCase_ == 1 &&
keyVersionedBuilder_ != null) {
result.key_ = keyVersionedBuilder_.build();
}
}
@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.lf.transaction.TransactionOuterClass.KeyWithMaintainers) {
return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers other) {
if (other == com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance()) return this;
if (!other.maintainers_.isEmpty()) {
if (maintainers_.isEmpty()) {
maintainers_ = other.maintainers_;
bitField0_ |= 0x00000004;
} else {
ensureMaintainersIsMutable();
maintainers_.addAll(other.maintainers_);
}
onChanged();
}
switch (other.getKeyCase()) {
case KEY_VERSIONED: {
mergeKeyVersioned(other.getKeyVersioned());
break;
}
case KEY_UNVERSIONED: {
setKeyUnversioned(other.getKeyUnversioned());
break;
}
case KEY_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getKeyVersionedFieldBuilder().getBuilder(),
extensionRegistry);
keyCase_ = 1;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureMaintainersIsMutable();
maintainers_.add(s);
break;
} // case 18
case 26: {
key_ = input.readBytes();
keyCase_ = 3;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int keyCase_ = 0;
private java.lang.Object key_;
public KeyCase
getKeyCase() {
return KeyCase.forNumber(
keyCase_);
}
public Builder clearKey() {
keyCase_ = 0;
key_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder> keyVersionedBuilder_;
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue key_versioned = 1;
* @return Whether the keyVersioned field is set.
*/
@java.lang.Override
public boolean hasKeyVersioned() {
return keyCase_ == 1;
}
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue key_versioned = 1;
* @return The keyVersioned.
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.VersionedValue getKeyVersioned() {
if (keyVersionedBuilder_ == null) {
if (keyCase_ == 1) {
return (com.daml.lf.value.ValueOuterClass.VersionedValue) key_;
}
return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
} else {
if (keyCase_ == 1) {
return keyVersionedBuilder_.getMessage();
}
return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
}
}
/**
*
*
* .com.daml.lf.value.VersionedValue key_versioned = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder>
getKeyVersionedFieldBuilder() {
if (keyVersionedBuilder_ == null) {
if (!(keyCase_ == 1)) {
key_ = com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
}
keyVersionedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder>(
(com.daml.lf.value.ValueOuterClass.VersionedValue) key_,
getParentForChildren(),
isClean());
key_ = null;
}
keyCase_ = 1;
onChanged();
return keyVersionedBuilder_;
}
/**
* bytes key_unversioned = 3;
* @return Whether the keyUnversioned field is set.
*/
public boolean hasKeyUnversioned() {
return keyCase_ == 3;
}
/**
* bytes key_unversioned = 3;
* @return The keyUnversioned.
*/
public com.google.protobuf.ByteString getKeyUnversioned() {
if (keyCase_ == 3) {
return (com.google.protobuf.ByteString) key_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes key_unversioned = 3;
* @param value The keyUnversioned to set.
* @return This builder for chaining.
*/
public Builder setKeyUnversioned(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
keyCase_ = 3;
key_ = value;
onChanged();
return this;
}
/**
* bytes key_unversioned = 3;
* @return This builder for chaining.
*/
public Builder clearKeyUnversioned() {
if (keyCase_ == 3) {
keyCase_ = 0;
key_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.LazyStringArrayList maintainers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMaintainersIsMutable() {
if (!maintainers_.isModifiable()) {
maintainers_ = new com.google.protobuf.LazyStringArrayList(maintainers_);
}
bitField0_ |= 0x00000004;
}
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @return A list containing the maintainers.
*/
public com.google.protobuf.ProtocolStringList
getMaintainersList() {
maintainers_.makeImmutable();
return maintainers_;
}
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @return The count of maintainers.
*/
public int getMaintainersCount() {
return maintainers_.size();
}
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @param index The index of the element to return.
* @return The maintainers at the given index.
*/
public java.lang.String getMaintainers(int index) {
return maintainers_.get(index);
}
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @param index The index of the value to return.
* @return The bytes of the maintainers at the given index.
*/
public com.google.protobuf.ByteString
getMaintainersBytes(int index) {
return maintainers_.getByteString(index);
}
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @param index The index to set the value at.
* @param value The maintainers to set.
* @return This builder for chaining.
*/
public Builder setMaintainers(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMaintainersIsMutable();
maintainers_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @param value The maintainers to add.
* @return This builder for chaining.
*/
public Builder addMaintainers(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMaintainersIsMutable();
maintainers_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* the maintainers induced by the key
*
*
* repeated string maintainers = 2;
* @param values The maintainers to add.
* @return This builder for chaining.
*/
public Builder addAllMaintainers(
java.lang.Iterable values) {
ensureMaintainersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, maintainers_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
* string package_name = 10;
* @return The bytes for packageName.
*/
com.google.protobuf.ByteString
getPackageNameBytes();
/**
* .com.daml.lf.value.Identifier template_id = 7;
* @return Whether the templateId field is set.
*/
boolean hasTemplateId();
/**
* .com.daml.lf.value.Identifier template_id = 7;
* @return The templateId.
*/
com.daml.lf.value.ValueOuterClass.Identifier getTemplateId();
/**
* .com.daml.lf.value.Identifier template_id = 7;
*/
com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder();
/**
* bytes arg_unversioned = 8;
* @return The argUnversioned.
*/
com.google.protobuf.ByteString getArgUnversioned();
/**
* string agreement = 9;
* @return The agreement.
*/
java.lang.String getAgreement();
/**
* string agreement = 9;
* @return The bytes for agreement.
*/
com.google.protobuf.ByteString
getAgreementBytes();
/**
* repeated string stakeholders = 3;
* @return A list containing the stakeholders.
*/
java.util.List
getStakeholdersList();
/**
* repeated string stakeholders = 3;
* @return The count of stakeholders.
*/
int getStakeholdersCount();
/**
* repeated string stakeholders = 3;
* @param index The index of the element to return.
* @return The stakeholders at the given index.
*/
java.lang.String getStakeholders(int index);
/**
* repeated string stakeholders = 3;
* @param index The index of the value to return.
* @return The bytes of the stakeholders at the given index.
*/
com.google.protobuf.ByteString
getStakeholdersBytes(int index);
/**
* repeated string signatories = 4;
* @return A list containing the signatories.
*/
java.util.List
getSignatoriesList();
/**
* repeated string signatories = 4;
* @return The count of signatories.
*/
int getSignatoriesCount();
/**
* repeated string signatories = 4;
* @param index The index of the element to return.
* @return The signatories at the given index.
*/
java.lang.String getSignatories(int index);
/**
* repeated string signatories = 4;
* @param index The index of the value to return.
* @return The bytes of the signatories at the given index.
*/
com.google.protobuf.ByteString
getSignatoriesBytes(int index);
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5;
* @return Whether the keyWithMaintainers field is set.
*/
boolean hasKeyWithMaintainers();
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5;
* @return The keyWithMaintainers.
*/
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getKeyWithMaintainers();
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5;
*/
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder();
/**
* .com.daml.lf.value.ContractId contract_id_struct = 6;
* @return Whether the contractIdStruct field is set.
*/
boolean hasContractIdStruct();
/**
* .com.daml.lf.value.ContractId contract_id_struct = 6;
* @return The contractIdStruct.
*/
com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct();
/**
* .com.daml.lf.value.ContractId contract_id_struct = 6;
*/
com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder();
}
/**
* Protobuf type {@code com.daml.lf.transaction.NodeCreate}
*/
public static final class NodeCreate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.lf.transaction.NodeCreate)
NodeCreateOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeCreate.newBuilder() to construct.
private NodeCreate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeCreate() {
packageName_ = "";
argUnversioned_ = com.google.protobuf.ByteString.EMPTY;
agreement_ = "";
stakeholders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
signatories_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeCreate();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeCreate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeCreate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.NodeCreate.class, com.daml.lf.transaction.TransactionOuterClass.NodeCreate.Builder.class);
}
private int bitField0_;
public static final int CONTRACT_INSTANCE_FIELD_NUMBER = 2;
private com.daml.lf.transaction.TransactionOuterClass.ContractInstance contractInstance_;
/**
*
* *must not be used*
*
*
* .com.daml.lf.transaction.ContractInstance contract_instance = 2;
* @return Whether the contractInstance field is set.
*/
@java.lang.Override
public boolean hasContractInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* string package_name = 10;
* @return The bytes for packageName.
*/
com.google.protobuf.ByteString
getPackageNameBytes();
/**
* .com.daml.lf.value.Identifier template_id = 2;
* @return Whether the templateId field is set.
*/
boolean hasTemplateId();
/**
* .com.daml.lf.value.Identifier template_id = 2;
* @return The templateId.
*/
com.daml.lf.value.ValueOuterClass.Identifier getTemplateId();
/**
* .com.daml.lf.value.Identifier template_id = 2;
*/
com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder();
/**
* repeated string actors = 7;
* @return A list containing the actors.
*/
java.util.List
getActorsList();
/**
* repeated string actors = 7;
* @return The count of actors.
*/
int getActorsCount();
/**
* repeated string actors = 7;
* @param index The index of the element to return.
* @return The actors at the given index.
*/
java.lang.String getActors(int index);
/**
* repeated string actors = 7;
* @param index The index of the value to return.
* @return The bytes of the actors at the given index.
*/
com.google.protobuf.ByteString
getActorsBytes(int index);
/**
* repeated string stakeholders = 3;
* @return A list containing the stakeholders.
*/
java.util.List
getStakeholdersList();
/**
* repeated string stakeholders = 3;
* @return The count of stakeholders.
*/
int getStakeholdersCount();
/**
* repeated string stakeholders = 3;
* @param index The index of the element to return.
* @return The stakeholders at the given index.
*/
java.lang.String getStakeholders(int index);
/**
* repeated string stakeholders = 3;
* @param index The index of the value to return.
* @return The bytes of the stakeholders at the given index.
*/
com.google.protobuf.ByteString
getStakeholdersBytes(int index);
/**
* repeated string signatories = 4;
* @return A list containing the signatories.
*/
java.util.List
getSignatoriesList();
/**
* repeated string signatories = 4;
* @return The count of signatories.
*/
int getSignatoriesCount();
/**
* repeated string signatories = 4;
* @param index The index of the element to return.
* @return The signatories at the given index.
*/
java.lang.String getSignatories(int index);
/**
* repeated string signatories = 4;
* @param index The index of the value to return.
* @return The bytes of the signatories at the given index.
*/
com.google.protobuf.ByteString
getSignatoriesBytes(int index);
/**
* .com.daml.lf.value.ContractId contract_id_struct = 6;
* @return Whether the contractIdStruct field is set.
*/
boolean hasContractIdStruct();
/**
* .com.daml.lf.value.ContractId contract_id_struct = 6;
* @return The contractIdStruct.
*/
com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct();
/**
* .com.daml.lf.value.ContractId contract_id_struct = 6;
*/
com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder();
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8;
* @return Whether the keyWithMaintainers field is set.
*/
boolean hasKeyWithMaintainers();
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8;
* @return The keyWithMaintainers.
*/
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getKeyWithMaintainers();
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8;
*/
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder();
/**
* bool by_key = 9;
* @return The byKey.
*/
boolean getByKey();
}
/**
* Protobuf type {@code com.daml.lf.transaction.NodeFetch}
*/
public static final class NodeFetch extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.lf.transaction.NodeFetch)
NodeFetchOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeFetch.newBuilder() to construct.
private NodeFetch(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeFetch() {
packageName_ = "";
actors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
stakeholders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
signatories_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeFetch();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeFetch_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeFetch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.NodeFetch.class, com.daml.lf.transaction.TransactionOuterClass.NodeFetch.Builder.class);
}
private int bitField0_;
public static final int PACKAGE_NAME_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object packageName_ = "";
/**
*
*
* .com.daml.lf.value.Identifier interface_id = 19;
*/
com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder();
/**
* repeated string actors = 3;
* @return A list containing the actors.
*/
java.util.List
getActorsList();
/**
* repeated string actors = 3;
* @return The count of actors.
*/
int getActorsCount();
/**
* repeated string actors = 3;
* @param index The index of the element to return.
* @return The actors at the given index.
*/
java.lang.String getActors(int index);
/**
* repeated string actors = 3;
* @param index The index of the value to return.
* @return The bytes of the actors at the given index.
*/
com.google.protobuf.ByteString
getActorsBytes(int index);
/**
* string choice = 4;
* @return The choice.
*/
java.lang.String getChoice();
/**
* string choice = 4;
* @return The bytes for choice.
*/
com.google.protobuf.ByteString
getChoiceBytes();
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue arg_versioned = 5;
* @return Whether the argVersioned field is set.
*/
boolean hasArgVersioned();
/**
*
*
* repeated string children = 7;
* @return A list containing the children.
*/
java.util.List
getChildrenList();
/**
*
* node ids
*
*
* repeated string children = 7;
* @return The count of children.
*/
int getChildrenCount();
/**
*
* node ids
*
*
* repeated string children = 7;
* @param index The index of the element to return.
* @return The children at the given index.
*/
java.lang.String getChildren(int index);
/**
*
* node ids
*
*
* repeated string children = 7;
* @param index The index of the value to return.
* @return The bytes of the children at the given index.
*/
com.google.protobuf.ByteString
getChildrenBytes(int index);
/**
* repeated string stakeholders = 8;
* @return A list containing the stakeholders.
*/
java.util.List
getStakeholdersList();
/**
* repeated string stakeholders = 8;
* @return The count of stakeholders.
*/
int getStakeholdersCount();
/**
* repeated string stakeholders = 8;
* @param index The index of the element to return.
* @return The stakeholders at the given index.
*/
java.lang.String getStakeholders(int index);
/**
* repeated string stakeholders = 8;
* @param index The index of the value to return.
* @return The bytes of the stakeholders at the given index.
*/
com.google.protobuf.ByteString
getStakeholdersBytes(int index);
/**
* repeated string signatories = 9;
* @return A list containing the signatories.
*/
java.util.List
getSignatoriesList();
/**
* repeated string signatories = 9;
* @return The count of signatories.
*/
int getSignatoriesCount();
/**
* repeated string signatories = 9;
* @param index The index of the element to return.
* @return The signatories at the given index.
*/
java.lang.String getSignatories(int index);
/**
* repeated string signatories = 9;
* @param index The index of the value to return.
* @return The bytes of the signatories at the given index.
*/
com.google.protobuf.ByteString
getSignatoriesBytes(int index);
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
* @return Whether the contractIdStruct field is set.
*/
boolean hasContractIdStruct();
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
* @return The contractIdStruct.
*/
com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct();
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
*/
com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder();
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue result_versioned = 12;
* @return Whether the resultVersioned field is set.
*/
boolean hasResultVersioned();
/**
*
*
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14;
*/
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder();
/**
* repeated string observers = 15;
* @return A list containing the observers.
*/
java.util.List
getObserversList();
/**
* repeated string observers = 15;
* @return The count of observers.
*/
int getObserversCount();
/**
* repeated string observers = 15;
* @param index The index of the element to return.
* @return The observers at the given index.
*/
java.lang.String getObservers(int index);
/**
* repeated string observers = 15;
* @param index The index of the value to return.
* @return The bytes of the observers at the given index.
*/
com.google.protobuf.ByteString
getObserversBytes(int index);
/**
*
*
* repeated string authorizers = 20;
* @param index The index of the element to return.
* @return The authorizers at the given index.
*/
java.lang.String getAuthorizers(int index);
/**
*
*
* .com.daml.lf.value.Identifier interface_id = 19;
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder() {
return interfaceId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_;
}
public static final int ACTORS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList actors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string actors = 3;
* @return A list containing the actors.
*/
public com.google.protobuf.ProtocolStringList
getActorsList() {
return actors_;
}
/**
* repeated string actors = 3;
* @return The count of actors.
*/
public int getActorsCount() {
return actors_.size();
}
/**
* repeated string actors = 3;
* @param index The index of the element to return.
* @return The actors at the given index.
*/
public java.lang.String getActors(int index) {
return actors_.get(index);
}
/**
* repeated string actors = 3;
* @param index The index of the value to return.
* @return The bytes of the actors at the given index.
*/
public com.google.protobuf.ByteString
getActorsBytes(int index) {
return actors_.getByteString(index);
}
public static final int CHOICE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object choice_ = "";
/**
* string choice = 4;
* @return The choice.
*/
@java.lang.Override
public java.lang.String getChoice() {
java.lang.Object ref = choice_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
choice_ = s;
return s;
}
}
/**
* string choice = 4;
* @return The bytes for choice.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChoiceBytes() {
java.lang.Object ref = choice_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
choice_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARG_VERSIONED_FIELD_NUMBER = 5;
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue arg_versioned = 5;
* @return Whether the argVersioned field is set.
*/
@java.lang.Override
public boolean hasArgVersioned() {
return argCase_ == 5;
}
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue arg_versioned = 5;
* @return The argVersioned.
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.VersionedValue getArgVersioned() {
if (argCase_ == 5) {
return (com.daml.lf.value.ValueOuterClass.VersionedValue) arg_;
}
return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
}
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue arg_versioned = 5;
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getArgVersionedOrBuilder() {
if (argCase_ == 5) {
return (com.daml.lf.value.ValueOuterClass.VersionedValue) arg_;
}
return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
}
public static final int ARG_UNVERSIONED_FIELD_NUMBER = 16;
/**
* bytes arg_unversioned = 16;
* @return Whether the argUnversioned field is set.
*/
@java.lang.Override
public boolean hasArgUnversioned() {
return argCase_ == 16;
}
/**
* bytes arg_unversioned = 16;
* @return The argUnversioned.
*/
@java.lang.Override
public com.google.protobuf.ByteString getArgUnversioned() {
if (argCase_ == 16) {
return (com.google.protobuf.ByteString) arg_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int CONSUMING_FIELD_NUMBER = 6;
private boolean consuming_ = false;
/**
* bool consuming = 6;
* @return The consuming.
*/
@java.lang.Override
public boolean getConsuming() {
return consuming_;
}
public static final int CHILDREN_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* node ids
*
*
* repeated string children = 7;
* @return A list containing the children.
*/
public com.google.protobuf.ProtocolStringList
getChildrenList() {
return children_;
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @return The count of children.
*/
public int getChildrenCount() {
return children_.size();
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @param index The index of the element to return.
* @return The children at the given index.
*/
public java.lang.String getChildren(int index) {
return children_.get(index);
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @param index The index of the value to return.
* @return The bytes of the children at the given index.
*/
public com.google.protobuf.ByteString
getChildrenBytes(int index) {
return children_.getByteString(index);
}
public static final int STAKEHOLDERS_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList stakeholders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string stakeholders = 8;
* @return A list containing the stakeholders.
*/
public com.google.protobuf.ProtocolStringList
getStakeholdersList() {
return stakeholders_;
}
/**
* repeated string stakeholders = 8;
* @return The count of stakeholders.
*/
public int getStakeholdersCount() {
return stakeholders_.size();
}
/**
* repeated string stakeholders = 8;
* @param index The index of the element to return.
* @return The stakeholders at the given index.
*/
public java.lang.String getStakeholders(int index) {
return stakeholders_.get(index);
}
/**
* repeated string stakeholders = 8;
* @param index The index of the value to return.
* @return The bytes of the stakeholders at the given index.
*/
public com.google.protobuf.ByteString
getStakeholdersBytes(int index) {
return stakeholders_.getByteString(index);
}
public static final int SIGNATORIES_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList signatories_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string signatories = 9;
* @return A list containing the signatories.
*/
public com.google.protobuf.ProtocolStringList
getSignatoriesList() {
return signatories_;
}
/**
* repeated string signatories = 9;
* @return The count of signatories.
*/
public int getSignatoriesCount() {
return signatories_.size();
}
/**
* repeated string signatories = 9;
* @param index The index of the element to return.
* @return The signatories at the given index.
*/
public java.lang.String getSignatories(int index) {
return signatories_.get(index);
}
/**
* repeated string signatories = 9;
* @param index The index of the value to return.
* @return The bytes of the signatories at the given index.
*/
public com.google.protobuf.ByteString
getSignatoriesBytes(int index) {
return signatories_.getByteString(index);
}
public static final int CONTRACT_ID_STRUCT_FIELD_NUMBER = 11;
private com.daml.lf.value.ValueOuterClass.ContractId contractIdStruct_;
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
* @return Whether the contractIdStruct field is set.
*/
@java.lang.Override
public boolean hasContractIdStruct() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
* @return The contractIdStruct.
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() {
return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_;
}
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() {
return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_;
}
public static final int RESULT_VERSIONED_FIELD_NUMBER = 12;
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue result_versioned = 12;
* @return Whether the resultVersioned field is set.
*/
@java.lang.Override
public boolean hasResultVersioned() {
return resultCase_ == 12;
}
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue result_versioned = 12;
* @return The resultVersioned.
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.VersionedValue getResultVersioned() {
if (resultCase_ == 12) {
return (com.daml.lf.value.ValueOuterClass.VersionedValue) result_;
}
return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
}
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue result_versioned = 12;
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getResultVersionedOrBuilder() {
if (resultCase_ == 12) {
return (com.daml.lf.value.ValueOuterClass.VersionedValue) result_;
}
return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
}
public static final int RESULT_UNVERSIONED_FIELD_NUMBER = 17;
/**
* bytes result_unversioned = 17;
* @return Whether the resultUnversioned field is set.
*/
@java.lang.Override
public boolean hasResultUnversioned() {
return resultCase_ == 17;
}
/**
* bytes result_unversioned = 17;
* @return The resultUnversioned.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResultUnversioned() {
if (resultCase_ == 17) {
return (com.google.protobuf.ByteString) result_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int KEY_WITH_MAINTAINERS_FIELD_NUMBER = 14;
private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers keyWithMaintainers_;
/**
*
* optional
*
*
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14;
* @return Whether the keyWithMaintainers field is set.
*/
@java.lang.Override
public boolean hasKeyWithMaintainers() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder() {
return keyWithMaintainers_ == null ? com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance() : keyWithMaintainers_;
}
public static final int OBSERVERS_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList observers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string observers = 15;
* @return A list containing the observers.
*/
public com.google.protobuf.ProtocolStringList
getObserversList() {
return observers_;
}
/**
* repeated string observers = 15;
* @return The count of observers.
*/
public int getObserversCount() {
return observers_.size();
}
/**
* repeated string observers = 15;
* @param index The index of the element to return.
* @return The observers at the given index.
*/
public java.lang.String getObservers(int index) {
return observers_.get(index);
}
/**
* repeated string observers = 15;
* @param index The index of the value to return.
* @return The bytes of the observers at the given index.
*/
public com.google.protobuf.ByteString
getObserversBytes(int index) {
return observers_.getByteString(index);
}
public static final int AUTHORIZERS_FIELD_NUMBER = 20;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList authorizers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
* repeated string authorizers = 20;
* @param index The index of the element to return.
* @return The authorizers at the given index.
*/
public java.lang.String getAuthorizers(int index) {
return authorizers_.get(index);
}
/**
*
*
* .com.daml.lf.value.VersionedValue arg_versioned = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder>
getArgVersionedFieldBuilder() {
if (argVersionedBuilder_ == null) {
if (!(argCase_ == 5)) {
arg_ = com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
}
argVersionedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder>(
(com.daml.lf.value.ValueOuterClass.VersionedValue) arg_,
getParentForChildren(),
isClean());
arg_ = null;
}
argCase_ = 5;
onChanged();
return argVersionedBuilder_;
}
/**
* bytes arg_unversioned = 16;
* @return Whether the argUnversioned field is set.
*/
public boolean hasArgUnversioned() {
return argCase_ == 16;
}
/**
* bytes arg_unversioned = 16;
* @return The argUnversioned.
*/
public com.google.protobuf.ByteString getArgUnversioned() {
if (argCase_ == 16) {
return (com.google.protobuf.ByteString) arg_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes arg_unversioned = 16;
* @param value The argUnversioned to set.
* @return This builder for chaining.
*/
public Builder setArgUnversioned(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
argCase_ = 16;
arg_ = value;
onChanged();
return this;
}
/**
* bytes arg_unversioned = 16;
* @return This builder for chaining.
*/
public Builder clearArgUnversioned() {
if (argCase_ == 16) {
argCase_ = 0;
arg_ = null;
onChanged();
}
return this;
}
private boolean consuming_ ;
/**
* bool consuming = 6;
* @return The consuming.
*/
@java.lang.Override
public boolean getConsuming() {
return consuming_;
}
/**
* bool consuming = 6;
* @param value The consuming to set.
* @return This builder for chaining.
*/
public Builder setConsuming(boolean value) {
consuming_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* bool consuming = 6;
* @return This builder for chaining.
*/
public Builder clearConsuming() {
bitField0_ = (bitField0_ & ~0x00000080);
consuming_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureChildrenIsMutable() {
if (!children_.isModifiable()) {
children_ = new com.google.protobuf.LazyStringArrayList(children_);
}
bitField0_ |= 0x00000100;
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @return A list containing the children.
*/
public com.google.protobuf.ProtocolStringList
getChildrenList() {
children_.makeImmutable();
return children_;
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @return The count of children.
*/
public int getChildrenCount() {
return children_.size();
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @param index The index of the element to return.
* @return The children at the given index.
*/
public java.lang.String getChildren(int index) {
return children_.get(index);
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @param index The index of the value to return.
* @return The bytes of the children at the given index.
*/
public com.google.protobuf.ByteString
getChildrenBytes(int index) {
return children_.getByteString(index);
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @param index The index to set the value at.
* @param value The children to set.
* @return This builder for chaining.
*/
public Builder setChildren(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureChildrenIsMutable();
children_.set(index, value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @param value The children to add.
* @return This builder for chaining.
*/
public Builder addChildren(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureChildrenIsMutable();
children_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @param values The children to add.
* @return This builder for chaining.
*/
public Builder addAllChildren(
java.lang.Iterable values) {
ensureChildrenIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, children_);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @return This builder for chaining.
*/
public Builder clearChildren() {
children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 7;
* @param value The bytes of the children to add.
* @return This builder for chaining.
*/
public Builder addChildrenBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureChildrenIsMutable();
children_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList stakeholders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureStakeholdersIsMutable() {
if (!stakeholders_.isModifiable()) {
stakeholders_ = new com.google.protobuf.LazyStringArrayList(stakeholders_);
}
bitField0_ |= 0x00000200;
}
/**
* repeated string stakeholders = 8;
* @return A list containing the stakeholders.
*/
public com.google.protobuf.ProtocolStringList
getStakeholdersList() {
stakeholders_.makeImmutable();
return stakeholders_;
}
/**
* repeated string stakeholders = 8;
* @return The count of stakeholders.
*/
public int getStakeholdersCount() {
return stakeholders_.size();
}
/**
* repeated string stakeholders = 8;
* @param index The index of the element to return.
* @return The stakeholders at the given index.
*/
public java.lang.String getStakeholders(int index) {
return stakeholders_.get(index);
}
/**
* repeated string stakeholders = 8;
* @param index The index of the value to return.
* @return The bytes of the stakeholders at the given index.
*/
public com.google.protobuf.ByteString
getStakeholdersBytes(int index) {
return stakeholders_.getByteString(index);
}
/**
* repeated string stakeholders = 8;
* @param index The index to set the value at.
* @param value The stakeholders to set.
* @return This builder for chaining.
*/
public Builder setStakeholders(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStakeholdersIsMutable();
stakeholders_.set(index, value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated string stakeholders = 8;
* @param value The stakeholders to add.
* @return This builder for chaining.
*/
public Builder addStakeholders(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStakeholdersIsMutable();
stakeholders_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated string stakeholders = 8;
* @param values The stakeholders to add.
* @return This builder for chaining.
*/
public Builder addAllStakeholders(
java.lang.Iterable values) {
ensureStakeholdersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stakeholders_);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated string stakeholders = 8;
* @return This builder for chaining.
*/
public Builder clearStakeholders() {
stakeholders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);;
onChanged();
return this;
}
/**
* repeated string stakeholders = 8;
* @param value The bytes of the stakeholders to add.
* @return This builder for chaining.
*/
public Builder addStakeholdersBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureStakeholdersIsMutable();
stakeholders_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList signatories_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSignatoriesIsMutable() {
if (!signatories_.isModifiable()) {
signatories_ = new com.google.protobuf.LazyStringArrayList(signatories_);
}
bitField0_ |= 0x00000400;
}
/**
* repeated string signatories = 9;
* @return A list containing the signatories.
*/
public com.google.protobuf.ProtocolStringList
getSignatoriesList() {
signatories_.makeImmutable();
return signatories_;
}
/**
* repeated string signatories = 9;
* @return The count of signatories.
*/
public int getSignatoriesCount() {
return signatories_.size();
}
/**
* repeated string signatories = 9;
* @param index The index of the element to return.
* @return The signatories at the given index.
*/
public java.lang.String getSignatories(int index) {
return signatories_.get(index);
}
/**
* repeated string signatories = 9;
* @param index The index of the value to return.
* @return The bytes of the signatories at the given index.
*/
public com.google.protobuf.ByteString
getSignatoriesBytes(int index) {
return signatories_.getByteString(index);
}
/**
* repeated string signatories = 9;
* @param index The index to set the value at.
* @param value The signatories to set.
* @return This builder for chaining.
*/
public Builder setSignatories(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSignatoriesIsMutable();
signatories_.set(index, value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated string signatories = 9;
* @param value The signatories to add.
* @return This builder for chaining.
*/
public Builder addSignatories(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSignatoriesIsMutable();
signatories_.add(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated string signatories = 9;
* @param values The signatories to add.
* @return This builder for chaining.
*/
public Builder addAllSignatories(
java.lang.Iterable values) {
ensureSignatoriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, signatories_);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated string signatories = 9;
* @return This builder for chaining.
*/
public Builder clearSignatories() {
signatories_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);;
onChanged();
return this;
}
/**
* repeated string signatories = 9;
* @param value The bytes of the signatories to add.
* @return This builder for chaining.
*/
public Builder addSignatoriesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureSignatoriesIsMutable();
signatories_.add(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private com.daml.lf.value.ValueOuterClass.ContractId contractIdStruct_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder> contractIdStructBuilder_;
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
* @return Whether the contractIdStruct field is set.
*/
public boolean hasContractIdStruct() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
* @return The contractIdStruct.
*/
public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() {
if (contractIdStructBuilder_ == null) {
return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_;
} else {
return contractIdStructBuilder_.getMessage();
}
}
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
*/
public Builder setContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) {
if (contractIdStructBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractIdStruct_ = value;
} else {
contractIdStructBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
*/
public Builder setContractIdStruct(
com.daml.lf.value.ValueOuterClass.ContractId.Builder builderForValue) {
if (contractIdStructBuilder_ == null) {
contractIdStruct_ = builderForValue.build();
} else {
contractIdStructBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
*/
public Builder mergeContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) {
if (contractIdStructBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
contractIdStruct_ != null &&
contractIdStruct_ != com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance()) {
getContractIdStructBuilder().mergeFrom(value);
} else {
contractIdStruct_ = value;
}
} else {
contractIdStructBuilder_.mergeFrom(value);
}
if (contractIdStruct_ != null) {
bitField0_ |= 0x00000800;
onChanged();
}
return this;
}
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
*/
public Builder clearContractIdStruct() {
bitField0_ = (bitField0_ & ~0x00000800);
contractIdStruct_ = null;
if (contractIdStructBuilder_ != null) {
contractIdStructBuilder_.dispose();
contractIdStructBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
*/
public com.daml.lf.value.ValueOuterClass.ContractId.Builder getContractIdStructBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getContractIdStructFieldBuilder().getBuilder();
}
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
*/
public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() {
if (contractIdStructBuilder_ != null) {
return contractIdStructBuilder_.getMessageOrBuilder();
} else {
return contractIdStruct_ == null ?
com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_;
}
}
/**
* .com.daml.lf.value.ContractId contract_id_struct = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder>
getContractIdStructFieldBuilder() {
if (contractIdStructBuilder_ == null) {
contractIdStructBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder>(
getContractIdStruct(),
getParentForChildren(),
isClean());
contractIdStruct_ = null;
}
return contractIdStructBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder> resultVersionedBuilder_;
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue result_versioned = 12;
* @return Whether the resultVersioned field is set.
*/
@java.lang.Override
public boolean hasResultVersioned() {
return resultCase_ == 12;
}
/**
*
* *must not be used*
*
*
* .com.daml.lf.value.VersionedValue result_versioned = 12;
* @return The resultVersioned.
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.VersionedValue getResultVersioned() {
if (resultVersionedBuilder_ == null) {
if (resultCase_ == 12) {
return (com.daml.lf.value.ValueOuterClass.VersionedValue) result_;
}
return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
} else {
if (resultCase_ == 12) {
return resultVersionedBuilder_.getMessage();
}
return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
}
}
/**
*
*
* repeated string authorizers = 20;
* @param index The index of the element to return.
* @return The authorizers at the given index.
*/
public java.lang.String getAuthorizers(int index) {
return authorizers_.get(index);
}
/**
*
*
* repeated string authorizers = 20;
* @param index The index of the value to return.
* @return The bytes of the authorizers at the given index.
*/
public com.google.protobuf.ByteString
getAuthorizersBytes(int index) {
return authorizers_.getByteString(index);
}
/**
*
*
* repeated string authorizers = 20;
* @param index The index to set the value at.
* @param value The authorizers to set.
* @return This builder for chaining.
*/
public Builder setAuthorizers(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAuthorizersIsMutable();
authorizers_.set(index, value);
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*
* repeated string children = 1;
* @return A list containing the children.
*/
java.util.List
getChildrenList();
/**
*
* node ids
*
*
* repeated string children = 1;
* @return The count of children.
*/
int getChildrenCount();
/**
*
* node ids
*
*
* repeated string children = 1;
* @param index The index of the element to return.
* @return The children at the given index.
*/
java.lang.String getChildren(int index);
/**
*
* node ids
*
*
* repeated string children = 1;
* @param index The index of the value to return.
* @return The bytes of the children at the given index.
*/
com.google.protobuf.ByteString
getChildrenBytes(int index);
}
/**
* Protobuf type {@code com.daml.lf.transaction.NodeRollback}
*/
public static final class NodeRollback extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.lf.transaction.NodeRollback)
NodeRollbackOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeRollback.newBuilder() to construct.
private NodeRollback(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeRollback() {
children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeRollback();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeRollback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeRollback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.NodeRollback.class, com.daml.lf.transaction.TransactionOuterClass.NodeRollback.Builder.class);
}
public static final int CHILDREN_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* node ids
*
*
* repeated string children = 1;
* @return A list containing the children.
*/
public com.google.protobuf.ProtocolStringList
getChildrenList() {
return children_;
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @return The count of children.
*/
public int getChildrenCount() {
return children_.size();
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @param index The index of the element to return.
* @return The children at the given index.
*/
public java.lang.String getChildren(int index) {
return children_.get(index);
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @param index The index of the value to return.
* @return The bytes of the children at the given index.
*/
public com.google.protobuf.ByteString
getChildrenBytes(int index) {
return children_.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 {
for (int i = 0; i < children_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, children_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < children_.size(); i++) {
dataSize += computeStringSizeNoTag(children_.getRaw(i));
}
size += dataSize;
size += 1 * getChildrenList().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.lf.transaction.TransactionOuterClass.NodeRollback)) {
return super.equals(obj);
}
com.daml.lf.transaction.TransactionOuterClass.NodeRollback other = (com.daml.lf.transaction.TransactionOuterClass.NodeRollback) obj;
if (!getChildrenList()
.equals(other.getChildrenList())) 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 (getChildrenCount() > 0) {
hash = (37 * hash) + CHILDREN_FIELD_NUMBER;
hash = (53 * hash) + getChildrenList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback 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.lf.transaction.TransactionOuterClass.NodeRollback parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback 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.lf.transaction.TransactionOuterClass.NodeRollback parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback 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.lf.transaction.TransactionOuterClass.NodeRollback parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback 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.lf.transaction.TransactionOuterClass.NodeRollback 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.lf.transaction.NodeRollback}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.NodeRollback)
com.daml.lf.transaction.TransactionOuterClass.NodeRollbackOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeRollback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeRollback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.NodeRollback.class, com.daml.lf.transaction.TransactionOuterClass.NodeRollback.Builder.class);
}
// Construct using com.daml.lf.transaction.TransactionOuterClass.NodeRollback.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeRollback_descriptor;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.NodeRollback getDefaultInstanceForType() {
return com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance();
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.NodeRollback build() {
com.daml.lf.transaction.TransactionOuterClass.NodeRollback result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.NodeRollback buildPartial() {
com.daml.lf.transaction.TransactionOuterClass.NodeRollback result = new com.daml.lf.transaction.TransactionOuterClass.NodeRollback(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.NodeRollback result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
children_.makeImmutable();
result.children_ = children_;
}
}
@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.lf.transaction.TransactionOuterClass.NodeRollback) {
return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.NodeRollback)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.NodeRollback other) {
if (other == com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance()) return this;
if (!other.children_.isEmpty()) {
if (children_.isEmpty()) {
children_ = other.children_;
bitField0_ |= 0x00000001;
} else {
ensureChildrenIsMutable();
children_.addAll(other.children_);
}
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureChildrenIsMutable();
children_.add(s);
break;
} // case 10
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.google.protobuf.LazyStringArrayList children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureChildrenIsMutable() {
if (!children_.isModifiable()) {
children_ = new com.google.protobuf.LazyStringArrayList(children_);
}
bitField0_ |= 0x00000001;
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @return A list containing the children.
*/
public com.google.protobuf.ProtocolStringList
getChildrenList() {
children_.makeImmutable();
return children_;
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @return The count of children.
*/
public int getChildrenCount() {
return children_.size();
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @param index The index of the element to return.
* @return The children at the given index.
*/
public java.lang.String getChildren(int index) {
return children_.get(index);
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @param index The index of the value to return.
* @return The bytes of the children at the given index.
*/
public com.google.protobuf.ByteString
getChildrenBytes(int index) {
return children_.getByteString(index);
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @param index The index to set the value at.
* @param value The children to set.
* @return This builder for chaining.
*/
public Builder setChildren(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureChildrenIsMutable();
children_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @param value The children to add.
* @return This builder for chaining.
*/
public Builder addChildren(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureChildrenIsMutable();
children_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @param values The children to add.
* @return This builder for chaining.
*/
public Builder addAllChildren(
java.lang.Iterable values) {
ensureChildrenIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, children_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @return This builder for chaining.
*/
public Builder clearChildren() {
children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 1;
* @param value The bytes of the children to add.
* @return This builder for chaining.
*/
public Builder addChildrenBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureChildrenIsMutable();
children_.add(value);
bitField0_ |= 0x00000001;
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.lf.transaction.NodeRollback)
}
// @@protoc_insertion_point(class_scope:com.daml.lf.transaction.NodeRollback)
private static final com.daml.lf.transaction.TransactionOuterClass.NodeRollback DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.NodeRollback();
}
public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeRollback 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.lf.transaction.TransactionOuterClass.NodeRollback getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VersionedOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.Versioned)
com.google.protobuf.MessageOrBuilder {
/**
* string version = 1;
* @return The version.
*/
java.lang.String getVersion();
/**
* string version = 1;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* bytes payload = 2;
* @return The payload.
*/
com.google.protobuf.ByteString getPayload();
}
/**
* Protobuf type {@code com.daml.lf.transaction.Versioned}
*/
public static final class Versioned extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.lf.transaction.Versioned)
VersionedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Versioned.newBuilder() to construct.
private Versioned(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Versioned() {
version_ = "";
payload_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Versioned();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Versioned_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Versioned_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.Versioned.class, com.daml.lf.transaction.TransactionOuterClass.Versioned.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object version_ = "";
/**
* string version = 1;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
* string version = 1;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAYLOAD_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes payload = 2;
* @return The payload.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
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(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
if (!payload_.isEmpty()) {
output.writeBytes(2, payload_);
}
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(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
}
if (!payload_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, payload_);
}
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.lf.transaction.TransactionOuterClass.Versioned)) {
return super.equals(obj);
}
com.daml.lf.transaction.TransactionOuterClass.Versioned other = (com.daml.lf.transaction.TransactionOuterClass.Versioned) obj;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!getPayload()
.equals(other.getPayload())) 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) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Versioned 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.lf.transaction.TransactionOuterClass.Versioned parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Versioned 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.lf.transaction.TransactionOuterClass.Versioned parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Versioned 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.lf.transaction.TransactionOuterClass.Versioned parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Versioned 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.lf.transaction.TransactionOuterClass.Versioned 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.lf.transaction.Versioned}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.Versioned)
com.daml.lf.transaction.TransactionOuterClass.VersionedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Versioned_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Versioned_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.Versioned.class, com.daml.lf.transaction.TransactionOuterClass.Versioned.Builder.class);
}
// Construct using com.daml.lf.transaction.TransactionOuterClass.Versioned.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
version_ = "";
payload_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Versioned_descriptor;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Versioned getDefaultInstanceForType() {
return com.daml.lf.transaction.TransactionOuterClass.Versioned.getDefaultInstance();
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Versioned build() {
com.daml.lf.transaction.TransactionOuterClass.Versioned result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Versioned buildPartial() {
com.daml.lf.transaction.TransactionOuterClass.Versioned result = new com.daml.lf.transaction.TransactionOuterClass.Versioned(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.Versioned result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.version_ = version_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.payload_ = payload_;
}
}
@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.lf.transaction.TransactionOuterClass.Versioned) {
return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.Versioned)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.Versioned other) {
if (other == com.daml.lf.transaction.TransactionOuterClass.Versioned.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) {
setPayload(other.getPayload());
}
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: {
version_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
payload_ = input.readBytes();
bitField0_ |= 0x00000002;
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 version_ = "";
/**
* string version = 1;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string version = 1;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string version = 1;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes payload = 2;
* @return The payload.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
/**
* bytes payload = 2;
* @param value The payload to set.
* @return This builder for chaining.
*/
public Builder setPayload(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
payload_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes payload = 2;
* @return This builder for chaining.
*/
public Builder clearPayload() {
bitField0_ = (bitField0_ & ~0x00000002);
payload_ = getDefaultInstance().getPayload();
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.lf.transaction.Versioned)
}
// @@protoc_insertion_point(class_scope:com.daml.lf.transaction.Versioned)
private static final com.daml.lf.transaction.TransactionOuterClass.Versioned DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.Versioned();
}
public static com.daml.lf.transaction.TransactionOuterClass.Versioned getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Versioned 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.lf.transaction.TransactionOuterClass.Versioned getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FatContractInstanceOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.FatContractInstance)
com.google.protobuf.MessageOrBuilder {
/**
* bytes contract_id = 1;
* @return The contractId.
*/
com.google.protobuf.ByteString getContractId();
/**
*
*
* string package_name = 9;
* @return The bytes for packageName.
*/
com.google.protobuf.ByteString
getPackageNameBytes();
/**
* .com.daml.lf.value.Identifier template_id = 2;
* @return Whether the templateId field is set.
*/
boolean hasTemplateId();
/**
* .com.daml.lf.value.Identifier template_id = 2;
* @return The templateId.
*/
com.daml.lf.value.ValueOuterClass.Identifier getTemplateId();
/**
* .com.daml.lf.value.Identifier template_id = 2;
*/
com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder();
/**
* bytes create_arg = 3;
* @return The createArg.
*/
com.google.protobuf.ByteString getCreateArg();
/**
* .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4;
* @return Whether the contractKeyWithMaintainers field is set.
*/
boolean hasContractKeyWithMaintainers();
/**
* .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4;
* @return The contractKeyWithMaintainers.
*/
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getContractKeyWithMaintainers();
/**
* .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4;
*/
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getContractKeyWithMaintainersOrBuilder();
/**
* repeated string non_maintainer_signatories = 5;
* @return A list containing the nonMaintainerSignatories.
*/
java.util.List
getNonMaintainerSignatoriesList();
/**
* repeated string non_maintainer_signatories = 5;
* @return The count of nonMaintainerSignatories.
*/
int getNonMaintainerSignatoriesCount();
/**
* repeated string non_maintainer_signatories = 5;
* @param index The index of the element to return.
* @return The nonMaintainerSignatories at the given index.
*/
java.lang.String getNonMaintainerSignatories(int index);
/**
* repeated string non_maintainer_signatories = 5;
* @param index The index of the value to return.
* @return The bytes of the nonMaintainerSignatories at the given index.
*/
com.google.protobuf.ByteString
getNonMaintainerSignatoriesBytes(int index);
/**
* repeated string non_signatory_stakeholders = 6;
* @return A list containing the nonSignatoryStakeholders.
*/
java.util.List
getNonSignatoryStakeholdersList();
/**
* repeated string non_signatory_stakeholders = 6;
* @return The count of nonSignatoryStakeholders.
*/
int getNonSignatoryStakeholdersCount();
/**
* repeated string non_signatory_stakeholders = 6;
* @param index The index of the element to return.
* @return The nonSignatoryStakeholders at the given index.
*/
java.lang.String getNonSignatoryStakeholders(int index);
/**
* repeated string non_signatory_stakeholders = 6;
* @param index The index of the value to return.
* @return The bytes of the nonSignatoryStakeholders at the given index.
*/
com.google.protobuf.ByteString
getNonSignatoryStakeholdersBytes(int index);
/**
* sfixed64 created_at = 7;
* @return The createdAt.
*/
long getCreatedAt();
/**
* bytes canton_data = 8;
* @return The cantonData.
*/
com.google.protobuf.ByteString getCantonData();
}
/**
*
* A self contains representation of a committed contract.
*
*
* Protobuf type {@code com.daml.lf.transaction.FatContractInstance}
*/
public static final class FatContractInstance extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.lf.transaction.FatContractInstance)
FatContractInstanceOrBuilder {
private static final long serialVersionUID = 0L;
// Use FatContractInstance.newBuilder() to construct.
private FatContractInstance(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FatContractInstance() {
contractId_ = com.google.protobuf.ByteString.EMPTY;
packageName_ = "";
createArg_ = com.google.protobuf.ByteString.EMPTY;
nonMaintainerSignatories_ =
com.google.protobuf.LazyStringArrayList.emptyList();
nonSignatoryStakeholders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
cantonData_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FatContractInstance();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_FatContractInstance_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_FatContractInstance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.class, com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.Builder.class);
}
private int bitField0_;
public static final int CONTRACT_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString contractId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes contract_id = 1;
* @return The contractId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractId() {
return contractId_;
}
public static final int PACKAGE_NAME_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object packageName_ = "";
/**
*