All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.daml.lf.transaction.TransactionOuterClass Maven / Gradle / Ivy

There is a newer version: 3.2.0-adhoc.20240826.13247.0.v8d88a081
Show newest version
// 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 
        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 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 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 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 { /** *
     * required *since dev*
     * 
* * string package_name = 4; * @return The packageName. */ java.lang.String getPackageName(); /** *
     * required *since dev*
     * 
* * string package_name = 4; * @return The bytes for packageName. */ com.google.protobuf.ByteString getPackageNameBytes(); /** * .com.daml.lf.value.Identifier template_id = 1; * @return Whether the templateId field is set. */ boolean hasTemplateId(); /** * .com.daml.lf.value.Identifier template_id = 1; * @return The templateId. */ com.daml.lf.value.ValueOuterClass.Identifier getTemplateId(); /** * .com.daml.lf.value.Identifier template_id = 1; */ com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder(); /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; * @return Whether the argVersioned field is set. */ boolean hasArgVersioned(); /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; * @return The argVersioned. */ com.daml.lf.value.ValueOuterClass.VersionedValue getArgVersioned(); /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; */ com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getArgVersionedOrBuilder(); /** * string agreement = 3; * @return The agreement. */ java.lang.String getAgreement(); /** * string agreement = 3; * @return The bytes for agreement. */ com.google.protobuf.ByteString getAgreementBytes(); } /** *
   * architecture-handbook-entry-begin: Contract
   * 
* * Protobuf type {@code com.daml.lf.transaction.ContractInstance} */ public static final class ContractInstance extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.transaction.ContractInstance) ContractInstanceOrBuilder { private static final long serialVersionUID = 0L; // Use ContractInstance.newBuilder() to construct. private ContractInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContractInstance() { packageName_ = ""; agreement_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ContractInstance(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_ContractInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_ContractInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.ContractInstance.class, com.daml.lf.transaction.TransactionOuterClass.ContractInstance.Builder.class); } private int bitField0_; public static final int PACKAGE_NAME_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object packageName_ = ""; /** *
     * required *since dev*
     * 
* * string package_name = 4; * @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; } } /** *
     * required *since dev*
     * 
* * string package_name = 4; * @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 = 1; private com.daml.lf.value.ValueOuterClass.Identifier templateId_; /** * .com.daml.lf.value.Identifier template_id = 1; * @return Whether the templateId field is set. */ @java.lang.Override public boolean hasTemplateId() { return ((bitField0_ & 0x00000001) != 0); } /** * .com.daml.lf.value.Identifier template_id = 1; * @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 = 1; */ @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 ARG_VERSIONED_FIELD_NUMBER = 2; private com.daml.lf.value.ValueOuterClass.VersionedValue argVersioned_; /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; * @return Whether the argVersioned field is set. */ @java.lang.Override public boolean hasArgVersioned() { return ((bitField0_ & 0x00000002) != 0); } /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; * @return The argVersioned. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValue getArgVersioned() { return argVersioned_ == null ? com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance() : argVersioned_; } /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getArgVersionedOrBuilder() { return argVersioned_ == null ? com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance() : argVersioned_; } public static final int AGREEMENT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object agreement_ = ""; /** * string agreement = 3; * @return The agreement. */ @java.lang.Override public java.lang.String getAgreement() { java.lang.Object ref = agreement_; 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(); agreement_ = s; return s; } } /** * string agreement = 3; * @return The bytes for agreement. */ @java.lang.Override public com.google.protobuf.ByteString getAgreementBytes() { java.lang.Object ref = agreement_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); agreement_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplateId()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getArgVersioned()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agreement_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, agreement_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, packageName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplateId()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getArgVersioned()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agreement_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, agreement_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, packageName_); } 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.ContractInstance)) { return super.equals(obj); } com.daml.lf.transaction.TransactionOuterClass.ContractInstance other = (com.daml.lf.transaction.TransactionOuterClass.ContractInstance) obj; if (!getPackageName() .equals(other.getPackageName())) return false; if (hasTemplateId() != other.hasTemplateId()) return false; if (hasTemplateId()) { if (!getTemplateId() .equals(other.getTemplateId())) return false; } if (hasArgVersioned() != other.hasArgVersioned()) return false; if (hasArgVersioned()) { if (!getArgVersioned() .equals(other.getArgVersioned())) return false; } if (!getAgreement() .equals(other.getAgreement())) 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 (hasArgVersioned()) { hash = (37 * hash) + ARG_VERSIONED_FIELD_NUMBER; hash = (53 * hash) + getArgVersioned().hashCode(); } hash = (37 * hash) + AGREEMENT_FIELD_NUMBER; hash = (53 * hash) + getAgreement().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.transaction.TransactionOuterClass.ContractInstance parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.ContractInstance 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.ContractInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.ContractInstance 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.ContractInstance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.ContractInstance 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.ContractInstance parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.ContractInstance 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.ContractInstance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.ContractInstance 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.ContractInstance 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.ContractInstance 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.ContractInstance 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; } /** *
     * architecture-handbook-entry-begin: Contract
     * 
* * Protobuf type {@code com.daml.lf.transaction.ContractInstance} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.ContractInstance) com.daml.lf.transaction.TransactionOuterClass.ContractInstanceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_ContractInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_ContractInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.ContractInstance.class, com.daml.lf.transaction.TransactionOuterClass.ContractInstance.Builder.class); } // Construct using com.daml.lf.transaction.TransactionOuterClass.ContractInstance.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(); getArgVersionedFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; packageName_ = ""; templateId_ = null; if (templateIdBuilder_ != null) { templateIdBuilder_.dispose(); templateIdBuilder_ = null; } argVersioned_ = null; if (argVersionedBuilder_ != null) { argVersionedBuilder_.dispose(); argVersionedBuilder_ = null; } agreement_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_ContractInstance_descriptor; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.ContractInstance getDefaultInstanceForType() { return com.daml.lf.transaction.TransactionOuterClass.ContractInstance.getDefaultInstance(); } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.ContractInstance build() { com.daml.lf.transaction.TransactionOuterClass.ContractInstance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.ContractInstance buildPartial() { com.daml.lf.transaction.TransactionOuterClass.ContractInstance result = new com.daml.lf.transaction.TransactionOuterClass.ContractInstance(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.ContractInstance 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.argVersioned_ = argVersionedBuilder_ == null ? argVersioned_ : argVersionedBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.agreement_ = agreement_; } 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.ContractInstance) { return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.ContractInstance)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.ContractInstance other) { if (other == com.daml.lf.transaction.TransactionOuterClass.ContractInstance.getDefaultInstance()) return this; if (!other.getPackageName().isEmpty()) { packageName_ = other.packageName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasTemplateId()) { mergeTemplateId(other.getTemplateId()); } if (other.hasArgVersioned()) { mergeArgVersioned(other.getArgVersioned()); } if (!other.getAgreement().isEmpty()) { agreement_ = other.agreement_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 10 case 18: { input.readMessage( getArgVersionedFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 26: { agreement_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 26 case 34: { packageName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; 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_ = ""; /** *
       * required *since dev*
       * 
* * string package_name = 4; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 4; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 4; * @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; } /** *
       * required *since dev*
       * 
* * string package_name = 4; * @return This builder for chaining. */ public Builder clearPackageName() { packageName_ = getDefaultInstance().getPackageName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * required *since dev*
       * 
* * string package_name = 4; * @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 = 1; * @return Whether the templateId field is set. */ public boolean hasTemplateId() { return ((bitField0_ & 0x00000002) != 0); } /** * .com.daml.lf.value.Identifier template_id = 1; * @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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ public com.daml.lf.value.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTemplateIdFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Identifier template_id = 1; */ 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 = 1; */ 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.value.ValueOuterClass.VersionedValue argVersioned_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder> argVersionedBuilder_; /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; * @return Whether the argVersioned field is set. */ public boolean hasArgVersioned() { return ((bitField0_ & 0x00000004) != 0); } /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; * @return The argVersioned. */ public com.daml.lf.value.ValueOuterClass.VersionedValue getArgVersioned() { if (argVersionedBuilder_ == null) { return argVersioned_ == null ? com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance() : argVersioned_; } else { return argVersionedBuilder_.getMessage(); } } /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; */ public Builder setArgVersioned(com.daml.lf.value.ValueOuterClass.VersionedValue value) { if (argVersionedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } argVersioned_ = value; } else { argVersionedBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; */ public Builder setArgVersioned( com.daml.lf.value.ValueOuterClass.VersionedValue.Builder builderForValue) { if (argVersionedBuilder_ == null) { argVersioned_ = builderForValue.build(); } else { argVersionedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; */ public Builder mergeArgVersioned(com.daml.lf.value.ValueOuterClass.VersionedValue value) { if (argVersionedBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && argVersioned_ != null && argVersioned_ != com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance()) { getArgVersionedBuilder().mergeFrom(value); } else { argVersioned_ = value; } } else { argVersionedBuilder_.mergeFrom(value); } if (argVersioned_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; */ public Builder clearArgVersioned() { bitField0_ = (bitField0_ & ~0x00000004); argVersioned_ = null; if (argVersionedBuilder_ != null) { argVersionedBuilder_.dispose(); argVersionedBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; */ public com.daml.lf.value.ValueOuterClass.VersionedValue.Builder getArgVersionedBuilder() { bitField0_ |= 0x00000004; onChanged(); return getArgVersionedFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; */ public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getArgVersionedOrBuilder() { if (argVersionedBuilder_ != null) { return argVersionedBuilder_.getMessageOrBuilder(); } else { return argVersioned_ == null ? com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance() : argVersioned_; } } /** * .com.daml.lf.value.VersionedValue arg_versioned = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder> getArgVersionedFieldBuilder() { if (argVersionedBuilder_ == null) { argVersionedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder>( getArgVersioned(), getParentForChildren(), isClean()); argVersioned_ = null; } return argVersionedBuilder_; } private java.lang.Object agreement_ = ""; /** * string agreement = 3; * @return The agreement. */ public java.lang.String getAgreement() { java.lang.Object ref = agreement_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agreement_ = s; return s; } else { return (java.lang.String) ref; } } /** * string agreement = 3; * @return The bytes for agreement. */ public com.google.protobuf.ByteString getAgreementBytes() { java.lang.Object ref = agreement_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); agreement_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string agreement = 3; * @param value The agreement to set. * @return This builder for chaining. */ public Builder setAgreement( java.lang.String value) { if (value == null) { throw new NullPointerException(); } agreement_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string agreement = 3; * @return This builder for chaining. */ public Builder clearAgreement() { agreement_ = getDefaultInstance().getAgreement(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string agreement = 3; * @param value The bytes for agreement to set. * @return This builder for chaining. */ public Builder setAgreementBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); agreement_ = value; bitField0_ |= 0x00000008; 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.ContractInstance) } // @@protoc_insertion_point(class_scope:com.daml.lf.transaction.ContractInstance) private static final com.daml.lf.transaction.TransactionOuterClass.ContractInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.ContractInstance(); } public static com.daml.lf.transaction.TransactionOuterClass.ContractInstance getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContractInstance 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.ContractInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.Node) com.google.protobuf.MessageOrBuilder { /** * string node_id = 1; * @return The nodeId. */ java.lang.String getNodeId(); /** * string node_id = 1; * @return The bytes for nodeId. */ com.google.protobuf.ByteString getNodeIdBytes(); /** * .com.daml.lf.transaction.NodeCreate create = 3; * @return Whether the create field is set. */ boolean hasCreate(); /** * .com.daml.lf.transaction.NodeCreate create = 3; * @return The create. */ com.daml.lf.transaction.TransactionOuterClass.NodeCreate getCreate(); /** * .com.daml.lf.transaction.NodeCreate create = 3; */ com.daml.lf.transaction.TransactionOuterClass.NodeCreateOrBuilder getCreateOrBuilder(); /** * .com.daml.lf.transaction.NodeFetch fetch = 4; * @return Whether the fetch field is set. */ boolean hasFetch(); /** * .com.daml.lf.transaction.NodeFetch fetch = 4; * @return The fetch. */ com.daml.lf.transaction.TransactionOuterClass.NodeFetch getFetch(); /** * .com.daml.lf.transaction.NodeFetch fetch = 4; */ com.daml.lf.transaction.TransactionOuterClass.NodeFetchOrBuilder getFetchOrBuilder(); /** * .com.daml.lf.transaction.NodeExercise exercise = 5; * @return Whether the exercise field is set. */ boolean hasExercise(); /** * .com.daml.lf.transaction.NodeExercise exercise = 5; * @return The exercise. */ com.daml.lf.transaction.TransactionOuterClass.NodeExercise getExercise(); /** * .com.daml.lf.transaction.NodeExercise exercise = 5; */ com.daml.lf.transaction.TransactionOuterClass.NodeExerciseOrBuilder getExerciseOrBuilder(); /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; * @return Whether the lookupByKey field is set. */ boolean hasLookupByKey(); /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; * @return The lookupByKey. */ com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey getLookupByKey(); /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; */ com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKeyOrBuilder getLookupByKeyOrBuilder(); /** * .com.daml.lf.transaction.NodeRollback rollback = 7; * @return Whether the rollback field is set. */ boolean hasRollback(); /** * .com.daml.lf.transaction.NodeRollback rollback = 7; * @return The rollback. */ com.daml.lf.transaction.TransactionOuterClass.NodeRollback getRollback(); /** * .com.daml.lf.transaction.NodeRollback rollback = 7; */ com.daml.lf.transaction.TransactionOuterClass.NodeRollbackOrBuilder getRollbackOrBuilder(); /** * string version = 63; * @return The version. */ java.lang.String getVersion(); /** * string version = 63; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); com.daml.lf.transaction.TransactionOuterClass.Node.NodeTypeCase getNodeTypeCase(); } /** * Protobuf type {@code com.daml.lf.transaction.Node} */ public static final class Node extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.transaction.Node) NodeOrBuilder { private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Node() { nodeId_ = ""; version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Node(); } 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); } 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), LOOKUP_BY_KEY(6), ROLLBACK(7), 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 LOOKUP_BY_KEY; case 7: return ROLLBACK; 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 NODE_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object nodeId_ = ""; /** * string node_id = 1; * @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 = 1; * @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.NodeCreate create = 3; * @return Whether the create field is set. */ @java.lang.Override public boolean hasCreate() { return nodeTypeCase_ == 3; } /** * .com.daml.lf.transaction.NodeCreate create = 3; * @return The create. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeCreate getCreate() { if (nodeTypeCase_ == 3) { return (com.daml.lf.transaction.TransactionOuterClass.NodeCreate) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeCreate.getDefaultInstance(); } /** * .com.daml.lf.transaction.NodeCreate create = 3; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeCreateOrBuilder getCreateOrBuilder() { if (nodeTypeCase_ == 3) { return (com.daml.lf.transaction.TransactionOuterClass.NodeCreate) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeCreate.getDefaultInstance(); } public static final int FETCH_FIELD_NUMBER = 4; /** * .com.daml.lf.transaction.NodeFetch fetch = 4; * @return Whether the fetch field is set. */ @java.lang.Override public boolean hasFetch() { return nodeTypeCase_ == 4; } /** * .com.daml.lf.transaction.NodeFetch fetch = 4; * @return The fetch. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeFetch getFetch() { if (nodeTypeCase_ == 4) { return (com.daml.lf.transaction.TransactionOuterClass.NodeFetch) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeFetch.getDefaultInstance(); } /** * .com.daml.lf.transaction.NodeFetch fetch = 4; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeFetchOrBuilder getFetchOrBuilder() { if (nodeTypeCase_ == 4) { return (com.daml.lf.transaction.TransactionOuterClass.NodeFetch) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeFetch.getDefaultInstance(); } public static final int EXERCISE_FIELD_NUMBER = 5; /** * .com.daml.lf.transaction.NodeExercise exercise = 5; * @return Whether the exercise field is set. */ @java.lang.Override public boolean hasExercise() { return nodeTypeCase_ == 5; } /** * .com.daml.lf.transaction.NodeExercise exercise = 5; * @return The exercise. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeExercise getExercise() { if (nodeTypeCase_ == 5) { return (com.daml.lf.transaction.TransactionOuterClass.NodeExercise) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeExercise.getDefaultInstance(); } /** * .com.daml.lf.transaction.NodeExercise exercise = 5; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeExerciseOrBuilder getExerciseOrBuilder() { if (nodeTypeCase_ == 5) { return (com.daml.lf.transaction.TransactionOuterClass.NodeExercise) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeExercise.getDefaultInstance(); } public static final int LOOKUP_BY_KEY_FIELD_NUMBER = 6; /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; * @return Whether the lookupByKey field is set. */ @java.lang.Override public boolean hasLookupByKey() { return nodeTypeCase_ == 6; } /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; * @return The lookupByKey. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey getLookupByKey() { if (nodeTypeCase_ == 6) { return (com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.getDefaultInstance(); } /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKeyOrBuilder getLookupByKeyOrBuilder() { if (nodeTypeCase_ == 6) { return (com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.getDefaultInstance(); } public static final int ROLLBACK_FIELD_NUMBER = 7; /** * .com.daml.lf.transaction.NodeRollback rollback = 7; * @return Whether the rollback field is set. */ @java.lang.Override public boolean hasRollback() { return nodeTypeCase_ == 7; } /** * .com.daml.lf.transaction.NodeRollback rollback = 7; * @return The rollback. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeRollback getRollback() { if (nodeTypeCase_ == 7) { return (com.daml.lf.transaction.TransactionOuterClass.NodeRollback) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance(); } /** * .com.daml.lf.transaction.NodeRollback rollback = 7; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeRollbackOrBuilder getRollbackOrBuilder() { if (nodeTypeCase_ == 7) { return (com.daml.lf.transaction.TransactionOuterClass.NodeRollback) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance(); } public static final int VERSION_FIELD_NUMBER = 63; @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** * string version = 63; * @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 = 63; * @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; } } 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(nodeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); } if (nodeTypeCase_ == 3) { output.writeMessage(3, (com.daml.lf.transaction.TransactionOuterClass.NodeCreate) nodeType_); } if (nodeTypeCase_ == 4) { output.writeMessage(4, (com.daml.lf.transaction.TransactionOuterClass.NodeFetch) nodeType_); } if (nodeTypeCase_ == 5) { output.writeMessage(5, (com.daml.lf.transaction.TransactionOuterClass.NodeExercise) nodeType_); } if (nodeTypeCase_ == 6) { output.writeMessage(6, (com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey) nodeType_); } if (nodeTypeCase_ == 7) { output.writeMessage(7, (com.daml.lf.transaction.TransactionOuterClass.NodeRollback) nodeType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 63, version_); } 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(nodeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); } if (nodeTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.lf.transaction.TransactionOuterClass.NodeCreate) nodeType_); } if (nodeTypeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.daml.lf.transaction.TransactionOuterClass.NodeFetch) nodeType_); } if (nodeTypeCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.daml.lf.transaction.TransactionOuterClass.NodeExercise) nodeType_); } if (nodeTypeCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey) nodeType_); } if (nodeTypeCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.lf.transaction.TransactionOuterClass.NodeRollback) nodeType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(63, version_); } 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 (!getNodeId() .equals(other.getNodeId())) return false; if (!getVersion() .equals(other.getVersion())) 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 (!getLookupByKey() .equals(other.getLookupByKey())) return false; break; case 7: if (!getRollback() .equals(other.getRollback())) 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) + NODE_ID_FIELD_NUMBER; hash = (53 * hash) + getNodeId().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().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) + LOOKUP_BY_KEY_FIELD_NUMBER; hash = (53 * hash) + getLookupByKey().hashCode(); break; case 7: hash = (37 * hash) + ROLLBACK_FIELD_NUMBER; hash = (53 * hash) + getRollback().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; nodeId_ = ""; if (createBuilder_ != null) { createBuilder_.clear(); } if (fetchBuilder_ != null) { fetchBuilder_.clear(); } if (exerciseBuilder_ != null) { exerciseBuilder_.clear(); } if (lookupByKeyBuilder_ != null) { lookupByKeyBuilder_.clear(); } if (rollbackBuilder_ != null) { rollbackBuilder_.clear(); } version_ = ""; 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.nodeId_ = nodeId_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.version_ = version_; } } 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 && lookupByKeyBuilder_ != null) { result.nodeType_ = lookupByKeyBuilder_.build(); } if (nodeTypeCase_ == 7 && rollbackBuilder_ != null) { result.nodeType_ = rollbackBuilder_.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.getNodeId().isEmpty()) { nodeId_ = other.nodeId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; bitField0_ |= 0x00000040; onChanged(); } switch (other.getNodeTypeCase()) { case CREATE: { mergeCreate(other.getCreate()); break; } case FETCH: { mergeFetch(other.getFetch()); break; } case EXERCISE: { mergeExercise(other.getExercise()); break; } case LOOKUP_BY_KEY: { mergeLookupByKey(other.getLookupByKey()); break; } case ROLLBACK: { mergeRollback(other.getRollback()); 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: { nodeId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 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( getLookupByKeyFieldBuilder().getBuilder(), extensionRegistry); nodeTypeCase_ = 6; break; } // case 50 case 58: { input.readMessage( getRollbackFieldBuilder().getBuilder(), extensionRegistry); nodeTypeCase_ = 7; break; } // case 58 case 506: { version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 506 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 nodeId_ = ""; /** * string node_id = 1; * @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 = 1; * @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 = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * string node_id = 1; * @return This builder for chaining. */ public Builder clearNodeId() { nodeId_ = getDefaultInstance().getNodeId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string node_id = 1; * @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_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeCreate, com.daml.lf.transaction.TransactionOuterClass.NodeCreate.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeCreateOrBuilder> createBuilder_; /** * .com.daml.lf.transaction.NodeCreate create = 3; * @return Whether the create field is set. */ @java.lang.Override public boolean hasCreate() { return nodeTypeCase_ == 3; } /** * .com.daml.lf.transaction.NodeCreate create = 3; * @return The create. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeCreate getCreate() { if (createBuilder_ == null) { if (nodeTypeCase_ == 3) { return (com.daml.lf.transaction.TransactionOuterClass.NodeCreate) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeCreate.getDefaultInstance(); } else { if (nodeTypeCase_ == 3) { return createBuilder_.getMessage(); } return com.daml.lf.transaction.TransactionOuterClass.NodeCreate.getDefaultInstance(); } } /** * .com.daml.lf.transaction.NodeCreate create = 3; */ public Builder setCreate(com.daml.lf.transaction.TransactionOuterClass.NodeCreate 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.NodeCreate create = 3; */ public Builder setCreate( com.daml.lf.transaction.TransactionOuterClass.NodeCreate.Builder builderForValue) { if (createBuilder_ == null) { nodeType_ = builderForValue.build(); onChanged(); } else { createBuilder_.setMessage(builderForValue.build()); } nodeTypeCase_ = 3; return this; } /** * .com.daml.lf.transaction.NodeCreate create = 3; */ public Builder mergeCreate(com.daml.lf.transaction.TransactionOuterClass.NodeCreate value) { if (createBuilder_ == null) { if (nodeTypeCase_ == 3 && nodeType_ != com.daml.lf.transaction.TransactionOuterClass.NodeCreate.getDefaultInstance()) { nodeType_ = com.daml.lf.transaction.TransactionOuterClass.NodeCreate.newBuilder((com.daml.lf.transaction.TransactionOuterClass.NodeCreate) 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.NodeCreate 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.NodeCreate create = 3; */ public com.daml.lf.transaction.TransactionOuterClass.NodeCreate.Builder getCreateBuilder() { return getCreateFieldBuilder().getBuilder(); } /** * .com.daml.lf.transaction.NodeCreate create = 3; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeCreateOrBuilder getCreateOrBuilder() { if ((nodeTypeCase_ == 3) && (createBuilder_ != null)) { return createBuilder_.getMessageOrBuilder(); } else { if (nodeTypeCase_ == 3) { return (com.daml.lf.transaction.TransactionOuterClass.NodeCreate) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeCreate.getDefaultInstance(); } } /** * .com.daml.lf.transaction.NodeCreate create = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeCreate, com.daml.lf.transaction.TransactionOuterClass.NodeCreate.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeCreateOrBuilder> getCreateFieldBuilder() { if (createBuilder_ == null) { if (!(nodeTypeCase_ == 3)) { nodeType_ = com.daml.lf.transaction.TransactionOuterClass.NodeCreate.getDefaultInstance(); } createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeCreate, com.daml.lf.transaction.TransactionOuterClass.NodeCreate.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeCreateOrBuilder>( (com.daml.lf.transaction.TransactionOuterClass.NodeCreate) nodeType_, getParentForChildren(), isClean()); nodeType_ = null; } nodeTypeCase_ = 3; onChanged(); return createBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeFetch, com.daml.lf.transaction.TransactionOuterClass.NodeFetch.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeFetchOrBuilder> fetchBuilder_; /** * .com.daml.lf.transaction.NodeFetch fetch = 4; * @return Whether the fetch field is set. */ @java.lang.Override public boolean hasFetch() { return nodeTypeCase_ == 4; } /** * .com.daml.lf.transaction.NodeFetch fetch = 4; * @return The fetch. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeFetch getFetch() { if (fetchBuilder_ == null) { if (nodeTypeCase_ == 4) { return (com.daml.lf.transaction.TransactionOuterClass.NodeFetch) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeFetch.getDefaultInstance(); } else { if (nodeTypeCase_ == 4) { return fetchBuilder_.getMessage(); } return com.daml.lf.transaction.TransactionOuterClass.NodeFetch.getDefaultInstance(); } } /** * .com.daml.lf.transaction.NodeFetch fetch = 4; */ public Builder setFetch(com.daml.lf.transaction.TransactionOuterClass.NodeFetch 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.NodeFetch fetch = 4; */ public Builder setFetch( com.daml.lf.transaction.TransactionOuterClass.NodeFetch.Builder builderForValue) { if (fetchBuilder_ == null) { nodeType_ = builderForValue.build(); onChanged(); } else { fetchBuilder_.setMessage(builderForValue.build()); } nodeTypeCase_ = 4; return this; } /** * .com.daml.lf.transaction.NodeFetch fetch = 4; */ public Builder mergeFetch(com.daml.lf.transaction.TransactionOuterClass.NodeFetch value) { if (fetchBuilder_ == null) { if (nodeTypeCase_ == 4 && nodeType_ != com.daml.lf.transaction.TransactionOuterClass.NodeFetch.getDefaultInstance()) { nodeType_ = com.daml.lf.transaction.TransactionOuterClass.NodeFetch.newBuilder((com.daml.lf.transaction.TransactionOuterClass.NodeFetch) 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.NodeFetch 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.NodeFetch fetch = 4; */ public com.daml.lf.transaction.TransactionOuterClass.NodeFetch.Builder getFetchBuilder() { return getFetchFieldBuilder().getBuilder(); } /** * .com.daml.lf.transaction.NodeFetch fetch = 4; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeFetchOrBuilder getFetchOrBuilder() { if ((nodeTypeCase_ == 4) && (fetchBuilder_ != null)) { return fetchBuilder_.getMessageOrBuilder(); } else { if (nodeTypeCase_ == 4) { return (com.daml.lf.transaction.TransactionOuterClass.NodeFetch) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeFetch.getDefaultInstance(); } } /** * .com.daml.lf.transaction.NodeFetch fetch = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeFetch, com.daml.lf.transaction.TransactionOuterClass.NodeFetch.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeFetchOrBuilder> getFetchFieldBuilder() { if (fetchBuilder_ == null) { if (!(nodeTypeCase_ == 4)) { nodeType_ = com.daml.lf.transaction.TransactionOuterClass.NodeFetch.getDefaultInstance(); } fetchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeFetch, com.daml.lf.transaction.TransactionOuterClass.NodeFetch.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeFetchOrBuilder>( (com.daml.lf.transaction.TransactionOuterClass.NodeFetch) nodeType_, getParentForChildren(), isClean()); nodeType_ = null; } nodeTypeCase_ = 4; onChanged(); return fetchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeExercise, com.daml.lf.transaction.TransactionOuterClass.NodeExercise.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeExerciseOrBuilder> exerciseBuilder_; /** * .com.daml.lf.transaction.NodeExercise exercise = 5; * @return Whether the exercise field is set. */ @java.lang.Override public boolean hasExercise() { return nodeTypeCase_ == 5; } /** * .com.daml.lf.transaction.NodeExercise exercise = 5; * @return The exercise. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeExercise getExercise() { if (exerciseBuilder_ == null) { if (nodeTypeCase_ == 5) { return (com.daml.lf.transaction.TransactionOuterClass.NodeExercise) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeExercise.getDefaultInstance(); } else { if (nodeTypeCase_ == 5) { return exerciseBuilder_.getMessage(); } return com.daml.lf.transaction.TransactionOuterClass.NodeExercise.getDefaultInstance(); } } /** * .com.daml.lf.transaction.NodeExercise exercise = 5; */ public Builder setExercise(com.daml.lf.transaction.TransactionOuterClass.NodeExercise 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.NodeExercise exercise = 5; */ public Builder setExercise( com.daml.lf.transaction.TransactionOuterClass.NodeExercise.Builder builderForValue) { if (exerciseBuilder_ == null) { nodeType_ = builderForValue.build(); onChanged(); } else { exerciseBuilder_.setMessage(builderForValue.build()); } nodeTypeCase_ = 5; return this; } /** * .com.daml.lf.transaction.NodeExercise exercise = 5; */ public Builder mergeExercise(com.daml.lf.transaction.TransactionOuterClass.NodeExercise value) { if (exerciseBuilder_ == null) { if (nodeTypeCase_ == 5 && nodeType_ != com.daml.lf.transaction.TransactionOuterClass.NodeExercise.getDefaultInstance()) { nodeType_ = com.daml.lf.transaction.TransactionOuterClass.NodeExercise.newBuilder((com.daml.lf.transaction.TransactionOuterClass.NodeExercise) 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.NodeExercise 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.NodeExercise exercise = 5; */ public com.daml.lf.transaction.TransactionOuterClass.NodeExercise.Builder getExerciseBuilder() { return getExerciseFieldBuilder().getBuilder(); } /** * .com.daml.lf.transaction.NodeExercise exercise = 5; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeExerciseOrBuilder getExerciseOrBuilder() { if ((nodeTypeCase_ == 5) && (exerciseBuilder_ != null)) { return exerciseBuilder_.getMessageOrBuilder(); } else { if (nodeTypeCase_ == 5) { return (com.daml.lf.transaction.TransactionOuterClass.NodeExercise) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeExercise.getDefaultInstance(); } } /** * .com.daml.lf.transaction.NodeExercise exercise = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeExercise, com.daml.lf.transaction.TransactionOuterClass.NodeExercise.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeExerciseOrBuilder> getExerciseFieldBuilder() { if (exerciseBuilder_ == null) { if (!(nodeTypeCase_ == 5)) { nodeType_ = com.daml.lf.transaction.TransactionOuterClass.NodeExercise.getDefaultInstance(); } exerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeExercise, com.daml.lf.transaction.TransactionOuterClass.NodeExercise.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeExerciseOrBuilder>( (com.daml.lf.transaction.TransactionOuterClass.NodeExercise) nodeType_, getParentForChildren(), isClean()); nodeType_ = null; } nodeTypeCase_ = 5; onChanged(); return exerciseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey, com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKeyOrBuilder> lookupByKeyBuilder_; /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; * @return Whether the lookupByKey field is set. */ @java.lang.Override public boolean hasLookupByKey() { return nodeTypeCase_ == 6; } /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; * @return The lookupByKey. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey getLookupByKey() { if (lookupByKeyBuilder_ == null) { if (nodeTypeCase_ == 6) { return (com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.getDefaultInstance(); } else { if (nodeTypeCase_ == 6) { return lookupByKeyBuilder_.getMessage(); } return com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.getDefaultInstance(); } } /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; */ public Builder setLookupByKey(com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey value) { if (lookupByKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nodeType_ = value; onChanged(); } else { lookupByKeyBuilder_.setMessage(value); } nodeTypeCase_ = 6; return this; } /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; */ public Builder setLookupByKey( com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.Builder builderForValue) { if (lookupByKeyBuilder_ == null) { nodeType_ = builderForValue.build(); onChanged(); } else { lookupByKeyBuilder_.setMessage(builderForValue.build()); } nodeTypeCase_ = 6; return this; } /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; */ public Builder mergeLookupByKey(com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey value) { if (lookupByKeyBuilder_ == null) { if (nodeTypeCase_ == 6 && nodeType_ != com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.getDefaultInstance()) { nodeType_ = com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.newBuilder((com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey) nodeType_) .mergeFrom(value).buildPartial(); } else { nodeType_ = value; } onChanged(); } else { if (nodeTypeCase_ == 6) { lookupByKeyBuilder_.mergeFrom(value); } else { lookupByKeyBuilder_.setMessage(value); } } nodeTypeCase_ = 6; return this; } /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; */ public Builder clearLookupByKey() { if (lookupByKeyBuilder_ == null) { if (nodeTypeCase_ == 6) { nodeTypeCase_ = 0; nodeType_ = null; onChanged(); } } else { if (nodeTypeCase_ == 6) { nodeTypeCase_ = 0; nodeType_ = null; } lookupByKeyBuilder_.clear(); } return this; } /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; */ public com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.Builder getLookupByKeyBuilder() { return getLookupByKeyFieldBuilder().getBuilder(); } /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKeyOrBuilder getLookupByKeyOrBuilder() { if ((nodeTypeCase_ == 6) && (lookupByKeyBuilder_ != null)) { return lookupByKeyBuilder_.getMessageOrBuilder(); } else { if (nodeTypeCase_ == 6) { return (com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.getDefaultInstance(); } } /** * .com.daml.lf.transaction.NodeLookupByKey lookup_by_key = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey, com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKeyOrBuilder> getLookupByKeyFieldBuilder() { if (lookupByKeyBuilder_ == null) { if (!(nodeTypeCase_ == 6)) { nodeType_ = com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.getDefaultInstance(); } lookupByKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey, com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKeyOrBuilder>( (com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey) nodeType_, getParentForChildren(), isClean()); nodeType_ = null; } nodeTypeCase_ = 6; onChanged(); return lookupByKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeRollback, com.daml.lf.transaction.TransactionOuterClass.NodeRollback.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeRollbackOrBuilder> rollbackBuilder_; /** * .com.daml.lf.transaction.NodeRollback rollback = 7; * @return Whether the rollback field is set. */ @java.lang.Override public boolean hasRollback() { return nodeTypeCase_ == 7; } /** * .com.daml.lf.transaction.NodeRollback rollback = 7; * @return The rollback. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeRollback getRollback() { if (rollbackBuilder_ == null) { if (nodeTypeCase_ == 7) { return (com.daml.lf.transaction.TransactionOuterClass.NodeRollback) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance(); } else { if (nodeTypeCase_ == 7) { return rollbackBuilder_.getMessage(); } return com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance(); } } /** * .com.daml.lf.transaction.NodeRollback rollback = 7; */ public Builder setRollback(com.daml.lf.transaction.TransactionOuterClass.NodeRollback value) { if (rollbackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nodeType_ = value; onChanged(); } else { rollbackBuilder_.setMessage(value); } nodeTypeCase_ = 7; return this; } /** * .com.daml.lf.transaction.NodeRollback rollback = 7; */ public Builder setRollback( com.daml.lf.transaction.TransactionOuterClass.NodeRollback.Builder builderForValue) { if (rollbackBuilder_ == null) { nodeType_ = builderForValue.build(); onChanged(); } else { rollbackBuilder_.setMessage(builderForValue.build()); } nodeTypeCase_ = 7; return this; } /** * .com.daml.lf.transaction.NodeRollback rollback = 7; */ public Builder mergeRollback(com.daml.lf.transaction.TransactionOuterClass.NodeRollback value) { if (rollbackBuilder_ == null) { if (nodeTypeCase_ == 7 && nodeType_ != com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance()) { nodeType_ = com.daml.lf.transaction.TransactionOuterClass.NodeRollback.newBuilder((com.daml.lf.transaction.TransactionOuterClass.NodeRollback) nodeType_) .mergeFrom(value).buildPartial(); } else { nodeType_ = value; } onChanged(); } else { if (nodeTypeCase_ == 7) { rollbackBuilder_.mergeFrom(value); } else { rollbackBuilder_.setMessage(value); } } nodeTypeCase_ = 7; return this; } /** * .com.daml.lf.transaction.NodeRollback rollback = 7; */ public Builder clearRollback() { if (rollbackBuilder_ == null) { if (nodeTypeCase_ == 7) { nodeTypeCase_ = 0; nodeType_ = null; onChanged(); } } else { if (nodeTypeCase_ == 7) { nodeTypeCase_ = 0; nodeType_ = null; } rollbackBuilder_.clear(); } return this; } /** * .com.daml.lf.transaction.NodeRollback rollback = 7; */ public com.daml.lf.transaction.TransactionOuterClass.NodeRollback.Builder getRollbackBuilder() { return getRollbackFieldBuilder().getBuilder(); } /** * .com.daml.lf.transaction.NodeRollback rollback = 7; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeRollbackOrBuilder getRollbackOrBuilder() { if ((nodeTypeCase_ == 7) && (rollbackBuilder_ != null)) { return rollbackBuilder_.getMessageOrBuilder(); } else { if (nodeTypeCase_ == 7) { return (com.daml.lf.transaction.TransactionOuterClass.NodeRollback) nodeType_; } return com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance(); } } /** * .com.daml.lf.transaction.NodeRollback rollback = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeRollback, com.daml.lf.transaction.TransactionOuterClass.NodeRollback.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeRollbackOrBuilder> getRollbackFieldBuilder() { if (rollbackBuilder_ == null) { if (!(nodeTypeCase_ == 7)) { nodeType_ = com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance(); } rollbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.NodeRollback, com.daml.lf.transaction.TransactionOuterClass.NodeRollback.Builder, com.daml.lf.transaction.TransactionOuterClass.NodeRollbackOrBuilder>( (com.daml.lf.transaction.TransactionOuterClass.NodeRollback) nodeType_, getParentForChildren(), isClean()); nodeType_ = null; } nodeTypeCase_ = 7; onChanged(); return rollbackBuilder_; } private java.lang.Object version_ = ""; /** * string version = 63; * @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 = 63; * @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 = 63; * @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_ |= 0x00000040; onChanged(); return this; } /** * string version = 63; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * string version = 63; * @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_ |= 0x00000040; 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) } // @@protoc_insertion_point(class_scope:com.daml.lf.transaction.Node) private static final com.daml.lf.transaction.TransactionOuterClass.Node DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.Node(); } public static com.daml.lf.transaction.TransactionOuterClass.Node getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Node 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 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyWithMaintainersOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.KeyWithMaintainers) com.google.protobuf.MessageOrBuilder { /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; * @return Whether the keyVersioned field is set. */ boolean hasKeyVersioned(); /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; * @return The keyVersioned. */ com.daml.lf.value.ValueOuterClass.VersionedValue getKeyVersioned(); /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; */ com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getKeyVersionedOrBuilder(); /** * bytes key_unversioned = 3; * @return Whether the keyUnversioned field is set. */ boolean hasKeyUnversioned(); /** * bytes key_unversioned = 3; * @return The keyUnversioned. */ com.google.protobuf.ByteString getKeyUnversioned(); /** *
     * 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); com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.KeyCase getKeyCase(); } /** * Protobuf type {@code com.daml.lf.transaction.KeyWithMaintainers} */ public static final class KeyWithMaintainers extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.transaction.KeyWithMaintainers) KeyWithMaintainersOrBuilder { private static final long serialVersionUID = 0L; // Use KeyWithMaintainers.newBuilder() to construct. private KeyWithMaintainers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyWithMaintainers() { maintainers_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KeyWithMaintainers(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_KeyWithMaintainers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_KeyWithMaintainers_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.class, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder.class); } private int keyCase_ = 0; @SuppressWarnings("serial") private java.lang.Object key_; public enum KeyCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { KEY_VERSIONED(1), KEY_UNVERSIONED(3), KEY_NOT_SET(0); private final int value; private KeyCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static KeyCase valueOf(int value) { return forNumber(value); } public static KeyCase forNumber(int value) { switch (value) { case 1: return KEY_VERSIONED; case 3: return KEY_UNVERSIONED; case 0: return KEY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public KeyCase getKeyCase() { return KeyCase.forNumber( keyCase_); } public static final int KEY_VERSIONED_FIELD_NUMBER = 1; /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; * @return Whether the keyVersioned field is set. */ @java.lang.Override public boolean hasKeyVersioned() { return keyCase_ == 1; } /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; * @return The keyVersioned. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValue getKeyVersioned() { if (keyCase_ == 1) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) key_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getKeyVersionedOrBuilder() { if (keyCase_ == 1) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) key_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } public static final int KEY_UNVERSIONED_FIELD_NUMBER = 3; /** * bytes key_unversioned = 3; * @return Whether the keyUnversioned field is set. */ @java.lang.Override public boolean hasKeyUnversioned() { return keyCase_ == 3; } /** * bytes key_unversioned = 3; * @return The keyUnversioned. */ @java.lang.Override public com.google.protobuf.ByteString getKeyUnversioned() { if (keyCase_ == 3) { return (com.google.protobuf.ByteString) key_; } return com.google.protobuf.ByteString.EMPTY; } public static final int MAINTAINERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList maintainers_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * the maintainers induced by the key
     * 
* * repeated string maintainers = 2; * @return A list containing the maintainers. */ public com.google.protobuf.ProtocolStringList getMaintainersList() { return maintainers_; } /** *
     * the maintainers induced by the key
     * 
* * repeated string maintainers = 2; * @return The count of maintainers. */ public int getMaintainersCount() { return maintainers_.size(); } /** *
     * the maintainers induced by the key
     * 
* * repeated string maintainers = 2; * @param index The index of the element to return. * @return The maintainers at the given index. */ public java.lang.String getMaintainers(int index) { return maintainers_.get(index); } /** *
     * the maintainers induced by the key
     * 
* * repeated string maintainers = 2; * @param index The index of the value to return. * @return The bytes of the maintainers at the given index. */ public com.google.protobuf.ByteString getMaintainersBytes(int index) { return maintainers_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (keyCase_ == 1) { output.writeMessage(1, (com.daml.lf.value.ValueOuterClass.VersionedValue) key_); } for (int i = 0; i < maintainers_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, maintainers_.getRaw(i)); } if (keyCase_ == 3) { output.writeBytes( 3, (com.google.protobuf.ByteString) key_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (keyCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.daml.lf.value.ValueOuterClass.VersionedValue) key_); } { int dataSize = 0; for (int i = 0; i < maintainers_.size(); i++) { dataSize += computeStringSizeNoTag(maintainers_.getRaw(i)); } size += dataSize; size += 1 * getMaintainersList().size(); } if (keyCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 3, (com.google.protobuf.ByteString) key_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers)) { return super.equals(obj); } com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers other = (com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers) obj; if (!getMaintainersList() .equals(other.getMaintainersList())) return false; if (!getKeyCase().equals(other.getKeyCase())) return false; switch (keyCase_) { case 1: if (!getKeyVersioned() .equals(other.getKeyVersioned())) return false; break; case 3: if (!getKeyUnversioned() .equals(other.getKeyUnversioned())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getMaintainersCount() > 0) { hash = (37 * hash) + MAINTAINERS_FIELD_NUMBER; hash = (53 * hash) + getMaintainersList().hashCode(); } switch (keyCase_) { case 1: hash = (37 * hash) + KEY_VERSIONED_FIELD_NUMBER; hash = (53 * hash) + getKeyVersioned().hashCode(); break; case 3: hash = (37 * hash) + KEY_UNVERSIONED_FIELD_NUMBER; hash = (53 * hash) + getKeyUnversioned().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.daml.lf.transaction.KeyWithMaintainers} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.KeyWithMaintainers) com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_KeyWithMaintainers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_KeyWithMaintainers_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.class, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder.class); } // Construct using com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (keyVersionedBuilder_ != null) { keyVersionedBuilder_.clear(); } maintainers_ = com.google.protobuf.LazyStringArrayList.emptyList(); keyCase_ = 0; key_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_KeyWithMaintainers_descriptor; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getDefaultInstanceForType() { return com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance(); } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers build() { com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers buildPartial() { com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers result = new com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { maintainers_.makeImmutable(); result.maintainers_ = maintainers_; } } private void buildPartialOneofs(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers result) { result.keyCase_ = keyCase_; result.key_ = this.key_; if (keyCase_ == 1 && keyVersionedBuilder_ != null) { result.key_ = keyVersionedBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers) { return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers other) { if (other == com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance()) return this; if (!other.maintainers_.isEmpty()) { if (maintainers_.isEmpty()) { maintainers_ = other.maintainers_; bitField0_ |= 0x00000004; } else { ensureMaintainersIsMutable(); maintainers_.addAll(other.maintainers_); } onChanged(); } switch (other.getKeyCase()) { case KEY_VERSIONED: { mergeKeyVersioned(other.getKeyVersioned()); break; } case KEY_UNVERSIONED: { setKeyUnversioned(other.getKeyUnversioned()); break; } case KEY_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getKeyVersionedFieldBuilder().getBuilder(), extensionRegistry); keyCase_ = 1; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureMaintainersIsMutable(); maintainers_.add(s); break; } // case 18 case 26: { key_ = input.readBytes(); keyCase_ = 3; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int keyCase_ = 0; private java.lang.Object key_; public KeyCase getKeyCase() { return KeyCase.forNumber( keyCase_); } public Builder clearKey() { keyCase_ = 0; key_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder> keyVersionedBuilder_; /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; * @return Whether the keyVersioned field is set. */ @java.lang.Override public boolean hasKeyVersioned() { return keyCase_ == 1; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; * @return The keyVersioned. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValue getKeyVersioned() { if (keyVersionedBuilder_ == null) { if (keyCase_ == 1) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) key_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } else { if (keyCase_ == 1) { return keyVersionedBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; */ public Builder setKeyVersioned(com.daml.lf.value.ValueOuterClass.VersionedValue value) { if (keyVersionedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyVersionedBuilder_.setMessage(value); } keyCase_ = 1; return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; */ public Builder setKeyVersioned( com.daml.lf.value.ValueOuterClass.VersionedValue.Builder builderForValue) { if (keyVersionedBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyVersionedBuilder_.setMessage(builderForValue.build()); } keyCase_ = 1; return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; */ public Builder mergeKeyVersioned(com.daml.lf.value.ValueOuterClass.VersionedValue value) { if (keyVersionedBuilder_ == null) { if (keyCase_ == 1 && key_ != com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance()) { key_ = com.daml.lf.value.ValueOuterClass.VersionedValue.newBuilder((com.daml.lf.value.ValueOuterClass.VersionedValue) key_) .mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { if (keyCase_ == 1) { keyVersionedBuilder_.mergeFrom(value); } else { keyVersionedBuilder_.setMessage(value); } } keyCase_ = 1; return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; */ public Builder clearKeyVersioned() { if (keyVersionedBuilder_ == null) { if (keyCase_ == 1) { keyCase_ = 0; key_ = null; onChanged(); } } else { if (keyCase_ == 1) { keyCase_ = 0; key_ = null; } keyVersionedBuilder_.clear(); } return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; */ public com.daml.lf.value.ValueOuterClass.VersionedValue.Builder getKeyVersionedBuilder() { return getKeyVersionedFieldBuilder().getBuilder(); } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getKeyVersionedOrBuilder() { if ((keyCase_ == 1) && (keyVersionedBuilder_ != null)) { return keyVersionedBuilder_.getMessageOrBuilder(); } else { if (keyCase_ == 1) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) key_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue key_versioned = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder> getKeyVersionedFieldBuilder() { if (keyVersionedBuilder_ == null) { if (!(keyCase_ == 1)) { key_ = com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } keyVersionedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder>( (com.daml.lf.value.ValueOuterClass.VersionedValue) key_, getParentForChildren(), isClean()); key_ = null; } keyCase_ = 1; onChanged(); return keyVersionedBuilder_; } /** * bytes key_unversioned = 3; * @return Whether the keyUnversioned field is set. */ public boolean hasKeyUnversioned() { return keyCase_ == 3; } /** * bytes key_unversioned = 3; * @return The keyUnversioned. */ public com.google.protobuf.ByteString getKeyUnversioned() { if (keyCase_ == 3) { return (com.google.protobuf.ByteString) key_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes key_unversioned = 3; * @param value The keyUnversioned to set. * @return This builder for chaining. */ public Builder setKeyUnversioned(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } keyCase_ = 3; key_ = value; onChanged(); return this; } /** * bytes key_unversioned = 3; * @return This builder for chaining. */ public Builder clearKeyUnversioned() { if (keyCase_ == 3) { keyCase_ = 0; key_ = null; onChanged(); } return this; } private com.google.protobuf.LazyStringArrayList maintainers_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureMaintainersIsMutable() { if (!maintainers_.isModifiable()) { maintainers_ = new com.google.protobuf.LazyStringArrayList(maintainers_); } bitField0_ |= 0x00000004; } /** *
       * the maintainers induced by the key
       * 
* * repeated string maintainers = 2; * @return A list containing the maintainers. */ public com.google.protobuf.ProtocolStringList getMaintainersList() { maintainers_.makeImmutable(); return maintainers_; } /** *
       * the maintainers induced by the key
       * 
* * repeated string maintainers = 2; * @return The count of maintainers. */ public int getMaintainersCount() { return maintainers_.size(); } /** *
       * the maintainers induced by the key
       * 
* * repeated string maintainers = 2; * @param index The index of the element to return. * @return The maintainers at the given index. */ public java.lang.String getMaintainers(int index) { return maintainers_.get(index); } /** *
       * the maintainers induced by the key
       * 
* * repeated string maintainers = 2; * @param index The index of the value to return. * @return The bytes of the maintainers at the given index. */ public com.google.protobuf.ByteString getMaintainersBytes(int index) { return maintainers_.getByteString(index); } /** *
       * the maintainers induced by the key
       * 
* * repeated string maintainers = 2; * @param index The index to set the value at. * @param value The maintainers to set. * @return This builder for chaining. */ public Builder setMaintainers( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMaintainersIsMutable(); maintainers_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * the maintainers induced by the key
       * 
* * repeated string maintainers = 2; * @param value The maintainers to add. * @return This builder for chaining. */ public Builder addMaintainers( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMaintainersIsMutable(); maintainers_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * the maintainers induced by the key
       * 
* * repeated string maintainers = 2; * @param values The maintainers to add. * @return This builder for chaining. */ public Builder addAllMaintainers( java.lang.Iterable values) { ensureMaintainersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, maintainers_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * the maintainers induced by the key
       * 
* * repeated string maintainers = 2; * @return This builder for chaining. */ public Builder clearMaintainers() { maintainers_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
       * the maintainers induced by the key
       * 
* * repeated string maintainers = 2; * @param value The bytes of the maintainers to add. * @return This builder for chaining. */ public Builder addMaintainersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMaintainersIsMutable(); maintainers_.add(value); bitField0_ |= 0x00000004; 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.KeyWithMaintainers) } // @@protoc_insertion_point(class_scope:com.daml.lf.transaction.KeyWithMaintainers) private static final com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers(); } public static com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KeyWithMaintainers 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.KeyWithMaintainers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeCreateOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.NodeCreate) com.google.protobuf.MessageOrBuilder { /** *
     * *must not be used*
     * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; * @return Whether the contractInstance field is set. */ boolean hasContractInstance(); /** *
     * *must not be used*
     * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; * @return The contractInstance. */ com.daml.lf.transaction.TransactionOuterClass.ContractInstance getContractInstance(); /** *
     * *must not be used*
     * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; */ com.daml.lf.transaction.TransactionOuterClass.ContractInstanceOrBuilder getContractInstanceOrBuilder(); /** *
     * required *since dev*
     * 
* * string package_name = 10; * @return The packageName. */ java.lang.String getPackageName(); /** *
     * required *since dev*
     * 
* * string package_name = 10; * @return The bytes for packageName. */ com.google.protobuf.ByteString getPackageNameBytes(); /** * .com.daml.lf.value.Identifier template_id = 7; * @return Whether the templateId field is set. */ boolean hasTemplateId(); /** * .com.daml.lf.value.Identifier template_id = 7; * @return The templateId. */ com.daml.lf.value.ValueOuterClass.Identifier getTemplateId(); /** * .com.daml.lf.value.Identifier template_id = 7; */ com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder(); /** * bytes arg_unversioned = 8; * @return The argUnversioned. */ com.google.protobuf.ByteString getArgUnversioned(); /** * string agreement = 9; * @return The agreement. */ java.lang.String getAgreement(); /** * string agreement = 9; * @return The bytes for agreement. */ com.google.protobuf.ByteString getAgreementBytes(); /** * repeated string stakeholders = 3; * @return A list containing the stakeholders. */ java.util.List getStakeholdersList(); /** * repeated string stakeholders = 3; * @return The count of stakeholders. */ int getStakeholdersCount(); /** * repeated string stakeholders = 3; * @param index The index of the element to return. * @return The stakeholders at the given index. */ java.lang.String getStakeholders(int index); /** * repeated string stakeholders = 3; * @param index The index of the value to return. * @return The bytes of the stakeholders at the given index. */ com.google.protobuf.ByteString getStakeholdersBytes(int index); /** * repeated string signatories = 4; * @return A list containing the signatories. */ java.util.List getSignatoriesList(); /** * repeated string signatories = 4; * @return The count of signatories. */ int getSignatoriesCount(); /** * repeated string signatories = 4; * @param index The index of the element to return. * @return The signatories at the given index. */ java.lang.String getSignatories(int index); /** * repeated string signatories = 4; * @param index The index of the value to return. * @return The bytes of the signatories at the given index. */ com.google.protobuf.ByteString getSignatoriesBytes(int index); /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; * @return Whether the keyWithMaintainers field is set. */ boolean hasKeyWithMaintainers(); /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; * @return The keyWithMaintainers. */ com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getKeyWithMaintainers(); /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; */ com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder(); /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return Whether the contractIdStruct field is set. */ boolean hasContractIdStruct(); /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return The contractIdStruct. */ com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct(); /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder(); } /** * Protobuf type {@code com.daml.lf.transaction.NodeCreate} */ public static final class NodeCreate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.transaction.NodeCreate) NodeCreateOrBuilder { private static final long serialVersionUID = 0L; // Use NodeCreate.newBuilder() to construct. private NodeCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeCreate() { packageName_ = ""; argUnversioned_ = com.google.protobuf.ByteString.EMPTY; agreement_ = ""; stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeCreate(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeCreate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeCreate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.NodeCreate.class, com.daml.lf.transaction.TransactionOuterClass.NodeCreate.Builder.class); } private int bitField0_; public static final int CONTRACT_INSTANCE_FIELD_NUMBER = 2; private com.daml.lf.transaction.TransactionOuterClass.ContractInstance contractInstance_; /** *
     * *must not be used*
     * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; * @return Whether the contractInstance field is set. */ @java.lang.Override public boolean hasContractInstance() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * *must not be used*
     * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; * @return The contractInstance. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.ContractInstance getContractInstance() { return contractInstance_ == null ? com.daml.lf.transaction.TransactionOuterClass.ContractInstance.getDefaultInstance() : contractInstance_; } /** *
     * *must not be used*
     * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.ContractInstanceOrBuilder getContractInstanceOrBuilder() { return contractInstance_ == null ? com.daml.lf.transaction.TransactionOuterClass.ContractInstance.getDefaultInstance() : contractInstance_; } public static final int PACKAGE_NAME_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object packageName_ = ""; /** *
     * required *since dev*
     * 
* * string package_name = 10; * @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; } } /** *
     * required *since dev*
     * 
* * string package_name = 10; * @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 = 7; private com.daml.lf.value.ValueOuterClass.Identifier templateId_; /** * .com.daml.lf.value.Identifier template_id = 7; * @return Whether the templateId field is set. */ @java.lang.Override public boolean hasTemplateId() { return ((bitField0_ & 0x00000002) != 0); } /** * .com.daml.lf.value.Identifier template_id = 7; * @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 = 7; */ @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 ARG_UNVERSIONED_FIELD_NUMBER = 8; private com.google.protobuf.ByteString argUnversioned_ = com.google.protobuf.ByteString.EMPTY; /** * bytes arg_unversioned = 8; * @return The argUnversioned. */ @java.lang.Override public com.google.protobuf.ByteString getArgUnversioned() { return argUnversioned_; } public static final int AGREEMENT_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object agreement_ = ""; /** * string agreement = 9; * @return The agreement. */ @java.lang.Override public java.lang.String getAgreement() { java.lang.Object ref = agreement_; 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(); agreement_ = s; return s; } } /** * string agreement = 9; * @return The bytes for agreement. */ @java.lang.Override public com.google.protobuf.ByteString getAgreementBytes() { java.lang.Object ref = agreement_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); agreement_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STAKEHOLDERS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string stakeholders = 3; * @return A list containing the stakeholders. */ public com.google.protobuf.ProtocolStringList getStakeholdersList() { return stakeholders_; } /** * repeated string stakeholders = 3; * @return The count of stakeholders. */ public int getStakeholdersCount() { return stakeholders_.size(); } /** * repeated string stakeholders = 3; * @param index The index of the element to return. * @return The stakeholders at the given index. */ public java.lang.String getStakeholders(int index) { return stakeholders_.get(index); } /** * repeated string stakeholders = 3; * @param index The index of the value to return. * @return The bytes of the stakeholders at the given index. */ public com.google.protobuf.ByteString getStakeholdersBytes(int index) { return stakeholders_.getByteString(index); } public static final int SIGNATORIES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string signatories = 4; * @return A list containing the signatories. */ public com.google.protobuf.ProtocolStringList getSignatoriesList() { return signatories_; } /** * repeated string signatories = 4; * @return The count of signatories. */ public int getSignatoriesCount() { return signatories_.size(); } /** * repeated string signatories = 4; * @param index The index of the element to return. * @return The signatories at the given index. */ public java.lang.String getSignatories(int index) { return signatories_.get(index); } /** * repeated string signatories = 4; * @param index The index of the value to return. * @return The bytes of the signatories at the given index. */ public com.google.protobuf.ByteString getSignatoriesBytes(int index) { return signatories_.getByteString(index); } public static final int KEY_WITH_MAINTAINERS_FIELD_NUMBER = 5; private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers keyWithMaintainers_; /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; * @return Whether the keyWithMaintainers field is set. */ @java.lang.Override public boolean hasKeyWithMaintainers() { return ((bitField0_ & 0x00000004) != 0); } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; * @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 = 5; */ @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_STRUCT_FIELD_NUMBER = 6; private com.daml.lf.value.ValueOuterClass.ContractId contractIdStruct_; /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return Whether the contractIdStruct field is set. */ @java.lang.Override public boolean hasContractIdStruct() { return ((bitField0_ & 0x00000008) != 0); } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return The contractIdStruct. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getContractInstance()); } for (int i = 0; i < stakeholders_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stakeholders_.getRaw(i)); } for (int i = 0; i < signatories_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, signatories_.getRaw(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getKeyWithMaintainers()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getContractIdStruct()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getTemplateId()); } if (!argUnversioned_.isEmpty()) { output.writeBytes(8, argUnversioned_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agreement_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, agreement_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, packageName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getContractInstance()); } { int dataSize = 0; for (int i = 0; i < stakeholders_.size(); i++) { dataSize += computeStringSizeNoTag(stakeholders_.getRaw(i)); } size += dataSize; size += 1 * getStakeholdersList().size(); } { int dataSize = 0; for (int i = 0; i < signatories_.size(); i++) { dataSize += computeStringSizeNoTag(signatories_.getRaw(i)); } size += dataSize; size += 1 * getSignatoriesList().size(); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getKeyWithMaintainers()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getContractIdStruct()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getTemplateId()); } if (!argUnversioned_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, argUnversioned_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agreement_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, agreement_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, packageName_); } 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.NodeCreate)) { return super.equals(obj); } com.daml.lf.transaction.TransactionOuterClass.NodeCreate other = (com.daml.lf.transaction.TransactionOuterClass.NodeCreate) obj; if (hasContractInstance() != other.hasContractInstance()) return false; if (hasContractInstance()) { if (!getContractInstance() .equals(other.getContractInstance())) return false; } if (!getPackageName() .equals(other.getPackageName())) return false; if (hasTemplateId() != other.hasTemplateId()) return false; if (hasTemplateId()) { if (!getTemplateId() .equals(other.getTemplateId())) return false; } if (!getArgUnversioned() .equals(other.getArgUnversioned())) return false; if (!getAgreement() .equals(other.getAgreement())) return false; if (!getStakeholdersList() .equals(other.getStakeholdersList())) return false; if (!getSignatoriesList() .equals(other.getSignatoriesList())) return false; if (hasKeyWithMaintainers() != other.hasKeyWithMaintainers()) return false; if (hasKeyWithMaintainers()) { if (!getKeyWithMaintainers() .equals(other.getKeyWithMaintainers())) return false; } if (hasContractIdStruct() != other.hasContractIdStruct()) return false; if (hasContractIdStruct()) { if (!getContractIdStruct() .equals(other.getContractIdStruct())) 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 (hasContractInstance()) { hash = (37 * hash) + CONTRACT_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getContractInstance().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(); } hash = (37 * hash) + ARG_UNVERSIONED_FIELD_NUMBER; hash = (53 * hash) + getArgUnversioned().hashCode(); hash = (37 * hash) + AGREEMENT_FIELD_NUMBER; hash = (53 * hash) + getAgreement().hashCode(); if (getStakeholdersCount() > 0) { hash = (37 * hash) + STAKEHOLDERS_FIELD_NUMBER; hash = (53 * hash) + getStakeholdersList().hashCode(); } if (getSignatoriesCount() > 0) { hash = (37 * hash) + SIGNATORIES_FIELD_NUMBER; hash = (53 * hash) + getSignatoriesList().hashCode(); } if (hasKeyWithMaintainers()) { hash = (37 * hash) + KEY_WITH_MAINTAINERS_FIELD_NUMBER; hash = (53 * hash) + getKeyWithMaintainers().hashCode(); } if (hasContractIdStruct()) { hash = (37 * hash) + CONTRACT_ID_STRUCT_FIELD_NUMBER; hash = (53 * hash) + getContractIdStruct().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.transaction.TransactionOuterClass.NodeCreate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeCreate 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.NodeCreate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeCreate 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.NodeCreate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeCreate 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.NodeCreate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeCreate 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.NodeCreate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeCreate 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.NodeCreate 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.NodeCreate 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.NodeCreate 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.NodeCreate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.NodeCreate) com.daml.lf.transaction.TransactionOuterClass.NodeCreateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeCreate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeCreate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.NodeCreate.class, com.daml.lf.transaction.TransactionOuterClass.NodeCreate.Builder.class); } // Construct using com.daml.lf.transaction.TransactionOuterClass.NodeCreate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getContractInstanceFieldBuilder(); getTemplateIdFieldBuilder(); getKeyWithMaintainersFieldBuilder(); getContractIdStructFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; contractInstance_ = null; if (contractInstanceBuilder_ != null) { contractInstanceBuilder_.dispose(); contractInstanceBuilder_ = null; } packageName_ = ""; templateId_ = null; if (templateIdBuilder_ != null) { templateIdBuilder_.dispose(); templateIdBuilder_ = null; } argUnversioned_ = com.google.protobuf.ByteString.EMPTY; agreement_ = ""; stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); keyWithMaintainers_ = null; if (keyWithMaintainersBuilder_ != null) { keyWithMaintainersBuilder_.dispose(); keyWithMaintainersBuilder_ = null; } contractIdStruct_ = null; if (contractIdStructBuilder_ != null) { contractIdStructBuilder_.dispose(); contractIdStructBuilder_ = 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_NodeCreate_descriptor; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeCreate getDefaultInstanceForType() { return com.daml.lf.transaction.TransactionOuterClass.NodeCreate.getDefaultInstance(); } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeCreate build() { com.daml.lf.transaction.TransactionOuterClass.NodeCreate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeCreate buildPartial() { com.daml.lf.transaction.TransactionOuterClass.NodeCreate result = new com.daml.lf.transaction.TransactionOuterClass.NodeCreate(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.NodeCreate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.contractInstance_ = contractInstanceBuilder_ == null ? contractInstance_ : contractInstanceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.packageName_ = packageName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.templateId_ = templateIdBuilder_ == null ? templateId_ : templateIdBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.argUnversioned_ = argUnversioned_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.agreement_ = agreement_; } if (((from_bitField0_ & 0x00000020) != 0)) { stakeholders_.makeImmutable(); result.stakeholders_ = stakeholders_; } if (((from_bitField0_ & 0x00000040) != 0)) { signatories_.makeImmutable(); result.signatories_ = signatories_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.keyWithMaintainers_ = keyWithMaintainersBuilder_ == null ? keyWithMaintainers_ : keyWithMaintainersBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000100) != 0)) { result.contractIdStruct_ = contractIdStructBuilder_ == null ? contractIdStruct_ : contractIdStructBuilder_.build(); to_bitField0_ |= 0x00000008; } 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.NodeCreate) { return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.NodeCreate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.NodeCreate other) { if (other == com.daml.lf.transaction.TransactionOuterClass.NodeCreate.getDefaultInstance()) return this; if (other.hasContractInstance()) { mergeContractInstance(other.getContractInstance()); } if (!other.getPackageName().isEmpty()) { packageName_ = other.packageName_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasTemplateId()) { mergeTemplateId(other.getTemplateId()); } if (other.getArgUnversioned() != com.google.protobuf.ByteString.EMPTY) { setArgUnversioned(other.getArgUnversioned()); } if (!other.getAgreement().isEmpty()) { agreement_ = other.agreement_; bitField0_ |= 0x00000010; onChanged(); } if (!other.stakeholders_.isEmpty()) { if (stakeholders_.isEmpty()) { stakeholders_ = other.stakeholders_; bitField0_ |= 0x00000020; } else { ensureStakeholdersIsMutable(); stakeholders_.addAll(other.stakeholders_); } onChanged(); } if (!other.signatories_.isEmpty()) { if (signatories_.isEmpty()) { signatories_ = other.signatories_; bitField0_ |= 0x00000040; } else { ensureSignatoriesIsMutable(); signatories_.addAll(other.signatories_); } onChanged(); } if (other.hasKeyWithMaintainers()) { mergeKeyWithMaintainers(other.getKeyWithMaintainers()); } if (other.hasContractIdStruct()) { mergeContractIdStruct(other.getContractIdStruct()); } 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 18: { input.readMessage( getContractInstanceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureStakeholdersIsMutable(); stakeholders_.add(s); break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureSignatoriesIsMutable(); signatories_.add(s); break; } // case 34 case 42: { input.readMessage( getKeyWithMaintainersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 42 case 50: { input.readMessage( getContractIdStructFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 58 case 66: { argUnversioned_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 66 case 74: { agreement_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 74 case 82: { packageName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.daml.lf.transaction.TransactionOuterClass.ContractInstance contractInstance_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.ContractInstance, com.daml.lf.transaction.TransactionOuterClass.ContractInstance.Builder, com.daml.lf.transaction.TransactionOuterClass.ContractInstanceOrBuilder> contractInstanceBuilder_; /** *
       * *must not be used*
       * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; * @return Whether the contractInstance field is set. */ public boolean hasContractInstance() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * *must not be used*
       * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; * @return The contractInstance. */ public com.daml.lf.transaction.TransactionOuterClass.ContractInstance getContractInstance() { if (contractInstanceBuilder_ == null) { return contractInstance_ == null ? com.daml.lf.transaction.TransactionOuterClass.ContractInstance.getDefaultInstance() : contractInstance_; } else { return contractInstanceBuilder_.getMessage(); } } /** *
       * *must not be used*
       * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; */ public Builder setContractInstance(com.daml.lf.transaction.TransactionOuterClass.ContractInstance value) { if (contractInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractInstance_ = value; } else { contractInstanceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; */ public Builder setContractInstance( com.daml.lf.transaction.TransactionOuterClass.ContractInstance.Builder builderForValue) { if (contractInstanceBuilder_ == null) { contractInstance_ = builderForValue.build(); } else { contractInstanceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; */ public Builder mergeContractInstance(com.daml.lf.transaction.TransactionOuterClass.ContractInstance value) { if (contractInstanceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && contractInstance_ != null && contractInstance_ != com.daml.lf.transaction.TransactionOuterClass.ContractInstance.getDefaultInstance()) { getContractInstanceBuilder().mergeFrom(value); } else { contractInstance_ = value; } } else { contractInstanceBuilder_.mergeFrom(value); } if (contractInstance_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; */ public Builder clearContractInstance() { bitField0_ = (bitField0_ & ~0x00000001); contractInstance_ = null; if (contractInstanceBuilder_ != null) { contractInstanceBuilder_.dispose(); contractInstanceBuilder_ = null; } onChanged(); return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; */ public com.daml.lf.transaction.TransactionOuterClass.ContractInstance.Builder getContractInstanceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContractInstanceFieldBuilder().getBuilder(); } /** *
       * *must not be used*
       * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; */ public com.daml.lf.transaction.TransactionOuterClass.ContractInstanceOrBuilder getContractInstanceOrBuilder() { if (contractInstanceBuilder_ != null) { return contractInstanceBuilder_.getMessageOrBuilder(); } else { return contractInstance_ == null ? com.daml.lf.transaction.TransactionOuterClass.ContractInstance.getDefaultInstance() : contractInstance_; } } /** *
       * *must not be used*
       * 
* * .com.daml.lf.transaction.ContractInstance contract_instance = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.ContractInstance, com.daml.lf.transaction.TransactionOuterClass.ContractInstance.Builder, com.daml.lf.transaction.TransactionOuterClass.ContractInstanceOrBuilder> getContractInstanceFieldBuilder() { if (contractInstanceBuilder_ == null) { contractInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.ContractInstance, com.daml.lf.transaction.TransactionOuterClass.ContractInstance.Builder, com.daml.lf.transaction.TransactionOuterClass.ContractInstanceOrBuilder>( getContractInstance(), getParentForChildren(), isClean()); contractInstance_ = null; } return contractInstanceBuilder_; } private java.lang.Object packageName_ = ""; /** *
       * required *since dev*
       * 
* * string package_name = 10; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 10; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 10; * @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_ |= 0x00000002; onChanged(); return this; } /** *
       * required *since dev*
       * 
* * string package_name = 10; * @return This builder for chaining. */ public Builder clearPackageName() { packageName_ = getDefaultInstance().getPackageName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * required *since dev*
       * 
* * string package_name = 10; * @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_ |= 0x00000002; 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 = 7; * @return Whether the templateId field is set. */ public boolean hasTemplateId() { return ((bitField0_ & 0x00000004) != 0); } /** * .com.daml.lf.value.Identifier template_id = 7; * @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 = 7; */ 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_ |= 0x00000004; onChanged(); return this; } /** * .com.daml.lf.value.Identifier template_id = 7; */ public Builder setTemplateId( com.daml.lf.value.ValueOuterClass.Identifier.Builder builderForValue) { if (templateIdBuilder_ == null) { templateId_ = builderForValue.build(); } else { templateIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .com.daml.lf.value.Identifier template_id = 7; */ public Builder mergeTemplateId(com.daml.lf.value.ValueOuterClass.Identifier value) { if (templateIdBuilder_ == null) { if (((bitField0_ & 0x00000004) != 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_ |= 0x00000004; onChanged(); } return this; } /** * .com.daml.lf.value.Identifier template_id = 7; */ public Builder clearTemplateId() { bitField0_ = (bitField0_ & ~0x00000004); templateId_ = null; if (templateIdBuilder_ != null) { templateIdBuilder_.dispose(); templateIdBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.Identifier template_id = 7; */ public com.daml.lf.value.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTemplateIdFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Identifier template_id = 7; */ 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 = 7; */ 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.ByteString argUnversioned_ = com.google.protobuf.ByteString.EMPTY; /** * bytes arg_unversioned = 8; * @return The argUnversioned. */ @java.lang.Override public com.google.protobuf.ByteString getArgUnversioned() { return argUnversioned_; } /** * bytes arg_unversioned = 8; * @param value The argUnversioned to set. * @return This builder for chaining. */ public Builder setArgUnversioned(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } argUnversioned_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes arg_unversioned = 8; * @return This builder for chaining. */ public Builder clearArgUnversioned() { bitField0_ = (bitField0_ & ~0x00000008); argUnversioned_ = getDefaultInstance().getArgUnversioned(); onChanged(); return this; } private java.lang.Object agreement_ = ""; /** * string agreement = 9; * @return The agreement. */ public java.lang.String getAgreement() { java.lang.Object ref = agreement_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agreement_ = s; return s; } else { return (java.lang.String) ref; } } /** * string agreement = 9; * @return The bytes for agreement. */ public com.google.protobuf.ByteString getAgreementBytes() { java.lang.Object ref = agreement_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); agreement_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string agreement = 9; * @param value The agreement to set. * @return This builder for chaining. */ public Builder setAgreement( java.lang.String value) { if (value == null) { throw new NullPointerException(); } agreement_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string agreement = 9; * @return This builder for chaining. */ public Builder clearAgreement() { agreement_ = getDefaultInstance().getAgreement(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string agreement = 9; * @param value The bytes for agreement to set. * @return This builder for chaining. */ public Builder setAgreementBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); agreement_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStakeholdersIsMutable() { if (!stakeholders_.isModifiable()) { stakeholders_ = new com.google.protobuf.LazyStringArrayList(stakeholders_); } bitField0_ |= 0x00000020; } /** * repeated string stakeholders = 3; * @return A list containing the stakeholders. */ public com.google.protobuf.ProtocolStringList getStakeholdersList() { stakeholders_.makeImmutable(); return stakeholders_; } /** * repeated string stakeholders = 3; * @return The count of stakeholders. */ public int getStakeholdersCount() { return stakeholders_.size(); } /** * repeated string stakeholders = 3; * @param index The index of the element to return. * @return The stakeholders at the given index. */ public java.lang.String getStakeholders(int index) { return stakeholders_.get(index); } /** * repeated string stakeholders = 3; * @param index The index of the value to return. * @return The bytes of the stakeholders at the given index. */ public com.google.protobuf.ByteString getStakeholdersBytes(int index) { return stakeholders_.getByteString(index); } /** * repeated string stakeholders = 3; * @param index The index to set the value at. * @param value The stakeholders to set. * @return This builder for chaining. */ public Builder setStakeholders( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStakeholdersIsMutable(); stakeholders_.set(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string stakeholders = 3; * @param value The stakeholders to add. * @return This builder for chaining. */ public Builder addStakeholders( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStakeholdersIsMutable(); stakeholders_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string stakeholders = 3; * @param values The stakeholders to add. * @return This builder for chaining. */ public Builder addAllStakeholders( java.lang.Iterable values) { ensureStakeholdersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stakeholders_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string stakeholders = 3; * @return This builder for chaining. */ public Builder clearStakeholders() { stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } /** * repeated string stakeholders = 3; * @param value The bytes of the stakeholders to add. * @return This builder for chaining. */ public Builder addStakeholdersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStakeholdersIsMutable(); stakeholders_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSignatoriesIsMutable() { if (!signatories_.isModifiable()) { signatories_ = new com.google.protobuf.LazyStringArrayList(signatories_); } bitField0_ |= 0x00000040; } /** * repeated string signatories = 4; * @return A list containing the signatories. */ public com.google.protobuf.ProtocolStringList getSignatoriesList() { signatories_.makeImmutable(); return signatories_; } /** * repeated string signatories = 4; * @return The count of signatories. */ public int getSignatoriesCount() { return signatories_.size(); } /** * repeated string signatories = 4; * @param index The index of the element to return. * @return The signatories at the given index. */ public java.lang.String getSignatories(int index) { return signatories_.get(index); } /** * repeated string signatories = 4; * @param index The index of the value to return. * @return The bytes of the signatories at the given index. */ public com.google.protobuf.ByteString getSignatoriesBytes(int index) { return signatories_.getByteString(index); } /** * repeated string signatories = 4; * @param index The index to set the value at. * @param value The signatories to set. * @return This builder for chaining. */ public Builder setSignatories( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSignatoriesIsMutable(); signatories_.set(index, value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string signatories = 4; * @param value The signatories to add. * @return This builder for chaining. */ public Builder addSignatories( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSignatoriesIsMutable(); signatories_.add(value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string signatories = 4; * @param values The signatories to add. * @return This builder for chaining. */ public Builder addAllSignatories( java.lang.Iterable values) { ensureSignatoriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signatories_); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string signatories = 4; * @return This builder for chaining. */ public Builder clearSignatories() { signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000040);; onChanged(); return this; } /** * repeated string signatories = 4; * @param value The bytes of the signatories to add. * @return This builder for chaining. */ public Builder addSignatoriesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSignatoriesIsMutable(); signatories_.add(value); bitField0_ |= 0x00000040; 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_; /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; * @return Whether the keyWithMaintainers field is set. */ public boolean hasKeyWithMaintainers() { return ((bitField0_ & 0x00000080) != 0); } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; * @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 = 5; */ 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_ |= 0x00000080; onChanged(); return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; */ public Builder setKeyWithMaintainers( com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder builderForValue) { if (keyWithMaintainersBuilder_ == null) { keyWithMaintainers_ = builderForValue.build(); } else { keyWithMaintainersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; */ public Builder mergeKeyWithMaintainers(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers value) { if (keyWithMaintainersBuilder_ == null) { if (((bitField0_ & 0x00000080) != 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_ |= 0x00000080; onChanged(); } return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; */ public Builder clearKeyWithMaintainers() { bitField0_ = (bitField0_ & ~0x00000080); keyWithMaintainers_ = null; if (keyWithMaintainersBuilder_ != null) { keyWithMaintainersBuilder_.dispose(); keyWithMaintainersBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; */ public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder getKeyWithMaintainersBuilder() { bitField0_ |= 0x00000080; onChanged(); return getKeyWithMaintainersFieldBuilder().getBuilder(); } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 5; */ 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 = 5; */ 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.daml.lf.value.ValueOuterClass.ContractId contractIdStruct_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder> contractIdStructBuilder_; /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return Whether the contractIdStruct field is set. */ public boolean hasContractIdStruct() { return ((bitField0_ & 0x00000100) != 0); } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return The contractIdStruct. */ public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() { if (contractIdStructBuilder_ == null) { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } else { return contractIdStructBuilder_.getMessage(); } } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public Builder setContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) { if (contractIdStructBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractIdStruct_ = value; } else { contractIdStructBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public Builder setContractIdStruct( com.daml.lf.value.ValueOuterClass.ContractId.Builder builderForValue) { if (contractIdStructBuilder_ == null) { contractIdStruct_ = builderForValue.build(); } else { contractIdStructBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public Builder mergeContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) { if (contractIdStructBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && contractIdStruct_ != null && contractIdStruct_ != com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance()) { getContractIdStructBuilder().mergeFrom(value); } else { contractIdStruct_ = value; } } else { contractIdStructBuilder_.mergeFrom(value); } if (contractIdStruct_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public Builder clearContractIdStruct() { bitField0_ = (bitField0_ & ~0x00000100); contractIdStruct_ = null; if (contractIdStructBuilder_ != null) { contractIdStructBuilder_.dispose(); contractIdStructBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public com.daml.lf.value.ValueOuterClass.ContractId.Builder getContractIdStructBuilder() { bitField0_ |= 0x00000100; onChanged(); return getContractIdStructFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() { if (contractIdStructBuilder_ != null) { return contractIdStructBuilder_.getMessageOrBuilder(); } else { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder> getContractIdStructFieldBuilder() { if (contractIdStructBuilder_ == null) { contractIdStructBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder>( getContractIdStruct(), getParentForChildren(), isClean()); contractIdStruct_ = null; } return contractIdStructBuilder_; } @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.NodeCreate) } // @@protoc_insertion_point(class_scope:com.daml.lf.transaction.NodeCreate) private static final com.daml.lf.transaction.TransactionOuterClass.NodeCreate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.NodeCreate(); } public static com.daml.lf.transaction.TransactionOuterClass.NodeCreate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeCreate 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.NodeCreate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeFetchOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.NodeFetch) com.google.protobuf.MessageOrBuilder { /** *
     * required *since dev*
     * 
* * string package_name = 10; * @return The packageName. */ java.lang.String getPackageName(); /** *
     * required *since dev*
     * 
* * string package_name = 10; * @return The bytes for packageName. */ com.google.protobuf.ByteString getPackageNameBytes(); /** * .com.daml.lf.value.Identifier template_id = 2; * @return Whether the templateId field is set. */ boolean hasTemplateId(); /** * .com.daml.lf.value.Identifier template_id = 2; * @return The templateId. */ com.daml.lf.value.ValueOuterClass.Identifier getTemplateId(); /** * .com.daml.lf.value.Identifier template_id = 2; */ com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder(); /** * repeated string actors = 7; * @return A list containing the actors. */ java.util.List getActorsList(); /** * repeated string actors = 7; * @return The count of actors. */ int getActorsCount(); /** * repeated string actors = 7; * @param index The index of the element to return. * @return The actors at the given index. */ java.lang.String getActors(int index); /** * repeated string actors = 7; * @param index The index of the value to return. * @return The bytes of the actors at the given index. */ com.google.protobuf.ByteString getActorsBytes(int index); /** * repeated string stakeholders = 3; * @return A list containing the stakeholders. */ java.util.List getStakeholdersList(); /** * repeated string stakeholders = 3; * @return The count of stakeholders. */ int getStakeholdersCount(); /** * repeated string stakeholders = 3; * @param index The index of the element to return. * @return The stakeholders at the given index. */ java.lang.String getStakeholders(int index); /** * repeated string stakeholders = 3; * @param index The index of the value to return. * @return The bytes of the stakeholders at the given index. */ com.google.protobuf.ByteString getStakeholdersBytes(int index); /** * repeated string signatories = 4; * @return A list containing the signatories. */ java.util.List getSignatoriesList(); /** * repeated string signatories = 4; * @return The count of signatories. */ int getSignatoriesCount(); /** * repeated string signatories = 4; * @param index The index of the element to return. * @return The signatories at the given index. */ java.lang.String getSignatories(int index); /** * repeated string signatories = 4; * @param index The index of the value to return. * @return The bytes of the signatories at the given index. */ com.google.protobuf.ByteString getSignatoriesBytes(int index); /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return Whether the contractIdStruct field is set. */ boolean hasContractIdStruct(); /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return The contractIdStruct. */ com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct(); /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder(); /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; * @return Whether the keyWithMaintainers field is set. */ boolean hasKeyWithMaintainers(); /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; * @return The keyWithMaintainers. */ com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getKeyWithMaintainers(); /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; */ com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder(); /** * bool by_key = 9; * @return The byKey. */ boolean getByKey(); } /** * Protobuf type {@code com.daml.lf.transaction.NodeFetch} */ public static final class NodeFetch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.transaction.NodeFetch) NodeFetchOrBuilder { private static final long serialVersionUID = 0L; // Use NodeFetch.newBuilder() to construct. private NodeFetch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeFetch() { packageName_ = ""; actors_ = com.google.protobuf.LazyStringArrayList.emptyList(); stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeFetch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeFetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeFetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.NodeFetch.class, com.daml.lf.transaction.TransactionOuterClass.NodeFetch.Builder.class); } private int bitField0_; public static final int PACKAGE_NAME_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object packageName_ = ""; /** *
     * required *since dev*
     * 
* * string package_name = 10; * @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; } } /** *
     * required *since dev*
     * 
* * string package_name = 10; * @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 ACTORS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList actors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string actors = 7; * @return A list containing the actors. */ public com.google.protobuf.ProtocolStringList getActorsList() { return actors_; } /** * repeated string actors = 7; * @return The count of actors. */ public int getActorsCount() { return actors_.size(); } /** * repeated string actors = 7; * @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 = 7; * @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 STAKEHOLDERS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string stakeholders = 3; * @return A list containing the stakeholders. */ public com.google.protobuf.ProtocolStringList getStakeholdersList() { return stakeholders_; } /** * repeated string stakeholders = 3; * @return The count of stakeholders. */ public int getStakeholdersCount() { return stakeholders_.size(); } /** * repeated string stakeholders = 3; * @param index The index of the element to return. * @return The stakeholders at the given index. */ public java.lang.String getStakeholders(int index) { return stakeholders_.get(index); } /** * repeated string stakeholders = 3; * @param index The index of the value to return. * @return The bytes of the stakeholders at the given index. */ public com.google.protobuf.ByteString getStakeholdersBytes(int index) { return stakeholders_.getByteString(index); } public static final int SIGNATORIES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string signatories = 4; * @return A list containing the signatories. */ public com.google.protobuf.ProtocolStringList getSignatoriesList() { return signatories_; } /** * repeated string signatories = 4; * @return The count of signatories. */ public int getSignatoriesCount() { return signatories_.size(); } /** * repeated string signatories = 4; * @param index The index of the element to return. * @return The signatories at the given index. */ public java.lang.String getSignatories(int index) { return signatories_.get(index); } /** * repeated string signatories = 4; * @param index The index of the value to return. * @return The bytes of the signatories at the given index. */ public com.google.protobuf.ByteString getSignatoriesBytes(int index) { return signatories_.getByteString(index); } public static final int CONTRACT_ID_STRUCT_FIELD_NUMBER = 6; private com.daml.lf.value.ValueOuterClass.ContractId contractIdStruct_; /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return Whether the contractIdStruct field is set. */ @java.lang.Override public boolean hasContractIdStruct() { return ((bitField0_ & 0x00000002) != 0); } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return The contractIdStruct. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } public static final int KEY_WITH_MAINTAINERS_FIELD_NUMBER = 8; private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers keyWithMaintainers_; /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; * @return Whether the keyWithMaintainers field is set. */ @java.lang.Override public boolean hasKeyWithMaintainers() { return ((bitField0_ & 0x00000004) != 0); } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; * @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 = 8; */ @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 BY_KEY_FIELD_NUMBER = 9; private boolean byKey_ = false; /** * bool by_key = 9; * @return The byKey. */ @java.lang.Override public boolean getByKey() { return byKey_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTemplateId()); } for (int i = 0; i < stakeholders_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stakeholders_.getRaw(i)); } for (int i = 0; i < signatories_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, signatories_.getRaw(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getContractIdStruct()); } for (int i = 0; i < actors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, actors_.getRaw(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getKeyWithMaintainers()); } if (byKey_ != false) { output.writeBool(9, byKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, packageName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTemplateId()); } { int dataSize = 0; for (int i = 0; i < stakeholders_.size(); i++) { dataSize += computeStringSizeNoTag(stakeholders_.getRaw(i)); } size += dataSize; size += 1 * getStakeholdersList().size(); } { int dataSize = 0; for (int i = 0; i < signatories_.size(); i++) { dataSize += computeStringSizeNoTag(signatories_.getRaw(i)); } size += dataSize; size += 1 * getSignatoriesList().size(); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getContractIdStruct()); } { int dataSize = 0; for (int i = 0; i < actors_.size(); i++) { dataSize += computeStringSizeNoTag(actors_.getRaw(i)); } size += dataSize; size += 1 * getActorsList().size(); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getKeyWithMaintainers()); } if (byKey_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, byKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, packageName_); } 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.NodeFetch)) { return super.equals(obj); } com.daml.lf.transaction.TransactionOuterClass.NodeFetch other = (com.daml.lf.transaction.TransactionOuterClass.NodeFetch) obj; if (!getPackageName() .equals(other.getPackageName())) return false; if (hasTemplateId() != other.hasTemplateId()) return false; if (hasTemplateId()) { if (!getTemplateId() .equals(other.getTemplateId())) return false; } if (!getActorsList() .equals(other.getActorsList())) return false; if (!getStakeholdersList() .equals(other.getStakeholdersList())) return false; if (!getSignatoriesList() .equals(other.getSignatoriesList())) return false; if (hasContractIdStruct() != other.hasContractIdStruct()) return false; if (hasContractIdStruct()) { if (!getContractIdStruct() .equals(other.getContractIdStruct())) return false; } if (hasKeyWithMaintainers() != other.hasKeyWithMaintainers()) return false; if (hasKeyWithMaintainers()) { if (!getKeyWithMaintainers() .equals(other.getKeyWithMaintainers())) return false; } if (getByKey() != other.getByKey()) 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 (getActorsCount() > 0) { hash = (37 * hash) + ACTORS_FIELD_NUMBER; hash = (53 * hash) + getActorsList().hashCode(); } if (getStakeholdersCount() > 0) { hash = (37 * hash) + STAKEHOLDERS_FIELD_NUMBER; hash = (53 * hash) + getStakeholdersList().hashCode(); } if (getSignatoriesCount() > 0) { hash = (37 * hash) + SIGNATORIES_FIELD_NUMBER; hash = (53 * hash) + getSignatoriesList().hashCode(); } if (hasContractIdStruct()) { hash = (37 * hash) + CONTRACT_ID_STRUCT_FIELD_NUMBER; hash = (53 * hash) + getContractIdStruct().hashCode(); } if (hasKeyWithMaintainers()) { hash = (37 * hash) + KEY_WITH_MAINTAINERS_FIELD_NUMBER; hash = (53 * hash) + getKeyWithMaintainers().hashCode(); } hash = (37 * hash) + BY_KEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getByKey()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.transaction.TransactionOuterClass.NodeFetch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeFetch 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.NodeFetch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeFetch 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.NodeFetch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeFetch 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.NodeFetch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeFetch 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.NodeFetch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeFetch 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.NodeFetch 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.NodeFetch 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.NodeFetch 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.NodeFetch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.NodeFetch) com.daml.lf.transaction.TransactionOuterClass.NodeFetchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeFetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeFetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.NodeFetch.class, com.daml.lf.transaction.TransactionOuterClass.NodeFetch.Builder.class); } // Construct using com.daml.lf.transaction.TransactionOuterClass.NodeFetch.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(); getContractIdStructFieldBuilder(); getKeyWithMaintainersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; packageName_ = ""; templateId_ = null; if (templateIdBuilder_ != null) { templateIdBuilder_.dispose(); templateIdBuilder_ = null; } actors_ = com.google.protobuf.LazyStringArrayList.emptyList(); stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); contractIdStruct_ = null; if (contractIdStructBuilder_ != null) { contractIdStructBuilder_.dispose(); contractIdStructBuilder_ = null; } keyWithMaintainers_ = null; if (keyWithMaintainersBuilder_ != null) { keyWithMaintainersBuilder_.dispose(); keyWithMaintainersBuilder_ = null; } byKey_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeFetch_descriptor; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeFetch getDefaultInstanceForType() { return com.daml.lf.transaction.TransactionOuterClass.NodeFetch.getDefaultInstance(); } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeFetch build() { com.daml.lf.transaction.TransactionOuterClass.NodeFetch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeFetch buildPartial() { com.daml.lf.transaction.TransactionOuterClass.NodeFetch result = new com.daml.lf.transaction.TransactionOuterClass.NodeFetch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.NodeFetch 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)) { actors_.makeImmutable(); result.actors_ = actors_; } if (((from_bitField0_ & 0x00000008) != 0)) { stakeholders_.makeImmutable(); result.stakeholders_ = stakeholders_; } if (((from_bitField0_ & 0x00000010) != 0)) { signatories_.makeImmutable(); result.signatories_ = signatories_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.contractIdStruct_ = contractIdStructBuilder_ == null ? contractIdStruct_ : contractIdStructBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.keyWithMaintainers_ = keyWithMaintainersBuilder_ == null ? keyWithMaintainers_ : keyWithMaintainersBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.byKey_ = byKey_; } 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.NodeFetch) { return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.NodeFetch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.NodeFetch other) { if (other == com.daml.lf.transaction.TransactionOuterClass.NodeFetch.getDefaultInstance()) return this; if (!other.getPackageName().isEmpty()) { packageName_ = other.packageName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasTemplateId()) { mergeTemplateId(other.getTemplateId()); } if (!other.actors_.isEmpty()) { if (actors_.isEmpty()) { actors_ = other.actors_; bitField0_ |= 0x00000004; } else { ensureActorsIsMutable(); actors_.addAll(other.actors_); } onChanged(); } if (!other.stakeholders_.isEmpty()) { if (stakeholders_.isEmpty()) { stakeholders_ = other.stakeholders_; bitField0_ |= 0x00000008; } else { ensureStakeholdersIsMutable(); stakeholders_.addAll(other.stakeholders_); } onChanged(); } if (!other.signatories_.isEmpty()) { if (signatories_.isEmpty()) { signatories_ = other.signatories_; bitField0_ |= 0x00000010; } else { ensureSignatoriesIsMutable(); signatories_.addAll(other.signatories_); } onChanged(); } if (other.hasContractIdStruct()) { mergeContractIdStruct(other.getContractIdStruct()); } if (other.hasKeyWithMaintainers()) { mergeKeyWithMaintainers(other.getKeyWithMaintainers()); } if (other.getByKey() != false) { setByKey(other.getByKey()); } 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 18: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureStakeholdersIsMutable(); stakeholders_.add(s); break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureSignatoriesIsMutable(); signatories_.add(s); break; } // case 34 case 50: { input.readMessage( getContractIdStructFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { java.lang.String s = input.readStringRequireUtf8(); ensureActorsIsMutable(); actors_.add(s); break; } // case 58 case 66: { input.readMessage( getKeyWithMaintainersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 66 case 72: { byKey_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 72 case 82: { packageName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 82 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_ = ""; /** *
       * required *since dev*
       * 
* * string package_name = 10; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 10; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 10; * @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; } /** *
       * required *since dev*
       * 
* * string package_name = 10; * @return This builder for chaining. */ public Builder clearPackageName() { packageName_ = getDefaultInstance().getPackageName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * required *since dev*
       * 
* * string package_name = 10; * @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.google.protobuf.LazyStringArrayList actors_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureActorsIsMutable() { if (!actors_.isModifiable()) { actors_ = new com.google.protobuf.LazyStringArrayList(actors_); } bitField0_ |= 0x00000004; } /** * repeated string actors = 7; * @return A list containing the actors. */ public com.google.protobuf.ProtocolStringList getActorsList() { actors_.makeImmutable(); return actors_; } /** * repeated string actors = 7; * @return The count of actors. */ public int getActorsCount() { return actors_.size(); } /** * repeated string actors = 7; * @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 = 7; * @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 = 7; * @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_ |= 0x00000004; onChanged(); return this; } /** * repeated string actors = 7; * @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_ |= 0x00000004; onChanged(); return this; } /** * repeated string actors = 7; * @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_ |= 0x00000004; onChanged(); return this; } /** * repeated string actors = 7; * @return This builder for chaining. */ public Builder clearActors() { actors_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** * repeated string actors = 7; * @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_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStakeholdersIsMutable() { if (!stakeholders_.isModifiable()) { stakeholders_ = new com.google.protobuf.LazyStringArrayList(stakeholders_); } bitField0_ |= 0x00000008; } /** * repeated string stakeholders = 3; * @return A list containing the stakeholders. */ public com.google.protobuf.ProtocolStringList getStakeholdersList() { stakeholders_.makeImmutable(); return stakeholders_; } /** * repeated string stakeholders = 3; * @return The count of stakeholders. */ public int getStakeholdersCount() { return stakeholders_.size(); } /** * repeated string stakeholders = 3; * @param index The index of the element to return. * @return The stakeholders at the given index. */ public java.lang.String getStakeholders(int index) { return stakeholders_.get(index); } /** * repeated string stakeholders = 3; * @param index The index of the value to return. * @return The bytes of the stakeholders at the given index. */ public com.google.protobuf.ByteString getStakeholdersBytes(int index) { return stakeholders_.getByteString(index); } /** * repeated string stakeholders = 3; * @param index The index to set the value at. * @param value The stakeholders to set. * @return This builder for chaining. */ public Builder setStakeholders( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStakeholdersIsMutable(); stakeholders_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string stakeholders = 3; * @param value The stakeholders to add. * @return This builder for chaining. */ public Builder addStakeholders( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStakeholdersIsMutable(); stakeholders_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string stakeholders = 3; * @param values The stakeholders to add. * @return This builder for chaining. */ public Builder addAllStakeholders( java.lang.Iterable values) { ensureStakeholdersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stakeholders_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string stakeholders = 3; * @return This builder for chaining. */ public Builder clearStakeholders() { stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** * repeated string stakeholders = 3; * @param value The bytes of the stakeholders to add. * @return This builder for chaining. */ public Builder addStakeholdersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStakeholdersIsMutable(); stakeholders_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSignatoriesIsMutable() { if (!signatories_.isModifiable()) { signatories_ = new com.google.protobuf.LazyStringArrayList(signatories_); } bitField0_ |= 0x00000010; } /** * repeated string signatories = 4; * @return A list containing the signatories. */ public com.google.protobuf.ProtocolStringList getSignatoriesList() { signatories_.makeImmutable(); return signatories_; } /** * repeated string signatories = 4; * @return The count of signatories. */ public int getSignatoriesCount() { return signatories_.size(); } /** * repeated string signatories = 4; * @param index The index of the element to return. * @return The signatories at the given index. */ public java.lang.String getSignatories(int index) { return signatories_.get(index); } /** * repeated string signatories = 4; * @param index The index of the value to return. * @return The bytes of the signatories at the given index. */ public com.google.protobuf.ByteString getSignatoriesBytes(int index) { return signatories_.getByteString(index); } /** * repeated string signatories = 4; * @param index The index to set the value at. * @param value The signatories to set. * @return This builder for chaining. */ public Builder setSignatories( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSignatoriesIsMutable(); signatories_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated string signatories = 4; * @param value The signatories to add. * @return This builder for chaining. */ public Builder addSignatories( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSignatoriesIsMutable(); signatories_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated string signatories = 4; * @param values The signatories to add. * @return This builder for chaining. */ public Builder addAllSignatories( java.lang.Iterable values) { ensureSignatoriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signatories_); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated string signatories = 4; * @return This builder for chaining. */ public Builder clearSignatories() { signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** * repeated string signatories = 4; * @param value The bytes of the signatories to add. * @return This builder for chaining. */ public Builder addSignatoriesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSignatoriesIsMutable(); signatories_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } private com.daml.lf.value.ValueOuterClass.ContractId contractIdStruct_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder> contractIdStructBuilder_; /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return Whether the contractIdStruct field is set. */ public boolean hasContractIdStruct() { return ((bitField0_ & 0x00000020) != 0); } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; * @return The contractIdStruct. */ public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() { if (contractIdStructBuilder_ == null) { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } else { return contractIdStructBuilder_.getMessage(); } } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public Builder setContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) { if (contractIdStructBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractIdStruct_ = value; } else { contractIdStructBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public Builder setContractIdStruct( com.daml.lf.value.ValueOuterClass.ContractId.Builder builderForValue) { if (contractIdStructBuilder_ == null) { contractIdStruct_ = builderForValue.build(); } else { contractIdStructBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public Builder mergeContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) { if (contractIdStructBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && contractIdStruct_ != null && contractIdStruct_ != com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance()) { getContractIdStructBuilder().mergeFrom(value); } else { contractIdStruct_ = value; } } else { contractIdStructBuilder_.mergeFrom(value); } if (contractIdStruct_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public Builder clearContractIdStruct() { bitField0_ = (bitField0_ & ~0x00000020); contractIdStruct_ = null; if (contractIdStructBuilder_ != null) { contractIdStructBuilder_.dispose(); contractIdStructBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public com.daml.lf.value.ValueOuterClass.ContractId.Builder getContractIdStructBuilder() { bitField0_ |= 0x00000020; onChanged(); return getContractIdStructFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() { if (contractIdStructBuilder_ != null) { return contractIdStructBuilder_.getMessageOrBuilder(); } else { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } } /** * .com.daml.lf.value.ContractId contract_id_struct = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder> getContractIdStructFieldBuilder() { if (contractIdStructBuilder_ == null) { contractIdStructBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder>( getContractIdStruct(), getParentForChildren(), isClean()); contractIdStruct_ = null; } return contractIdStructBuilder_; } private com.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 = 8; * @return Whether the keyWithMaintainers field is set. */ public boolean hasKeyWithMaintainers() { return ((bitField0_ & 0x00000040) != 0); } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; * @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 = 8; */ 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_ |= 0x00000040; onChanged(); return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; */ public Builder setKeyWithMaintainers( com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder builderForValue) { if (keyWithMaintainersBuilder_ == null) { keyWithMaintainers_ = builderForValue.build(); } else { keyWithMaintainersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; */ public Builder mergeKeyWithMaintainers(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers value) { if (keyWithMaintainersBuilder_ == null) { if (((bitField0_ & 0x00000040) != 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_ |= 0x00000040; onChanged(); } return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; */ public Builder clearKeyWithMaintainers() { bitField0_ = (bitField0_ & ~0x00000040); keyWithMaintainers_ = null; if (keyWithMaintainersBuilder_ != null) { keyWithMaintainersBuilder_.dispose(); keyWithMaintainersBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; */ public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder getKeyWithMaintainersBuilder() { bitField0_ |= 0x00000040; onChanged(); return getKeyWithMaintainersFieldBuilder().getBuilder(); } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 8; */ 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 = 8; */ 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 boolean byKey_ ; /** * bool by_key = 9; * @return The byKey. */ @java.lang.Override public boolean getByKey() { return byKey_; } /** * bool by_key = 9; * @param value The byKey to set. * @return This builder for chaining. */ public Builder setByKey(boolean value) { byKey_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * bool by_key = 9; * @return This builder for chaining. */ public Builder clearByKey() { bitField0_ = (bitField0_ & ~0x00000080); byKey_ = false; 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.NodeFetch) } // @@protoc_insertion_point(class_scope:com.daml.lf.transaction.NodeFetch) private static final com.daml.lf.transaction.TransactionOuterClass.NodeFetch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.NodeFetch(); } public static com.daml.lf.transaction.TransactionOuterClass.NodeFetch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeFetch 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.NodeFetch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeExerciseOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.NodeExercise) com.google.protobuf.MessageOrBuilder { /** *
     * required *since dev*
     * 
* * string package_name = 21; * @return The packageName. */ java.lang.String getPackageName(); /** *
     * required *since dev*
     * 
* * string package_name = 21; * @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(); /** *
     * optional *since version 15*
     * 
* * .com.daml.lf.value.Identifier interface_id = 19; * @return Whether the interfaceId field is set. */ boolean hasInterfaceId(); /** *
     * optional *since version 15*
     * 
* * .com.daml.lf.value.Identifier interface_id = 19; * @return The interfaceId. */ com.daml.lf.value.ValueOuterClass.Identifier getInterfaceId(); /** *
     * optional *since version 15*
     * 
* * .com.daml.lf.value.Identifier interface_id = 19; */ com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder(); /** * repeated string actors = 3; * @return A list containing the actors. */ java.util.List getActorsList(); /** * repeated string actors = 3; * @return The count of actors. */ int getActorsCount(); /** * repeated string actors = 3; * @param index The index of the element to return. * @return The actors at the given index. */ java.lang.String getActors(int index); /** * repeated string actors = 3; * @param index The index of the value to return. * @return The bytes of the actors at the given index. */ com.google.protobuf.ByteString getActorsBytes(int index); /** * string choice = 4; * @return The choice. */ java.lang.String getChoice(); /** * string choice = 4; * @return The bytes for choice. */ com.google.protobuf.ByteString getChoiceBytes(); /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; * @return Whether the argVersioned field is set. */ boolean hasArgVersioned(); /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; * @return The argVersioned. */ com.daml.lf.value.ValueOuterClass.VersionedValue getArgVersioned(); /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; */ com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getArgVersionedOrBuilder(); /** * bytes arg_unversioned = 16; * @return Whether the argUnversioned field is set. */ boolean hasArgUnversioned(); /** * bytes arg_unversioned = 16; * @return The argUnversioned. */ com.google.protobuf.ByteString getArgUnversioned(); /** * bool consuming = 6; * @return The consuming. */ boolean getConsuming(); /** *
     * node ids
     * 
* * repeated string children = 7; * @return A list containing the children. */ java.util.List getChildrenList(); /** *
     * node ids
     * 
* * repeated string children = 7; * @return The count of children. */ int getChildrenCount(); /** *
     * node ids
     * 
* * repeated string children = 7; * @param index The index of the element to return. * @return The children at the given index. */ java.lang.String getChildren(int index); /** *
     * node ids
     * 
* * repeated string children = 7; * @param index The index of the value to return. * @return The bytes of the children at the given index. */ com.google.protobuf.ByteString getChildrenBytes(int index); /** * repeated string stakeholders = 8; * @return A list containing the stakeholders. */ java.util.List getStakeholdersList(); /** * repeated string stakeholders = 8; * @return The count of stakeholders. */ int getStakeholdersCount(); /** * repeated string stakeholders = 8; * @param index The index of the element to return. * @return The stakeholders at the given index. */ java.lang.String getStakeholders(int index); /** * repeated string stakeholders = 8; * @param index The index of the value to return. * @return The bytes of the stakeholders at the given index. */ com.google.protobuf.ByteString getStakeholdersBytes(int index); /** * repeated string signatories = 9; * @return A list containing the signatories. */ java.util.List getSignatoriesList(); /** * repeated string signatories = 9; * @return The count of signatories. */ int getSignatoriesCount(); /** * repeated string signatories = 9; * @param index The index of the element to return. * @return The signatories at the given index. */ java.lang.String getSignatories(int index); /** * repeated string signatories = 9; * @param index The index of the value to return. * @return The bytes of the signatories at the given index. */ com.google.protobuf.ByteString getSignatoriesBytes(int index); /** * .com.daml.lf.value.ContractId contract_id_struct = 11; * @return Whether the contractIdStruct field is set. */ boolean hasContractIdStruct(); /** * .com.daml.lf.value.ContractId contract_id_struct = 11; * @return The contractIdStruct. */ com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct(); /** * .com.daml.lf.value.ContractId contract_id_struct = 11; */ com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder(); /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; * @return Whether the resultVersioned field is set. */ boolean hasResultVersioned(); /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; * @return The resultVersioned. */ com.daml.lf.value.ValueOuterClass.VersionedValue getResultVersioned(); /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; */ com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getResultVersionedOrBuilder(); /** * bytes result_unversioned = 17; * @return Whether the resultUnversioned field is set. */ boolean hasResultUnversioned(); /** * bytes result_unversioned = 17; * @return The resultUnversioned. */ com.google.protobuf.ByteString getResultUnversioned(); /** *
     * optional
     * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; * @return Whether the keyWithMaintainers field is set. */ boolean hasKeyWithMaintainers(); /** *
     * optional
     * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; * @return The keyWithMaintainers. */ com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getKeyWithMaintainers(); /** *
     * optional
     * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; */ com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder(); /** * repeated string observers = 15; * @return A list containing the observers. */ java.util.List getObserversList(); /** * repeated string observers = 15; * @return The count of observers. */ int getObserversCount(); /** * repeated string observers = 15; * @param index The index of the element to return. * @return The observers at the given index. */ java.lang.String getObservers(int index); /** * repeated string observers = 15; * @param index The index of the value to return. * @return The bytes of the observers at the given index. */ com.google.protobuf.ByteString getObserversBytes(int index); /** *
     * No listed authorizers indicates default authorizers (signatories + actors)
     * 
* * repeated string authorizers = 20; * @return A list containing the authorizers. */ java.util.List getAuthorizersList(); /** *
     * No listed authorizers indicates default authorizers (signatories + actors)
     * 
* * repeated string authorizers = 20; * @return The count of authorizers. */ int getAuthorizersCount(); /** *
     * No listed authorizers indicates default authorizers (signatories + actors)
     * 
* * repeated string authorizers = 20; * @param index The index of the element to return. * @return The authorizers at the given index. */ java.lang.String getAuthorizers(int index); /** *
     * No listed authorizers indicates default authorizers (signatories + actors)
     * 
* * repeated string authorizers = 20; * @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); /** * bool by_key = 18; * @return The byKey. */ boolean getByKey(); com.daml.lf.transaction.TransactionOuterClass.NodeExercise.ArgCase getArgCase(); com.daml.lf.transaction.TransactionOuterClass.NodeExercise.ResultCase getResultCase(); } /** * Protobuf type {@code com.daml.lf.transaction.NodeExercise} */ public static final class NodeExercise extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.transaction.NodeExercise) NodeExerciseOrBuilder { private static final long serialVersionUID = 0L; // Use NodeExercise.newBuilder() to construct. private NodeExercise(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeExercise() { packageName_ = ""; actors_ = com.google.protobuf.LazyStringArrayList.emptyList(); choice_ = ""; children_ = com.google.protobuf.LazyStringArrayList.emptyList(); stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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 NodeExercise(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeExercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeExercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.NodeExercise.class, com.daml.lf.transaction.TransactionOuterClass.NodeExercise.Builder.class); } private int bitField0_; private int argCase_ = 0; @SuppressWarnings("serial") private java.lang.Object arg_; public enum ArgCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ARG_VERSIONED(5), ARG_UNVERSIONED(16), ARG_NOT_SET(0); private final int value; private ArgCase(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 ArgCase valueOf(int value) { return forNumber(value); } public static ArgCase forNumber(int value) { switch (value) { case 5: return ARG_VERSIONED; case 16: return ARG_UNVERSIONED; case 0: return ARG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ArgCase getArgCase() { return ArgCase.forNumber( argCase_); } private int resultCase_ = 0; @SuppressWarnings("serial") private java.lang.Object result_; public enum ResultCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RESULT_VERSIONED(12), RESULT_UNVERSIONED(17), RESULT_NOT_SET(0); private final int value; private ResultCase(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 ResultCase valueOf(int value) { return forNumber(value); } public static ResultCase forNumber(int value) { switch (value) { case 12: return RESULT_VERSIONED; case 17: return RESULT_UNVERSIONED; case 0: return RESULT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResultCase getResultCase() { return ResultCase.forNumber( resultCase_); } public static final int PACKAGE_NAME_FIELD_NUMBER = 21; @SuppressWarnings("serial") private volatile java.lang.Object packageName_ = ""; /** *
     * required *since dev*
     * 
* * string package_name = 21; * @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; } } /** *
     * required *since dev*
     * 
* * string package_name = 21; * @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 INTERFACE_ID_FIELD_NUMBER = 19; private com.daml.lf.value.ValueOuterClass.Identifier interfaceId_; /** *
     * optional *since version 15*
     * 
* * .com.daml.lf.value.Identifier interface_id = 19; * @return Whether the interfaceId field is set. */ @java.lang.Override public boolean hasInterfaceId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * optional *since version 15*
     * 
* * .com.daml.lf.value.Identifier interface_id = 19; * @return The interfaceId. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Identifier getInterfaceId() { return interfaceId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_; } /** *
     * optional *since version 15*
     * 
* * .com.daml.lf.value.Identifier interface_id = 19; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder() { return interfaceId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_; } public static final int ACTORS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList actors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string actors = 3; * @return A list containing the actors. */ public com.google.protobuf.ProtocolStringList getActorsList() { return actors_; } /** * repeated string actors = 3; * @return The count of actors. */ public int getActorsCount() { return actors_.size(); } /** * repeated string actors = 3; * @param index The index of the element to return. * @return The actors at the given index. */ public java.lang.String getActors(int index) { return actors_.get(index); } /** * repeated string actors = 3; * @param index The index of the value to return. * @return The bytes of the actors at the given index. */ public com.google.protobuf.ByteString getActorsBytes(int index) { return actors_.getByteString(index); } public static final int CHOICE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object choice_ = ""; /** * string choice = 4; * @return The choice. */ @java.lang.Override public java.lang.String getChoice() { java.lang.Object ref = choice_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); choice_ = s; return s; } } /** * string choice = 4; * @return The bytes for choice. */ @java.lang.Override public com.google.protobuf.ByteString getChoiceBytes() { java.lang.Object ref = choice_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); choice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARG_VERSIONED_FIELD_NUMBER = 5; /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; * @return Whether the argVersioned field is set. */ @java.lang.Override public boolean hasArgVersioned() { return argCase_ == 5; } /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; * @return The argVersioned. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValue getArgVersioned() { if (argCase_ == 5) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) arg_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getArgVersionedOrBuilder() { if (argCase_ == 5) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) arg_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } public static final int ARG_UNVERSIONED_FIELD_NUMBER = 16; /** * bytes arg_unversioned = 16; * @return Whether the argUnversioned field is set. */ @java.lang.Override public boolean hasArgUnversioned() { return argCase_ == 16; } /** * bytes arg_unversioned = 16; * @return The argUnversioned. */ @java.lang.Override public com.google.protobuf.ByteString getArgUnversioned() { if (argCase_ == 16) { return (com.google.protobuf.ByteString) arg_; } return com.google.protobuf.ByteString.EMPTY; } public static final int CONSUMING_FIELD_NUMBER = 6; private boolean consuming_ = false; /** * bool consuming = 6; * @return The consuming. */ @java.lang.Override public boolean getConsuming() { return consuming_; } public static final int CHILDREN_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList children_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * node ids
     * 
* * repeated string children = 7; * @return A list containing the children. */ public com.google.protobuf.ProtocolStringList getChildrenList() { return children_; } /** *
     * node ids
     * 
* * repeated string children = 7; * @return The count of children. */ public int getChildrenCount() { return children_.size(); } /** *
     * node ids
     * 
* * repeated string children = 7; * @param index The index of the element to return. * @return The children at the given index. */ public java.lang.String getChildren(int index) { return children_.get(index); } /** *
     * node ids
     * 
* * repeated string children = 7; * @param index The index of the value to return. * @return The bytes of the children at the given index. */ public com.google.protobuf.ByteString getChildrenBytes(int index) { return children_.getByteString(index); } public static final int STAKEHOLDERS_FIELD_NUMBER = 8; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string stakeholders = 8; * @return A list containing the stakeholders. */ public com.google.protobuf.ProtocolStringList getStakeholdersList() { return stakeholders_; } /** * repeated string stakeholders = 8; * @return The count of stakeholders. */ public int getStakeholdersCount() { return stakeholders_.size(); } /** * repeated string stakeholders = 8; * @param index The index of the element to return. * @return The stakeholders at the given index. */ public java.lang.String getStakeholders(int index) { return stakeholders_.get(index); } /** * repeated string stakeholders = 8; * @param index The index of the value to return. * @return The bytes of the stakeholders at the given index. */ public com.google.protobuf.ByteString getStakeholdersBytes(int index) { return stakeholders_.getByteString(index); } public static final int SIGNATORIES_FIELD_NUMBER = 9; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string signatories = 9; * @return A list containing the signatories. */ public com.google.protobuf.ProtocolStringList getSignatoriesList() { return signatories_; } /** * repeated string signatories = 9; * @return The count of signatories. */ public int getSignatoriesCount() { return signatories_.size(); } /** * repeated string signatories = 9; * @param index The index of the element to return. * @return The signatories at the given index. */ public java.lang.String getSignatories(int index) { return signatories_.get(index); } /** * repeated string signatories = 9; * @param index The index of the value to return. * @return The bytes of the signatories at the given index. */ public com.google.protobuf.ByteString getSignatoriesBytes(int index) { return signatories_.getByteString(index); } public static final int CONTRACT_ID_STRUCT_FIELD_NUMBER = 11; private com.daml.lf.value.ValueOuterClass.ContractId contractIdStruct_; /** * .com.daml.lf.value.ContractId contract_id_struct = 11; * @return Whether the contractIdStruct field is set. */ @java.lang.Override public boolean hasContractIdStruct() { return ((bitField0_ & 0x00000004) != 0); } /** * .com.daml.lf.value.ContractId contract_id_struct = 11; * @return The contractIdStruct. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } /** * .com.daml.lf.value.ContractId contract_id_struct = 11; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } public static final int RESULT_VERSIONED_FIELD_NUMBER = 12; /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; * @return Whether the resultVersioned field is set. */ @java.lang.Override public boolean hasResultVersioned() { return resultCase_ == 12; } /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; * @return The resultVersioned. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValue getResultVersioned() { if (resultCase_ == 12) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) result_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } /** *
     * *must not be used*
     * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getResultVersionedOrBuilder() { if (resultCase_ == 12) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) result_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } public static final int RESULT_UNVERSIONED_FIELD_NUMBER = 17; /** * bytes result_unversioned = 17; * @return Whether the resultUnversioned field is set. */ @java.lang.Override public boolean hasResultUnversioned() { return resultCase_ == 17; } /** * bytes result_unversioned = 17; * @return The resultUnversioned. */ @java.lang.Override public com.google.protobuf.ByteString getResultUnversioned() { if (resultCase_ == 17) { return (com.google.protobuf.ByteString) result_; } return com.google.protobuf.ByteString.EMPTY; } public static final int KEY_WITH_MAINTAINERS_FIELD_NUMBER = 14; private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers keyWithMaintainers_; /** *
     * optional
     * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; * @return Whether the keyWithMaintainers field is set. */ @java.lang.Override public boolean hasKeyWithMaintainers() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * optional
     * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; * @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_; } /** *
     * optional
     * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder() { return keyWithMaintainers_ == null ? com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance() : keyWithMaintainers_; } public static final int OBSERVERS_FIELD_NUMBER = 15; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList observers_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string observers = 15; * @return A list containing the observers. */ public com.google.protobuf.ProtocolStringList getObserversList() { return observers_; } /** * repeated string observers = 15; * @return The count of observers. */ public int getObserversCount() { return observers_.size(); } /** * repeated string observers = 15; * @param index The index of the element to return. * @return The observers at the given index. */ public java.lang.String getObservers(int index) { return observers_.get(index); } /** * repeated string observers = 15; * @param index The index of the value to return. * @return The bytes of the observers at the given index. */ public com.google.protobuf.ByteString getObserversBytes(int index) { return observers_.getByteString(index); } public static final int AUTHORIZERS_FIELD_NUMBER = 20; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList authorizers_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * No listed authorizers indicates default authorizers (signatories + actors)
     * 
* * repeated string authorizers = 20; * @return A list containing the authorizers. */ public com.google.protobuf.ProtocolStringList getAuthorizersList() { return authorizers_; } /** *
     * No listed authorizers indicates default authorizers (signatories + actors)
     * 
* * repeated string authorizers = 20; * @return The count of authorizers. */ public int getAuthorizersCount() { return authorizers_.size(); } /** *
     * No listed authorizers indicates default authorizers (signatories + actors)
     * 
* * repeated string authorizers = 20; * @param index The index of the element to return. * @return The authorizers at the given index. */ public java.lang.String getAuthorizers(int index) { return authorizers_.get(index); } /** *
     * No listed authorizers indicates default authorizers (signatories + actors)
     * 
* * repeated string authorizers = 20; * @param index The index of the value to return. * @return The bytes of the authorizers at the given index. */ public com.google.protobuf.ByteString getAuthorizersBytes(int index) { return authorizers_.getByteString(index); } public static final int BY_KEY_FIELD_NUMBER = 18; private boolean byKey_ = false; /** * bool by_key = 18; * @return The byKey. */ @java.lang.Override public boolean getByKey() { return byKey_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTemplateId()); } for (int i = 0; i < actors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, actors_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(choice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, choice_); } if (argCase_ == 5) { output.writeMessage(5, (com.daml.lf.value.ValueOuterClass.VersionedValue) arg_); } if (consuming_ != false) { output.writeBool(6, consuming_); } for (int i = 0; i < children_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, children_.getRaw(i)); } for (int i = 0; i < stakeholders_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, stakeholders_.getRaw(i)); } for (int i = 0; i < signatories_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, signatories_.getRaw(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(11, getContractIdStruct()); } if (resultCase_ == 12) { output.writeMessage(12, (com.daml.lf.value.ValueOuterClass.VersionedValue) result_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(14, getKeyWithMaintainers()); } for (int i = 0; i < observers_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, observers_.getRaw(i)); } if (argCase_ == 16) { output.writeBytes( 16, (com.google.protobuf.ByteString) arg_); } if (resultCase_ == 17) { output.writeBytes( 17, (com.google.protobuf.ByteString) result_); } if (byKey_ != false) { output.writeBool(18, byKey_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(19, getInterfaceId()); } for (int i = 0; i < authorizers_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, authorizers_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, packageName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTemplateId()); } { int dataSize = 0; for (int i = 0; i < actors_.size(); i++) { dataSize += computeStringSizeNoTag(actors_.getRaw(i)); } size += dataSize; size += 1 * getActorsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(choice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, choice_); } if (argCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.daml.lf.value.ValueOuterClass.VersionedValue) arg_); } if (consuming_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, consuming_); } { int dataSize = 0; for (int i = 0; i < children_.size(); i++) { dataSize += computeStringSizeNoTag(children_.getRaw(i)); } size += dataSize; size += 1 * getChildrenList().size(); } { int dataSize = 0; for (int i = 0; i < stakeholders_.size(); i++) { dataSize += computeStringSizeNoTag(stakeholders_.getRaw(i)); } size += dataSize; size += 1 * getStakeholdersList().size(); } { int dataSize = 0; for (int i = 0; i < signatories_.size(); i++) { dataSize += computeStringSizeNoTag(signatories_.getRaw(i)); } size += dataSize; size += 1 * getSignatoriesList().size(); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getContractIdStruct()); } if (resultCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.daml.lf.value.ValueOuterClass.VersionedValue) result_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getKeyWithMaintainers()); } { int dataSize = 0; for (int i = 0; i < observers_.size(); i++) { dataSize += computeStringSizeNoTag(observers_.getRaw(i)); } size += dataSize; size += 1 * getObserversList().size(); } if (argCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 16, (com.google.protobuf.ByteString) arg_); } if (resultCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 17, (com.google.protobuf.ByteString) result_); } if (byKey_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(18, byKey_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, getInterfaceId()); } { int dataSize = 0; for (int i = 0; i < authorizers_.size(); i++) { dataSize += computeStringSizeNoTag(authorizers_.getRaw(i)); } size += dataSize; size += 2 * getAuthorizersList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, packageName_); } 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.NodeExercise)) { return super.equals(obj); } com.daml.lf.transaction.TransactionOuterClass.NodeExercise other = (com.daml.lf.transaction.TransactionOuterClass.NodeExercise) obj; if (!getPackageName() .equals(other.getPackageName())) return false; if (hasTemplateId() != other.hasTemplateId()) return false; if (hasTemplateId()) { if (!getTemplateId() .equals(other.getTemplateId())) return false; } if (hasInterfaceId() != other.hasInterfaceId()) return false; if (hasInterfaceId()) { if (!getInterfaceId() .equals(other.getInterfaceId())) return false; } if (!getActorsList() .equals(other.getActorsList())) return false; if (!getChoice() .equals(other.getChoice())) return false; if (getConsuming() != other.getConsuming()) return false; if (!getChildrenList() .equals(other.getChildrenList())) return false; if (!getStakeholdersList() .equals(other.getStakeholdersList())) return false; if (!getSignatoriesList() .equals(other.getSignatoriesList())) return false; if (hasContractIdStruct() != other.hasContractIdStruct()) return false; if (hasContractIdStruct()) { if (!getContractIdStruct() .equals(other.getContractIdStruct())) return false; } if (hasKeyWithMaintainers() != other.hasKeyWithMaintainers()) return false; if (hasKeyWithMaintainers()) { if (!getKeyWithMaintainers() .equals(other.getKeyWithMaintainers())) return false; } if (!getObserversList() .equals(other.getObserversList())) return false; if (!getAuthorizersList() .equals(other.getAuthorizersList())) return false; if (getByKey() != other.getByKey()) return false; if (!getArgCase().equals(other.getArgCase())) return false; switch (argCase_) { case 5: if (!getArgVersioned() .equals(other.getArgVersioned())) return false; break; case 16: if (!getArgUnversioned() .equals(other.getArgUnversioned())) return false; break; case 0: default: } if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 12: if (!getResultVersioned() .equals(other.getResultVersioned())) return false; break; case 17: if (!getResultUnversioned() .equals(other.getResultUnversioned())) 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) + PACKAGE_NAME_FIELD_NUMBER; hash = (53 * hash) + getPackageName().hashCode(); if (hasTemplateId()) { hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER; hash = (53 * hash) + getTemplateId().hashCode(); } if (hasInterfaceId()) { hash = (37 * hash) + INTERFACE_ID_FIELD_NUMBER; hash = (53 * hash) + getInterfaceId().hashCode(); } if (getActorsCount() > 0) { hash = (37 * hash) + ACTORS_FIELD_NUMBER; hash = (53 * hash) + getActorsList().hashCode(); } hash = (37 * hash) + CHOICE_FIELD_NUMBER; hash = (53 * hash) + getChoice().hashCode(); hash = (37 * hash) + CONSUMING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getConsuming()); if (getChildrenCount() > 0) { hash = (37 * hash) + CHILDREN_FIELD_NUMBER; hash = (53 * hash) + getChildrenList().hashCode(); } if (getStakeholdersCount() > 0) { hash = (37 * hash) + STAKEHOLDERS_FIELD_NUMBER; hash = (53 * hash) + getStakeholdersList().hashCode(); } if (getSignatoriesCount() > 0) { hash = (37 * hash) + SIGNATORIES_FIELD_NUMBER; hash = (53 * hash) + getSignatoriesList().hashCode(); } if (hasContractIdStruct()) { hash = (37 * hash) + CONTRACT_ID_STRUCT_FIELD_NUMBER; hash = (53 * hash) + getContractIdStruct().hashCode(); } if (hasKeyWithMaintainers()) { hash = (37 * hash) + KEY_WITH_MAINTAINERS_FIELD_NUMBER; hash = (53 * hash) + getKeyWithMaintainers().hashCode(); } if (getObserversCount() > 0) { hash = (37 * hash) + OBSERVERS_FIELD_NUMBER; hash = (53 * hash) + getObserversList().hashCode(); } if (getAuthorizersCount() > 0) { hash = (37 * hash) + AUTHORIZERS_FIELD_NUMBER; hash = (53 * hash) + getAuthorizersList().hashCode(); } hash = (37 * hash) + BY_KEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getByKey()); switch (argCase_) { case 5: hash = (37 * hash) + ARG_VERSIONED_FIELD_NUMBER; hash = (53 * hash) + getArgVersioned().hashCode(); break; case 16: hash = (37 * hash) + ARG_UNVERSIONED_FIELD_NUMBER; hash = (53 * hash) + getArgUnversioned().hashCode(); break; case 0: default: } switch (resultCase_) { case 12: hash = (37 * hash) + RESULT_VERSIONED_FIELD_NUMBER; hash = (53 * hash) + getResultVersioned().hashCode(); break; case 17: hash = (37 * hash) + RESULT_UNVERSIONED_FIELD_NUMBER; hash = (53 * hash) + getResultUnversioned().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.transaction.TransactionOuterClass.NodeExercise parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeExercise 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.NodeExercise parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeExercise 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.NodeExercise parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeExercise 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.NodeExercise parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeExercise 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.NodeExercise parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeExercise 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.NodeExercise 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.NodeExercise 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.NodeExercise 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.NodeExercise} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.NodeExercise) com.daml.lf.transaction.TransactionOuterClass.NodeExerciseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeExercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeExercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.NodeExercise.class, com.daml.lf.transaction.TransactionOuterClass.NodeExercise.Builder.class); } // Construct using com.daml.lf.transaction.TransactionOuterClass.NodeExercise.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(); getInterfaceIdFieldBuilder(); getContractIdStructFieldBuilder(); getKeyWithMaintainersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; packageName_ = ""; templateId_ = null; if (templateIdBuilder_ != null) { templateIdBuilder_.dispose(); templateIdBuilder_ = null; } interfaceId_ = null; if (interfaceIdBuilder_ != null) { interfaceIdBuilder_.dispose(); interfaceIdBuilder_ = null; } actors_ = com.google.protobuf.LazyStringArrayList.emptyList(); choice_ = ""; if (argVersionedBuilder_ != null) { argVersionedBuilder_.clear(); } consuming_ = false; children_ = com.google.protobuf.LazyStringArrayList.emptyList(); stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); contractIdStruct_ = null; if (contractIdStructBuilder_ != null) { contractIdStructBuilder_.dispose(); contractIdStructBuilder_ = null; } if (resultVersionedBuilder_ != null) { resultVersionedBuilder_.clear(); } keyWithMaintainers_ = null; if (keyWithMaintainersBuilder_ != null) { keyWithMaintainersBuilder_.dispose(); keyWithMaintainersBuilder_ = null; } observers_ = com.google.protobuf.LazyStringArrayList.emptyList(); authorizers_ = com.google.protobuf.LazyStringArrayList.emptyList(); byKey_ = false; argCase_ = 0; arg_ = null; resultCase_ = 0; result_ = 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_NodeExercise_descriptor; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeExercise getDefaultInstanceForType() { return com.daml.lf.transaction.TransactionOuterClass.NodeExercise.getDefaultInstance(); } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeExercise build() { com.daml.lf.transaction.TransactionOuterClass.NodeExercise result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeExercise buildPartial() { com.daml.lf.transaction.TransactionOuterClass.NodeExercise result = new com.daml.lf.transaction.TransactionOuterClass.NodeExercise(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.NodeExercise 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.interfaceId_ = interfaceIdBuilder_ == null ? interfaceId_ : interfaceIdBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { actors_.makeImmutable(); result.actors_ = actors_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.choice_ = choice_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.consuming_ = consuming_; } if (((from_bitField0_ & 0x00000100) != 0)) { children_.makeImmutable(); result.children_ = children_; } if (((from_bitField0_ & 0x00000200) != 0)) { stakeholders_.makeImmutable(); result.stakeholders_ = stakeholders_; } if (((from_bitField0_ & 0x00000400) != 0)) { signatories_.makeImmutable(); result.signatories_ = signatories_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.contractIdStruct_ = contractIdStructBuilder_ == null ? contractIdStruct_ : contractIdStructBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00004000) != 0)) { result.keyWithMaintainers_ = keyWithMaintainersBuilder_ == null ? keyWithMaintainers_ : keyWithMaintainersBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00008000) != 0)) { observers_.makeImmutable(); result.observers_ = observers_; } if (((from_bitField0_ & 0x00010000) != 0)) { authorizers_.makeImmutable(); result.authorizers_ = authorizers_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.byKey_ = byKey_; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.lf.transaction.TransactionOuterClass.NodeExercise result) { result.argCase_ = argCase_; result.arg_ = this.arg_; if (argCase_ == 5 && argVersionedBuilder_ != null) { result.arg_ = argVersionedBuilder_.build(); } result.resultCase_ = resultCase_; result.result_ = this.result_; if (resultCase_ == 12 && resultVersionedBuilder_ != null) { result.result_ = resultVersionedBuilder_.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.NodeExercise) { return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.NodeExercise)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.NodeExercise other) { if (other == com.daml.lf.transaction.TransactionOuterClass.NodeExercise.getDefaultInstance()) return this; if (!other.getPackageName().isEmpty()) { packageName_ = other.packageName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasTemplateId()) { mergeTemplateId(other.getTemplateId()); } if (other.hasInterfaceId()) { mergeInterfaceId(other.getInterfaceId()); } if (!other.actors_.isEmpty()) { if (actors_.isEmpty()) { actors_ = other.actors_; bitField0_ |= 0x00000008; } else { ensureActorsIsMutable(); actors_.addAll(other.actors_); } onChanged(); } if (!other.getChoice().isEmpty()) { choice_ = other.choice_; bitField0_ |= 0x00000010; onChanged(); } if (other.getConsuming() != false) { setConsuming(other.getConsuming()); } if (!other.children_.isEmpty()) { if (children_.isEmpty()) { children_ = other.children_; bitField0_ |= 0x00000100; } else { ensureChildrenIsMutable(); children_.addAll(other.children_); } onChanged(); } if (!other.stakeholders_.isEmpty()) { if (stakeholders_.isEmpty()) { stakeholders_ = other.stakeholders_; bitField0_ |= 0x00000200; } else { ensureStakeholdersIsMutable(); stakeholders_.addAll(other.stakeholders_); } onChanged(); } if (!other.signatories_.isEmpty()) { if (signatories_.isEmpty()) { signatories_ = other.signatories_; bitField0_ |= 0x00000400; } else { ensureSignatoriesIsMutable(); signatories_.addAll(other.signatories_); } onChanged(); } if (other.hasContractIdStruct()) { mergeContractIdStruct(other.getContractIdStruct()); } if (other.hasKeyWithMaintainers()) { mergeKeyWithMaintainers(other.getKeyWithMaintainers()); } if (!other.observers_.isEmpty()) { if (observers_.isEmpty()) { observers_ = other.observers_; bitField0_ |= 0x00008000; } else { ensureObserversIsMutable(); observers_.addAll(other.observers_); } onChanged(); } if (!other.authorizers_.isEmpty()) { if (authorizers_.isEmpty()) { authorizers_ = other.authorizers_; bitField0_ |= 0x00010000; } else { ensureAuthorizersIsMutable(); authorizers_.addAll(other.authorizers_); } onChanged(); } if (other.getByKey() != false) { setByKey(other.getByKey()); } switch (other.getArgCase()) { case ARG_VERSIONED: { mergeArgVersioned(other.getArgVersioned()); break; } case ARG_UNVERSIONED: { setArgUnversioned(other.getArgUnversioned()); break; } case ARG_NOT_SET: { break; } } switch (other.getResultCase()) { case RESULT_VERSIONED: { mergeResultVersioned(other.getResultVersioned()); break; } case RESULT_UNVERSIONED: { setResultUnversioned(other.getResultUnversioned()); break; } case RESULT_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 18: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureActorsIsMutable(); actors_.add(s); break; } // case 26 case 34: { choice_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage( getArgVersionedFieldBuilder().getBuilder(), extensionRegistry); argCase_ = 5; break; } // case 42 case 48: { consuming_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 48 case 58: { java.lang.String s = input.readStringRequireUtf8(); ensureChildrenIsMutable(); children_.add(s); break; } // case 58 case 66: { java.lang.String s = input.readStringRequireUtf8(); ensureStakeholdersIsMutable(); stakeholders_.add(s); break; } // case 66 case 74: { java.lang.String s = input.readStringRequireUtf8(); ensureSignatoriesIsMutable(); signatories_.add(s); break; } // case 74 case 90: { input.readMessage( getContractIdStructFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 90 case 98: { input.readMessage( getResultVersionedFieldBuilder().getBuilder(), extensionRegistry); resultCase_ = 12; break; } // case 98 case 114: { input.readMessage( getKeyWithMaintainersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 114 case 122: { java.lang.String s = input.readStringRequireUtf8(); ensureObserversIsMutable(); observers_.add(s); break; } // case 122 case 130: { arg_ = input.readBytes(); argCase_ = 16; break; } // case 130 case 138: { result_ = input.readBytes(); resultCase_ = 17; break; } // case 138 case 144: { byKey_ = input.readBool(); bitField0_ |= 0x00020000; break; } // case 144 case 154: { input.readMessage( getInterfaceIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 154 case 162: { java.lang.String s = input.readStringRequireUtf8(); ensureAuthorizersIsMutable(); authorizers_.add(s); break; } // case 162 case 170: { packageName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 170 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 argCase_ = 0; private java.lang.Object arg_; public ArgCase getArgCase() { return ArgCase.forNumber( argCase_); } public Builder clearArg() { argCase_ = 0; arg_ = null; onChanged(); return this; } private int resultCase_ = 0; private java.lang.Object result_; public ResultCase getResultCase() { return ResultCase.forNumber( resultCase_); } public Builder clearResult() { resultCase_ = 0; result_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object packageName_ = ""; /** *
       * required *since dev*
       * 
* * string package_name = 21; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 21; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 21; * @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; } /** *
       * required *since dev*
       * 
* * string package_name = 21; * @return This builder for chaining. */ public Builder clearPackageName() { packageName_ = getDefaultInstance().getPackageName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * required *since dev*
       * 
* * string package_name = 21; * @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.value.ValueOuterClass.Identifier interfaceId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder> interfaceIdBuilder_; /** *
       * optional *since version 15*
       * 
* * .com.daml.lf.value.Identifier interface_id = 19; * @return Whether the interfaceId field is set. */ public boolean hasInterfaceId() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * optional *since version 15*
       * 
* * .com.daml.lf.value.Identifier interface_id = 19; * @return The interfaceId. */ public com.daml.lf.value.ValueOuterClass.Identifier getInterfaceId() { if (interfaceIdBuilder_ == null) { return interfaceId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_; } else { return interfaceIdBuilder_.getMessage(); } } /** *
       * optional *since version 15*
       * 
* * .com.daml.lf.value.Identifier interface_id = 19; */ public Builder setInterfaceId(com.daml.lf.value.ValueOuterClass.Identifier value) { if (interfaceIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceId_ = value; } else { interfaceIdBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * optional *since version 15*
       * 
* * .com.daml.lf.value.Identifier interface_id = 19; */ public Builder setInterfaceId( com.daml.lf.value.ValueOuterClass.Identifier.Builder builderForValue) { if (interfaceIdBuilder_ == null) { interfaceId_ = builderForValue.build(); } else { interfaceIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * optional *since version 15*
       * 
* * .com.daml.lf.value.Identifier interface_id = 19; */ public Builder mergeInterfaceId(com.daml.lf.value.ValueOuterClass.Identifier value) { if (interfaceIdBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && interfaceId_ != null && interfaceId_ != com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance()) { getInterfaceIdBuilder().mergeFrom(value); } else { interfaceId_ = value; } } else { interfaceIdBuilder_.mergeFrom(value); } if (interfaceId_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * optional *since version 15*
       * 
* * .com.daml.lf.value.Identifier interface_id = 19; */ public Builder clearInterfaceId() { bitField0_ = (bitField0_ & ~0x00000004); interfaceId_ = null; if (interfaceIdBuilder_ != null) { interfaceIdBuilder_.dispose(); interfaceIdBuilder_ = null; } onChanged(); return this; } /** *
       * optional *since version 15*
       * 
* * .com.daml.lf.value.Identifier interface_id = 19; */ public com.daml.lf.value.ValueOuterClass.Identifier.Builder getInterfaceIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getInterfaceIdFieldBuilder().getBuilder(); } /** *
       * optional *since version 15*
       * 
* * .com.daml.lf.value.Identifier interface_id = 19; */ public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder() { if (interfaceIdBuilder_ != null) { return interfaceIdBuilder_.getMessageOrBuilder(); } else { return interfaceId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : interfaceId_; } } /** *
       * optional *since version 15*
       * 
* * .com.daml.lf.value.Identifier interface_id = 19; */ 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 com.google.protobuf.LazyStringArrayList actors_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureActorsIsMutable() { if (!actors_.isModifiable()) { actors_ = new com.google.protobuf.LazyStringArrayList(actors_); } bitField0_ |= 0x00000008; } /** * repeated string actors = 3; * @return A list containing the actors. */ public com.google.protobuf.ProtocolStringList getActorsList() { actors_.makeImmutable(); return actors_; } /** * repeated string actors = 3; * @return The count of actors. */ public int getActorsCount() { return actors_.size(); } /** * repeated string actors = 3; * @param index The index of the element to return. * @return The actors at the given index. */ public java.lang.String getActors(int index) { return actors_.get(index); } /** * repeated string actors = 3; * @param index The index of the value to return. * @return The bytes of the actors at the given index. */ public com.google.protobuf.ByteString getActorsBytes(int index) { return actors_.getByteString(index); } /** * repeated string actors = 3; * @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_ |= 0x00000008; onChanged(); return this; } /** * repeated string actors = 3; * @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_ |= 0x00000008; onChanged(); return this; } /** * repeated string actors = 3; * @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_ |= 0x00000008; onChanged(); return this; } /** * repeated string actors = 3; * @return This builder for chaining. */ public Builder clearActors() { actors_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** * repeated string actors = 3; * @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_ |= 0x00000008; onChanged(); return this; } private java.lang.Object choice_ = ""; /** * string choice = 4; * @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 = 4; * @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 = 4; * @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_ |= 0x00000010; onChanged(); return this; } /** * string choice = 4; * @return This builder for chaining. */ public Builder clearChoice() { choice_ = getDefaultInstance().getChoice(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string choice = 4; * @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_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder> argVersionedBuilder_; /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; * @return Whether the argVersioned field is set. */ @java.lang.Override public boolean hasArgVersioned() { return argCase_ == 5; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; * @return The argVersioned. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValue getArgVersioned() { if (argVersionedBuilder_ == null) { if (argCase_ == 5) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) arg_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } else { if (argCase_ == 5) { return argVersionedBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; */ public Builder setArgVersioned(com.daml.lf.value.ValueOuterClass.VersionedValue value) { if (argVersionedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arg_ = value; onChanged(); } else { argVersionedBuilder_.setMessage(value); } argCase_ = 5; return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; */ public Builder setArgVersioned( com.daml.lf.value.ValueOuterClass.VersionedValue.Builder builderForValue) { if (argVersionedBuilder_ == null) { arg_ = builderForValue.build(); onChanged(); } else { argVersionedBuilder_.setMessage(builderForValue.build()); } argCase_ = 5; return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; */ public Builder mergeArgVersioned(com.daml.lf.value.ValueOuterClass.VersionedValue value) { if (argVersionedBuilder_ == null) { if (argCase_ == 5 && arg_ != com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance()) { arg_ = com.daml.lf.value.ValueOuterClass.VersionedValue.newBuilder((com.daml.lf.value.ValueOuterClass.VersionedValue) arg_) .mergeFrom(value).buildPartial(); } else { arg_ = value; } onChanged(); } else { if (argCase_ == 5) { argVersionedBuilder_.mergeFrom(value); } else { argVersionedBuilder_.setMessage(value); } } argCase_ = 5; return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; */ public Builder clearArgVersioned() { if (argVersionedBuilder_ == null) { if (argCase_ == 5) { argCase_ = 0; arg_ = null; onChanged(); } } else { if (argCase_ == 5) { argCase_ = 0; arg_ = null; } argVersionedBuilder_.clear(); } return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; */ public com.daml.lf.value.ValueOuterClass.VersionedValue.Builder getArgVersionedBuilder() { return getArgVersionedFieldBuilder().getBuilder(); } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getArgVersionedOrBuilder() { if ((argCase_ == 5) && (argVersionedBuilder_ != null)) { return argVersionedBuilder_.getMessageOrBuilder(); } else { if (argCase_ == 5) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) arg_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue arg_versioned = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder> getArgVersionedFieldBuilder() { if (argVersionedBuilder_ == null) { if (!(argCase_ == 5)) { arg_ = com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } argVersionedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder>( (com.daml.lf.value.ValueOuterClass.VersionedValue) arg_, getParentForChildren(), isClean()); arg_ = null; } argCase_ = 5; onChanged(); return argVersionedBuilder_; } /** * bytes arg_unversioned = 16; * @return Whether the argUnversioned field is set. */ public boolean hasArgUnversioned() { return argCase_ == 16; } /** * bytes arg_unversioned = 16; * @return The argUnversioned. */ public com.google.protobuf.ByteString getArgUnversioned() { if (argCase_ == 16) { return (com.google.protobuf.ByteString) arg_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes arg_unversioned = 16; * @param value The argUnversioned to set. * @return This builder for chaining. */ public Builder setArgUnversioned(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } argCase_ = 16; arg_ = value; onChanged(); return this; } /** * bytes arg_unversioned = 16; * @return This builder for chaining. */ public Builder clearArgUnversioned() { if (argCase_ == 16) { argCase_ = 0; arg_ = null; onChanged(); } return this; } private boolean consuming_ ; /** * bool consuming = 6; * @return The consuming. */ @java.lang.Override public boolean getConsuming() { return consuming_; } /** * bool consuming = 6; * @param value The consuming to set. * @return This builder for chaining. */ public Builder setConsuming(boolean value) { consuming_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * bool consuming = 6; * @return This builder for chaining. */ public Builder clearConsuming() { bitField0_ = (bitField0_ & ~0x00000080); consuming_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList children_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureChildrenIsMutable() { if (!children_.isModifiable()) { children_ = new com.google.protobuf.LazyStringArrayList(children_); } bitField0_ |= 0x00000100; } /** *
       * node ids
       * 
* * repeated string children = 7; * @return A list containing the children. */ public com.google.protobuf.ProtocolStringList getChildrenList() { children_.makeImmutable(); return children_; } /** *
       * node ids
       * 
* * repeated string children = 7; * @return The count of children. */ public int getChildrenCount() { return children_.size(); } /** *
       * node ids
       * 
* * repeated string children = 7; * @param index The index of the element to return. * @return The children at the given index. */ public java.lang.String getChildren(int index) { return children_.get(index); } /** *
       * node ids
       * 
* * repeated string children = 7; * @param index The index of the value to return. * @return The bytes of the children at the given index. */ public com.google.protobuf.ByteString getChildrenBytes(int index) { return children_.getByteString(index); } /** *
       * node ids
       * 
* * repeated string children = 7; * @param index The index to set the value at. * @param value The children to set. * @return This builder for chaining. */ public Builder setChildren( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.set(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * node ids
       * 
* * repeated string children = 7; * @param value The children to add. * @return This builder for chaining. */ public Builder addChildren( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * node ids
       * 
* * repeated string children = 7; * @param values The children to add. * @return This builder for chaining. */ public Builder addAllChildren( java.lang.Iterable values) { ensureChildrenIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, children_); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * node ids
       * 
* * repeated string children = 7; * @return This builder for chaining. */ public Builder clearChildren() { children_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** *
       * node ids
       * 
* * repeated string children = 7; * @param value The bytes of the children to add. * @return This builder for chaining. */ public Builder addChildrenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureChildrenIsMutable(); children_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStakeholdersIsMutable() { if (!stakeholders_.isModifiable()) { stakeholders_ = new com.google.protobuf.LazyStringArrayList(stakeholders_); } bitField0_ |= 0x00000200; } /** * repeated string stakeholders = 8; * @return A list containing the stakeholders. */ public com.google.protobuf.ProtocolStringList getStakeholdersList() { stakeholders_.makeImmutable(); return stakeholders_; } /** * repeated string stakeholders = 8; * @return The count of stakeholders. */ public int getStakeholdersCount() { return stakeholders_.size(); } /** * repeated string stakeholders = 8; * @param index The index of the element to return. * @return The stakeholders at the given index. */ public java.lang.String getStakeholders(int index) { return stakeholders_.get(index); } /** * repeated string stakeholders = 8; * @param index The index of the value to return. * @return The bytes of the stakeholders at the given index. */ public com.google.protobuf.ByteString getStakeholdersBytes(int index) { return stakeholders_.getByteString(index); } /** * repeated string stakeholders = 8; * @param index The index to set the value at. * @param value The stakeholders to set. * @return This builder for chaining. */ public Builder setStakeholders( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStakeholdersIsMutable(); stakeholders_.set(index, value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated string stakeholders = 8; * @param value The stakeholders to add. * @return This builder for chaining. */ public Builder addStakeholders( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStakeholdersIsMutable(); stakeholders_.add(value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated string stakeholders = 8; * @param values The stakeholders to add. * @return This builder for chaining. */ public Builder addAllStakeholders( java.lang.Iterable values) { ensureStakeholdersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stakeholders_); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated string stakeholders = 8; * @return This builder for chaining. */ public Builder clearStakeholders() { stakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } /** * repeated string stakeholders = 8; * @param value The bytes of the stakeholders to add. * @return This builder for chaining. */ public Builder addStakeholdersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStakeholdersIsMutable(); stakeholders_.add(value); bitField0_ |= 0x00000200; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSignatoriesIsMutable() { if (!signatories_.isModifiable()) { signatories_ = new com.google.protobuf.LazyStringArrayList(signatories_); } bitField0_ |= 0x00000400; } /** * repeated string signatories = 9; * @return A list containing the signatories. */ public com.google.protobuf.ProtocolStringList getSignatoriesList() { signatories_.makeImmutable(); return signatories_; } /** * repeated string signatories = 9; * @return The count of signatories. */ public int getSignatoriesCount() { return signatories_.size(); } /** * repeated string signatories = 9; * @param index The index of the element to return. * @return The signatories at the given index. */ public java.lang.String getSignatories(int index) { return signatories_.get(index); } /** * repeated string signatories = 9; * @param index The index of the value to return. * @return The bytes of the signatories at the given index. */ public com.google.protobuf.ByteString getSignatoriesBytes(int index) { return signatories_.getByteString(index); } /** * repeated string signatories = 9; * @param index The index to set the value at. * @param value The signatories to set. * @return This builder for chaining. */ public Builder setSignatories( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSignatoriesIsMutable(); signatories_.set(index, value); bitField0_ |= 0x00000400; onChanged(); return this; } /** * repeated string signatories = 9; * @param value The signatories to add. * @return This builder for chaining. */ public Builder addSignatories( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSignatoriesIsMutable(); signatories_.add(value); bitField0_ |= 0x00000400; onChanged(); return this; } /** * repeated string signatories = 9; * @param values The signatories to add. * @return This builder for chaining. */ public Builder addAllSignatories( java.lang.Iterable values) { ensureSignatoriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signatories_); bitField0_ |= 0x00000400; onChanged(); return this; } /** * repeated string signatories = 9; * @return This builder for chaining. */ public Builder clearSignatories() { signatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000400);; onChanged(); return this; } /** * repeated string signatories = 9; * @param value The bytes of the signatories to add. * @return This builder for chaining. */ public Builder addSignatoriesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSignatoriesIsMutable(); signatories_.add(value); bitField0_ |= 0x00000400; onChanged(); return this; } private com.daml.lf.value.ValueOuterClass.ContractId contractIdStruct_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder> contractIdStructBuilder_; /** * .com.daml.lf.value.ContractId contract_id_struct = 11; * @return Whether the contractIdStruct field is set. */ public boolean hasContractIdStruct() { return ((bitField0_ & 0x00000800) != 0); } /** * .com.daml.lf.value.ContractId contract_id_struct = 11; * @return The contractIdStruct. */ public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() { if (contractIdStructBuilder_ == null) { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } else { return contractIdStructBuilder_.getMessage(); } } /** * .com.daml.lf.value.ContractId contract_id_struct = 11; */ public Builder setContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) { if (contractIdStructBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractIdStruct_ = value; } else { contractIdStructBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 11; */ public Builder setContractIdStruct( com.daml.lf.value.ValueOuterClass.ContractId.Builder builderForValue) { if (contractIdStructBuilder_ == null) { contractIdStruct_ = builderForValue.build(); } else { contractIdStructBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 11; */ public Builder mergeContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) { if (contractIdStructBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && contractIdStruct_ != null && contractIdStruct_ != com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance()) { getContractIdStructBuilder().mergeFrom(value); } else { contractIdStruct_ = value; } } else { contractIdStructBuilder_.mergeFrom(value); } if (contractIdStruct_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 11; */ public Builder clearContractIdStruct() { bitField0_ = (bitField0_ & ~0x00000800); contractIdStruct_ = null; if (contractIdStructBuilder_ != null) { contractIdStructBuilder_.dispose(); contractIdStructBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 11; */ public com.daml.lf.value.ValueOuterClass.ContractId.Builder getContractIdStructBuilder() { bitField0_ |= 0x00000800; onChanged(); return getContractIdStructFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.ContractId contract_id_struct = 11; */ public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() { if (contractIdStructBuilder_ != null) { return contractIdStructBuilder_.getMessageOrBuilder(); } else { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } } /** * .com.daml.lf.value.ContractId contract_id_struct = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder> getContractIdStructFieldBuilder() { if (contractIdStructBuilder_ == null) { contractIdStructBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder>( getContractIdStruct(), getParentForChildren(), isClean()); contractIdStruct_ = null; } return contractIdStructBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder> resultVersionedBuilder_; /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; * @return Whether the resultVersioned field is set. */ @java.lang.Override public boolean hasResultVersioned() { return resultCase_ == 12; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; * @return The resultVersioned. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValue getResultVersioned() { if (resultVersionedBuilder_ == null) { if (resultCase_ == 12) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) result_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } else { if (resultCase_ == 12) { return resultVersionedBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; */ public Builder setResultVersioned(com.daml.lf.value.ValueOuterClass.VersionedValue value) { if (resultVersionedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultVersionedBuilder_.setMessage(value); } resultCase_ = 12; return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; */ public Builder setResultVersioned( com.daml.lf.value.ValueOuterClass.VersionedValue.Builder builderForValue) { if (resultVersionedBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultVersionedBuilder_.setMessage(builderForValue.build()); } resultCase_ = 12; return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; */ public Builder mergeResultVersioned(com.daml.lf.value.ValueOuterClass.VersionedValue value) { if (resultVersionedBuilder_ == null) { if (resultCase_ == 12 && result_ != com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance()) { result_ = com.daml.lf.value.ValueOuterClass.VersionedValue.newBuilder((com.daml.lf.value.ValueOuterClass.VersionedValue) result_) .mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { if (resultCase_ == 12) { resultVersionedBuilder_.mergeFrom(value); } else { resultVersionedBuilder_.setMessage(value); } } resultCase_ = 12; return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; */ public Builder clearResultVersioned() { if (resultVersionedBuilder_ == null) { if (resultCase_ == 12) { resultCase_ = 0; result_ = null; onChanged(); } } else { if (resultCase_ == 12) { resultCase_ = 0; result_ = null; } resultVersionedBuilder_.clear(); } return this; } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; */ public com.daml.lf.value.ValueOuterClass.VersionedValue.Builder getResultVersionedBuilder() { return getResultVersionedFieldBuilder().getBuilder(); } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder getResultVersionedOrBuilder() { if ((resultCase_ == 12) && (resultVersionedBuilder_ != null)) { return resultVersionedBuilder_.getMessageOrBuilder(); } else { if (resultCase_ == 12) { return (com.daml.lf.value.ValueOuterClass.VersionedValue) result_; } return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } } /** *
       * *must not be used*
       * 
* * .com.daml.lf.value.VersionedValue result_versioned = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder> getResultVersionedFieldBuilder() { if (resultVersionedBuilder_ == null) { if (!(resultCase_ == 12)) { result_ = com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance(); } resultVersionedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.VersionedValue, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder, com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder>( (com.daml.lf.value.ValueOuterClass.VersionedValue) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 12; onChanged(); return resultVersionedBuilder_; } /** * bytes result_unversioned = 17; * @return Whether the resultUnversioned field is set. */ public boolean hasResultUnversioned() { return resultCase_ == 17; } /** * bytes result_unversioned = 17; * @return The resultUnversioned. */ public com.google.protobuf.ByteString getResultUnversioned() { if (resultCase_ == 17) { return (com.google.protobuf.ByteString) result_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes result_unversioned = 17; * @param value The resultUnversioned to set. * @return This builder for chaining. */ public Builder setResultUnversioned(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } resultCase_ = 17; result_ = value; onChanged(); return this; } /** * bytes result_unversioned = 17; * @return This builder for chaining. */ public Builder clearResultUnversioned() { if (resultCase_ == 17) { resultCase_ = 0; result_ = null; 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
       * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; * @return Whether the keyWithMaintainers field is set. */ public boolean hasKeyWithMaintainers() { return ((bitField0_ & 0x00004000) != 0); } /** *
       * optional
       * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; * @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(); } } /** *
       * optional
       * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; */ 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_ |= 0x00004000; onChanged(); return this; } /** *
       * optional
       * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; */ public Builder setKeyWithMaintainers( com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder builderForValue) { if (keyWithMaintainersBuilder_ == null) { keyWithMaintainers_ = builderForValue.build(); } else { keyWithMaintainersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       * optional
       * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; */ public Builder mergeKeyWithMaintainers(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers value) { if (keyWithMaintainersBuilder_ == null) { if (((bitField0_ & 0x00004000) != 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_ |= 0x00004000; onChanged(); } return this; } /** *
       * optional
       * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; */ public Builder clearKeyWithMaintainers() { bitField0_ = (bitField0_ & ~0x00004000); keyWithMaintainers_ = null; if (keyWithMaintainersBuilder_ != null) { keyWithMaintainersBuilder_.dispose(); keyWithMaintainersBuilder_ = null; } onChanged(); return this; } /** *
       * optional
       * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; */ public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder getKeyWithMaintainersBuilder() { bitField0_ |= 0x00004000; onChanged(); return getKeyWithMaintainersFieldBuilder().getBuilder(); } /** *
       * optional
       * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; */ 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_; } } /** *
       * optional
       * 
* * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 14; */ 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.LazyStringArrayList observers_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureObserversIsMutable() { if (!observers_.isModifiable()) { observers_ = new com.google.protobuf.LazyStringArrayList(observers_); } bitField0_ |= 0x00008000; } /** * repeated string observers = 15; * @return A list containing the observers. */ public com.google.protobuf.ProtocolStringList getObserversList() { observers_.makeImmutable(); return observers_; } /** * repeated string observers = 15; * @return The count of observers. */ public int getObserversCount() { return observers_.size(); } /** * repeated string observers = 15; * @param index The index of the element to return. * @return The observers at the given index. */ public java.lang.String getObservers(int index) { return observers_.get(index); } /** * repeated string observers = 15; * @param index The index of the value to return. * @return The bytes of the observers at the given index. */ public com.google.protobuf.ByteString getObserversBytes(int index) { return observers_.getByteString(index); } /** * repeated string observers = 15; * @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_ |= 0x00008000; onChanged(); return this; } /** * repeated string observers = 15; * @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_ |= 0x00008000; onChanged(); return this; } /** * repeated string observers = 15; * @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_ |= 0x00008000; onChanged(); return this; } /** * repeated string observers = 15; * @return This builder for chaining. */ public Builder clearObservers() { observers_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00008000);; onChanged(); return this; } /** * repeated string observers = 15; * @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_ |= 0x00008000; 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_ |= 0x00010000; } /** *
       * No listed authorizers indicates default authorizers (signatories + actors)
       * 
* * repeated string authorizers = 20; * @return A list containing the authorizers. */ public com.google.protobuf.ProtocolStringList getAuthorizersList() { authorizers_.makeImmutable(); return authorizers_; } /** *
       * No listed authorizers indicates default authorizers (signatories + actors)
       * 
* * repeated string authorizers = 20; * @return The count of authorizers. */ public int getAuthorizersCount() { return authorizers_.size(); } /** *
       * No listed authorizers indicates default authorizers (signatories + actors)
       * 
* * repeated string authorizers = 20; * @param index The index of the element to return. * @return The authorizers at the given index. */ public java.lang.String getAuthorizers(int index) { return authorizers_.get(index); } /** *
       * No listed authorizers indicates default authorizers (signatories + actors)
       * 
* * repeated string authorizers = 20; * @param index The index of the value to return. * @return The bytes of the authorizers at the given index. */ public com.google.protobuf.ByteString getAuthorizersBytes(int index) { return authorizers_.getByteString(index); } /** *
       * No listed authorizers indicates default authorizers (signatories + actors)
       * 
* * repeated string authorizers = 20; * @param index The index to set the value at. * @param value The authorizers to set. * @return This builder for chaining. */ public Builder setAuthorizers( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthorizersIsMutable(); authorizers_.set(index, value); bitField0_ |= 0x00010000; onChanged(); return this; } /** *
       * No listed authorizers indicates default authorizers (signatories + actors)
       * 
* * repeated string authorizers = 20; * @param value The authorizers to add. * @return This builder for chaining. */ public Builder addAuthorizers( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthorizersIsMutable(); authorizers_.add(value); bitField0_ |= 0x00010000; onChanged(); return this; } /** *
       * No listed authorizers indicates default authorizers (signatories + actors)
       * 
* * repeated string authorizers = 20; * @param values The authorizers to add. * @return This builder for chaining. */ public Builder addAllAuthorizers( java.lang.Iterable values) { ensureAuthorizersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, authorizers_); bitField0_ |= 0x00010000; onChanged(); return this; } /** *
       * No listed authorizers indicates default authorizers (signatories + actors)
       * 
* * repeated string authorizers = 20; * @return This builder for chaining. */ public Builder clearAuthorizers() { authorizers_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00010000);; onChanged(); return this; } /** *
       * No listed authorizers indicates default authorizers (signatories + actors)
       * 
* * repeated string authorizers = 20; * @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_ |= 0x00010000; onChanged(); return this; } private boolean byKey_ ; /** * bool by_key = 18; * @return The byKey. */ @java.lang.Override public boolean getByKey() { return byKey_; } /** * bool by_key = 18; * @param value The byKey to set. * @return This builder for chaining. */ public Builder setByKey(boolean value) { byKey_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** * bool by_key = 18; * @return This builder for chaining. */ public Builder clearByKey() { bitField0_ = (bitField0_ & ~0x00020000); byKey_ = false; 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.NodeExercise) } // @@protoc_insertion_point(class_scope:com.daml.lf.transaction.NodeExercise) private static final com.daml.lf.transaction.TransactionOuterClass.NodeExercise DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.NodeExercise(); } public static com.daml.lf.transaction.TransactionOuterClass.NodeExercise getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeExercise 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.NodeExercise getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeLookupByKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.NodeLookupByKey) com.google.protobuf.MessageOrBuilder { /** *
     * required *since dev*
     * 
* * string package_name = 5; * @return The packageName. */ java.lang.String getPackageName(); /** *
     * required *since dev*
     * 
* * string package_name = 5; * @return The bytes for packageName. */ com.google.protobuf.ByteString getPackageNameBytes(); /** * .com.daml.lf.value.Identifier template_id = 1; * @return Whether the templateId field is set. */ boolean hasTemplateId(); /** * .com.daml.lf.value.Identifier template_id = 1; * @return The templateId. */ com.daml.lf.value.ValueOuterClass.Identifier getTemplateId(); /** * .com.daml.lf.value.Identifier template_id = 1; */ com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder(); /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 2; * @return Whether the keyWithMaintainers field is set. */ boolean hasKeyWithMaintainers(); /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 2; * @return The keyWithMaintainers. */ com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getKeyWithMaintainers(); /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 2; */ com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getKeyWithMaintainersOrBuilder(); /** * .com.daml.lf.value.ContractId contract_id_struct = 4; * @return Whether the contractIdStruct field is set. */ boolean hasContractIdStruct(); /** * .com.daml.lf.value.ContractId contract_id_struct = 4; * @return The contractIdStruct. */ com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct(); /** * .com.daml.lf.value.ContractId contract_id_struct = 4; */ com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder(); } /** * Protobuf type {@code com.daml.lf.transaction.NodeLookupByKey} */ public static final class NodeLookupByKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.transaction.NodeLookupByKey) NodeLookupByKeyOrBuilder { private static final long serialVersionUID = 0L; // Use NodeLookupByKey.newBuilder() to construct. private NodeLookupByKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeLookupByKey() { packageName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeLookupByKey(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeLookupByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeLookupByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.class, com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.Builder.class); } private int bitField0_; public static final int PACKAGE_NAME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object packageName_ = ""; /** *
     * required *since dev*
     * 
* * string package_name = 5; * @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; } } /** *
     * required *since dev*
     * 
* * string package_name = 5; * @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 = 1; private com.daml.lf.value.ValueOuterClass.Identifier templateId_; /** * .com.daml.lf.value.Identifier template_id = 1; * @return Whether the templateId field is set. */ @java.lang.Override public boolean hasTemplateId() { return ((bitField0_ & 0x00000001) != 0); } /** * .com.daml.lf.value.Identifier template_id = 1; * @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 = 1; */ @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 = 2; private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers keyWithMaintainers_; /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 2; * @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 = 2; * @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 = 2; */ @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_STRUCT_FIELD_NUMBER = 4; private com.daml.lf.value.ValueOuterClass.ContractId contractIdStruct_; /** * .com.daml.lf.value.ContractId contract_id_struct = 4; * @return Whether the contractIdStruct field is set. */ @java.lang.Override public boolean hasContractIdStruct() { return ((bitField0_ & 0x00000004) != 0); } /** * .com.daml.lf.value.ContractId contract_id_struct = 4; * @return The contractIdStruct. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } /** * .com.daml.lf.value.ContractId contract_id_struct = 4; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplateId()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getKeyWithMaintainers()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getContractIdStruct()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, packageName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplateId()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getKeyWithMaintainers()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getContractIdStruct()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, packageName_); } 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.NodeLookupByKey)) { return super.equals(obj); } com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey other = (com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey) 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 (hasContractIdStruct() != other.hasContractIdStruct()) return false; if (hasContractIdStruct()) { if (!getContractIdStruct() .equals(other.getContractIdStruct())) 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(); } if (hasContractIdStruct()) { hash = (37 * hash) + CONTRACT_ID_STRUCT_FIELD_NUMBER; hash = (53 * hash) + getContractIdStruct().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey 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.NodeLookupByKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey 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.NodeLookupByKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey 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.NodeLookupByKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey 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.NodeLookupByKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey 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.NodeLookupByKey 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.NodeLookupByKey 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.NodeLookupByKey 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.NodeLookupByKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.NodeLookupByKey) com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeLookupByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeLookupByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.class, com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.Builder.class); } // Construct using com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.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(); getContractIdStructFieldBuilder(); } } @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; } contractIdStruct_ = null; if (contractIdStructBuilder_ != null) { contractIdStructBuilder_.dispose(); contractIdStructBuilder_ = 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_NodeLookupByKey_descriptor; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey getDefaultInstanceForType() { return com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.getDefaultInstance(); } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey build() { com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey buildPartial() { com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey result = new com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey 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.contractIdStruct_ = contractIdStructBuilder_ == null ? contractIdStruct_ : contractIdStructBuilder_.build(); to_bitField0_ |= 0x00000004; } 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.NodeLookupByKey) { return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey other) { if (other == com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey.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.hasContractIdStruct()) { mergeContractIdStruct(other.getContractIdStruct()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 10 case 18: { input.readMessage( getKeyWithMaintainersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 34: { input.readMessage( getContractIdStructFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { packageName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 42 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_ = ""; /** *
       * required *since dev*
       * 
* * string package_name = 5; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 5; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 5; * @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; } /** *
       * required *since dev*
       * 
* * string package_name = 5; * @return This builder for chaining. */ public Builder clearPackageName() { packageName_ = getDefaultInstance().getPackageName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * required *since dev*
       * 
* * string package_name = 5; * @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 = 1; * @return Whether the templateId field is set. */ public boolean hasTemplateId() { return ((bitField0_ & 0x00000002) != 0); } /** * .com.daml.lf.value.Identifier template_id = 1; * @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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ public com.daml.lf.value.ValueOuterClass.Identifier.Builder getTemplateIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTemplateIdFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Identifier template_id = 1; */ 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 = 1; */ 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 = 2; * @return Whether the keyWithMaintainers field is set. */ public boolean hasKeyWithMaintainers() { return ((bitField0_ & 0x00000004) != 0); } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 2; * @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 = 2; */ 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 = 2; */ 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 = 2; */ 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 = 2; */ 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 = 2; */ public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder getKeyWithMaintainersBuilder() { bitField0_ |= 0x00000004; onChanged(); return getKeyWithMaintainersFieldBuilder().getBuilder(); } /** * .com.daml.lf.transaction.KeyWithMaintainers key_with_maintainers = 2; */ 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 = 2; */ 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.daml.lf.value.ValueOuterClass.ContractId contractIdStruct_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder> contractIdStructBuilder_; /** * .com.daml.lf.value.ContractId contract_id_struct = 4; * @return Whether the contractIdStruct field is set. */ public boolean hasContractIdStruct() { return ((bitField0_ & 0x00000008) != 0); } /** * .com.daml.lf.value.ContractId contract_id_struct = 4; * @return The contractIdStruct. */ public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() { if (contractIdStructBuilder_ == null) { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } else { return contractIdStructBuilder_.getMessage(); } } /** * .com.daml.lf.value.ContractId contract_id_struct = 4; */ public Builder setContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) { if (contractIdStructBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractIdStruct_ = value; } else { contractIdStructBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 4; */ public Builder setContractIdStruct( com.daml.lf.value.ValueOuterClass.ContractId.Builder builderForValue) { if (contractIdStructBuilder_ == null) { contractIdStruct_ = builderForValue.build(); } else { contractIdStructBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 4; */ public Builder mergeContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) { if (contractIdStructBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && contractIdStruct_ != null && contractIdStruct_ != com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance()) { getContractIdStructBuilder().mergeFrom(value); } else { contractIdStruct_ = value; } } else { contractIdStructBuilder_.mergeFrom(value); } if (contractIdStruct_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 4; */ public Builder clearContractIdStruct() { bitField0_ = (bitField0_ & ~0x00000008); contractIdStruct_ = null; if (contractIdStructBuilder_ != null) { contractIdStructBuilder_.dispose(); contractIdStructBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 4; */ public com.daml.lf.value.ValueOuterClass.ContractId.Builder getContractIdStructBuilder() { bitField0_ |= 0x00000008; onChanged(); return getContractIdStructFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.ContractId contract_id_struct = 4; */ public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() { if (contractIdStructBuilder_ != null) { return contractIdStructBuilder_.getMessageOrBuilder(); } else { return contractIdStruct_ == null ? com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance() : contractIdStruct_; } } /** * .com.daml.lf.value.ContractId contract_id_struct = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder> getContractIdStructFieldBuilder() { if (contractIdStructBuilder_ == null) { contractIdStructBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.ContractId, com.daml.lf.value.ValueOuterClass.ContractId.Builder, com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder>( getContractIdStruct(), getParentForChildren(), isClean()); contractIdStruct_ = null; } return contractIdStructBuilder_; } @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.NodeLookupByKey) } // @@protoc_insertion_point(class_scope:com.daml.lf.transaction.NodeLookupByKey) private static final com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey(); } public static com.daml.lf.transaction.TransactionOuterClass.NodeLookupByKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeLookupByKey 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.NodeLookupByKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeRollbackOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.NodeRollback) 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.NodeRollback} */ public static final class NodeRollback extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.transaction.NodeRollback) NodeRollbackOrBuilder { private static final long serialVersionUID = 0L; // Use NodeRollback.newBuilder() to construct. private NodeRollback(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeRollback() { children_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeRollback(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeRollback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeRollback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.NodeRollback.class, com.daml.lf.transaction.TransactionOuterClass.NodeRollback.Builder.class); } public static final int CHILDREN_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList children_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * node ids
     * 
* * repeated string children = 1; * @return A list containing the children. */ public com.google.protobuf.ProtocolStringList getChildrenList() { return children_; } /** *
     * node ids
     * 
* * repeated string children = 1; * @return The count of children. */ public int getChildrenCount() { return children_.size(); } /** *
     * node ids
     * 
* * repeated string children = 1; * @param index The index of the element to return. * @return The children at the given index. */ public java.lang.String getChildren(int index) { return children_.get(index); } /** *
     * node ids
     * 
* * repeated string children = 1; * @param index The index of the value to return. * @return The bytes of the children at the given index. */ public com.google.protobuf.ByteString getChildrenBytes(int index) { return children_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < children_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, children_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < children_.size(); i++) { dataSize += computeStringSizeNoTag(children_.getRaw(i)); } size += dataSize; size += 1 * getChildrenList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.lf.transaction.TransactionOuterClass.NodeRollback)) { return super.equals(obj); } com.daml.lf.transaction.TransactionOuterClass.NodeRollback other = (com.daml.lf.transaction.TransactionOuterClass.NodeRollback) obj; if (!getChildrenList() .equals(other.getChildrenList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getChildrenCount() > 0) { hash = (37 * hash) + CHILDREN_FIELD_NUMBER; hash = (53 * hash) + getChildrenList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.lf.transaction.TransactionOuterClass.NodeRollback prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.daml.lf.transaction.NodeRollback} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.NodeRollback) com.daml.lf.transaction.TransactionOuterClass.NodeRollbackOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeRollback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeRollback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.NodeRollback.class, com.daml.lf.transaction.TransactionOuterClass.NodeRollback.Builder.class); } // Construct using com.daml.lf.transaction.TransactionOuterClass.NodeRollback.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; children_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_NodeRollback_descriptor; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeRollback getDefaultInstanceForType() { return com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance(); } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeRollback build() { com.daml.lf.transaction.TransactionOuterClass.NodeRollback result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeRollback buildPartial() { com.daml.lf.transaction.TransactionOuterClass.NodeRollback result = new com.daml.lf.transaction.TransactionOuterClass.NodeRollback(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.NodeRollback result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { children_.makeImmutable(); result.children_ = children_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.transaction.TransactionOuterClass.NodeRollback) { return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.NodeRollback)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.NodeRollback other) { if (other == com.daml.lf.transaction.TransactionOuterClass.NodeRollback.getDefaultInstance()) return this; if (!other.children_.isEmpty()) { if (children_.isEmpty()) { children_ = other.children_; bitField0_ |= 0x00000001; } else { ensureChildrenIsMutable(); children_.addAll(other.children_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureChildrenIsMutable(); children_.add(s); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList children_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureChildrenIsMutable() { if (!children_.isModifiable()) { children_ = new com.google.protobuf.LazyStringArrayList(children_); } bitField0_ |= 0x00000001; } /** *
       * node ids
       * 
* * repeated string children = 1; * @return A list containing the children. */ public com.google.protobuf.ProtocolStringList getChildrenList() { children_.makeImmutable(); return children_; } /** *
       * node ids
       * 
* * repeated string children = 1; * @return The count of children. */ public int getChildrenCount() { return children_.size(); } /** *
       * node ids
       * 
* * repeated string children = 1; * @param index The index of the element to return. * @return The children at the given index. */ public java.lang.String getChildren(int index) { return children_.get(index); } /** *
       * node ids
       * 
* * repeated string children = 1; * @param index The index of the value to return. * @return The bytes of the children at the given index. */ public com.google.protobuf.ByteString getChildrenBytes(int index) { return children_.getByteString(index); } /** *
       * node ids
       * 
* * repeated string children = 1; * @param index The index to set the value at. * @param value The children to set. * @return This builder for chaining. */ public Builder setChildren( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * node ids
       * 
* * repeated string children = 1; * @param value The children to add. * @return This builder for chaining. */ public Builder addChildren( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * node ids
       * 
* * repeated string children = 1; * @param values The children to add. * @return This builder for chaining. */ public Builder addAllChildren( java.lang.Iterable values) { ensureChildrenIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, children_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * node ids
       * 
* * repeated string children = 1; * @return This builder for chaining. */ public Builder clearChildren() { children_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** *
       * node ids
       * 
* * repeated string children = 1; * @param value The bytes of the children to add. * @return This builder for chaining. */ public Builder addChildrenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureChildrenIsMutable(); children_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.lf.transaction.NodeRollback) } // @@protoc_insertion_point(class_scope:com.daml.lf.transaction.NodeRollback) private static final com.daml.lf.transaction.TransactionOuterClass.NodeRollback DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.NodeRollback(); } public static com.daml.lf.transaction.TransactionOuterClass.NodeRollback getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeRollback parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.NodeRollback getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VersionedOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.Versioned) com.google.protobuf.MessageOrBuilder { /** * string version = 1; * @return The version. */ java.lang.String getVersion(); /** * string version = 1; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * bytes payload = 2; * @return The payload. */ com.google.protobuf.ByteString getPayload(); } /** * Protobuf type {@code com.daml.lf.transaction.Versioned} */ public static final class Versioned extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.transaction.Versioned) VersionedOrBuilder { private static final long serialVersionUID = 0L; // Use Versioned.newBuilder() to construct. private Versioned(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Versioned() { version_ = ""; payload_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Versioned(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Versioned_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Versioned_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.Versioned.class, com.daml.lf.transaction.TransactionOuterClass.Versioned.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** * string version = 1; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** * string version = 1; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * bytes payload = 2; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } if (!payload_.isEmpty()) { output.writeBytes(2, payload_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, payload_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.lf.transaction.TransactionOuterClass.Versioned)) { return super.equals(obj); } com.daml.lf.transaction.TransactionOuterClass.Versioned other = (com.daml.lf.transaction.TransactionOuterClass.Versioned) obj; if (!getVersion() .equals(other.getVersion())) return false; if (!getPayload() .equals(other.getPayload())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.lf.transaction.TransactionOuterClass.Versioned prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.daml.lf.transaction.Versioned} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.Versioned) com.daml.lf.transaction.TransactionOuterClass.VersionedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Versioned_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Versioned_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.Versioned.class, com.daml.lf.transaction.TransactionOuterClass.Versioned.Builder.class); } // Construct using com.daml.lf.transaction.TransactionOuterClass.Versioned.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; version_ = ""; payload_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_Versioned_descriptor; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.Versioned getDefaultInstanceForType() { return com.daml.lf.transaction.TransactionOuterClass.Versioned.getDefaultInstance(); } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.Versioned build() { com.daml.lf.transaction.TransactionOuterClass.Versioned result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.Versioned buildPartial() { com.daml.lf.transaction.TransactionOuterClass.Versioned result = new com.daml.lf.transaction.TransactionOuterClass.Versioned(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.Versioned result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.version_ = version_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.payload_ = payload_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.transaction.TransactionOuterClass.Versioned) { return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.Versioned)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.Versioned other) { if (other == com.daml.lf.transaction.TransactionOuterClass.Versioned.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; bitField0_ |= 0x00000001; onChanged(); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { payload_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object version_ = ""; /** * string version = 1; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * string version = 1; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string version = 1; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string version = 1; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string version = 1; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * bytes payload = 2; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** * bytes payload = 2; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes payload = 2; * @return This builder for chaining. */ public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000002); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.lf.transaction.Versioned) } // @@protoc_insertion_point(class_scope:com.daml.lf.transaction.Versioned) private static final com.daml.lf.transaction.TransactionOuterClass.Versioned DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.transaction.TransactionOuterClass.Versioned(); } public static com.daml.lf.transaction.TransactionOuterClass.Versioned getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Versioned parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.Versioned getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FatContractInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.transaction.FatContractInstance) com.google.protobuf.MessageOrBuilder { /** * bytes contract_id = 1; * @return The contractId. */ com.google.protobuf.ByteString getContractId(); /** *
     * required *since dev*
     * 
* * string package_name = 9; * @return The packageName. */ java.lang.String getPackageName(); /** *
     * required *since dev*
     * 
* * string package_name = 9; * @return The bytes for packageName. */ com.google.protobuf.ByteString getPackageNameBytes(); /** * .com.daml.lf.value.Identifier template_id = 2; * @return Whether the templateId field is set. */ boolean hasTemplateId(); /** * .com.daml.lf.value.Identifier template_id = 2; * @return The templateId. */ com.daml.lf.value.ValueOuterClass.Identifier getTemplateId(); /** * .com.daml.lf.value.Identifier template_id = 2; */ com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder(); /** * bytes create_arg = 3; * @return The createArg. */ com.google.protobuf.ByteString getCreateArg(); /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; * @return Whether the contractKeyWithMaintainers field is set. */ boolean hasContractKeyWithMaintainers(); /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; * @return The contractKeyWithMaintainers. */ com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getContractKeyWithMaintainers(); /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; */ com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getContractKeyWithMaintainersOrBuilder(); /** * repeated string non_maintainer_signatories = 5; * @return A list containing the nonMaintainerSignatories. */ java.util.List getNonMaintainerSignatoriesList(); /** * repeated string non_maintainer_signatories = 5; * @return The count of nonMaintainerSignatories. */ int getNonMaintainerSignatoriesCount(); /** * repeated string non_maintainer_signatories = 5; * @param index The index of the element to return. * @return The nonMaintainerSignatories at the given index. */ java.lang.String getNonMaintainerSignatories(int index); /** * repeated string non_maintainer_signatories = 5; * @param index The index of the value to return. * @return The bytes of the nonMaintainerSignatories at the given index. */ com.google.protobuf.ByteString getNonMaintainerSignatoriesBytes(int index); /** * repeated string non_signatory_stakeholders = 6; * @return A list containing the nonSignatoryStakeholders. */ java.util.List getNonSignatoryStakeholdersList(); /** * repeated string non_signatory_stakeholders = 6; * @return The count of nonSignatoryStakeholders. */ int getNonSignatoryStakeholdersCount(); /** * repeated string non_signatory_stakeholders = 6; * @param index The index of the element to return. * @return The nonSignatoryStakeholders at the given index. */ java.lang.String getNonSignatoryStakeholders(int index); /** * repeated string non_signatory_stakeholders = 6; * @param index The index of the value to return. * @return The bytes of the nonSignatoryStakeholders at the given index. */ com.google.protobuf.ByteString getNonSignatoryStakeholdersBytes(int index); /** * sfixed64 created_at = 7; * @return The createdAt. */ long getCreatedAt(); /** * bytes canton_data = 8; * @return The cantonData. */ com.google.protobuf.ByteString getCantonData(); } /** *
   * A self contains representation of a committed contract.
   * 
* * Protobuf type {@code com.daml.lf.transaction.FatContractInstance} */ public static final class FatContractInstance extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.transaction.FatContractInstance) FatContractInstanceOrBuilder { private static final long serialVersionUID = 0L; // Use FatContractInstance.newBuilder() to construct. private FatContractInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FatContractInstance() { contractId_ = com.google.protobuf.ByteString.EMPTY; packageName_ = ""; createArg_ = com.google.protobuf.ByteString.EMPTY; nonMaintainerSignatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); nonSignatoryStakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); cantonData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FatContractInstance(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_FatContractInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_FatContractInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.class, com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.Builder.class); } private int bitField0_; public static final int CONTRACT_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString contractId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_id = 1; * @return The contractId. */ @java.lang.Override public com.google.protobuf.ByteString getContractId() { return contractId_; } public static final int PACKAGE_NAME_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object packageName_ = ""; /** *
     * required *since dev*
     * 
* * string package_name = 9; * @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; } } /** *
     * required *since dev*
     * 
* * string package_name = 9; * @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 CREATE_ARG_FIELD_NUMBER = 3; private com.google.protobuf.ByteString createArg_ = com.google.protobuf.ByteString.EMPTY; /** * bytes create_arg = 3; * @return The createArg. */ @java.lang.Override public com.google.protobuf.ByteString getCreateArg() { return createArg_; } public static final int CONTRACT_KEY_WITH_MAINTAINERS_FIELD_NUMBER = 4; private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers contractKeyWithMaintainers_; /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; * @return Whether the contractKeyWithMaintainers field is set. */ @java.lang.Override public boolean hasContractKeyWithMaintainers() { return ((bitField0_ & 0x00000002) != 0); } /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; * @return The contractKeyWithMaintainers. */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getContractKeyWithMaintainers() { return contractKeyWithMaintainers_ == null ? com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance() : contractKeyWithMaintainers_; } /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; */ @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getContractKeyWithMaintainersOrBuilder() { return contractKeyWithMaintainers_ == null ? com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance() : contractKeyWithMaintainers_; } public static final int NON_MAINTAINER_SIGNATORIES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList nonMaintainerSignatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string non_maintainer_signatories = 5; * @return A list containing the nonMaintainerSignatories. */ public com.google.protobuf.ProtocolStringList getNonMaintainerSignatoriesList() { return nonMaintainerSignatories_; } /** * repeated string non_maintainer_signatories = 5; * @return The count of nonMaintainerSignatories. */ public int getNonMaintainerSignatoriesCount() { return nonMaintainerSignatories_.size(); } /** * repeated string non_maintainer_signatories = 5; * @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 = 5; * @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 = 6; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList nonSignatoryStakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string non_signatory_stakeholders = 6; * @return A list containing the nonSignatoryStakeholders. */ public com.google.protobuf.ProtocolStringList getNonSignatoryStakeholdersList() { return nonSignatoryStakeholders_; } /** * repeated string non_signatory_stakeholders = 6; * @return The count of nonSignatoryStakeholders. */ public int getNonSignatoryStakeholdersCount() { return nonSignatoryStakeholders_.size(); } /** * repeated string non_signatory_stakeholders = 6; * @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 = 6; * @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 CREATED_AT_FIELD_NUMBER = 7; private long createdAt_ = 0L; /** * sfixed64 created_at = 7; * @return The createdAt. */ @java.lang.Override public long getCreatedAt() { return createdAt_; } public static final int CANTON_DATA_FIELD_NUMBER = 8; private com.google.protobuf.ByteString cantonData_ = com.google.protobuf.ByteString.EMPTY; /** * bytes canton_data = 8; * @return The cantonData. */ @java.lang.Override public com.google.protobuf.ByteString getCantonData() { return cantonData_; } 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 (!contractId_.isEmpty()) { output.writeBytes(1, contractId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTemplateId()); } if (!createArg_.isEmpty()) { output.writeBytes(3, createArg_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getContractKeyWithMaintainers()); } for (int i = 0; i < nonMaintainerSignatories_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nonMaintainerSignatories_.getRaw(i)); } for (int i = 0; i < nonSignatoryStakeholders_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, nonSignatoryStakeholders_.getRaw(i)); } if (createdAt_ != 0L) { output.writeSFixed64(7, createdAt_); } if (!cantonData_.isEmpty()) { output.writeBytes(8, cantonData_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, packageName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!contractId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, contractId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTemplateId()); } if (!createArg_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, createArg_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getContractKeyWithMaintainers()); } { int dataSize = 0; for (int i = 0; i < nonMaintainerSignatories_.size(); i++) { dataSize += computeStringSizeNoTag(nonMaintainerSignatories_.getRaw(i)); } size += dataSize; size += 1 * getNonMaintainerSignatoriesList().size(); } { int dataSize = 0; for (int i = 0; i < nonSignatoryStakeholders_.size(); i++) { dataSize += computeStringSizeNoTag(nonSignatoryStakeholders_.getRaw(i)); } size += dataSize; size += 1 * getNonSignatoryStakeholdersList().size(); } if (createdAt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(7, createdAt_); } if (!cantonData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, cantonData_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, packageName_); } 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.FatContractInstance)) { return super.equals(obj); } com.daml.lf.transaction.TransactionOuterClass.FatContractInstance other = (com.daml.lf.transaction.TransactionOuterClass.FatContractInstance) obj; if (!getContractId() .equals(other.getContractId())) return false; if (!getPackageName() .equals(other.getPackageName())) return false; if (hasTemplateId() != other.hasTemplateId()) return false; if (hasTemplateId()) { if (!getTemplateId() .equals(other.getTemplateId())) return false; } if (!getCreateArg() .equals(other.getCreateArg())) return false; if (hasContractKeyWithMaintainers() != other.hasContractKeyWithMaintainers()) return false; if (hasContractKeyWithMaintainers()) { if (!getContractKeyWithMaintainers() .equals(other.getContractKeyWithMaintainers())) return false; } if (!getNonMaintainerSignatoriesList() .equals(other.getNonMaintainerSignatoriesList())) return false; if (!getNonSignatoryStakeholdersList() .equals(other.getNonSignatoryStakeholdersList())) return false; if (getCreatedAt() != other.getCreatedAt()) return false; if (!getCantonData() .equals(other.getCantonData())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONTRACT_ID_FIELD_NUMBER; hash = (53 * hash) + getContractId().hashCode(); hash = (37 * hash) + PACKAGE_NAME_FIELD_NUMBER; hash = (53 * hash) + getPackageName().hashCode(); if (hasTemplateId()) { hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER; hash = (53 * hash) + getTemplateId().hashCode(); } hash = (37 * hash) + CREATE_ARG_FIELD_NUMBER; hash = (53 * hash) + getCreateArg().hashCode(); if (hasContractKeyWithMaintainers()) { hash = (37 * hash) + CONTRACT_KEY_WITH_MAINTAINERS_FIELD_NUMBER; hash = (53 * hash) + getContractKeyWithMaintainers().hashCode(); } if (getNonMaintainerSignatoriesCount() > 0) { hash = (37 * hash) + NON_MAINTAINER_SIGNATORIES_FIELD_NUMBER; hash = (53 * hash) + getNonMaintainerSignatoriesList().hashCode(); } if (getNonSignatoryStakeholdersCount() > 0) { hash = (37 * hash) + NON_SIGNATORY_STAKEHOLDERS_FIELD_NUMBER; hash = (53 * hash) + getNonSignatoryStakeholdersList().hashCode(); } hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreatedAt()); hash = (37 * hash) + CANTON_DATA_FIELD_NUMBER; hash = (53 * hash) + getCantonData().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.transaction.TransactionOuterClass.FatContractInstance parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.FatContractInstance 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.FatContractInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.FatContractInstance 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.FatContractInstance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.transaction.TransactionOuterClass.FatContractInstance 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.FatContractInstance parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.FatContractInstance 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.FatContractInstance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.transaction.TransactionOuterClass.FatContractInstance 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.FatContractInstance 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.FatContractInstance 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.FatContractInstance 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; } /** *
     * A self contains representation of a committed contract.
     * 
* * Protobuf type {@code com.daml.lf.transaction.FatContractInstance} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.transaction.FatContractInstance) com.daml.lf.transaction.TransactionOuterClass.FatContractInstanceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_FatContractInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.transaction.TransactionOuterClass.internal_static_com_daml_lf_transaction_FatContractInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.class, com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.Builder.class); } // Construct using com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.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(); getContractKeyWithMaintainersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; contractId_ = com.google.protobuf.ByteString.EMPTY; packageName_ = ""; templateId_ = null; if (templateIdBuilder_ != null) { templateIdBuilder_.dispose(); templateIdBuilder_ = null; } createArg_ = com.google.protobuf.ByteString.EMPTY; contractKeyWithMaintainers_ = null; if (contractKeyWithMaintainersBuilder_ != null) { contractKeyWithMaintainersBuilder_.dispose(); contractKeyWithMaintainersBuilder_ = null; } nonMaintainerSignatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); nonSignatoryStakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); createdAt_ = 0L; cantonData_ = 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_FatContractInstance_descriptor; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.FatContractInstance getDefaultInstanceForType() { return com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.getDefaultInstance(); } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.FatContractInstance build() { com.daml.lf.transaction.TransactionOuterClass.FatContractInstance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.transaction.TransactionOuterClass.FatContractInstance buildPartial() { com.daml.lf.transaction.TransactionOuterClass.FatContractInstance result = new com.daml.lf.transaction.TransactionOuterClass.FatContractInstance(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.transaction.TransactionOuterClass.FatContractInstance result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.contractId_ = contractId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.packageName_ = packageName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.templateId_ = templateIdBuilder_ == null ? templateId_ : templateIdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.createArg_ = createArg_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.contractKeyWithMaintainers_ = contractKeyWithMaintainersBuilder_ == null ? contractKeyWithMaintainers_ : contractKeyWithMaintainersBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { nonMaintainerSignatories_.makeImmutable(); result.nonMaintainerSignatories_ = nonMaintainerSignatories_; } if (((from_bitField0_ & 0x00000040) != 0)) { nonSignatoryStakeholders_.makeImmutable(); result.nonSignatoryStakeholders_ = nonSignatoryStakeholders_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.createdAt_ = createdAt_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.cantonData_ = cantonData_; } 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.FatContractInstance) { return mergeFrom((com.daml.lf.transaction.TransactionOuterClass.FatContractInstance)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.transaction.TransactionOuterClass.FatContractInstance other) { if (other == com.daml.lf.transaction.TransactionOuterClass.FatContractInstance.getDefaultInstance()) return this; if (other.getContractId() != com.google.protobuf.ByteString.EMPTY) { setContractId(other.getContractId()); } if (!other.getPackageName().isEmpty()) { packageName_ = other.packageName_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasTemplateId()) { mergeTemplateId(other.getTemplateId()); } if (other.getCreateArg() != com.google.protobuf.ByteString.EMPTY) { setCreateArg(other.getCreateArg()); } if (other.hasContractKeyWithMaintainers()) { mergeContractKeyWithMaintainers(other.getContractKeyWithMaintainers()); } if (!other.nonMaintainerSignatories_.isEmpty()) { if (nonMaintainerSignatories_.isEmpty()) { nonMaintainerSignatories_ = other.nonMaintainerSignatories_; bitField0_ |= 0x00000020; } else { ensureNonMaintainerSignatoriesIsMutable(); nonMaintainerSignatories_.addAll(other.nonMaintainerSignatories_); } onChanged(); } if (!other.nonSignatoryStakeholders_.isEmpty()) { if (nonSignatoryStakeholders_.isEmpty()) { nonSignatoryStakeholders_ = other.nonSignatoryStakeholders_; bitField0_ |= 0x00000040; } else { ensureNonSignatoryStakeholdersIsMutable(); nonSignatoryStakeholders_.addAll(other.nonSignatoryStakeholders_); } onChanged(); } if (other.getCreatedAt() != 0L) { setCreatedAt(other.getCreatedAt()); } if (other.getCantonData() != com.google.protobuf.ByteString.EMPTY) { setCantonData(other.getCantonData()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { contractId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTemplateIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 26: { createArg_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getContractKeyWithMaintainersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureNonMaintainerSignatoriesIsMutable(); nonMaintainerSignatories_.add(s); break; } // case 42 case 50: { java.lang.String s = input.readStringRequireUtf8(); ensureNonSignatoryStakeholdersIsMutable(); nonSignatoryStakeholders_.add(s); break; } // case 50 case 57: { createdAt_ = input.readSFixed64(); bitField0_ |= 0x00000080; break; } // case 57 case 66: { cantonData_ = input.readBytes(); bitField0_ |= 0x00000100; break; } // case 66 case 74: { packageName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 74 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 contractId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes contract_id = 1; * @return The contractId. */ @java.lang.Override public com.google.protobuf.ByteString getContractId() { return contractId_; } /** * bytes contract_id = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * bytes contract_id = 1; * @return This builder for chaining. */ public Builder clearContractId() { bitField0_ = (bitField0_ & ~0x00000001); contractId_ = getDefaultInstance().getContractId(); onChanged(); return this; } private java.lang.Object packageName_ = ""; /** *
       * required *since dev*
       * 
* * string package_name = 9; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 9; * @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; } } /** *
       * required *since dev*
       * 
* * string package_name = 9; * @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_ |= 0x00000002; onChanged(); return this; } /** *
       * required *since dev*
       * 
* * string package_name = 9; * @return This builder for chaining. */ public Builder clearPackageName() { packageName_ = getDefaultInstance().getPackageName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * required *since dev*
       * 
* * string package_name = 9; * @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_ |= 0x00000002; 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_ & 0x00000004) != 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_ |= 0x00000004; 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_ |= 0x00000004; 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_ & 0x00000004) != 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_ |= 0x00000004; onChanged(); } return this; } /** * .com.daml.lf.value.Identifier template_id = 2; */ public Builder clearTemplateId() { bitField0_ = (bitField0_ & ~0x00000004); 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_ |= 0x00000004; 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.google.protobuf.ByteString createArg_ = com.google.protobuf.ByteString.EMPTY; /** * bytes create_arg = 3; * @return The createArg. */ @java.lang.Override public com.google.protobuf.ByteString getCreateArg() { return createArg_; } /** * bytes create_arg = 3; * @param value The createArg to set. * @return This builder for chaining. */ public Builder setCreateArg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } createArg_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes create_arg = 3; * @return This builder for chaining. */ public Builder clearCreateArg() { bitField0_ = (bitField0_ & ~0x00000008); createArg_ = getDefaultInstance().getCreateArg(); onChanged(); return this; } private com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers contractKeyWithMaintainers_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder, com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder> contractKeyWithMaintainersBuilder_; /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; * @return Whether the contractKeyWithMaintainers field is set. */ public boolean hasContractKeyWithMaintainers() { return ((bitField0_ & 0x00000010) != 0); } /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; * @return The contractKeyWithMaintainers. */ public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers getContractKeyWithMaintainers() { if (contractKeyWithMaintainersBuilder_ == null) { return contractKeyWithMaintainers_ == null ? com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance() : contractKeyWithMaintainers_; } else { return contractKeyWithMaintainersBuilder_.getMessage(); } } /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; */ public Builder setContractKeyWithMaintainers(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers value) { if (contractKeyWithMaintainersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractKeyWithMaintainers_ = value; } else { contractKeyWithMaintainersBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; */ public Builder setContractKeyWithMaintainers( com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder builderForValue) { if (contractKeyWithMaintainersBuilder_ == null) { contractKeyWithMaintainers_ = builderForValue.build(); } else { contractKeyWithMaintainersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; */ public Builder mergeContractKeyWithMaintainers(com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers value) { if (contractKeyWithMaintainersBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && contractKeyWithMaintainers_ != null && contractKeyWithMaintainers_ != com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance()) { getContractKeyWithMaintainersBuilder().mergeFrom(value); } else { contractKeyWithMaintainers_ = value; } } else { contractKeyWithMaintainersBuilder_.mergeFrom(value); } if (contractKeyWithMaintainers_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; */ public Builder clearContractKeyWithMaintainers() { bitField0_ = (bitField0_ & ~0x00000010); contractKeyWithMaintainers_ = null; if (contractKeyWithMaintainersBuilder_ != null) { contractKeyWithMaintainersBuilder_.dispose(); contractKeyWithMaintainersBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; */ public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.Builder getContractKeyWithMaintainersBuilder() { bitField0_ |= 0x00000010; onChanged(); return getContractKeyWithMaintainersFieldBuilder().getBuilder(); } /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; */ public com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainersOrBuilder getContractKeyWithMaintainersOrBuilder() { if (contractKeyWithMaintainersBuilder_ != null) { return contractKeyWithMaintainersBuilder_.getMessageOrBuilder(); } else { return contractKeyWithMaintainers_ == null ? com.daml.lf.transaction.TransactionOuterClass.KeyWithMaintainers.getDefaultInstance() : contractKeyWithMaintainers_; } } /** * .com.daml.lf.transaction.KeyWithMaintainers contract_key_with_maintainers = 4; */ 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_; } 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_ |= 0x00000020; } /** * repeated string non_maintainer_signatories = 5; * @return A list containing the nonMaintainerSignatories. */ public com.google.protobuf.ProtocolStringList getNonMaintainerSignatoriesList() { nonMaintainerSignatories_.makeImmutable(); return nonMaintainerSignatories_; } /** * repeated string non_maintainer_signatories = 5; * @return The count of nonMaintainerSignatories. */ public int getNonMaintainerSignatoriesCount() { return nonMaintainerSignatories_.size(); } /** * repeated string non_maintainer_signatories = 5; * @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 = 5; * @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 = 5; * @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_ |= 0x00000020; onChanged(); return this; } /** * repeated string non_maintainer_signatories = 5; * @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_ |= 0x00000020; onChanged(); return this; } /** * repeated string non_maintainer_signatories = 5; * @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_ |= 0x00000020; onChanged(); return this; } /** * repeated string non_maintainer_signatories = 5; * @return This builder for chaining. */ public Builder clearNonMaintainerSignatories() { nonMaintainerSignatories_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } /** * repeated string non_maintainer_signatories = 5; * @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_ |= 0x00000020; 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_ |= 0x00000040; } /** * repeated string non_signatory_stakeholders = 6; * @return A list containing the nonSignatoryStakeholders. */ public com.google.protobuf.ProtocolStringList getNonSignatoryStakeholdersList() { nonSignatoryStakeholders_.makeImmutable(); return nonSignatoryStakeholders_; } /** * repeated string non_signatory_stakeholders = 6; * @return The count of nonSignatoryStakeholders. */ public int getNonSignatoryStakeholdersCount() { return nonSignatoryStakeholders_.size(); } /** * repeated string non_signatory_stakeholders = 6; * @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 = 6; * @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 = 6; * @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_ |= 0x00000040; onChanged(); return this; } /** * repeated string non_signatory_stakeholders = 6; * @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_ |= 0x00000040; onChanged(); return this; } /** * repeated string non_signatory_stakeholders = 6; * @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_ |= 0x00000040; onChanged(); return this; } /** * repeated string non_signatory_stakeholders = 6; * @return This builder for chaining. */ public Builder clearNonSignatoryStakeholders() { nonSignatoryStakeholders_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000040);; onChanged(); return this; } /** * repeated string non_signatory_stakeholders = 6; * @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_ |= 0x00000040; onChanged(); return this; } private long createdAt_ ; /** * sfixed64 created_at = 7; * @return The createdAt. */ @java.lang.Override public long getCreatedAt() { return createdAt_; } /** * sfixed64 created_at = 7; * @param value The createdAt to set. * @return This builder for chaining. */ public Builder setCreatedAt(long value) { createdAt_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * sfixed64 created_at = 7; * @return This builder for chaining. */ public Builder clearCreatedAt() { bitField0_ = (bitField0_ & ~0x00000080); createdAt_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString cantonData_ = com.google.protobuf.ByteString.EMPTY; /** * bytes canton_data = 8; * @return The cantonData. */ @java.lang.Override public com.google.protobuf.ByteString getCantonData() { return cantonData_; } /** * bytes canton_data = 8; * @param value The cantonData to set. * @return This builder for chaining. */ public Builder setCantonData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } cantonData_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * bytes canton_data = 8; * @return This builder for chaining. */ public Builder clearCantonData() { bitField0_ = (bitField0_ & ~0x00000100); cantonData_ = getDefaultInstance().getCantonData(); 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.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; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_Transaction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_Transaction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_ContractInstance_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_ContractInstance_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_Node_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_Node_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_KeyWithMaintainers_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_KeyWithMaintainers_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_NodeCreate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_NodeCreate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_NodeFetch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_NodeFetch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_NodeExercise_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_NodeExercise_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_NodeLookupByKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_NodeLookupByKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_NodeRollback_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_NodeRollback_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_Versioned_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_Versioned_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_transaction_FatContractInstance_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_transaction_FatContractInstance_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\035com/daml/lf/transaction.proto\022\027com.dam" + "l.lf.transaction\032\027com/daml/lf/value.prot" + "o\"[\n\013Transaction\022\017\n\007version\030\001 \001(\t\022\r\n\005roo" + "ts\030\002 \003(\t\022,\n\005nodes\030\003 \003(\0132\035.com.daml.lf.tr" + "ansaction.Node\"\251\001\n\020ContractInstance\022\024\n\014p" + "ackage_name\030\004 \001(\t\0222\n\013template_id\030\001 \001(\0132\035" + ".com.daml.lf.value.Identifier\0228\n\rarg_ver" + "sioned\030\002 \001(\0132!.com.daml.lf.value.Version" + "edValue\022\021\n\tagreement\030\003 \001(\t\"\332\002\n\004Node\022\017\n\007n" + "ode_id\030\001 \001(\t\0225\n\006create\030\003 \001(\0132#.com.daml." + "lf.transaction.NodeCreateH\000\0223\n\005fetch\030\004 \001" + "(\0132\".com.daml.lf.transaction.NodeFetchH\000" + "\0229\n\010exercise\030\005 \001(\0132%.com.daml.lf.transac" + "tion.NodeExerciseH\000\022A\n\rlookup_by_key\030\006 \001" + "(\0132(.com.daml.lf.transaction.NodeLookupB" + "yKeyH\000\0229\n\010rollback\030\007 \001(\0132%.com.daml.lf.t" + "ransaction.NodeRollbackH\000\022\017\n\007version\030? \001" + "(\tB\013\n\tnode_type\"\207\001\n\022KeyWithMaintainers\022:" + "\n\rkey_versioned\030\001 \001(\0132!.com.daml.lf.valu" + "e.VersionedValueH\000\022\031\n\017key_unversioned\030\003 " + "\001(\014H\000\022\023\n\013maintainers\030\002 \003(\tB\005\n\003key\"\377\002\n\nNo" + "deCreate\022D\n\021contract_instance\030\002 \001(\0132).co" + "m.daml.lf.transaction.ContractInstance\022\024" + "\n\014package_name\030\n \001(\t\0222\n\013template_id\030\007 \001(" + "\0132\035.com.daml.lf.value.Identifier\022\027\n\017arg_" + "unversioned\030\010 \001(\014\022\021\n\tagreement\030\t \001(\t\022\024\n\014" + "stakeholders\030\003 \003(\t\022\023\n\013signatories\030\004 \003(\t\022" + "I\n\024key_with_maintainers\030\005 \001(\0132+.com.daml" + ".lf.transaction.KeyWithMaintainers\0229\n\022co" + "ntract_id_struct\030\006 \001(\0132\035.com.daml.lf.val" + "ue.ContractIdJ\004\010\001\020\002\"\262\002\n\tNodeFetch\022\024\n\014pac" + "kage_name\030\n \001(\t\0222\n\013template_id\030\002 \001(\0132\035.c" + "om.daml.lf.value.Identifier\022\016\n\006actors\030\007 " + "\003(\t\022\024\n\014stakeholders\030\003 \003(\t\022\023\n\013signatories" + "\030\004 \003(\t\0229\n\022contract_id_struct\030\006 \001(\0132\035.com" + ".daml.lf.value.ContractId\022I\n\024key_with_ma" + "intainers\030\010 \001(\0132+.com.daml.lf.transactio" + "n.KeyWithMaintainers\022\016\n\006by_key\030\t \001(\010J\004\010\001" + "\020\002J\004\010\005\020\006\"\222\005\n\014NodeExercise\022\024\n\014package_nam" + "e\030\025 \001(\t\0222\n\013template_id\030\002 \001(\0132\035.com.daml." + "lf.value.Identifier\0223\n\014interface_id\030\023 \001(" + "\0132\035.com.daml.lf.value.Identifier\022\016\n\006acto" + "rs\030\003 \003(\t\022\016\n\006choice\030\004 \001(\t\022:\n\rarg_versione" + "d\030\005 \001(\0132!.com.daml.lf.value.VersionedVal" + "ueH\000\022\031\n\017arg_unversioned\030\020 \001(\014H\000\022\021\n\tconsu" + "ming\030\006 \001(\010\022\020\n\010children\030\007 \003(\t\022\024\n\014stakehol" + "ders\030\010 \003(\t\022\023\n\013signatories\030\t \003(\t\0229\n\022contr" + "act_id_struct\030\013 \001(\0132\035.com.daml.lf.value." + "ContractId\022=\n\020result_versioned\030\014 \001(\0132!.c" + "om.daml.lf.value.VersionedValueH\001\022\034\n\022res" + "ult_unversioned\030\021 \001(\014H\001\022I\n\024key_with_main" + "tainers\030\016 \001(\0132+.com.daml.lf.transaction." + "KeyWithMaintainers\022\021\n\tobservers\030\017 \003(\t\022\023\n" + "\013authorizers\030\024 \003(\t\022\016\n\006by_key\030\022 \001(\010B\005\n\003ar" + "gB\010\n\006resultJ\004\010\001\020\002J\004\010\n\020\013J\004\010\r\020\016\"\347\001\n\017NodeLo" + "okupByKey\022\024\n\014package_name\030\005 \001(\t\0222\n\013templ" + "ate_id\030\001 \001(\0132\035.com.daml.lf.value.Identif" + "ier\022I\n\024key_with_maintainers\030\002 \001(\0132+.com." + "daml.lf.transaction.KeyWithMaintainers\0229" + "\n\022contract_id_struct\030\004 \001(\0132\035.com.daml.lf" + ".value.ContractIdJ\004\010\003\020\004\" \n\014NodeRollback\022" + "\020\n\010children\030\001 \003(\t\"-\n\tVersioned\022\017\n\007versio" + "n\030\001 \001(\t\022\017\n\007payload\030\002 \001(\014\"\315\002\n\023FatContract" + "Instance\022\023\n\013contract_id\030\001 \001(\014\022\024\n\014package" + "_name\030\t \001(\t\0222\n\013template_id\030\002 \001(\0132\035.com.d" + "aml.lf.value.Identifier\022\022\n\ncreate_arg\030\003 " + "\001(\014\022R\n\035contract_key_with_maintainers\030\004 \001" + "(\0132+.com.daml.lf.transaction.KeyWithMain" + "tainers\022\"\n\032non_maintainer_signatories\030\005 " + "\003(\t\022\"\n\032non_signatory_stakeholders\030\006 \003(\t\022" + "\022\n\ncreated_at\030\007 \001(\020\022\023\n\013canton_data\030\010 \001(\014" + "B\031\n\027com.daml.lf.transactionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.daml.lf.value.ValueOuterClass.getDescriptor(), }); internal_static_com_daml_lf_transaction_Transaction_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_daml_lf_transaction_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_Transaction_descriptor, new java.lang.String[] { "Version", "Roots", "Nodes", }); internal_static_com_daml_lf_transaction_ContractInstance_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_daml_lf_transaction_ContractInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_ContractInstance_descriptor, new java.lang.String[] { "PackageName", "TemplateId", "ArgVersioned", "Agreement", }); internal_static_com_daml_lf_transaction_Node_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_daml_lf_transaction_Node_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_Node_descriptor, new java.lang.String[] { "NodeId", "Create", "Fetch", "Exercise", "LookupByKey", "Rollback", "Version", "NodeType", }); internal_static_com_daml_lf_transaction_KeyWithMaintainers_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_daml_lf_transaction_KeyWithMaintainers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_KeyWithMaintainers_descriptor, new java.lang.String[] { "KeyVersioned", "KeyUnversioned", "Maintainers", "Key", }); internal_static_com_daml_lf_transaction_NodeCreate_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_daml_lf_transaction_NodeCreate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_NodeCreate_descriptor, new java.lang.String[] { "ContractInstance", "PackageName", "TemplateId", "ArgUnversioned", "Agreement", "Stakeholders", "Signatories", "KeyWithMaintainers", "ContractIdStruct", }); internal_static_com_daml_lf_transaction_NodeFetch_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_daml_lf_transaction_NodeFetch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_NodeFetch_descriptor, new java.lang.String[] { "PackageName", "TemplateId", "Actors", "Stakeholders", "Signatories", "ContractIdStruct", "KeyWithMaintainers", "ByKey", }); internal_static_com_daml_lf_transaction_NodeExercise_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_daml_lf_transaction_NodeExercise_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_NodeExercise_descriptor, new java.lang.String[] { "PackageName", "TemplateId", "InterfaceId", "Actors", "Choice", "ArgVersioned", "ArgUnversioned", "Consuming", "Children", "Stakeholders", "Signatories", "ContractIdStruct", "ResultVersioned", "ResultUnversioned", "KeyWithMaintainers", "Observers", "Authorizers", "ByKey", "Arg", "Result", }); internal_static_com_daml_lf_transaction_NodeLookupByKey_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_com_daml_lf_transaction_NodeLookupByKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_NodeLookupByKey_descriptor, new java.lang.String[] { "PackageName", "TemplateId", "KeyWithMaintainers", "ContractIdStruct", }); internal_static_com_daml_lf_transaction_NodeRollback_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_com_daml_lf_transaction_NodeRollback_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_NodeRollback_descriptor, new java.lang.String[] { "Children", }); internal_static_com_daml_lf_transaction_Versioned_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_com_daml_lf_transaction_Versioned_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_Versioned_descriptor, new java.lang.String[] { "Version", "Payload", }); internal_static_com_daml_lf_transaction_FatContractInstance_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_com_daml_lf_transaction_FatContractInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_transaction_FatContractInstance_descriptor, new java.lang.String[] { "ContractId", "PackageName", "TemplateId", "CreateArg", "ContractKeyWithMaintainers", "NonMaintainerSignatories", "NonSignatoryStakeholders", "CreatedAt", "CantonData", }); com.daml.lf.value.ValueOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy