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 {
/**
*
*
* .com.daml.lf.value.Identifier template_id = 3;
*/
com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder();
/**
* repeated string non_maintainer_signatories = 4;
* @return A list containing the nonMaintainerSignatories.
*/
java.util.List
getNonMaintainerSignatoriesList();
/**
* repeated string non_maintainer_signatories = 4;
* @return The count of nonMaintainerSignatories.
*/
int getNonMaintainerSignatoriesCount();
/**
* repeated string non_maintainer_signatories = 4;
* @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 = 4;
* @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 = 5;
* @return A list containing the nonSignatoryStakeholders.
*/
java.util.List
getNonSignatoryStakeholdersList();
/**
* repeated string non_signatory_stakeholders = 5;
* @return The count of nonSignatoryStakeholders.
*/
int getNonSignatoryStakeholdersCount();
/**
* repeated string non_signatory_stakeholders = 5;
* @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 = 5;
* @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);
/**
* repeated string actors = 6;
* @return A list containing the actors.
*/
java.util.List
getActorsList();
/**
* repeated string actors = 6;
* @return The count of actors.
*/
int getActorsCount();
/**
* repeated string actors = 6;
* @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 = 6;
* @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);
/**
*
* optional *since dev*
*
*
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 1001;
* @return Whether the keyWithMaintainers field is set.
*/
boolean hasKeyWithMaintainers();
/**
*
*
* .com.daml.lf.value.Identifier template_id = 3;
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
return templateId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
public static final int NON_MAINTAINER_SIGNATORIES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList nonMaintainerSignatories_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string non_maintainer_signatories = 4;
* @return A list containing the nonMaintainerSignatories.
*/
public com.google.protobuf.ProtocolStringList
getNonMaintainerSignatoriesList() {
return nonMaintainerSignatories_;
}
/**
* repeated string non_maintainer_signatories = 4;
* @return The count of nonMaintainerSignatories.
*/
public int getNonMaintainerSignatoriesCount() {
return nonMaintainerSignatories_.size();
}
/**
* repeated string non_maintainer_signatories = 4;
* @param index The index of the element to return.
* @return The nonMaintainerSignatories at the given index.
*/
public java.lang.String getNonMaintainerSignatories(int index) {
return nonMaintainerSignatories_.get(index);
}
/**
* repeated string non_maintainer_signatories = 4;
* @param index The index of the value to return.
* @return The bytes of the nonMaintainerSignatories at the given index.
*/
public com.google.protobuf.ByteString
getNonMaintainerSignatoriesBytes(int index) {
return nonMaintainerSignatories_.getByteString(index);
}
public static final int NON_SIGNATORY_STAKEHOLDERS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList nonSignatoryStakeholders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string non_signatory_stakeholders = 5;
* @return A list containing the nonSignatoryStakeholders.
*/
public com.google.protobuf.ProtocolStringList
getNonSignatoryStakeholdersList() {
return nonSignatoryStakeholders_;
}
/**
* repeated string non_signatory_stakeholders = 5;
* @return The count of nonSignatoryStakeholders.
*/
public int getNonSignatoryStakeholdersCount() {
return nonSignatoryStakeholders_.size();
}
/**
* repeated string non_signatory_stakeholders = 5;
* @param index The index of the element to return.
* @return The nonSignatoryStakeholders at the given index.
*/
public java.lang.String getNonSignatoryStakeholders(int index) {
return nonSignatoryStakeholders_.get(index);
}
/**
* repeated string non_signatory_stakeholders = 5;
* @param index The index of the value to return.
* @return The bytes of the nonSignatoryStakeholders at the given index.
*/
public com.google.protobuf.ByteString
getNonSignatoryStakeholdersBytes(int index) {
return nonSignatoryStakeholders_.getByteString(index);
}
public static final int ACTORS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList actors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string actors = 6;
* @return A list containing the actors.
*/
public com.google.protobuf.ProtocolStringList
getActorsList() {
return actors_;
}
/**
* repeated string actors = 6;
* @return The count of actors.
*/
public int getActorsCount() {
return actors_.size();
}
/**
* repeated string actors = 6;
* @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 = 6;
* @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 KEY_WITH_MAINTAINERS_FIELD_NUMBER = 1001;
private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers keyWithMaintainers_;
/**
*
* optional *since dev*
*
*
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 1001;
* @return Whether the keyWithMaintainers field is set.
*/
@java.lang.Override
public boolean hasKeyWithMaintainers() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
* .com.daml.lf.value.Identifier template_id = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder>
getTemplateIdFieldBuilder() {
if (templateIdBuilder_ == null) {
templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder>(
getTemplateId(),
getParentForChildren(),
isClean());
templateId_ = null;
}
return templateIdBuilder_;
}
private com.google.protobuf.LazyStringArrayList nonMaintainerSignatories_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureNonMaintainerSignatoriesIsMutable() {
if (!nonMaintainerSignatories_.isModifiable()) {
nonMaintainerSignatories_ = new com.google.protobuf.LazyStringArrayList(nonMaintainerSignatories_);
}
bitField0_ |= 0x00000008;
}
/**
* repeated string non_maintainer_signatories = 4;
* @return A list containing the nonMaintainerSignatories.
*/
public com.google.protobuf.ProtocolStringList
getNonMaintainerSignatoriesList() {
nonMaintainerSignatories_.makeImmutable();
return nonMaintainerSignatories_;
}
/**
* repeated string non_maintainer_signatories = 4;
* @return The count of nonMaintainerSignatories.
*/
public int getNonMaintainerSignatoriesCount() {
return nonMaintainerSignatories_.size();
}
/**
* repeated string non_maintainer_signatories = 4;
* @param index The index of the element to return.
* @return The nonMaintainerSignatories at the given index.
*/
public java.lang.String getNonMaintainerSignatories(int index) {
return nonMaintainerSignatories_.get(index);
}
/**
* repeated string non_maintainer_signatories = 4;
* @param index The index of the value to return.
* @return The bytes of the nonMaintainerSignatories at the given index.
*/
public com.google.protobuf.ByteString
getNonMaintainerSignatoriesBytes(int index) {
return nonMaintainerSignatories_.getByteString(index);
}
/**
* repeated string non_maintainer_signatories = 4;
* @param index The index to set the value at.
* @param value The nonMaintainerSignatories to set.
* @return This builder for chaining.
*/
public Builder setNonMaintainerSignatories(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNonMaintainerSignatoriesIsMutable();
nonMaintainerSignatories_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string non_maintainer_signatories = 4;
* @param value The nonMaintainerSignatories to add.
* @return This builder for chaining.
*/
public Builder addNonMaintainerSignatories(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNonMaintainerSignatoriesIsMutable();
nonMaintainerSignatories_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string non_maintainer_signatories = 4;
* @param values The nonMaintainerSignatories to add.
* @return This builder for chaining.
*/
public Builder addAllNonMaintainerSignatories(
java.lang.Iterable values) {
ensureNonMaintainerSignatoriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nonMaintainerSignatories_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string non_maintainer_signatories = 4;
* @return This builder for chaining.
*/
public Builder clearNonMaintainerSignatories() {
nonMaintainerSignatories_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
* repeated string non_maintainer_signatories = 4;
* @param value The bytes of the nonMaintainerSignatories to add.
* @return This builder for chaining.
*/
public Builder addNonMaintainerSignatoriesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureNonMaintainerSignatoriesIsMutable();
nonMaintainerSignatories_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList nonSignatoryStakeholders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureNonSignatoryStakeholdersIsMutable() {
if (!nonSignatoryStakeholders_.isModifiable()) {
nonSignatoryStakeholders_ = new com.google.protobuf.LazyStringArrayList(nonSignatoryStakeholders_);
}
bitField0_ |= 0x00000010;
}
/**
* repeated string non_signatory_stakeholders = 5;
* @return A list containing the nonSignatoryStakeholders.
*/
public com.google.protobuf.ProtocolStringList
getNonSignatoryStakeholdersList() {
nonSignatoryStakeholders_.makeImmutable();
return nonSignatoryStakeholders_;
}
/**
* repeated string non_signatory_stakeholders = 5;
* @return The count of nonSignatoryStakeholders.
*/
public int getNonSignatoryStakeholdersCount() {
return nonSignatoryStakeholders_.size();
}
/**
* repeated string non_signatory_stakeholders = 5;
* @param index The index of the element to return.
* @return The nonSignatoryStakeholders at the given index.
*/
public java.lang.String getNonSignatoryStakeholders(int index) {
return nonSignatoryStakeholders_.get(index);
}
/**
* repeated string non_signatory_stakeholders = 5;
* @param index The index of the value to return.
* @return The bytes of the nonSignatoryStakeholders at the given index.
*/
public com.google.protobuf.ByteString
getNonSignatoryStakeholdersBytes(int index) {
return nonSignatoryStakeholders_.getByteString(index);
}
/**
* repeated string non_signatory_stakeholders = 5;
* @param index The index to set the value at.
* @param value The nonSignatoryStakeholders to set.
* @return This builder for chaining.
*/
public Builder setNonSignatoryStakeholders(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNonSignatoryStakeholdersIsMutable();
nonSignatoryStakeholders_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated string non_signatory_stakeholders = 5;
* @param value The nonSignatoryStakeholders to add.
* @return This builder for chaining.
*/
public Builder addNonSignatoryStakeholders(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNonSignatoryStakeholdersIsMutable();
nonSignatoryStakeholders_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated string non_signatory_stakeholders = 5;
* @param values The nonSignatoryStakeholders to add.
* @return This builder for chaining.
*/
public Builder addAllNonSignatoryStakeholders(
java.lang.Iterable values) {
ensureNonSignatoryStakeholdersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nonSignatoryStakeholders_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated string non_signatory_stakeholders = 5;
* @return This builder for chaining.
*/
public Builder clearNonSignatoryStakeholders() {
nonSignatoryStakeholders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);;
onChanged();
return this;
}
/**
* repeated string non_signatory_stakeholders = 5;
* @param value The bytes of the nonSignatoryStakeholders to add.
* @return This builder for chaining.
*/
public Builder addNonSignatoryStakeholdersBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureNonSignatoryStakeholdersIsMutable();
nonSignatoryStakeholders_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList actors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureActorsIsMutable() {
if (!actors_.isModifiable()) {
actors_ = new com.google.protobuf.LazyStringArrayList(actors_);
}
bitField0_ |= 0x00000020;
}
/**
* repeated string actors = 6;
* @return A list containing the actors.
*/
public com.google.protobuf.ProtocolStringList
getActorsList() {
actors_.makeImmutable();
return actors_;
}
/**
* repeated string actors = 6;
* @return The count of actors.
*/
public int getActorsCount() {
return actors_.size();
}
/**
* repeated string actors = 6;
* @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 = 6;
* @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);
}
/**
* repeated string actors = 6;
* @param index The index to set the value at.
* @param value The actors to set.
* @return This builder for chaining.
*/
public Builder setActors(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureActorsIsMutable();
actors_.set(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated string actors = 6;
* @param value The actors to add.
* @return This builder for chaining.
*/
public Builder addActors(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureActorsIsMutable();
actors_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated string actors = 6;
* @param values The actors to add.
* @return This builder for chaining.
*/
public Builder addAllActors(
java.lang.Iterable values) {
ensureActorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, actors_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated string actors = 6;
* @return This builder for chaining.
*/
public Builder clearActors() {
actors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);;
onChanged();
return this;
}
/**
* repeated string actors = 6;
* @param value The bytes of the actors to add.
* @return This builder for chaining.
*/
public Builder addActorsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureActorsIsMutable();
actors_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers keyWithMaintainers_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder> keyWithMaintainersBuilder_;
/**
*
* optional *since dev*
*
*
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 1001;
* @return Whether the keyWithMaintainers field is set.
*/
public boolean hasKeyWithMaintainers() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
* repeated string children = 6;
* @return A list containing the children.
*/
java.util.List
getChildrenList();
/**
*
* node ids
*
*
* repeated string children = 6;
* @return The count of children.
*/
int getChildrenCount();
/**
*
* node ids
*
*
* repeated string children = 6;
* @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 = 6;
* @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);
/**
* bytes result = 7;
* @return The result.
*/
com.google.protobuf.ByteString getResult();
/**
* repeated string observers = 8;
* @return A list containing the observers.
*/
java.util.List
getObserversList();
/**
* repeated string observers = 8;
* @return The count of observers.
*/
int getObserversCount();
/**
* repeated string observers = 8;
* @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 = 8;
* @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 = 1001;
* @param index The index of the element to return.
* @return The authorizers at the given index.
*/
java.lang.String getAuthorizers(int index);
/**
*
*
* repeated string authorizers = 1001;
* @param index The index of the value to return.
* @return The bytes of the authorizers at the given index.
*/
com.google.protobuf.ByteString
getAuthorizersBytes(int index);
}
/**
* Protobuf type {@code com.daml.lf.transaction.Node.Exercise}
*/
public static final class Exercise extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.lf.transaction.Node.Exercise)
ExerciseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Exercise.newBuilder() to construct.
private Exercise(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Exercise() {
choice_ = "";
arg_ = com.google.protobuf.ByteString.EMPTY;
children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
result_ = com.google.protobuf.ByteString.EMPTY;
observers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
authorizers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Exercise();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_Exercise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_Exercise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.class, com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.Builder.class);
}
private int bitField0_;
public static final int FETCH_FIELD_NUMBER = 1;
private com.daml.lf.transaction.TransactionOuterClass.Node.Fetch fetch_;
/**
*
* required
*
*
* .com.daml.lf.transaction.Node.Fetch fetch = 1;
* @return Whether the fetch field is set.
*/
@java.lang.Override
public boolean hasFetch() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* .com.daml.lf.value.Identifier interface_id = 2;
*/
@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 CHOICE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object choice_ = "";
/**
* string choice = 3;
* @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 = 3;
* @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_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString arg_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes arg = 4;
* @return The arg.
*/
@java.lang.Override
public com.google.protobuf.ByteString getArg() {
return arg_;
}
public static final int CONSUMING_FIELD_NUMBER = 5;
private boolean consuming_ = false;
/**
* bool consuming = 5;
* @return The consuming.
*/
@java.lang.Override
public boolean getConsuming() {
return consuming_;
}
public static final int CHILDREN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* node ids
*
*
* repeated string children = 6;
* @return A list containing the children.
*/
public com.google.protobuf.ProtocolStringList
getChildrenList() {
return children_;
}
/**
*
* node ids
*
*
* repeated string children = 6;
* @return The count of children.
*/
public int getChildrenCount() {
return children_.size();
}
/**
*
* node ids
*
*
* repeated string children = 6;
* @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 = 6;
* @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 RESULT_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString result_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes result = 7;
* @return The result.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResult() {
return result_;
}
public static final int OBSERVERS_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList observers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string observers = 8;
* @return A list containing the observers.
*/
public com.google.protobuf.ProtocolStringList
getObserversList() {
return observers_;
}
/**
* repeated string observers = 8;
* @return The count of observers.
*/
public int getObserversCount() {
return observers_.size();
}
/**
* repeated string observers = 8;
* @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 = 8;
* @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 = 1001;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList authorizers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
* repeated string authorizers = 1001;
* @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.Identifier interface_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder>
getInterfaceIdFieldBuilder() {
if (interfaceIdBuilder_ == null) {
interfaceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder>(
getInterfaceId(),
getParentForChildren(),
isClean());
interfaceId_ = null;
}
return interfaceIdBuilder_;
}
private java.lang.Object choice_ = "";
/**
* string choice = 3;
* @return The choice.
*/
public java.lang.String getChoice() {
java.lang.Object ref = choice_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
choice_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string choice = 3;
* @return The bytes for choice.
*/
public com.google.protobuf.ByteString
getChoiceBytes() {
java.lang.Object ref = choice_;
if (ref instanceof 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;
}
}
/**
* string choice = 3;
* @param value The choice to set.
* @return This builder for chaining.
*/
public Builder setChoice(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
choice_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string choice = 3;
* @return This builder for chaining.
*/
public Builder clearChoice() {
choice_ = getDefaultInstance().getChoice();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string choice = 3;
* @param value The bytes for choice to set.
* @return This builder for chaining.
*/
public Builder setChoiceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
choice_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.ByteString arg_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes arg = 4;
* @return The arg.
*/
@java.lang.Override
public com.google.protobuf.ByteString getArg() {
return arg_;
}
/**
* bytes arg = 4;
* @param value The arg to set.
* @return This builder for chaining.
*/
public Builder setArg(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
arg_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bytes arg = 4;
* @return This builder for chaining.
*/
public Builder clearArg() {
bitField0_ = (bitField0_ & ~0x00000008);
arg_ = getDefaultInstance().getArg();
onChanged();
return this;
}
private boolean consuming_ ;
/**
* bool consuming = 5;
* @return The consuming.
*/
@java.lang.Override
public boolean getConsuming() {
return consuming_;
}
/**
* bool consuming = 5;
* @param value The consuming to set.
* @return This builder for chaining.
*/
public Builder setConsuming(boolean value) {
consuming_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* bool consuming = 5;
* @return This builder for chaining.
*/
public Builder clearConsuming() {
bitField0_ = (bitField0_ & ~0x00000010);
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_ |= 0x00000020;
}
/**
*
* node ids
*
*
* repeated string children = 6;
* @return A list containing the children.
*/
public com.google.protobuf.ProtocolStringList
getChildrenList() {
children_.makeImmutable();
return children_;
}
/**
*
* node ids
*
*
* repeated string children = 6;
* @return The count of children.
*/
public int getChildrenCount() {
return children_.size();
}
/**
*
* node ids
*
*
* repeated string children = 6;
* @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 = 6;
* @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 = 6;
* @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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 6;
* @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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 6;
* @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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 6;
* @return This builder for chaining.
*/
public Builder clearChildren() {
children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);;
onChanged();
return this;
}
/**
*
* node ids
*
*
* repeated string children = 6;
* @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_ |= 0x00000020;
onChanged();
return this;
}
private com.google.protobuf.ByteString result_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes result = 7;
* @return The result.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResult() {
return result_;
}
/**
* bytes result = 7;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
result_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* bytes result = 7;
* @return This builder for chaining.
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000040);
result_ = getDefaultInstance().getResult();
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList observers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureObserversIsMutable() {
if (!observers_.isModifiable()) {
observers_ = new com.google.protobuf.LazyStringArrayList(observers_);
}
bitField0_ |= 0x00000080;
}
/**
* repeated string observers = 8;
* @return A list containing the observers.
*/
public com.google.protobuf.ProtocolStringList
getObserversList() {
observers_.makeImmutable();
return observers_;
}
/**
* repeated string observers = 8;
* @return The count of observers.
*/
public int getObserversCount() {
return observers_.size();
}
/**
* repeated string observers = 8;
* @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 = 8;
* @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);
}
/**
* repeated string observers = 8;
* @param index The index to set the value at.
* @param value The observers to set.
* @return This builder for chaining.
*/
public Builder setObservers(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureObserversIsMutable();
observers_.set(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated string observers = 8;
* @param value The observers to add.
* @return This builder for chaining.
*/
public Builder addObservers(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureObserversIsMutable();
observers_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated string observers = 8;
* @param values The observers to add.
* @return This builder for chaining.
*/
public Builder addAllObservers(
java.lang.Iterable values) {
ensureObserversIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, observers_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated string observers = 8;
* @return This builder for chaining.
*/
public Builder clearObservers() {
observers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);;
onChanged();
return this;
}
/**
* repeated string observers = 8;
* @param value The bytes of the observers to add.
* @return This builder for chaining.
*/
public Builder addObserversBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureObserversIsMutable();
observers_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList authorizers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAuthorizersIsMutable() {
if (!authorizers_.isModifiable()) {
authorizers_ = new com.google.protobuf.LazyStringArrayList(authorizers_);
}
bitField0_ |= 0x00000100;
}
/**
*
*
* repeated string authorizers = 1001;
* @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 = 1001;
* @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 = 1001;
* @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_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
* repeated string authorizers = 1001;
* @param value The bytes of the authorizers to add.
* @return This builder for chaining.
*/
public Builder addAuthorizersBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureAuthorizersIsMutable();
authorizers_.add(value);
bitField0_ |= 0x00000100;
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.Node.Exercise)
}
// @@protoc_insertion_point(class_scope:com.daml.lf.transaction.Node.Exercise)
private static final com.daml.lf.transaction.TransactionOuterClass.Node.Exercise DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.Node.Exercise();
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.Exercise getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Exercise 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.Node.Exercise getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RollbackOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.Node.Rollback)
com.google.protobuf.MessageOrBuilder {
/**
*
* node ids
*
*
* 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.Node.Rollback}
*/
public static final class Rollback extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.lf.transaction.Node.Rollback)
RollbackOrBuilder {
private static final long serialVersionUID = 0L;
// Use Rollback.newBuilder() to construct.
private Rollback(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Rollback() {
children_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Rollback();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_Rollback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_Rollback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.class, com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.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.Node.Rollback)) {
return super.equals(obj);
}
com.daml.lf.transaction.TransactionOuterClass.Node.Rollback other = (com.daml.lf.transaction.TransactionOuterClass.Node.Rollback) 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.Node.Rollback parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.Rollback 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.Node.Rollback parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.Rollback 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.Node.Rollback parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.Rollback 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.Node.Rollback parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.Rollback 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.Node.Rollback parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.Rollback 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.Node.Rollback 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.Node.Rollback 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.Node.Rollback 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.Node.Rollback}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.Node.Rollback)
com.daml.lf.transaction.TransactionOuterClass.Node.RollbackOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_Rollback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_Rollback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.class, com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.Builder.class);
}
// Construct using com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.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_Node_Rollback_descriptor;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.Rollback getDefaultInstanceForType() {
return com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.getDefaultInstance();
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.Rollback build() {
com.daml.lf.transaction.TransactionOuterClass.Node.Rollback result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.Rollback buildPartial() {
com.daml.lf.transaction.TransactionOuterClass.Node.Rollback result = new com.daml.lf.transaction.TransactionOuterClass.Node.Rollback(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.Node.Rollback 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.Node.Rollback) {
return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.Node.Rollback)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.Node.Rollback other) {
if (other == com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.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.Node.Rollback)
}
// @@protoc_insertion_point(class_scope:com.daml.lf.transaction.Node.Rollback)
private static final com.daml.lf.transaction.TransactionOuterClass.Node.Rollback DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.Node.Rollback();
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.Rollback getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Rollback 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.Node.Rollback getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LookupByKeyOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.Node.LookupByKey)
com.google.protobuf.MessageOrBuilder {
/**
* string package_name = 1;
* @return The packageName.
*/
java.lang.String getPackageName();
/**
* string package_name = 1;
* @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();
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
* @return Whether the keyWithMaintainers field is set.
*/
boolean hasKeyWithMaintainers();
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
* @return The keyWithMaintainers.
*/
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getKeyWithMaintainers();
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
*/
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder();
/**
* bytes contract_id = 4;
* @return The contractId.
*/
com.google.protobuf.ByteString getContractId();
}
/**
*
* *since dev*
*
*
* Protobuf type {@code com.daml.lf.transaction.Node.LookupByKey}
*/
public static final class LookupByKey extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.lf.transaction.Node.LookupByKey)
LookupByKeyOrBuilder {
private static final long serialVersionUID = 0L;
// Use LookupByKey.newBuilder() to construct.
private LookupByKey(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LookupByKey() {
packageName_ = "";
contractId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LookupByKey();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_LookupByKey_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_LookupByKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.class, com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.Builder.class);
}
private int bitField0_;
public static final int PACKAGE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object packageName_ = "";
/**
* string package_name = 1;
* @return The packageName.
*/
@java.lang.Override
public java.lang.String getPackageName() {
java.lang.Object ref = packageName_;
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();
packageName_ = s;
return s;
}
}
/**
* string package_name = 1;
* @return The bytes for packageName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPackageNameBytes() {
java.lang.Object ref = packageName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
packageName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEMPLATE_ID_FIELD_NUMBER = 2;
private com.daml.lf.value.ValueOuterClass.Identifier templateId_;
/**
* .com.daml.lf.value.Identifier template_id = 2;
* @return Whether the templateId field is set.
*/
@java.lang.Override
public boolean hasTemplateId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .com.daml.lf.value.Identifier template_id = 2;
* @return The templateId.
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.Identifier getTemplateId() {
return templateId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
/**
* .com.daml.lf.value.Identifier template_id = 2;
*/
@java.lang.Override
public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
return templateId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
public static final int KEY_WITH_MAINTAINERS_FIELD_NUMBER = 3;
private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers keyWithMaintainers_;
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
* @return Whether the keyWithMaintainers field is set.
*/
@java.lang.Override
public boolean hasKeyWithMaintainers() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
* @return The keyWithMaintainers.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getKeyWithMaintainers() {
return keyWithMaintainers_ == null ? com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance() : keyWithMaintainers_;
}
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
*/
@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 CONTRACT_ID_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString contractId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes contract_id = 4;
* @return The contractId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractId() {
return contractId_;
}
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(packageName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getTemplateId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getKeyWithMaintainers());
}
if (!contractId_.isEmpty()) {
output.writeBytes(4, contractId_);
}
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(packageName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTemplateId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getKeyWithMaintainers());
}
if (!contractId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, contractId_);
}
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.Node.LookupByKey)) {
return super.equals(obj);
}
com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey other = (com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey) obj;
if (!getPackageName()
.equals(other.getPackageName())) return false;
if (hasTemplateId() != other.hasTemplateId()) return false;
if (hasTemplateId()) {
if (!getTemplateId()
.equals(other.getTemplateId())) return false;
}
if (hasKeyWithMaintainers() != other.hasKeyWithMaintainers()) return false;
if (hasKeyWithMaintainers()) {
if (!getKeyWithMaintainers()
.equals(other.getKeyWithMaintainers())) return false;
}
if (!getContractId()
.equals(other.getContractId())) 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) + PACKAGE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPackageName().hashCode();
if (hasTemplateId()) {
hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTemplateId().hashCode();
}
if (hasKeyWithMaintainers()) {
hash = (37 * hash) + KEY_WITH_MAINTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getKeyWithMaintainers().hashCode();
}
hash = (37 * hash) + CONTRACT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContractId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey 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.Node.LookupByKey parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey 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.Node.LookupByKey parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey 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.Node.LookupByKey parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey 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.Node.LookupByKey parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey 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.Node.LookupByKey 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.Node.LookupByKey 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.Node.LookupByKey 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;
}
/**
*
* *since dev*
*
*
* Protobuf type {@code com.daml.lf.transaction.Node.LookupByKey}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.Node.LookupByKey)
com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKeyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_LookupByKey_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_LookupByKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.class, com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.Builder.class);
}
// Construct using com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTemplateIdFieldBuilder();
getKeyWithMaintainersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
packageName_ = "";
templateId_ = null;
if (templateIdBuilder_ != null) {
templateIdBuilder_.dispose();
templateIdBuilder_ = null;
}
keyWithMaintainers_ = null;
if (keyWithMaintainersBuilder_ != null) {
keyWithMaintainersBuilder_.dispose();
keyWithMaintainersBuilder_ = null;
}
contractId_ = 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_Node_LookupByKey_descriptor;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey getDefaultInstanceForType() {
return com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.getDefaultInstance();
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey build() {
com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey buildPartial() {
com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey result = new com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.packageName_ = packageName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.templateId_ = templateIdBuilder_ == null
? templateId_
: templateIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.keyWithMaintainers_ = keyWithMaintainersBuilder_ == null
? keyWithMaintainers_
: keyWithMaintainersBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.contractId_ = contractId_;
}
result.bitField0_ |= to_bitField0_;
}
@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.Node.LookupByKey) {
return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey other) {
if (other == com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.getDefaultInstance()) return this;
if (!other.getPackageName().isEmpty()) {
packageName_ = other.packageName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasTemplateId()) {
mergeTemplateId(other.getTemplateId());
}
if (other.hasKeyWithMaintainers()) {
mergeKeyWithMaintainers(other.getKeyWithMaintainers());
}
if (other.getContractId() != com.google.protobuf.ByteString.EMPTY) {
setContractId(other.getContractId());
}
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: {
packageName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getTemplateIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getKeyWithMaintainersFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
contractId_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object packageName_ = "";
/**
* string package_name = 1;
* @return The packageName.
*/
public java.lang.String getPackageName() {
java.lang.Object ref = packageName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
packageName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string package_name = 1;
* @return The bytes for packageName.
*/
public com.google.protobuf.ByteString
getPackageNameBytes() {
java.lang.Object ref = packageName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
packageName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string package_name = 1;
* @param value The packageName to set.
* @return This builder for chaining.
*/
public Builder setPackageName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
packageName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string package_name = 1;
* @return This builder for chaining.
*/
public Builder clearPackageName() {
packageName_ = getDefaultInstance().getPackageName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string package_name = 1;
* @param value The bytes for packageName to set.
* @return This builder for chaining.
*/
public Builder setPackageNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
packageName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.daml.lf.value.ValueOuterClass.Identifier templateId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder> templateIdBuilder_;
/**
* .com.daml.lf.value.Identifier template_id = 2;
* @return Whether the templateId field is set.
*/
public boolean hasTemplateId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .com.daml.lf.value.Identifier template_id = 2;
* @return The templateId.
*/
public com.daml.lf.value.ValueOuterClass.Identifier getTemplateId() {
if (templateIdBuilder_ == null) {
return templateId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
} else {
return templateIdBuilder_.getMessage();
}
}
/**
* .com.daml.lf.value.Identifier template_id = 2;
*/
public Builder setTemplateId(com.daml.lf.value.ValueOuterClass.Identifier value) {
if (templateIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
templateId_ = value;
} else {
templateIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .com.daml.lf.value.Identifier template_id = 2;
*/
public Builder setTemplateId(
com.daml.lf.value.ValueOuterClass.Identifier.Builder builderForValue) {
if (templateIdBuilder_ == null) {
templateId_ = builderForValue.build();
} else {
templateIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .com.daml.lf.value.Identifier template_id = 2;
*/
public Builder mergeTemplateId(com.daml.lf.value.ValueOuterClass.Identifier value) {
if (templateIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
templateId_ != null &&
templateId_ != com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance()) {
getTemplateIdBuilder().mergeFrom(value);
} else {
templateId_ = value;
}
} else {
templateIdBuilder_.mergeFrom(value);
}
if (templateId_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .com.daml.lf.value.Identifier template_id = 2;
*/
public Builder clearTemplateId() {
bitField0_ = (bitField0_ & ~0x00000002);
templateId_ = null;
if (templateIdBuilder_ != null) {
templateIdBuilder_.dispose();
templateIdBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.daml.lf.value.Identifier template_id = 2;
*/
public com.daml.lf.value.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTemplateIdFieldBuilder().getBuilder();
}
/**
* .com.daml.lf.value.Identifier template_id = 2;
*/
public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder() {
if (templateIdBuilder_ != null) {
return templateIdBuilder_.getMessageOrBuilder();
} else {
return templateId_ == null ?
com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : templateId_;
}
}
/**
* .com.daml.lf.value.Identifier template_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder>
getTemplateIdFieldBuilder() {
if (templateIdBuilder_ == null) {
templateIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder>(
getTemplateId(),
getParentForChildren(),
isClean());
templateId_ = null;
}
return templateIdBuilder_;
}
private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers keyWithMaintainers_;
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder> keyWithMaintainersBuilder_;
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
* @return Whether the keyWithMaintainers field is set.
*/
public boolean hasKeyWithMaintainers() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
* @return The keyWithMaintainers.
*/
public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getKeyWithMaintainers() {
if (keyWithMaintainersBuilder_ == null) {
return keyWithMaintainers_ == null ? com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance() : keyWithMaintainers_;
} else {
return keyWithMaintainersBuilder_.getMessage();
}
}
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
*/
public Builder setKeyWithMaintainers(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers value) {
if (keyWithMaintainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
keyWithMaintainers_ = value;
} else {
keyWithMaintainersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
*/
public Builder setKeyWithMaintainers(
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder builderForValue) {
if (keyWithMaintainersBuilder_ == null) {
keyWithMaintainers_ = builderForValue.build();
} else {
keyWithMaintainersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
*/
public Builder mergeKeyWithMaintainers(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers value) {
if (keyWithMaintainersBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
keyWithMaintainers_ != null &&
keyWithMaintainers_ != com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance()) {
getKeyWithMaintainersBuilder().mergeFrom(value);
} else {
keyWithMaintainers_ = value;
}
} else {
keyWithMaintainersBuilder_.mergeFrom(value);
}
if (keyWithMaintainers_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
*/
public Builder clearKeyWithMaintainers() {
bitField0_ = (bitField0_ & ~0x00000004);
keyWithMaintainers_ = null;
if (keyWithMaintainersBuilder_ != null) {
keyWithMaintainersBuilder_.dispose();
keyWithMaintainersBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
*/
public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder getKeyWithMaintainersBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getKeyWithMaintainersFieldBuilder().getBuilder();
}
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
*/
public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder() {
if (keyWithMaintainersBuilder_ != null) {
return keyWithMaintainersBuilder_.getMessageOrBuilder();
} else {
return keyWithMaintainers_ == null ?
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance() : keyWithMaintainers_;
}
}
/**
* .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder>
getKeyWithMaintainersFieldBuilder() {
if (keyWithMaintainersBuilder_ == null) {
keyWithMaintainersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder>(
getKeyWithMaintainers(),
getParentForChildren(),
isClean());
keyWithMaintainers_ = null;
}
return keyWithMaintainersBuilder_;
}
private com.google.protobuf.ByteString contractId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes contract_id = 4;
* @return The contractId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractId() {
return contractId_;
}
/**
* bytes contract_id = 4;
* @param value The contractId to set.
* @return This builder for chaining.
*/
public Builder setContractId(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
contractId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bytes contract_id = 4;
* @return This builder for chaining.
*/
public Builder clearContractId() {
bitField0_ = (bitField0_ & ~0x00000008);
contractId_ = getDefaultInstance().getContractId();
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.Node.LookupByKey)
}
// @@protoc_insertion_point(class_scope:com.daml.lf.transaction.Node.LookupByKey)
private static final com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey();
}
public static com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LookupByKey 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.Node.LookupByKey getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int nodeTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object nodeType_;
public enum NodeTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CREATE(3),
FETCH(4),
EXERCISE(5),
ROLLBACK(6),
LOOKUP_BY_KEY(1001),
NODETYPE_NOT_SET(0);
private final int value;
private NodeTypeCase(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 NodeTypeCase valueOf(int value) {
return forNumber(value);
}
public static NodeTypeCase forNumber(int value) {
switch (value) {
case 3: return CREATE;
case 4: return FETCH;
case 5: return EXERCISE;
case 6: return ROLLBACK;
case 1001: return LOOKUP_BY_KEY;
case 0: return NODETYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public NodeTypeCase
getNodeTypeCase() {
return NodeTypeCase.forNumber(
nodeTypeCase_);
}
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 NODE_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object nodeId_ = "";
/**
* string node_id = 2;
* @return The nodeId.
*/
@java.lang.Override
public java.lang.String getNodeId() {
java.lang.Object ref = nodeId_;
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();
nodeId_ = s;
return s;
}
}
/**
* string node_id = 2;
* @return The bytes for nodeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNodeIdBytes() {
java.lang.Object ref = nodeId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATE_FIELD_NUMBER = 3;
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
* @return Whether the create field is set.
*/
@java.lang.Override
public boolean hasCreate() {
return nodeTypeCase_ == 3;
}
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
* @return The create.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.FatContractInstance getCreate() {
if (nodeTypeCase_ == 3) {
return (com.daml.lf.transaction.TransactionOuterClass.FatContractInstance) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.getDefaultInstance();
}
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.FatContractInstanceOrBuilder getCreateOrBuilder() {
if (nodeTypeCase_ == 3) {
return (com.daml.lf.transaction.TransactionOuterClass.FatContractInstance) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.getDefaultInstance();
}
public static final int FETCH_FIELD_NUMBER = 4;
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
* @return Whether the fetch field is set.
*/
@java.lang.Override
public boolean hasFetch() {
return nodeTypeCase_ == 4;
}
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
* @return The fetch.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.Fetch getFetch() {
if (nodeTypeCase_ == 4) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Fetch) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.getDefaultInstance();
}
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.FetchOrBuilder getFetchOrBuilder() {
if (nodeTypeCase_ == 4) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Fetch) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.getDefaultInstance();
}
public static final int EXERCISE_FIELD_NUMBER = 5;
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
* @return Whether the exercise field is set.
*/
@java.lang.Override
public boolean hasExercise() {
return nodeTypeCase_ == 5;
}
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
* @return The exercise.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.Exercise getExercise() {
if (nodeTypeCase_ == 5) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Exercise) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.getDefaultInstance();
}
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.ExerciseOrBuilder getExerciseOrBuilder() {
if (nodeTypeCase_ == 5) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Exercise) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.getDefaultInstance();
}
public static final int ROLLBACK_FIELD_NUMBER = 6;
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
* @return Whether the rollback field is set.
*/
@java.lang.Override
public boolean hasRollback() {
return nodeTypeCase_ == 6;
}
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
* @return The rollback.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.Rollback getRollback() {
if (nodeTypeCase_ == 6) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Rollback) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.getDefaultInstance();
}
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.RollbackOrBuilder getRollbackOrBuilder() {
if (nodeTypeCase_ == 6) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Rollback) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.getDefaultInstance();
}
public static final int LOOKUP_BY_KEY_FIELD_NUMBER = 1001;
/**
*
* *since dev*
*
*
* .com.daml.lf.transaction.Node.LookupByKey lookup_by_key = 1001;
* @return Whether the lookupByKey field is set.
*/
@java.lang.Override
public boolean hasLookupByKey() {
return nodeTypeCase_ == 1001;
}
/**
*
* *since dev*
*
*
* .com.daml.lf.transaction.Node.LookupByKey lookup_by_key = 1001;
* @return The lookupByKey.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey getLookupByKey() {
if (nodeTypeCase_ == 1001) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.getDefaultInstance();
}
/**
*
* *since dev*
*
*
* .com.daml.lf.transaction.Node.LookupByKey lookup_by_key = 1001;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKeyOrBuilder getLookupByKeyOrBuilder() {
if (nodeTypeCase_ == 1001) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeId_);
}
if (nodeTypeCase_ == 3) {
output.writeMessage(3, (com.daml.lf.transaction.TransactionOuterClass.FatContractInstance) nodeType_);
}
if (nodeTypeCase_ == 4) {
output.writeMessage(4, (com.daml.lf.transaction.TransactionOuterClass.Node.Fetch) nodeType_);
}
if (nodeTypeCase_ == 5) {
output.writeMessage(5, (com.daml.lf.transaction.TransactionOuterClass.Node.Exercise) nodeType_);
}
if (nodeTypeCase_ == 6) {
output.writeMessage(6, (com.daml.lf.transaction.TransactionOuterClass.Node.Rollback) nodeType_);
}
if (nodeTypeCase_ == 1001) {
output.writeMessage(1001, (com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey) nodeType_);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_);
}
if (nodeTypeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.daml.lf.transaction.TransactionOuterClass.FatContractInstance) nodeType_);
}
if (nodeTypeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.daml.lf.transaction.TransactionOuterClass.Node.Fetch) nodeType_);
}
if (nodeTypeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.daml.lf.transaction.TransactionOuterClass.Node.Exercise) nodeType_);
}
if (nodeTypeCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.daml.lf.transaction.TransactionOuterClass.Node.Rollback) nodeType_);
}
if (nodeTypeCase_ == 1001) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1001, (com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey) nodeType_);
}
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.Node)) {
return super.equals(obj);
}
com.daml.lf.transaction.TransactionOuterClass.Node other = (com.daml.lf.transaction.TransactionOuterClass.Node) obj;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!getNodeId()
.equals(other.getNodeId())) return false;
if (!getNodeTypeCase().equals(other.getNodeTypeCase())) return false;
switch (nodeTypeCase_) {
case 3:
if (!getCreate()
.equals(other.getCreate())) return false;
break;
case 4:
if (!getFetch()
.equals(other.getFetch())) return false;
break;
case 5:
if (!getExercise()
.equals(other.getExercise())) return false;
break;
case 6:
if (!getRollback()
.equals(other.getRollback())) return false;
break;
case 1001:
if (!getLookupByKey()
.equals(other.getLookupByKey())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId().hashCode();
switch (nodeTypeCase_) {
case 3:
hash = (37 * hash) + CREATE_FIELD_NUMBER;
hash = (53 * hash) + getCreate().hashCode();
break;
case 4:
hash = (37 * hash) + FETCH_FIELD_NUMBER;
hash = (53 * hash) + getFetch().hashCode();
break;
case 5:
hash = (37 * hash) + EXERCISE_FIELD_NUMBER;
hash = (53 * hash) + getExercise().hashCode();
break;
case 6:
hash = (37 * hash) + ROLLBACK_FIELD_NUMBER;
hash = (53 * hash) + getRollback().hashCode();
break;
case 1001:
hash = (37 * hash) + LOOKUP_BY_KEY_FIELD_NUMBER;
hash = (53 * hash) + getLookupByKey().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.lf.transaction.TransactionOuterClass.Node parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node 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.Node parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node 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.Node parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node 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.Node parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node 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.Node parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.lf.transaction.TransactionOuterClass.Node 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.Node 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.Node 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.Node 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.Node}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.Node)
com.daml.lf.transaction.TransactionOuterClass.NodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.lf.transaction.TransactionOuterClass.Node.class, com.daml.lf.transaction.TransactionOuterClass.Node.Builder.class);
}
// Construct using com.daml.lf.transaction.TransactionOuterClass.Node.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
version_ = "";
nodeId_ = "";
if (createBuilder_ != null) {
createBuilder_.clear();
}
if (fetchBuilder_ != null) {
fetchBuilder_.clear();
}
if (exerciseBuilder_ != null) {
exerciseBuilder_.clear();
}
if (rollbackBuilder_ != null) {
rollbackBuilder_.clear();
}
if (lookupByKeyBuilder_ != null) {
lookupByKeyBuilder_.clear();
}
nodeTypeCase_ = 0;
nodeType_ = 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_Node_descriptor;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node getDefaultInstanceForType() {
return com.daml.lf.transaction.TransactionOuterClass.Node.getDefaultInstance();
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node build() {
com.daml.lf.transaction.TransactionOuterClass.Node result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node buildPartial() {
com.daml.lf.transaction.TransactionOuterClass.Node result = new com.daml.lf.transaction.TransactionOuterClass.Node(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.Node result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.version_ = version_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.nodeId_ = nodeId_;
}
}
private void buildPartialOneofs(com.daml.lf.transaction.TransactionOuterClass.Node result) {
result.nodeTypeCase_ = nodeTypeCase_;
result.nodeType_ = this.nodeType_;
if (nodeTypeCase_ == 3 &&
createBuilder_ != null) {
result.nodeType_ = createBuilder_.build();
}
if (nodeTypeCase_ == 4 &&
fetchBuilder_ != null) {
result.nodeType_ = fetchBuilder_.build();
}
if (nodeTypeCase_ == 5 &&
exerciseBuilder_ != null) {
result.nodeType_ = exerciseBuilder_.build();
}
if (nodeTypeCase_ == 6 &&
rollbackBuilder_ != null) {
result.nodeType_ = rollbackBuilder_.build();
}
if (nodeTypeCase_ == 1001 &&
lookupByKeyBuilder_ != null) {
result.nodeType_ = lookupByKeyBuilder_.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.Node) {
return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.Node)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.Node other) {
if (other == com.daml.lf.transaction.TransactionOuterClass.Node.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getNodeId().isEmpty()) {
nodeId_ = other.nodeId_;
bitField0_ |= 0x00000002;
onChanged();
}
switch (other.getNodeTypeCase()) {
case CREATE: {
mergeCreate(other.getCreate());
break;
}
case FETCH: {
mergeFetch(other.getFetch());
break;
}
case EXERCISE: {
mergeExercise(other.getExercise());
break;
}
case ROLLBACK: {
mergeRollback(other.getRollback());
break;
}
case LOOKUP_BY_KEY: {
mergeLookupByKey(other.getLookupByKey());
break;
}
case NODETYPE_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: {
version_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
nodeId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getCreateFieldBuilder().getBuilder(),
extensionRegistry);
nodeTypeCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getFetchFieldBuilder().getBuilder(),
extensionRegistry);
nodeTypeCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getExerciseFieldBuilder().getBuilder(),
extensionRegistry);
nodeTypeCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getRollbackFieldBuilder().getBuilder(),
extensionRegistry);
nodeTypeCase_ = 6;
break;
} // case 50
case 8010: {
input.readMessage(
getLookupByKeyFieldBuilder().getBuilder(),
extensionRegistry);
nodeTypeCase_ = 1001;
break;
} // case 8010
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 nodeTypeCase_ = 0;
private java.lang.Object nodeType_;
public NodeTypeCase
getNodeTypeCase() {
return NodeTypeCase.forNumber(
nodeTypeCase_);
}
public Builder clearNodeType() {
nodeTypeCase_ = 0;
nodeType_ = null;
onChanged();
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 java.lang.Object nodeId_ = "";
/**
* string node_id = 2;
* @return The nodeId.
*/
public java.lang.String getNodeId() {
java.lang.Object ref = nodeId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nodeId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string node_id = 2;
* @return The bytes for nodeId.
*/
public com.google.protobuf.ByteString
getNodeIdBytes() {
java.lang.Object ref = nodeId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string node_id = 2;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nodeId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string node_id = 2;
* @return This builder for chaining.
*/
public Builder clearNodeId() {
nodeId_ = getDefaultInstance().getNodeId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string node_id = 2;
* @param value The bytes for nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nodeId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.FatContractInstance, com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.Builder, com.daml.lf.transaction.TransactionOuterClass.FatContractInstanceOrBuilder> createBuilder_;
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
* @return Whether the create field is set.
*/
@java.lang.Override
public boolean hasCreate() {
return nodeTypeCase_ == 3;
}
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
* @return The create.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.FatContractInstance getCreate() {
if (createBuilder_ == null) {
if (nodeTypeCase_ == 3) {
return (com.daml.lf.transaction.TransactionOuterClass.FatContractInstance) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.getDefaultInstance();
} else {
if (nodeTypeCase_ == 3) {
return createBuilder_.getMessage();
}
return com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.getDefaultInstance();
}
}
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
*/
public Builder setCreate(com.daml.lf.transaction.TransactionOuterClass.FatContractInstance value) {
if (createBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeType_ = value;
onChanged();
} else {
createBuilder_.setMessage(value);
}
nodeTypeCase_ = 3;
return this;
}
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
*/
public Builder setCreate(
com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.Builder builderForValue) {
if (createBuilder_ == null) {
nodeType_ = builderForValue.build();
onChanged();
} else {
createBuilder_.setMessage(builderForValue.build());
}
nodeTypeCase_ = 3;
return this;
}
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
*/
public Builder mergeCreate(com.daml.lf.transaction.TransactionOuterClass.FatContractInstance value) {
if (createBuilder_ == null) {
if (nodeTypeCase_ == 3 &&
nodeType_ != com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.getDefaultInstance()) {
nodeType_ = com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.newBuilder((com.daml.lf.transaction.TransactionOuterClass.FatContractInstance) nodeType_)
.mergeFrom(value).buildPartial();
} else {
nodeType_ = value;
}
onChanged();
} else {
if (nodeTypeCase_ == 3) {
createBuilder_.mergeFrom(value);
} else {
createBuilder_.setMessage(value);
}
}
nodeTypeCase_ = 3;
return this;
}
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
*/
public Builder clearCreate() {
if (createBuilder_ == null) {
if (nodeTypeCase_ == 3) {
nodeTypeCase_ = 0;
nodeType_ = null;
onChanged();
}
} else {
if (nodeTypeCase_ == 3) {
nodeTypeCase_ = 0;
nodeType_ = null;
}
createBuilder_.clear();
}
return this;
}
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
*/
public com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.Builder getCreateBuilder() {
return getCreateFieldBuilder().getBuilder();
}
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.FatContractInstanceOrBuilder getCreateOrBuilder() {
if ((nodeTypeCase_ == 3) && (createBuilder_ != null)) {
return createBuilder_.getMessageOrBuilder();
} else {
if (nodeTypeCase_ == 3) {
return (com.daml.lf.transaction.TransactionOuterClass.FatContractInstance) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.getDefaultInstance();
}
}
/**
* .com.daml.lf.transaction.FatContractInstance create = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.FatContractInstance, com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.Builder, com.daml.lf.transaction.TransactionOuterClass.FatContractInstanceOrBuilder>
getCreateFieldBuilder() {
if (createBuilder_ == null) {
if (!(nodeTypeCase_ == 3)) {
nodeType_ = com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.getDefaultInstance();
}
createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.FatContractInstance, com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.Builder, com.daml.lf.transaction.TransactionOuterClass.FatContractInstanceOrBuilder>(
(com.daml.lf.transaction.TransactionOuterClass.FatContractInstance) nodeType_,
getParentForChildren(),
isClean());
nodeType_ = null;
}
nodeTypeCase_ = 3;
onChanged();
return createBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node.Fetch, com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.Builder, com.daml.lf.transaction.TransactionOuterClass.Node.FetchOrBuilder> fetchBuilder_;
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
* @return Whether the fetch field is set.
*/
@java.lang.Override
public boolean hasFetch() {
return nodeTypeCase_ == 4;
}
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
* @return The fetch.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.Fetch getFetch() {
if (fetchBuilder_ == null) {
if (nodeTypeCase_ == 4) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Fetch) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.getDefaultInstance();
} else {
if (nodeTypeCase_ == 4) {
return fetchBuilder_.getMessage();
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.getDefaultInstance();
}
}
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
*/
public Builder setFetch(com.daml.lf.transaction.TransactionOuterClass.Node.Fetch value) {
if (fetchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeType_ = value;
onChanged();
} else {
fetchBuilder_.setMessage(value);
}
nodeTypeCase_ = 4;
return this;
}
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
*/
public Builder setFetch(
com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.Builder builderForValue) {
if (fetchBuilder_ == null) {
nodeType_ = builderForValue.build();
onChanged();
} else {
fetchBuilder_.setMessage(builderForValue.build());
}
nodeTypeCase_ = 4;
return this;
}
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
*/
public Builder mergeFetch(com.daml.lf.transaction.TransactionOuterClass.Node.Fetch value) {
if (fetchBuilder_ == null) {
if (nodeTypeCase_ == 4 &&
nodeType_ != com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.getDefaultInstance()) {
nodeType_ = com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.newBuilder((com.daml.lf.transaction.TransactionOuterClass.Node.Fetch) nodeType_)
.mergeFrom(value).buildPartial();
} else {
nodeType_ = value;
}
onChanged();
} else {
if (nodeTypeCase_ == 4) {
fetchBuilder_.mergeFrom(value);
} else {
fetchBuilder_.setMessage(value);
}
}
nodeTypeCase_ = 4;
return this;
}
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
*/
public Builder clearFetch() {
if (fetchBuilder_ == null) {
if (nodeTypeCase_ == 4) {
nodeTypeCase_ = 0;
nodeType_ = null;
onChanged();
}
} else {
if (nodeTypeCase_ == 4) {
nodeTypeCase_ = 0;
nodeType_ = null;
}
fetchBuilder_.clear();
}
return this;
}
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
*/
public com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.Builder getFetchBuilder() {
return getFetchFieldBuilder().getBuilder();
}
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.FetchOrBuilder getFetchOrBuilder() {
if ((nodeTypeCase_ == 4) && (fetchBuilder_ != null)) {
return fetchBuilder_.getMessageOrBuilder();
} else {
if (nodeTypeCase_ == 4) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Fetch) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.getDefaultInstance();
}
}
/**
* .com.daml.lf.transaction.Node.Fetch fetch = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node.Fetch, com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.Builder, com.daml.lf.transaction.TransactionOuterClass.Node.FetchOrBuilder>
getFetchFieldBuilder() {
if (fetchBuilder_ == null) {
if (!(nodeTypeCase_ == 4)) {
nodeType_ = com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.getDefaultInstance();
}
fetchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node.Fetch, com.daml.lf.transaction.TransactionOuterClass.Node.Fetch.Builder, com.daml.lf.transaction.TransactionOuterClass.Node.FetchOrBuilder>(
(com.daml.lf.transaction.TransactionOuterClass.Node.Fetch) nodeType_,
getParentForChildren(),
isClean());
nodeType_ = null;
}
nodeTypeCase_ = 4;
onChanged();
return fetchBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node.Exercise, com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.Builder, com.daml.lf.transaction.TransactionOuterClass.Node.ExerciseOrBuilder> exerciseBuilder_;
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
* @return Whether the exercise field is set.
*/
@java.lang.Override
public boolean hasExercise() {
return nodeTypeCase_ == 5;
}
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
* @return The exercise.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.Exercise getExercise() {
if (exerciseBuilder_ == null) {
if (nodeTypeCase_ == 5) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Exercise) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.getDefaultInstance();
} else {
if (nodeTypeCase_ == 5) {
return exerciseBuilder_.getMessage();
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.getDefaultInstance();
}
}
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
*/
public Builder setExercise(com.daml.lf.transaction.TransactionOuterClass.Node.Exercise value) {
if (exerciseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeType_ = value;
onChanged();
} else {
exerciseBuilder_.setMessage(value);
}
nodeTypeCase_ = 5;
return this;
}
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
*/
public Builder setExercise(
com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.Builder builderForValue) {
if (exerciseBuilder_ == null) {
nodeType_ = builderForValue.build();
onChanged();
} else {
exerciseBuilder_.setMessage(builderForValue.build());
}
nodeTypeCase_ = 5;
return this;
}
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
*/
public Builder mergeExercise(com.daml.lf.transaction.TransactionOuterClass.Node.Exercise value) {
if (exerciseBuilder_ == null) {
if (nodeTypeCase_ == 5 &&
nodeType_ != com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.getDefaultInstance()) {
nodeType_ = com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.newBuilder((com.daml.lf.transaction.TransactionOuterClass.Node.Exercise) nodeType_)
.mergeFrom(value).buildPartial();
} else {
nodeType_ = value;
}
onChanged();
} else {
if (nodeTypeCase_ == 5) {
exerciseBuilder_.mergeFrom(value);
} else {
exerciseBuilder_.setMessage(value);
}
}
nodeTypeCase_ = 5;
return this;
}
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
*/
public Builder clearExercise() {
if (exerciseBuilder_ == null) {
if (nodeTypeCase_ == 5) {
nodeTypeCase_ = 0;
nodeType_ = null;
onChanged();
}
} else {
if (nodeTypeCase_ == 5) {
nodeTypeCase_ = 0;
nodeType_ = null;
}
exerciseBuilder_.clear();
}
return this;
}
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
*/
public com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.Builder getExerciseBuilder() {
return getExerciseFieldBuilder().getBuilder();
}
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.ExerciseOrBuilder getExerciseOrBuilder() {
if ((nodeTypeCase_ == 5) && (exerciseBuilder_ != null)) {
return exerciseBuilder_.getMessageOrBuilder();
} else {
if (nodeTypeCase_ == 5) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Exercise) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.getDefaultInstance();
}
}
/**
* .com.daml.lf.transaction.Node.Exercise exercise = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node.Exercise, com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.Builder, com.daml.lf.transaction.TransactionOuterClass.Node.ExerciseOrBuilder>
getExerciseFieldBuilder() {
if (exerciseBuilder_ == null) {
if (!(nodeTypeCase_ == 5)) {
nodeType_ = com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.getDefaultInstance();
}
exerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node.Exercise, com.daml.lf.transaction.TransactionOuterClass.Node.Exercise.Builder, com.daml.lf.transaction.TransactionOuterClass.Node.ExerciseOrBuilder>(
(com.daml.lf.transaction.TransactionOuterClass.Node.Exercise) nodeType_,
getParentForChildren(),
isClean());
nodeType_ = null;
}
nodeTypeCase_ = 5;
onChanged();
return exerciseBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node.Rollback, com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.Builder, com.daml.lf.transaction.TransactionOuterClass.Node.RollbackOrBuilder> rollbackBuilder_;
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
* @return Whether the rollback field is set.
*/
@java.lang.Override
public boolean hasRollback() {
return nodeTypeCase_ == 6;
}
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
* @return The rollback.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.Rollback getRollback() {
if (rollbackBuilder_ == null) {
if (nodeTypeCase_ == 6) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Rollback) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.getDefaultInstance();
} else {
if (nodeTypeCase_ == 6) {
return rollbackBuilder_.getMessage();
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.getDefaultInstance();
}
}
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
*/
public Builder setRollback(com.daml.lf.transaction.TransactionOuterClass.Node.Rollback value) {
if (rollbackBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeType_ = value;
onChanged();
} else {
rollbackBuilder_.setMessage(value);
}
nodeTypeCase_ = 6;
return this;
}
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
*/
public Builder setRollback(
com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.Builder builderForValue) {
if (rollbackBuilder_ == null) {
nodeType_ = builderForValue.build();
onChanged();
} else {
rollbackBuilder_.setMessage(builderForValue.build());
}
nodeTypeCase_ = 6;
return this;
}
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
*/
public Builder mergeRollback(com.daml.lf.transaction.TransactionOuterClass.Node.Rollback value) {
if (rollbackBuilder_ == null) {
if (nodeTypeCase_ == 6 &&
nodeType_ != com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.getDefaultInstance()) {
nodeType_ = com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.newBuilder((com.daml.lf.transaction.TransactionOuterClass.Node.Rollback) nodeType_)
.mergeFrom(value).buildPartial();
} else {
nodeType_ = value;
}
onChanged();
} else {
if (nodeTypeCase_ == 6) {
rollbackBuilder_.mergeFrom(value);
} else {
rollbackBuilder_.setMessage(value);
}
}
nodeTypeCase_ = 6;
return this;
}
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
*/
public Builder clearRollback() {
if (rollbackBuilder_ == null) {
if (nodeTypeCase_ == 6) {
nodeTypeCase_ = 0;
nodeType_ = null;
onChanged();
}
} else {
if (nodeTypeCase_ == 6) {
nodeTypeCase_ = 0;
nodeType_ = null;
}
rollbackBuilder_.clear();
}
return this;
}
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
*/
public com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.Builder getRollbackBuilder() {
return getRollbackFieldBuilder().getBuilder();
}
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.RollbackOrBuilder getRollbackOrBuilder() {
if ((nodeTypeCase_ == 6) && (rollbackBuilder_ != null)) {
return rollbackBuilder_.getMessageOrBuilder();
} else {
if (nodeTypeCase_ == 6) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.Rollback) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.getDefaultInstance();
}
}
/**
* .com.daml.lf.transaction.Node.Rollback rollback = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node.Rollback, com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.Builder, com.daml.lf.transaction.TransactionOuterClass.Node.RollbackOrBuilder>
getRollbackFieldBuilder() {
if (rollbackBuilder_ == null) {
if (!(nodeTypeCase_ == 6)) {
nodeType_ = com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.getDefaultInstance();
}
rollbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node.Rollback, com.daml.lf.transaction.TransactionOuterClass.Node.Rollback.Builder, com.daml.lf.transaction.TransactionOuterClass.Node.RollbackOrBuilder>(
(com.daml.lf.transaction.TransactionOuterClass.Node.Rollback) nodeType_,
getParentForChildren(),
isClean());
nodeType_ = null;
}
nodeTypeCase_ = 6;
onChanged();
return rollbackBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey, com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.Builder, com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKeyOrBuilder> lookupByKeyBuilder_;
/**
*
* *since dev*
*
*
* .com.daml.lf.transaction.Node.LookupByKey lookup_by_key = 1001;
* @return Whether the lookupByKey field is set.
*/
@java.lang.Override
public boolean hasLookupByKey() {
return nodeTypeCase_ == 1001;
}
/**
*
* *since dev*
*
*
* .com.daml.lf.transaction.Node.LookupByKey lookup_by_key = 1001;
* @return The lookupByKey.
*/
@java.lang.Override
public com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey getLookupByKey() {
if (lookupByKeyBuilder_ == null) {
if (nodeTypeCase_ == 1001) {
return (com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey) nodeType_;
}
return com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.getDefaultInstance();
} else {
if (nodeTypeCase_ == 1001) {
return lookupByKeyBuilder_.getMessage();
}
return com.daml.lf.transaction.TransactionOuterClass.Node.LookupByKey.getDefaultInstance();
}
}
/**
*
*
* .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 1001;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder>
getContractKeyWithMaintainersFieldBuilder() {
if (contractKeyWithMaintainersBuilder_ == null) {
contractKeyWithMaintainersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder>(
getContractKeyWithMaintainers(),
getParentForChildren(),
isClean());
contractKeyWithMaintainers_ = null;
}
return contractKeyWithMaintainersBuilder_;
}
@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.FatContractInstance)
}
// @@protoc_insertion_point(class_scope:com.daml.lf.transaction.FatContractInstance)
private static final com.daml.lf.transaction.TransactionOuterClass.FatContractInstance DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.FatContractInstance();
}
public static com.daml.lf.transaction.TransactionOuterClass.FatContractInstance getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FatContractInstance 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.FatContractInstance getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KeyWithMaintainersOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.KeyWithMaintainers)
com.google.protobuf.MessageOrBuilder {
/**
* bytes key = 1;
* @return The key.
*/
com.google.protobuf.ByteString getKey();
/**
*
* the maintainers induced by the key
*
*
* 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);
}
/**
* 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() {
key_ = com.google.protobuf.ByteString.EMPTY;
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);
}
public static final int KEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes key = 1;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
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 (!key_.isEmpty()) {
output.writeBytes(1, key_);
}
for (int i = 0; i < maintainers_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, maintainers_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, key_);
}
{
int dataSize = 0;
for (int i = 0; i < maintainers_.size(); i++) {
dataSize += computeStringSizeNoTag(maintainers_.getRaw(i));
}
size += dataSize;
size += 1 * getMaintainersList().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.KeyWithMaintainers)) {
return super.equals(obj);
}
com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers other = (com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getMaintainersList()
.equals(other.getMaintainersList())) 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) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
if (getMaintainersCount() > 0) {
hash = (37 * hash) + MAINTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getMaintainersList().hashCode();
}
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;
key_ = com.google.protobuf.ByteString.EMPTY;
maintainers_ =
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_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); }
onBuilt();
return result;
}
private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = key_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
maintainers_.makeImmutable();
result.maintainers_ = maintainers_;
}
}
@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.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
if (!other.maintainers_.isEmpty()) {
if (maintainers_.isEmpty()) {
maintainers_ = other.maintainers_;
bitField0_ |= 0x00000002;
} else {
ensureMaintainersIsMutable();
maintainers_.addAll(other.maintainers_);
}
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: {
key_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureMaintainersIsMutable();
maintainers_.add(s);
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes key = 1;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* bytes key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
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_ |= 0x00000002;
}
/**
*
* 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_ |= 0x00000002;
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_ |= 0x00000002;
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_ |= 0x00000002;
onChanged();
return this;
}
/**
*