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

com.daml.lf.value.ValueOuterClass Maven / Gradle / Ivy

There is a newer version: 3.0.0-adhoc.20240212.12749.0.v6b06ef19
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: com/daml/lf/value.proto

package com.daml.lf.value;

public final class ValueOuterClass {
  private ValueOuterClass() {}
  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 VersionedValueOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.daml.lf.value.VersionedValue)
      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 value = 2;
     * @return The value.
     */
    com.google.protobuf.ByteString getValue();
  }
  /**
   * Protobuf type {@code com.daml.lf.value.VersionedValue}
   */
  public static final class VersionedValue extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.daml.lf.value.VersionedValue)
      VersionedValueOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use VersionedValue.newBuilder() to construct.
    private VersionedValue(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private VersionedValue() {
      version_ = "";
      value_ = com.google.protobuf.ByteString.EMPTY;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new VersionedValue();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_VersionedValue_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_VersionedValue_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.daml.lf.value.ValueOuterClass.VersionedValue.class, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder.class);
    }

    public static final int VERSION_FIELD_NUMBER = 1;
    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 VALUE_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString value_;
    /**
     * bytes value = 2;
     * @return The value.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getValue() {
      return value_;
    }

    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 (!value_.isEmpty()) {
        output.writeBytes(2, value_);
      }
      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 (!value_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, value_);
      }
      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.value.ValueOuterClass.VersionedValue)) {
        return super.equals(obj);
      }
      com.daml.lf.value.ValueOuterClass.VersionedValue other = (com.daml.lf.value.ValueOuterClass.VersionedValue) obj;

      if (!getVersion()
          .equals(other.getVersion())) return false;
      if (!getValue()
          .equals(other.getValue())) 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) + VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getValue().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.daml.lf.value.ValueOuterClass.VersionedValue parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.daml.lf.value.ValueOuterClass.VersionedValue 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.value.ValueOuterClass.VersionedValue parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.daml.lf.value.ValueOuterClass.VersionedValue 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.value.ValueOuterClass.VersionedValue parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.daml.lf.value.ValueOuterClass.VersionedValue parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.daml.lf.value.ValueOuterClass.VersionedValue parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.daml.lf.value.ValueOuterClass.VersionedValue 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.value.ValueOuterClass.VersionedValue parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.daml.lf.value.ValueOuterClass.VersionedValue 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.value.ValueOuterClass.VersionedValue parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.daml.lf.value.ValueOuterClass.VersionedValue 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.value.ValueOuterClass.VersionedValue 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.value.VersionedValue}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:com.daml.lf.value.VersionedValue)
        com.daml.lf.value.ValueOuterClass.VersionedValueOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_VersionedValue_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_VersionedValue_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.daml.lf.value.ValueOuterClass.VersionedValue.class, com.daml.lf.value.ValueOuterClass.VersionedValue.Builder.class);
      }

      // Construct using com.daml.lf.value.ValueOuterClass.VersionedValue.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        version_ = "";

        value_ = com.google.protobuf.ByteString.EMPTY;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_VersionedValue_descriptor;
      }

      @java.lang.Override
      public com.daml.lf.value.ValueOuterClass.VersionedValue getDefaultInstanceForType() {
        return com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance();
      }

      @java.lang.Override
      public com.daml.lf.value.ValueOuterClass.VersionedValue build() {
        com.daml.lf.value.ValueOuterClass.VersionedValue result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.daml.lf.value.ValueOuterClass.VersionedValue buildPartial() {
        com.daml.lf.value.ValueOuterClass.VersionedValue result = new com.daml.lf.value.ValueOuterClass.VersionedValue(this);
        result.version_ = version_;
        result.value_ = value_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.daml.lf.value.ValueOuterClass.VersionedValue) {
          return mergeFrom((com.daml.lf.value.ValueOuterClass.VersionedValue)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.VersionedValue other) {
        if (other == com.daml.lf.value.ValueOuterClass.VersionedValue.getDefaultInstance()) return this;
        if (!other.getVersion().isEmpty()) {
          version_ = other.version_;
          onChanged();
        }
        if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
          setValue(other.getValue());
        }
        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();

                break;
              } // case 10
              case 18: {
                value_ = input.readBytes();

                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 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;
        onChanged();
        return this;
      }
      /**
       * string version = 1;
       * @return This builder for chaining.
       */
      public Builder clearVersion() {
        
        version_ = getDefaultInstance().getVersion();
        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;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes value = 2;
       * @return The value.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getValue() {
        return value_;
      }
      /**
       * bytes value = 2;
       * @param value The value to set.
       * @return This builder for chaining.
       */
      public Builder setValue(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes value = 2;
       * @return This builder for chaining.
       */
      public Builder clearValue() {
        
        value_ = getDefaultInstance().getValue();
        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.value.VersionedValue)
    }

    // @@protoc_insertion_point(class_scope:com.daml.lf.value.VersionedValue)
    private static final com.daml.lf.value.ValueOuterClass.VersionedValue DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.VersionedValue();
    }

    public static com.daml.lf.value.ValueOuterClass.VersionedValue getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public VersionedValue 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.value.ValueOuterClass.VersionedValue getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ValueOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Value)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .com.daml.lf.value.Record record = 1;
     * @return Whether the record field is set.
     */
    boolean hasRecord();
    /**
     * .com.daml.lf.value.Record record = 1;
     * @return The record.
     */
    com.daml.lf.value.ValueOuterClass.Record getRecord();
    /**
     * .com.daml.lf.value.Record record = 1;
     */
    com.daml.lf.value.ValueOuterClass.RecordOrBuilder getRecordOrBuilder();

    /**
     * .com.daml.lf.value.Variant variant = 2;
     * @return Whether the variant field is set.
     */
    boolean hasVariant();
    /**
     * .com.daml.lf.value.Variant variant = 2;
     * @return The variant.
     */
    com.daml.lf.value.ValueOuterClass.Variant getVariant();
    /**
     * .com.daml.lf.value.Variant variant = 2;
     */
    com.daml.lf.value.ValueOuterClass.VariantOrBuilder getVariantOrBuilder();

    /**
     * .com.daml.lf.value.List list = 4;
     * @return Whether the list field is set.
     */
    boolean hasList();
    /**
     * .com.daml.lf.value.List list = 4;
     * @return The list.
     */
    com.daml.lf.value.ValueOuterClass.List getList();
    /**
     * .com.daml.lf.value.List list = 4;
     */
    com.daml.lf.value.ValueOuterClass.ListOrBuilder getListOrBuilder();

    /**
     * sint64 int64 = 5;
     * @return Whether the int64 field is set.
     */
    boolean hasInt64();
    /**
     * sint64 int64 = 5;
     * @return The int64.
     */
    long getInt64();

    /**
     * 
     * Between v1 and v5 this field expressed a number in base-10 with up
     * to 28 digits before the decimal point and up to 10 after the decimal
     * point.
     * Starting from v5 this field expressed a number in base-10 with at most
     * 38 digits from which at most 37 can be used in the right hand side
     * of the decimal point.
     * See value.rst for the exact syntaxes.
     * 
* * string numeric = 6; * @return Whether the numeric field is set. */ boolean hasNumeric(); /** *
     * Between v1 and v5 this field expressed a number in base-10 with up
     * to 28 digits before the decimal point and up to 10 after the decimal
     * point.
     * Starting from v5 this field expressed a number in base-10 with at most
     * 38 digits from which at most 37 can be used in the right hand side
     * of the decimal point.
     * See value.rst for the exact syntaxes.
     * 
* * string numeric = 6; * @return The numeric. */ java.lang.String getNumeric(); /** *
     * Between v1 and v5 this field expressed a number in base-10 with up
     * to 28 digits before the decimal point and up to 10 after the decimal
     * point.
     * Starting from v5 this field expressed a number in base-10 with at most
     * 38 digits from which at most 37 can be used in the right hand side
     * of the decimal point.
     * See value.rst for the exact syntaxes.
     * 
* * string numeric = 6; * @return The bytes for numeric. */ com.google.protobuf.ByteString getNumericBytes(); /** * string text = 8; * @return Whether the text field is set. */ boolean hasText(); /** * string text = 8; * @return The text. */ java.lang.String getText(); /** * string text = 8; * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); /** *
     * microseconds since the UNIX epoch. can go backwards. fixed
     * since the vast majority of values will be greater than
     * 2^28, since currently the number of microseconds since the
     * epoch is greater than that. Range: 0001-01-01T00:00:00Z to
     * 9999-12-31T23:59:59.999999Z, so that we can convert to/from
     * https://www.ietf.org/rfc/rfc3339.txt
     * 
* * sfixed64 timestamp = 9; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** *
     * microseconds since the UNIX epoch. can go backwards. fixed
     * since the vast majority of values will be greater than
     * 2^28, since currently the number of microseconds since the
     * epoch is greater than that. Range: 0001-01-01T00:00:00Z to
     * 9999-12-31T23:59:59.999999Z, so that we can convert to/from
     * https://www.ietf.org/rfc/rfc3339.txt
     * 
* * sfixed64 timestamp = 9; * @return The timestamp. */ long getTimestamp(); /** * string party = 10; * @return Whether the party field is set. */ boolean hasParty(); /** * string party = 10; * @return The party. */ java.lang.String getParty(); /** * string party = 10; * @return The bytes for party. */ com.google.protobuf.ByteString getPartyBytes(); /** * bool bool = 11; * @return Whether the bool field is set. */ boolean hasBool(); /** * bool bool = 11; * @return The bool. */ boolean getBool(); /** * .google.protobuf.Empty unit = 12; * @return Whether the unit field is set. */ boolean hasUnit(); /** * .google.protobuf.Empty unit = 12; * @return The unit. */ com.google.protobuf.Empty getUnit(); /** * .google.protobuf.Empty unit = 12; */ com.google.protobuf.EmptyOrBuilder getUnitOrBuilder(); /** *
     * days since the unix epoch. can go backwards. limited from
     * 0001-01-01 to 9999-12-31, also to be compatible with
     * https://www.ietf.org/rfc/rfc3339.txt
     * 
* * int32 date = 13; * @return Whether the date field is set. */ boolean hasDate(); /** *
     * days since the unix epoch. can go backwards. limited from
     * 0001-01-01 to 9999-12-31, also to be compatible with
     * https://www.ietf.org/rfc/rfc3339.txt
     * 
* * int32 date = 13; * @return The date. */ int getDate(); /** * .com.daml.lf.value.Optional optional = 14; * @return Whether the optional field is set. */ boolean hasOptional(); /** * .com.daml.lf.value.Optional optional = 14; * @return The optional. */ com.daml.lf.value.ValueOuterClass.Optional getOptional(); /** * .com.daml.lf.value.Optional optional = 14; */ com.daml.lf.value.ValueOuterClass.OptionalOrBuilder getOptionalOrBuilder(); /** * .com.daml.lf.value.ContractId contract_id_struct = 15; * @return Whether the contractIdStruct field is set. */ boolean hasContractIdStruct(); /** * .com.daml.lf.value.ContractId contract_id_struct = 15; * @return The contractIdStruct. */ com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct(); /** * .com.daml.lf.value.ContractId contract_id_struct = 15; */ com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder(); /** * .com.daml.lf.value.Map map = 16; * @return Whether the map field is set. */ boolean hasMap(); /** * .com.daml.lf.value.Map map = 16; * @return The map. */ com.daml.lf.value.ValueOuterClass.Map getMap(); /** * .com.daml.lf.value.Map map = 16; */ com.daml.lf.value.ValueOuterClass.MapOrBuilder getMapOrBuilder(); /** * .com.daml.lf.value.Enum enum = 17; * @return Whether the enum field is set. */ boolean hasEnum(); /** * .com.daml.lf.value.Enum enum = 17; * @return The enum. */ com.daml.lf.value.ValueOuterClass.Enum getEnum(); /** * .com.daml.lf.value.Enum enum = 17; */ com.daml.lf.value.ValueOuterClass.EnumOrBuilder getEnumOrBuilder(); /** *
     * *since version 11*
     * 
* * .com.daml.lf.value.GenMap gen_map = 18; * @return Whether the genMap field is set. */ boolean hasGenMap(); /** *
     * *since version 11*
     * 
* * .com.daml.lf.value.GenMap gen_map = 18; * @return The genMap. */ com.daml.lf.value.ValueOuterClass.GenMap getGenMap(); /** *
     * *since version 11*
     * 
* * .com.daml.lf.value.GenMap gen_map = 18; */ com.daml.lf.value.ValueOuterClass.GenMapOrBuilder getGenMapOrBuilder(); public com.daml.lf.value.ValueOuterClass.Value.SumCase getSumCase(); } /** *
   * The universe of serializable Daml-LF values.
   * architecture-handbook-entry-begin: Value
   * 
* * Protobuf type {@code com.daml.lf.value.Value} */ public static final class Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Value) ValueOrBuilder { private static final long serialVersionUID = 0L; // Use Value.newBuilder() to construct. private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Value() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Value(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.class, com.daml.lf.value.ValueOuterClass.Value.Builder.class); } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RECORD(1), VARIANT(2), LIST(4), INT64(5), NUMERIC(6), TEXT(8), TIMESTAMP(9), PARTY(10), BOOL(11), UNIT(12), DATE(13), OPTIONAL(14), CONTRACT_ID_STRUCT(15), MAP(16), ENUM(17), GEN_MAP(18), SUM_NOT_SET(0); private final int value; private SumCase(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 SumCase valueOf(int value) { return forNumber(value); } public static SumCase forNumber(int value) { switch (value) { case 1: return RECORD; case 2: return VARIANT; case 4: return LIST; case 5: return INT64; case 6: return NUMERIC; case 8: return TEXT; case 9: return TIMESTAMP; case 10: return PARTY; case 11: return BOOL; case 12: return UNIT; case 13: return DATE; case 14: return OPTIONAL; case 15: return CONTRACT_ID_STRUCT; case 16: return MAP; case 17: return ENUM; case 18: return GEN_MAP; case 0: return SUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public static final int RECORD_FIELD_NUMBER = 1; /** * .com.daml.lf.value.Record record = 1; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return sumCase_ == 1; } /** * .com.daml.lf.value.Record record = 1; * @return The record. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Record getRecord() { if (sumCase_ == 1) { return (com.daml.lf.value.ValueOuterClass.Record) sum_; } return com.daml.lf.value.ValueOuterClass.Record.getDefaultInstance(); } /** * .com.daml.lf.value.Record record = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.RecordOrBuilder getRecordOrBuilder() { if (sumCase_ == 1) { return (com.daml.lf.value.ValueOuterClass.Record) sum_; } return com.daml.lf.value.ValueOuterClass.Record.getDefaultInstance(); } public static final int VARIANT_FIELD_NUMBER = 2; /** * .com.daml.lf.value.Variant variant = 2; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return sumCase_ == 2; } /** * .com.daml.lf.value.Variant variant = 2; * @return The variant. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Variant getVariant() { if (sumCase_ == 2) { return (com.daml.lf.value.ValueOuterClass.Variant) sum_; } return com.daml.lf.value.ValueOuterClass.Variant.getDefaultInstance(); } /** * .com.daml.lf.value.Variant variant = 2; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VariantOrBuilder getVariantOrBuilder() { if (sumCase_ == 2) { return (com.daml.lf.value.ValueOuterClass.Variant) sum_; } return com.daml.lf.value.ValueOuterClass.Variant.getDefaultInstance(); } public static final int LIST_FIELD_NUMBER = 4; /** * .com.daml.lf.value.List list = 4; * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return sumCase_ == 4; } /** * .com.daml.lf.value.List list = 4; * @return The list. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.List getList() { if (sumCase_ == 4) { return (com.daml.lf.value.ValueOuterClass.List) sum_; } return com.daml.lf.value.ValueOuterClass.List.getDefaultInstance(); } /** * .com.daml.lf.value.List list = 4; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ListOrBuilder getListOrBuilder() { if (sumCase_ == 4) { return (com.daml.lf.value.ValueOuterClass.List) sum_; } return com.daml.lf.value.ValueOuterClass.List.getDefaultInstance(); } public static final int INT64_FIELD_NUMBER = 5; /** * sint64 int64 = 5; * @return Whether the int64 field is set. */ @java.lang.Override public boolean hasInt64() { return sumCase_ == 5; } /** * sint64 int64 = 5; * @return The int64. */ @java.lang.Override public long getInt64() { if (sumCase_ == 5) { return (java.lang.Long) sum_; } return 0L; } public static final int NUMERIC_FIELD_NUMBER = 6; /** *
     * Between v1 and v5 this field expressed a number in base-10 with up
     * to 28 digits before the decimal point and up to 10 after the decimal
     * point.
     * Starting from v5 this field expressed a number in base-10 with at most
     * 38 digits from which at most 37 can be used in the right hand side
     * of the decimal point.
     * See value.rst for the exact syntaxes.
     * 
* * string numeric = 6; * @return Whether the numeric field is set. */ public boolean hasNumeric() { return sumCase_ == 6; } /** *
     * Between v1 and v5 this field expressed a number in base-10 with up
     * to 28 digits before the decimal point and up to 10 after the decimal
     * point.
     * Starting from v5 this field expressed a number in base-10 with at most
     * 38 digits from which at most 37 can be used in the right hand side
     * of the decimal point.
     * See value.rst for the exact syntaxes.
     * 
* * string numeric = 6; * @return The numeric. */ public java.lang.String getNumeric() { java.lang.Object ref = ""; if (sumCase_ == 6) { ref = sum_; } 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(); if (sumCase_ == 6) { sum_ = s; } return s; } } /** *
     * Between v1 and v5 this field expressed a number in base-10 with up
     * to 28 digits before the decimal point and up to 10 after the decimal
     * point.
     * Starting from v5 this field expressed a number in base-10 with at most
     * 38 digits from which at most 37 can be used in the right hand side
     * of the decimal point.
     * See value.rst for the exact syntaxes.
     * 
* * string numeric = 6; * @return The bytes for numeric. */ public com.google.protobuf.ByteString getNumericBytes() { java.lang.Object ref = ""; if (sumCase_ == 6) { ref = sum_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 6) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_FIELD_NUMBER = 8; /** * string text = 8; * @return Whether the text field is set. */ public boolean hasText() { return sumCase_ == 8; } /** * string text = 8; * @return The text. */ public java.lang.String getText() { java.lang.Object ref = ""; if (sumCase_ == 8) { ref = sum_; } 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(); if (sumCase_ == 8) { sum_ = s; } return s; } } /** * string text = 8; * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (sumCase_ == 8) { ref = sum_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 8) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMESTAMP_FIELD_NUMBER = 9; /** *
     * microseconds since the UNIX epoch. can go backwards. fixed
     * since the vast majority of values will be greater than
     * 2^28, since currently the number of microseconds since the
     * epoch is greater than that. Range: 0001-01-01T00:00:00Z to
     * 9999-12-31T23:59:59.999999Z, so that we can convert to/from
     * https://www.ietf.org/rfc/rfc3339.txt
     * 
* * sfixed64 timestamp = 9; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return sumCase_ == 9; } /** *
     * microseconds since the UNIX epoch. can go backwards. fixed
     * since the vast majority of values will be greater than
     * 2^28, since currently the number of microseconds since the
     * epoch is greater than that. Range: 0001-01-01T00:00:00Z to
     * 9999-12-31T23:59:59.999999Z, so that we can convert to/from
     * https://www.ietf.org/rfc/rfc3339.txt
     * 
* * sfixed64 timestamp = 9; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { if (sumCase_ == 9) { return (java.lang.Long) sum_; } return 0L; } public static final int PARTY_FIELD_NUMBER = 10; /** * string party = 10; * @return Whether the party field is set. */ public boolean hasParty() { return sumCase_ == 10; } /** * string party = 10; * @return The party. */ public java.lang.String getParty() { java.lang.Object ref = ""; if (sumCase_ == 10) { ref = sum_; } 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(); if (sumCase_ == 10) { sum_ = s; } return s; } } /** * string party = 10; * @return The bytes for party. */ public com.google.protobuf.ByteString getPartyBytes() { java.lang.Object ref = ""; if (sumCase_ == 10) { ref = sum_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 10) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BOOL_FIELD_NUMBER = 11; /** * bool bool = 11; * @return Whether the bool field is set. */ @java.lang.Override public boolean hasBool() { return sumCase_ == 11; } /** * bool bool = 11; * @return The bool. */ @java.lang.Override public boolean getBool() { if (sumCase_ == 11) { return (java.lang.Boolean) sum_; } return false; } public static final int UNIT_FIELD_NUMBER = 12; /** * .google.protobuf.Empty unit = 12; * @return Whether the unit field is set. */ @java.lang.Override public boolean hasUnit() { return sumCase_ == 12; } /** * .google.protobuf.Empty unit = 12; * @return The unit. */ @java.lang.Override public com.google.protobuf.Empty getUnit() { if (sumCase_ == 12) { return (com.google.protobuf.Empty) sum_; } return com.google.protobuf.Empty.getDefaultInstance(); } /** * .google.protobuf.Empty unit = 12; */ @java.lang.Override public com.google.protobuf.EmptyOrBuilder getUnitOrBuilder() { if (sumCase_ == 12) { return (com.google.protobuf.Empty) sum_; } return com.google.protobuf.Empty.getDefaultInstance(); } public static final int DATE_FIELD_NUMBER = 13; /** *
     * days since the unix epoch. can go backwards. limited from
     * 0001-01-01 to 9999-12-31, also to be compatible with
     * https://www.ietf.org/rfc/rfc3339.txt
     * 
* * int32 date = 13; * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return sumCase_ == 13; } /** *
     * days since the unix epoch. can go backwards. limited from
     * 0001-01-01 to 9999-12-31, also to be compatible with
     * https://www.ietf.org/rfc/rfc3339.txt
     * 
* * int32 date = 13; * @return The date. */ @java.lang.Override public int getDate() { if (sumCase_ == 13) { return (java.lang.Integer) sum_; } return 0; } public static final int OPTIONAL_FIELD_NUMBER = 14; /** * .com.daml.lf.value.Optional optional = 14; * @return Whether the optional field is set. */ @java.lang.Override public boolean hasOptional() { return sumCase_ == 14; } /** * .com.daml.lf.value.Optional optional = 14; * @return The optional. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Optional getOptional() { if (sumCase_ == 14) { return (com.daml.lf.value.ValueOuterClass.Optional) sum_; } return com.daml.lf.value.ValueOuterClass.Optional.getDefaultInstance(); } /** * .com.daml.lf.value.Optional optional = 14; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.OptionalOrBuilder getOptionalOrBuilder() { if (sumCase_ == 14) { return (com.daml.lf.value.ValueOuterClass.Optional) sum_; } return com.daml.lf.value.ValueOuterClass.Optional.getDefaultInstance(); } public static final int CONTRACT_ID_STRUCT_FIELD_NUMBER = 15; /** * .com.daml.lf.value.ContractId contract_id_struct = 15; * @return Whether the contractIdStruct field is set. */ @java.lang.Override public boolean hasContractIdStruct() { return sumCase_ == 15; } /** * .com.daml.lf.value.ContractId contract_id_struct = 15; * @return The contractIdStruct. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() { if (sumCase_ == 15) { return (com.daml.lf.value.ValueOuterClass.ContractId) sum_; } return com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance(); } /** * .com.daml.lf.value.ContractId contract_id_struct = 15; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() { if (sumCase_ == 15) { return (com.daml.lf.value.ValueOuterClass.ContractId) sum_; } return com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance(); } public static final int MAP_FIELD_NUMBER = 16; /** * .com.daml.lf.value.Map map = 16; * @return Whether the map field is set. */ @java.lang.Override public boolean hasMap() { return sumCase_ == 16; } /** * .com.daml.lf.value.Map map = 16; * @return The map. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Map getMap() { if (sumCase_ == 16) { return (com.daml.lf.value.ValueOuterClass.Map) sum_; } return com.daml.lf.value.ValueOuterClass.Map.getDefaultInstance(); } /** * .com.daml.lf.value.Map map = 16; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.MapOrBuilder getMapOrBuilder() { if (sumCase_ == 16) { return (com.daml.lf.value.ValueOuterClass.Map) sum_; } return com.daml.lf.value.ValueOuterClass.Map.getDefaultInstance(); } public static final int ENUM_FIELD_NUMBER = 17; /** * .com.daml.lf.value.Enum enum = 17; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return sumCase_ == 17; } /** * .com.daml.lf.value.Enum enum = 17; * @return The enum. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Enum getEnum() { if (sumCase_ == 17) { return (com.daml.lf.value.ValueOuterClass.Enum) sum_; } return com.daml.lf.value.ValueOuterClass.Enum.getDefaultInstance(); } /** * .com.daml.lf.value.Enum enum = 17; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.EnumOrBuilder getEnumOrBuilder() { if (sumCase_ == 17) { return (com.daml.lf.value.ValueOuterClass.Enum) sum_; } return com.daml.lf.value.ValueOuterClass.Enum.getDefaultInstance(); } public static final int GEN_MAP_FIELD_NUMBER = 18; /** *
     * *since version 11*
     * 
* * .com.daml.lf.value.GenMap gen_map = 18; * @return Whether the genMap field is set. */ @java.lang.Override public boolean hasGenMap() { return sumCase_ == 18; } /** *
     * *since version 11*
     * 
* * .com.daml.lf.value.GenMap gen_map = 18; * @return The genMap. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMap getGenMap() { if (sumCase_ == 18) { return (com.daml.lf.value.ValueOuterClass.GenMap) sum_; } return com.daml.lf.value.ValueOuterClass.GenMap.getDefaultInstance(); } /** *
     * *since version 11*
     * 
* * .com.daml.lf.value.GenMap gen_map = 18; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMapOrBuilder getGenMapOrBuilder() { if (sumCase_ == 18) { return (com.daml.lf.value.ValueOuterClass.GenMap) sum_; } return com.daml.lf.value.ValueOuterClass.GenMap.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sumCase_ == 1) { output.writeMessage(1, (com.daml.lf.value.ValueOuterClass.Record) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.lf.value.ValueOuterClass.Variant) sum_); } if (sumCase_ == 4) { output.writeMessage(4, (com.daml.lf.value.ValueOuterClass.List) sum_); } if (sumCase_ == 5) { output.writeSInt64( 5, (long)((java.lang.Long) sum_)); } if (sumCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sum_); } if (sumCase_ == 8) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sum_); } if (sumCase_ == 9) { output.writeSFixed64( 9, (long)((java.lang.Long) sum_)); } if (sumCase_ == 10) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, sum_); } if (sumCase_ == 11) { output.writeBool( 11, (boolean)((java.lang.Boolean) sum_)); } if (sumCase_ == 12) { output.writeMessage(12, (com.google.protobuf.Empty) sum_); } if (sumCase_ == 13) { output.writeInt32( 13, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 14) { output.writeMessage(14, (com.daml.lf.value.ValueOuterClass.Optional) sum_); } if (sumCase_ == 15) { output.writeMessage(15, (com.daml.lf.value.ValueOuterClass.ContractId) sum_); } if (sumCase_ == 16) { output.writeMessage(16, (com.daml.lf.value.ValueOuterClass.Map) sum_); } if (sumCase_ == 17) { output.writeMessage(17, (com.daml.lf.value.ValueOuterClass.Enum) sum_); } if (sumCase_ == 18) { output.writeMessage(18, (com.daml.lf.value.ValueOuterClass.GenMap) sum_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sumCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.daml.lf.value.ValueOuterClass.Record) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.lf.value.ValueOuterClass.Variant) sum_); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.daml.lf.value.ValueOuterClass.List) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size( 5, (long)((java.lang.Long) sum_)); } if (sumCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sum_); } if (sumCase_ == 8) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size( 9, (long)((java.lang.Long) sum_)); } if (sumCase_ == 10) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, sum_); } if (sumCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 11, (boolean)((java.lang.Boolean) sum_)); } if (sumCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.google.protobuf.Empty) sum_); } if (sumCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 13, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.daml.lf.value.ValueOuterClass.Optional) sum_); } if (sumCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.daml.lf.value.ValueOuterClass.ContractId) sum_); } if (sumCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (com.daml.lf.value.ValueOuterClass.Map) sum_); } if (sumCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (com.daml.lf.value.ValueOuterClass.Enum) sum_); } if (sumCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (com.daml.lf.value.ValueOuterClass.GenMap) sum_); } 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.value.ValueOuterClass.Value)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value other = (com.daml.lf.value.ValueOuterClass.Value) obj; if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (!getRecord() .equals(other.getRecord())) return false; break; case 2: if (!getVariant() .equals(other.getVariant())) return false; break; case 4: if (!getList() .equals(other.getList())) return false; break; case 5: if (getInt64() != other.getInt64()) return false; break; case 6: if (!getNumeric() .equals(other.getNumeric())) return false; break; case 8: if (!getText() .equals(other.getText())) return false; break; case 9: if (getTimestamp() != other.getTimestamp()) return false; break; case 10: if (!getParty() .equals(other.getParty())) return false; break; case 11: if (getBool() != other.getBool()) return false; break; case 12: if (!getUnit() .equals(other.getUnit())) return false; break; case 13: if (getDate() != other.getDate()) return false; break; case 14: if (!getOptional() .equals(other.getOptional())) return false; break; case 15: if (!getContractIdStruct() .equals(other.getContractIdStruct())) return false; break; case 16: if (!getMap() .equals(other.getMap())) return false; break; case 17: if (!getEnum() .equals(other.getEnum())) return false; break; case 18: if (!getGenMap() .equals(other.getGenMap())) 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(); switch (sumCase_) { case 1: hash = (37 * hash) + RECORD_FIELD_NUMBER; hash = (53 * hash) + getRecord().hashCode(); break; case 2: hash = (37 * hash) + VARIANT_FIELD_NUMBER; hash = (53 * hash) + getVariant().hashCode(); break; case 4: hash = (37 * hash) + LIST_FIELD_NUMBER; hash = (53 * hash) + getList().hashCode(); break; case 5: hash = (37 * hash) + INT64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInt64()); break; case 6: hash = (37 * hash) + NUMERIC_FIELD_NUMBER; hash = (53 * hash) + getNumeric().hashCode(); break; case 8: hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); break; case 9: hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); break; case 10: hash = (37 * hash) + PARTY_FIELD_NUMBER; hash = (53 * hash) + getParty().hashCode(); break; case 11: hash = (37 * hash) + BOOL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBool()); break; case 12: hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + getUnit().hashCode(); break; case 13: hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate(); break; case 14: hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; hash = (53 * hash) + getOptional().hashCode(); break; case 15: hash = (37 * hash) + CONTRACT_ID_STRUCT_FIELD_NUMBER; hash = (53 * hash) + getContractIdStruct().hashCode(); break; case 16: hash = (37 * hash) + MAP_FIELD_NUMBER; hash = (53 * hash) + getMap().hashCode(); break; case 17: hash = (37 * hash) + ENUM_FIELD_NUMBER; hash = (53 * hash) + getEnum().hashCode(); break; case 18: hash = (37 * hash) + GEN_MAP_FIELD_NUMBER; hash = (53 * hash) + getGenMap().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.Value parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value 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.value.ValueOuterClass.Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value 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.value.ValueOuterClass.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Value 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.value.ValueOuterClass.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Value 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.value.ValueOuterClass.Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Value 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.value.ValueOuterClass.Value 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; } /** *
     * The universe of serializable Daml-LF values.
     * architecture-handbook-entry-begin: Value
     * 
* * Protobuf type {@code com.daml.lf.value.Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value) com.daml.lf.value.ValueOuterClass.ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.class, com.daml.lf.value.ValueOuterClass.Value.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (recordBuilder_ != null) { recordBuilder_.clear(); } if (variantBuilder_ != null) { variantBuilder_.clear(); } if (listBuilder_ != null) { listBuilder_.clear(); } if (unitBuilder_ != null) { unitBuilder_.clear(); } if (optionalBuilder_ != null) { optionalBuilder_.clear(); } if (contractIdStructBuilder_ != null) { contractIdStructBuilder_.clear(); } if (mapBuilder_ != null) { mapBuilder_.clear(); } if (enumBuilder_ != null) { enumBuilder_.clear(); } if (genMapBuilder_ != null) { genMapBuilder_.clear(); } sumCase_ = 0; sum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value build() { com.daml.lf.value.ValueOuterClass.Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value buildPartial() { com.daml.lf.value.ValueOuterClass.Value result = new com.daml.lf.value.ValueOuterClass.Value(this); if (sumCase_ == 1) { if (recordBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = recordBuilder_.build(); } } if (sumCase_ == 2) { if (variantBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = variantBuilder_.build(); } } if (sumCase_ == 4) { if (listBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = listBuilder_.build(); } } if (sumCase_ == 5) { result.sum_ = sum_; } if (sumCase_ == 6) { result.sum_ = sum_; } if (sumCase_ == 8) { result.sum_ = sum_; } if (sumCase_ == 9) { result.sum_ = sum_; } if (sumCase_ == 10) { result.sum_ = sum_; } if (sumCase_ == 11) { result.sum_ = sum_; } if (sumCase_ == 12) { if (unitBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = unitBuilder_.build(); } } if (sumCase_ == 13) { result.sum_ = sum_; } if (sumCase_ == 14) { if (optionalBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = optionalBuilder_.build(); } } if (sumCase_ == 15) { if (contractIdStructBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = contractIdStructBuilder_.build(); } } if (sumCase_ == 16) { if (mapBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = mapBuilder_.build(); } } if (sumCase_ == 17) { if (enumBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = enumBuilder_.build(); } } if (sumCase_ == 18) { if (genMapBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = genMapBuilder_.build(); } } result.sumCase_ = sumCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Value) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value other) { if (other == com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance()) return this; switch (other.getSumCase()) { case RECORD: { mergeRecord(other.getRecord()); break; } case VARIANT: { mergeVariant(other.getVariant()); break; } case LIST: { mergeList(other.getList()); break; } case INT64: { setInt64(other.getInt64()); break; } case NUMERIC: { sumCase_ = 6; sum_ = other.sum_; onChanged(); break; } case TEXT: { sumCase_ = 8; sum_ = other.sum_; onChanged(); break; } case TIMESTAMP: { setTimestamp(other.getTimestamp()); break; } case PARTY: { sumCase_ = 10; sum_ = other.sum_; onChanged(); break; } case BOOL: { setBool(other.getBool()); break; } case UNIT: { mergeUnit(other.getUnit()); break; } case DATE: { setDate(other.getDate()); break; } case OPTIONAL: { mergeOptional(other.getOptional()); break; } case CONTRACT_ID_STRUCT: { mergeContractIdStruct(other.getContractIdStruct()); break; } case MAP: { mergeMap(other.getMap()); break; } case ENUM: { mergeEnum(other.getEnum()); break; } case GEN_MAP: { mergeGenMap(other.getGenMap()); break; } case SUM_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( getRecordFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1; break; } // case 10 case 18: { input.readMessage( getVariantFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 2; break; } // case 18 case 34: { input.readMessage( getListFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 4; break; } // case 34 case 40: { sum_ = input.readSInt64(); sumCase_ = 5; break; } // case 40 case 50: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 6; sum_ = s; break; } // case 50 case 66: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 8; sum_ = s; break; } // case 66 case 73: { sum_ = input.readSFixed64(); sumCase_ = 9; break; } // case 73 case 82: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 10; sum_ = s; break; } // case 82 case 88: { sum_ = input.readBool(); sumCase_ = 11; break; } // case 88 case 98: { input.readMessage( getUnitFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 12; break; } // case 98 case 104: { sum_ = input.readInt32(); sumCase_ = 13; break; } // case 104 case 114: { input.readMessage( getOptionalFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 14; break; } // case 114 case 122: { input.readMessage( getContractIdStructFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 15; break; } // case 122 case 130: { input.readMessage( getMapFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 16; break; } // case 130 case 138: { input.readMessage( getEnumFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 17; break; } // case 138 case 146: { input.readMessage( getGenMapFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 18; break; } // case 146 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 sumCase_ = 0; private java.lang.Object sum_; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public Builder clearSum() { sumCase_ = 0; sum_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Record, com.daml.lf.value.ValueOuterClass.Record.Builder, com.daml.lf.value.ValueOuterClass.RecordOrBuilder> recordBuilder_; /** * .com.daml.lf.value.Record record = 1; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return sumCase_ == 1; } /** * .com.daml.lf.value.Record record = 1; * @return The record. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Record getRecord() { if (recordBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.lf.value.ValueOuterClass.Record) sum_; } return com.daml.lf.value.ValueOuterClass.Record.getDefaultInstance(); } else { if (sumCase_ == 1) { return recordBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Record.getDefaultInstance(); } } /** * .com.daml.lf.value.Record record = 1; */ public Builder setRecord(com.daml.lf.value.ValueOuterClass.Record value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { recordBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .com.daml.lf.value.Record record = 1; */ public Builder setRecord( com.daml.lf.value.ValueOuterClass.Record.Builder builderForValue) { if (recordBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { recordBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** * .com.daml.lf.value.Record record = 1; */ public Builder mergeRecord(com.daml.lf.value.ValueOuterClass.Record value) { if (recordBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.lf.value.ValueOuterClass.Record.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Record.newBuilder((com.daml.lf.value.ValueOuterClass.Record) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1) { recordBuilder_.mergeFrom(value); } recordBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .com.daml.lf.value.Record record = 1; */ public Builder clearRecord() { if (recordBuilder_ == null) { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; } recordBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Record record = 1; */ public com.daml.lf.value.ValueOuterClass.Record.Builder getRecordBuilder() { return getRecordFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Record record = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.RecordOrBuilder getRecordOrBuilder() { if ((sumCase_ == 1) && (recordBuilder_ != null)) { return recordBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.lf.value.ValueOuterClass.Record) sum_; } return com.daml.lf.value.ValueOuterClass.Record.getDefaultInstance(); } } /** * .com.daml.lf.value.Record record = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Record, com.daml.lf.value.ValueOuterClass.Record.Builder, com.daml.lf.value.ValueOuterClass.RecordOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.lf.value.ValueOuterClass.Record.getDefaultInstance(); } recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Record, com.daml.lf.value.ValueOuterClass.Record.Builder, com.daml.lf.value.ValueOuterClass.RecordOrBuilder>( (com.daml.lf.value.ValueOuterClass.Record) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return recordBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Variant, com.daml.lf.value.ValueOuterClass.Variant.Builder, com.daml.lf.value.ValueOuterClass.VariantOrBuilder> variantBuilder_; /** * .com.daml.lf.value.Variant variant = 2; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return sumCase_ == 2; } /** * .com.daml.lf.value.Variant variant = 2; * @return The variant. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Variant getVariant() { if (variantBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.lf.value.ValueOuterClass.Variant) sum_; } return com.daml.lf.value.ValueOuterClass.Variant.getDefaultInstance(); } else { if (sumCase_ == 2) { return variantBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Variant.getDefaultInstance(); } } /** * .com.daml.lf.value.Variant variant = 2; */ public Builder setVariant(com.daml.lf.value.ValueOuterClass.Variant value) { if (variantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { variantBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .com.daml.lf.value.Variant variant = 2; */ public Builder setVariant( com.daml.lf.value.ValueOuterClass.Variant.Builder builderForValue) { if (variantBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { variantBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** * .com.daml.lf.value.Variant variant = 2; */ public Builder mergeVariant(com.daml.lf.value.ValueOuterClass.Variant value) { if (variantBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.lf.value.ValueOuterClass.Variant.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Variant.newBuilder((com.daml.lf.value.ValueOuterClass.Variant) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 2) { variantBuilder_.mergeFrom(value); } variantBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .com.daml.lf.value.Variant variant = 2; */ public Builder clearVariant() { if (variantBuilder_ == null) { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; } variantBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Variant variant = 2; */ public com.daml.lf.value.ValueOuterClass.Variant.Builder getVariantBuilder() { return getVariantFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Variant variant = 2; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.VariantOrBuilder getVariantOrBuilder() { if ((sumCase_ == 2) && (variantBuilder_ != null)) { return variantBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.lf.value.ValueOuterClass.Variant) sum_; } return com.daml.lf.value.ValueOuterClass.Variant.getDefaultInstance(); } } /** * .com.daml.lf.value.Variant variant = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Variant, com.daml.lf.value.ValueOuterClass.Variant.Builder, com.daml.lf.value.ValueOuterClass.VariantOrBuilder> getVariantFieldBuilder() { if (variantBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.lf.value.ValueOuterClass.Variant.getDefaultInstance(); } variantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Variant, com.daml.lf.value.ValueOuterClass.Variant.Builder, com.daml.lf.value.ValueOuterClass.VariantOrBuilder>( (com.daml.lf.value.ValueOuterClass.Variant) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return variantBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.List, com.daml.lf.value.ValueOuterClass.List.Builder, com.daml.lf.value.ValueOuterClass.ListOrBuilder> listBuilder_; /** * .com.daml.lf.value.List list = 4; * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return sumCase_ == 4; } /** * .com.daml.lf.value.List list = 4; * @return The list. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.List getList() { if (listBuilder_ == null) { if (sumCase_ == 4) { return (com.daml.lf.value.ValueOuterClass.List) sum_; } return com.daml.lf.value.ValueOuterClass.List.getDefaultInstance(); } else { if (sumCase_ == 4) { return listBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.List.getDefaultInstance(); } } /** * .com.daml.lf.value.List list = 4; */ public Builder setList(com.daml.lf.value.ValueOuterClass.List value) { if (listBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { listBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .com.daml.lf.value.List list = 4; */ public Builder setList( com.daml.lf.value.ValueOuterClass.List.Builder builderForValue) { if (listBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { listBuilder_.setMessage(builderForValue.build()); } sumCase_ = 4; return this; } /** * .com.daml.lf.value.List list = 4; */ public Builder mergeList(com.daml.lf.value.ValueOuterClass.List value) { if (listBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.daml.lf.value.ValueOuterClass.List.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.List.newBuilder((com.daml.lf.value.ValueOuterClass.List) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 4) { listBuilder_.mergeFrom(value); } listBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .com.daml.lf.value.List list = 4; */ public Builder clearList() { if (listBuilder_ == null) { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; } listBuilder_.clear(); } return this; } /** * .com.daml.lf.value.List list = 4; */ public com.daml.lf.value.ValueOuterClass.List.Builder getListBuilder() { return getListFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.List list = 4; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ListOrBuilder getListOrBuilder() { if ((sumCase_ == 4) && (listBuilder_ != null)) { return listBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.daml.lf.value.ValueOuterClass.List) sum_; } return com.daml.lf.value.ValueOuterClass.List.getDefaultInstance(); } } /** * .com.daml.lf.value.List list = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.List, com.daml.lf.value.ValueOuterClass.List.Builder, com.daml.lf.value.ValueOuterClass.ListOrBuilder> getListFieldBuilder() { if (listBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.daml.lf.value.ValueOuterClass.List.getDefaultInstance(); } listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.List, com.daml.lf.value.ValueOuterClass.List.Builder, com.daml.lf.value.ValueOuterClass.ListOrBuilder>( (com.daml.lf.value.ValueOuterClass.List) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged();; return listBuilder_; } /** * sint64 int64 = 5; * @return Whether the int64 field is set. */ public boolean hasInt64() { return sumCase_ == 5; } /** * sint64 int64 = 5; * @return The int64. */ public long getInt64() { if (sumCase_ == 5) { return (java.lang.Long) sum_; } return 0L; } /** * sint64 int64 = 5; * @param value The int64 to set. * @return This builder for chaining. */ public Builder setInt64(long value) { sumCase_ = 5; sum_ = value; onChanged(); return this; } /** * sint64 int64 = 5; * @return This builder for chaining. */ public Builder clearInt64() { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * Between v1 and v5 this field expressed a number in base-10 with up
       * to 28 digits before the decimal point and up to 10 after the decimal
       * point.
       * Starting from v5 this field expressed a number in base-10 with at most
       * 38 digits from which at most 37 can be used in the right hand side
       * of the decimal point.
       * See value.rst for the exact syntaxes.
       * 
* * string numeric = 6; * @return Whether the numeric field is set. */ @java.lang.Override public boolean hasNumeric() { return sumCase_ == 6; } /** *
       * Between v1 and v5 this field expressed a number in base-10 with up
       * to 28 digits before the decimal point and up to 10 after the decimal
       * point.
       * Starting from v5 this field expressed a number in base-10 with at most
       * 38 digits from which at most 37 can be used in the right hand side
       * of the decimal point.
       * See value.rst for the exact syntaxes.
       * 
* * string numeric = 6; * @return The numeric. */ @java.lang.Override public java.lang.String getNumeric() { java.lang.Object ref = ""; if (sumCase_ == 6) { ref = sum_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sumCase_ == 6) { sum_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Between v1 and v5 this field expressed a number in base-10 with up
       * to 28 digits before the decimal point and up to 10 after the decimal
       * point.
       * Starting from v5 this field expressed a number in base-10 with at most
       * 38 digits from which at most 37 can be used in the right hand side
       * of the decimal point.
       * See value.rst for the exact syntaxes.
       * 
* * string numeric = 6; * @return The bytes for numeric. */ @java.lang.Override public com.google.protobuf.ByteString getNumericBytes() { java.lang.Object ref = ""; if (sumCase_ == 6) { ref = sum_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 6) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Between v1 and v5 this field expressed a number in base-10 with up
       * to 28 digits before the decimal point and up to 10 after the decimal
       * point.
       * Starting from v5 this field expressed a number in base-10 with at most
       * 38 digits from which at most 37 can be used in the right hand side
       * of the decimal point.
       * See value.rst for the exact syntaxes.
       * 
* * string numeric = 6; * @param value The numeric to set. * @return This builder for chaining. */ public Builder setNumeric( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 6; sum_ = value; onChanged(); return this; } /** *
       * Between v1 and v5 this field expressed a number in base-10 with up
       * to 28 digits before the decimal point and up to 10 after the decimal
       * point.
       * Starting from v5 this field expressed a number in base-10 with at most
       * 38 digits from which at most 37 can be used in the right hand side
       * of the decimal point.
       * See value.rst for the exact syntaxes.
       * 
* * string numeric = 6; * @return This builder for chaining. */ public Builder clearNumeric() { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * Between v1 and v5 this field expressed a number in base-10 with up
       * to 28 digits before the decimal point and up to 10 after the decimal
       * point.
       * Starting from v5 this field expressed a number in base-10 with at most
       * 38 digits from which at most 37 can be used in the right hand side
       * of the decimal point.
       * See value.rst for the exact syntaxes.
       * 
* * string numeric = 6; * @param value The bytes for numeric to set. * @return This builder for chaining. */ public Builder setNumericBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sumCase_ = 6; sum_ = value; onChanged(); return this; } /** * string text = 8; * @return Whether the text field is set. */ @java.lang.Override public boolean hasText() { return sumCase_ == 8; } /** * string text = 8; * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = ""; if (sumCase_ == 8) { ref = sum_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sumCase_ == 8) { sum_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string text = 8; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (sumCase_ == 8) { ref = sum_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 8) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string text = 8; * @param value The text to set. * @return This builder for chaining. */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 8; sum_ = value; onChanged(); return this; } /** * string text = 8; * @return This builder for chaining. */ public Builder clearText() { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** * string text = 8; * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sumCase_ = 8; sum_ = value; onChanged(); return this; } /** *
       * microseconds since the UNIX epoch. can go backwards. fixed
       * since the vast majority of values will be greater than
       * 2^28, since currently the number of microseconds since the
       * epoch is greater than that. Range: 0001-01-01T00:00:00Z to
       * 9999-12-31T23:59:59.999999Z, so that we can convert to/from
       * https://www.ietf.org/rfc/rfc3339.txt
       * 
* * sfixed64 timestamp = 9; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return sumCase_ == 9; } /** *
       * microseconds since the UNIX epoch. can go backwards. fixed
       * since the vast majority of values will be greater than
       * 2^28, since currently the number of microseconds since the
       * epoch is greater than that. Range: 0001-01-01T00:00:00Z to
       * 9999-12-31T23:59:59.999999Z, so that we can convert to/from
       * https://www.ietf.org/rfc/rfc3339.txt
       * 
* * sfixed64 timestamp = 9; * @return The timestamp. */ public long getTimestamp() { if (sumCase_ == 9) { return (java.lang.Long) sum_; } return 0L; } /** *
       * microseconds since the UNIX epoch. can go backwards. fixed
       * since the vast majority of values will be greater than
       * 2^28, since currently the number of microseconds since the
       * epoch is greater than that. Range: 0001-01-01T00:00:00Z to
       * 9999-12-31T23:59:59.999999Z, so that we can convert to/from
       * https://www.ietf.org/rfc/rfc3339.txt
       * 
* * sfixed64 timestamp = 9; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { sumCase_ = 9; sum_ = value; onChanged(); return this; } /** *
       * microseconds since the UNIX epoch. can go backwards. fixed
       * since the vast majority of values will be greater than
       * 2^28, since currently the number of microseconds since the
       * epoch is greater than that. Range: 0001-01-01T00:00:00Z to
       * 9999-12-31T23:59:59.999999Z, so that we can convert to/from
       * https://www.ietf.org/rfc/rfc3339.txt
       * 
* * sfixed64 timestamp = 9; * @return This builder for chaining. */ public Builder clearTimestamp() { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** * string party = 10; * @return Whether the party field is set. */ @java.lang.Override public boolean hasParty() { return sumCase_ == 10; } /** * string party = 10; * @return The party. */ @java.lang.Override public java.lang.String getParty() { java.lang.Object ref = ""; if (sumCase_ == 10) { ref = sum_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sumCase_ == 10) { sum_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string party = 10; * @return The bytes for party. */ @java.lang.Override public com.google.protobuf.ByteString getPartyBytes() { java.lang.Object ref = ""; if (sumCase_ == 10) { ref = sum_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 10) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string party = 10; * @param value The party to set. * @return This builder for chaining. */ public Builder setParty( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 10; sum_ = value; onChanged(); return this; } /** * string party = 10; * @return This builder for chaining. */ public Builder clearParty() { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** * string party = 10; * @param value The bytes for party to set. * @return This builder for chaining. */ public Builder setPartyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sumCase_ = 10; sum_ = value; onChanged(); return this; } /** * bool bool = 11; * @return Whether the bool field is set. */ public boolean hasBool() { return sumCase_ == 11; } /** * bool bool = 11; * @return The bool. */ public boolean getBool() { if (sumCase_ == 11) { return (java.lang.Boolean) sum_; } return false; } /** * bool bool = 11; * @param value The bool to set. * @return This builder for chaining. */ public Builder setBool(boolean value) { sumCase_ = 11; sum_ = value; onChanged(); return this; } /** * bool bool = 11; * @return This builder for chaining. */ public Builder clearBool() { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> unitBuilder_; /** * .google.protobuf.Empty unit = 12; * @return Whether the unit field is set. */ @java.lang.Override public boolean hasUnit() { return sumCase_ == 12; } /** * .google.protobuf.Empty unit = 12; * @return The unit. */ @java.lang.Override public com.google.protobuf.Empty getUnit() { if (unitBuilder_ == null) { if (sumCase_ == 12) { return (com.google.protobuf.Empty) sum_; } return com.google.protobuf.Empty.getDefaultInstance(); } else { if (sumCase_ == 12) { return unitBuilder_.getMessage(); } return com.google.protobuf.Empty.getDefaultInstance(); } } /** * .google.protobuf.Empty unit = 12; */ public Builder setUnit(com.google.protobuf.Empty value) { if (unitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { unitBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** * .google.protobuf.Empty unit = 12; */ public Builder setUnit( com.google.protobuf.Empty.Builder builderForValue) { if (unitBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { unitBuilder_.setMessage(builderForValue.build()); } sumCase_ = 12; return this; } /** * .google.protobuf.Empty unit = 12; */ public Builder mergeUnit(com.google.protobuf.Empty value) { if (unitBuilder_ == null) { if (sumCase_ == 12 && sum_ != com.google.protobuf.Empty.getDefaultInstance()) { sum_ = com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 12) { unitBuilder_.mergeFrom(value); } unitBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** * .google.protobuf.Empty unit = 12; */ public Builder clearUnit() { if (unitBuilder_ == null) { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; } unitBuilder_.clear(); } return this; } /** * .google.protobuf.Empty unit = 12; */ public com.google.protobuf.Empty.Builder getUnitBuilder() { return getUnitFieldBuilder().getBuilder(); } /** * .google.protobuf.Empty unit = 12; */ @java.lang.Override public com.google.protobuf.EmptyOrBuilder getUnitOrBuilder() { if ((sumCase_ == 12) && (unitBuilder_ != null)) { return unitBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 12) { return (com.google.protobuf.Empty) sum_; } return com.google.protobuf.Empty.getDefaultInstance(); } } /** * .google.protobuf.Empty unit = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> getUnitFieldBuilder() { if (unitBuilder_ == null) { if (!(sumCase_ == 12)) { sum_ = com.google.protobuf.Empty.getDefaultInstance(); } unitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder>( (com.google.protobuf.Empty) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 12; onChanged();; return unitBuilder_; } /** *
       * days since the unix epoch. can go backwards. limited from
       * 0001-01-01 to 9999-12-31, also to be compatible with
       * https://www.ietf.org/rfc/rfc3339.txt
       * 
* * int32 date = 13; * @return Whether the date field is set. */ public boolean hasDate() { return sumCase_ == 13; } /** *
       * days since the unix epoch. can go backwards. limited from
       * 0001-01-01 to 9999-12-31, also to be compatible with
       * https://www.ietf.org/rfc/rfc3339.txt
       * 
* * int32 date = 13; * @return The date. */ public int getDate() { if (sumCase_ == 13) { return (java.lang.Integer) sum_; } return 0; } /** *
       * days since the unix epoch. can go backwards. limited from
       * 0001-01-01 to 9999-12-31, also to be compatible with
       * https://www.ietf.org/rfc/rfc3339.txt
       * 
* * int32 date = 13; * @param value The date to set. * @return This builder for chaining. */ public Builder setDate(int value) { sumCase_ = 13; sum_ = value; onChanged(); return this; } /** *
       * days since the unix epoch. can go backwards. limited from
       * 0001-01-01 to 9999-12-31, also to be compatible with
       * https://www.ietf.org/rfc/rfc3339.txt
       * 
* * int32 date = 13; * @return This builder for chaining. */ public Builder clearDate() { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Optional, com.daml.lf.value.ValueOuterClass.Optional.Builder, com.daml.lf.value.ValueOuterClass.OptionalOrBuilder> optionalBuilder_; /** * .com.daml.lf.value.Optional optional = 14; * @return Whether the optional field is set. */ @java.lang.Override public boolean hasOptional() { return sumCase_ == 14; } /** * .com.daml.lf.value.Optional optional = 14; * @return The optional. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Optional getOptional() { if (optionalBuilder_ == null) { if (sumCase_ == 14) { return (com.daml.lf.value.ValueOuterClass.Optional) sum_; } return com.daml.lf.value.ValueOuterClass.Optional.getDefaultInstance(); } else { if (sumCase_ == 14) { return optionalBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Optional.getDefaultInstance(); } } /** * .com.daml.lf.value.Optional optional = 14; */ public Builder setOptional(com.daml.lf.value.ValueOuterClass.Optional value) { if (optionalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalBuilder_.setMessage(value); } sumCase_ = 14; return this; } /** * .com.daml.lf.value.Optional optional = 14; */ public Builder setOptional( com.daml.lf.value.ValueOuterClass.Optional.Builder builderForValue) { if (optionalBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalBuilder_.setMessage(builderForValue.build()); } sumCase_ = 14; return this; } /** * .com.daml.lf.value.Optional optional = 14; */ public Builder mergeOptional(com.daml.lf.value.ValueOuterClass.Optional value) { if (optionalBuilder_ == null) { if (sumCase_ == 14 && sum_ != com.daml.lf.value.ValueOuterClass.Optional.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Optional.newBuilder((com.daml.lf.value.ValueOuterClass.Optional) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 14) { optionalBuilder_.mergeFrom(value); } optionalBuilder_.setMessage(value); } sumCase_ = 14; return this; } /** * .com.daml.lf.value.Optional optional = 14; */ public Builder clearOptional() { if (optionalBuilder_ == null) { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; } optionalBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Optional optional = 14; */ public com.daml.lf.value.ValueOuterClass.Optional.Builder getOptionalBuilder() { return getOptionalFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Optional optional = 14; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.OptionalOrBuilder getOptionalOrBuilder() { if ((sumCase_ == 14) && (optionalBuilder_ != null)) { return optionalBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 14) { return (com.daml.lf.value.ValueOuterClass.Optional) sum_; } return com.daml.lf.value.ValueOuterClass.Optional.getDefaultInstance(); } } /** * .com.daml.lf.value.Optional optional = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Optional, com.daml.lf.value.ValueOuterClass.Optional.Builder, com.daml.lf.value.ValueOuterClass.OptionalOrBuilder> getOptionalFieldBuilder() { if (optionalBuilder_ == null) { if (!(sumCase_ == 14)) { sum_ = com.daml.lf.value.ValueOuterClass.Optional.getDefaultInstance(); } optionalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Optional, com.daml.lf.value.ValueOuterClass.Optional.Builder, com.daml.lf.value.ValueOuterClass.OptionalOrBuilder>( (com.daml.lf.value.ValueOuterClass.Optional) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 14; onChanged();; return optionalBuilder_; } 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 = 15; * @return Whether the contractIdStruct field is set. */ @java.lang.Override public boolean hasContractIdStruct() { return sumCase_ == 15; } /** * .com.daml.lf.value.ContractId contract_id_struct = 15; * @return The contractIdStruct. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractId getContractIdStruct() { if (contractIdStructBuilder_ == null) { if (sumCase_ == 15) { return (com.daml.lf.value.ValueOuterClass.ContractId) sum_; } return com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance(); } else { if (sumCase_ == 15) { return contractIdStructBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance(); } } /** * .com.daml.lf.value.ContractId contract_id_struct = 15; */ public Builder setContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) { if (contractIdStructBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { contractIdStructBuilder_.setMessage(value); } sumCase_ = 15; return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 15; */ public Builder setContractIdStruct( com.daml.lf.value.ValueOuterClass.ContractId.Builder builderForValue) { if (contractIdStructBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { contractIdStructBuilder_.setMessage(builderForValue.build()); } sumCase_ = 15; return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 15; */ public Builder mergeContractIdStruct(com.daml.lf.value.ValueOuterClass.ContractId value) { if (contractIdStructBuilder_ == null) { if (sumCase_ == 15 && sum_ != com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.ContractId.newBuilder((com.daml.lf.value.ValueOuterClass.ContractId) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 15) { contractIdStructBuilder_.mergeFrom(value); } contractIdStructBuilder_.setMessage(value); } sumCase_ = 15; return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 15; */ public Builder clearContractIdStruct() { if (contractIdStructBuilder_ == null) { if (sumCase_ == 15) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 15) { sumCase_ = 0; sum_ = null; } contractIdStructBuilder_.clear(); } return this; } /** * .com.daml.lf.value.ContractId contract_id_struct = 15; */ public com.daml.lf.value.ValueOuterClass.ContractId.Builder getContractIdStructBuilder() { return getContractIdStructFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.ContractId contract_id_struct = 15; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder getContractIdStructOrBuilder() { if ((sumCase_ == 15) && (contractIdStructBuilder_ != null)) { return contractIdStructBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 15) { return (com.daml.lf.value.ValueOuterClass.ContractId) sum_; } return com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance(); } } /** * .com.daml.lf.value.ContractId contract_id_struct = 15; */ 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) { if (!(sumCase_ == 15)) { sum_ = com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance(); } 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>( (com.daml.lf.value.ValueOuterClass.ContractId) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 15; onChanged();; return contractIdStructBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Map, com.daml.lf.value.ValueOuterClass.Map.Builder, com.daml.lf.value.ValueOuterClass.MapOrBuilder> mapBuilder_; /** * .com.daml.lf.value.Map map = 16; * @return Whether the map field is set. */ @java.lang.Override public boolean hasMap() { return sumCase_ == 16; } /** * .com.daml.lf.value.Map map = 16; * @return The map. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Map getMap() { if (mapBuilder_ == null) { if (sumCase_ == 16) { return (com.daml.lf.value.ValueOuterClass.Map) sum_; } return com.daml.lf.value.ValueOuterClass.Map.getDefaultInstance(); } else { if (sumCase_ == 16) { return mapBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Map.getDefaultInstance(); } } /** * .com.daml.lf.value.Map map = 16; */ public Builder setMap(com.daml.lf.value.ValueOuterClass.Map value) { if (mapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { mapBuilder_.setMessage(value); } sumCase_ = 16; return this; } /** * .com.daml.lf.value.Map map = 16; */ public Builder setMap( com.daml.lf.value.ValueOuterClass.Map.Builder builderForValue) { if (mapBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { mapBuilder_.setMessage(builderForValue.build()); } sumCase_ = 16; return this; } /** * .com.daml.lf.value.Map map = 16; */ public Builder mergeMap(com.daml.lf.value.ValueOuterClass.Map value) { if (mapBuilder_ == null) { if (sumCase_ == 16 && sum_ != com.daml.lf.value.ValueOuterClass.Map.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Map.newBuilder((com.daml.lf.value.ValueOuterClass.Map) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 16) { mapBuilder_.mergeFrom(value); } mapBuilder_.setMessage(value); } sumCase_ = 16; return this; } /** * .com.daml.lf.value.Map map = 16; */ public Builder clearMap() { if (mapBuilder_ == null) { if (sumCase_ == 16) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 16) { sumCase_ = 0; sum_ = null; } mapBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Map map = 16; */ public com.daml.lf.value.ValueOuterClass.Map.Builder getMapBuilder() { return getMapFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Map map = 16; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.MapOrBuilder getMapOrBuilder() { if ((sumCase_ == 16) && (mapBuilder_ != null)) { return mapBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 16) { return (com.daml.lf.value.ValueOuterClass.Map) sum_; } return com.daml.lf.value.ValueOuterClass.Map.getDefaultInstance(); } } /** * .com.daml.lf.value.Map map = 16; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Map, com.daml.lf.value.ValueOuterClass.Map.Builder, com.daml.lf.value.ValueOuterClass.MapOrBuilder> getMapFieldBuilder() { if (mapBuilder_ == null) { if (!(sumCase_ == 16)) { sum_ = com.daml.lf.value.ValueOuterClass.Map.getDefaultInstance(); } mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Map, com.daml.lf.value.ValueOuterClass.Map.Builder, com.daml.lf.value.ValueOuterClass.MapOrBuilder>( (com.daml.lf.value.ValueOuterClass.Map) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 16; onChanged();; return mapBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Enum, com.daml.lf.value.ValueOuterClass.Enum.Builder, com.daml.lf.value.ValueOuterClass.EnumOrBuilder> enumBuilder_; /** * .com.daml.lf.value.Enum enum = 17; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return sumCase_ == 17; } /** * .com.daml.lf.value.Enum enum = 17; * @return The enum. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Enum getEnum() { if (enumBuilder_ == null) { if (sumCase_ == 17) { return (com.daml.lf.value.ValueOuterClass.Enum) sum_; } return com.daml.lf.value.ValueOuterClass.Enum.getDefaultInstance(); } else { if (sumCase_ == 17) { return enumBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Enum.getDefaultInstance(); } } /** * .com.daml.lf.value.Enum enum = 17; */ public Builder setEnum(com.daml.lf.value.ValueOuterClass.Enum value) { if (enumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { enumBuilder_.setMessage(value); } sumCase_ = 17; return this; } /** * .com.daml.lf.value.Enum enum = 17; */ public Builder setEnum( com.daml.lf.value.ValueOuterClass.Enum.Builder builderForValue) { if (enumBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { enumBuilder_.setMessage(builderForValue.build()); } sumCase_ = 17; return this; } /** * .com.daml.lf.value.Enum enum = 17; */ public Builder mergeEnum(com.daml.lf.value.ValueOuterClass.Enum value) { if (enumBuilder_ == null) { if (sumCase_ == 17 && sum_ != com.daml.lf.value.ValueOuterClass.Enum.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Enum.newBuilder((com.daml.lf.value.ValueOuterClass.Enum) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 17) { enumBuilder_.mergeFrom(value); } enumBuilder_.setMessage(value); } sumCase_ = 17; return this; } /** * .com.daml.lf.value.Enum enum = 17; */ public Builder clearEnum() { if (enumBuilder_ == null) { if (sumCase_ == 17) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 17) { sumCase_ = 0; sum_ = null; } enumBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Enum enum = 17; */ public com.daml.lf.value.ValueOuterClass.Enum.Builder getEnumBuilder() { return getEnumFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Enum enum = 17; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.EnumOrBuilder getEnumOrBuilder() { if ((sumCase_ == 17) && (enumBuilder_ != null)) { return enumBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 17) { return (com.daml.lf.value.ValueOuterClass.Enum) sum_; } return com.daml.lf.value.ValueOuterClass.Enum.getDefaultInstance(); } } /** * .com.daml.lf.value.Enum enum = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Enum, com.daml.lf.value.ValueOuterClass.Enum.Builder, com.daml.lf.value.ValueOuterClass.EnumOrBuilder> getEnumFieldBuilder() { if (enumBuilder_ == null) { if (!(sumCase_ == 17)) { sum_ = com.daml.lf.value.ValueOuterClass.Enum.getDefaultInstance(); } enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Enum, com.daml.lf.value.ValueOuterClass.Enum.Builder, com.daml.lf.value.ValueOuterClass.EnumOrBuilder>( (com.daml.lf.value.ValueOuterClass.Enum) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 17; onChanged();; return enumBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.GenMap, com.daml.lf.value.ValueOuterClass.GenMap.Builder, com.daml.lf.value.ValueOuterClass.GenMapOrBuilder> genMapBuilder_; /** *
       * *since version 11*
       * 
* * .com.daml.lf.value.GenMap gen_map = 18; * @return Whether the genMap field is set. */ @java.lang.Override public boolean hasGenMap() { return sumCase_ == 18; } /** *
       * *since version 11*
       * 
* * .com.daml.lf.value.GenMap gen_map = 18; * @return The genMap. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMap getGenMap() { if (genMapBuilder_ == null) { if (sumCase_ == 18) { return (com.daml.lf.value.ValueOuterClass.GenMap) sum_; } return com.daml.lf.value.ValueOuterClass.GenMap.getDefaultInstance(); } else { if (sumCase_ == 18) { return genMapBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.GenMap.getDefaultInstance(); } } /** *
       * *since version 11*
       * 
* * .com.daml.lf.value.GenMap gen_map = 18; */ public Builder setGenMap(com.daml.lf.value.ValueOuterClass.GenMap value) { if (genMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { genMapBuilder_.setMessage(value); } sumCase_ = 18; return this; } /** *
       * *since version 11*
       * 
* * .com.daml.lf.value.GenMap gen_map = 18; */ public Builder setGenMap( com.daml.lf.value.ValueOuterClass.GenMap.Builder builderForValue) { if (genMapBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { genMapBuilder_.setMessage(builderForValue.build()); } sumCase_ = 18; return this; } /** *
       * *since version 11*
       * 
* * .com.daml.lf.value.GenMap gen_map = 18; */ public Builder mergeGenMap(com.daml.lf.value.ValueOuterClass.GenMap value) { if (genMapBuilder_ == null) { if (sumCase_ == 18 && sum_ != com.daml.lf.value.ValueOuterClass.GenMap.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.GenMap.newBuilder((com.daml.lf.value.ValueOuterClass.GenMap) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 18) { genMapBuilder_.mergeFrom(value); } genMapBuilder_.setMessage(value); } sumCase_ = 18; return this; } /** *
       * *since version 11*
       * 
* * .com.daml.lf.value.GenMap gen_map = 18; */ public Builder clearGenMap() { if (genMapBuilder_ == null) { if (sumCase_ == 18) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 18) { sumCase_ = 0; sum_ = null; } genMapBuilder_.clear(); } return this; } /** *
       * *since version 11*
       * 
* * .com.daml.lf.value.GenMap gen_map = 18; */ public com.daml.lf.value.ValueOuterClass.GenMap.Builder getGenMapBuilder() { return getGenMapFieldBuilder().getBuilder(); } /** *
       * *since version 11*
       * 
* * .com.daml.lf.value.GenMap gen_map = 18; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMapOrBuilder getGenMapOrBuilder() { if ((sumCase_ == 18) && (genMapBuilder_ != null)) { return genMapBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 18) { return (com.daml.lf.value.ValueOuterClass.GenMap) sum_; } return com.daml.lf.value.ValueOuterClass.GenMap.getDefaultInstance(); } } /** *
       * *since version 11*
       * 
* * .com.daml.lf.value.GenMap gen_map = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.GenMap, com.daml.lf.value.ValueOuterClass.GenMap.Builder, com.daml.lf.value.ValueOuterClass.GenMapOrBuilder> getGenMapFieldBuilder() { if (genMapBuilder_ == null) { if (!(sumCase_ == 18)) { sum_ = com.daml.lf.value.ValueOuterClass.GenMap.getDefaultInstance(); } genMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.GenMap, com.daml.lf.value.ValueOuterClass.GenMap.Builder, com.daml.lf.value.ValueOuterClass.GenMapOrBuilder>( (com.daml.lf.value.ValueOuterClass.GenMap) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 18; onChanged();; return genMapBuilder_; } @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.value.Value) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value) private static final com.daml.lf.value.ValueOuterClass.Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value(); } public static com.daml.lf.value.ValueOuterClass.Value getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Value 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.value.ValueOuterClass.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecordOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Record) com.google.protobuf.MessageOrBuilder { /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier record_id = 1; * @return Whether the recordId field is set. */ boolean hasRecordId(); /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier record_id = 1; * @return The recordId. */ com.daml.lf.value.ValueOuterClass.Identifier getRecordId(); /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier record_id = 1; */ com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getRecordIdOrBuilder(); /** * repeated .com.daml.lf.value.RecordField fields = 2; */ java.util.List getFieldsList(); /** * repeated .com.daml.lf.value.RecordField fields = 2; */ com.daml.lf.value.ValueOuterClass.RecordField getFields(int index); /** * repeated .com.daml.lf.value.RecordField fields = 2; */ int getFieldsCount(); /** * repeated .com.daml.lf.value.RecordField fields = 2; */ java.util.List getFieldsOrBuilderList(); /** * repeated .com.daml.lf.value.RecordField fields = 2; */ com.daml.lf.value.ValueOuterClass.RecordFieldOrBuilder getFieldsOrBuilder( int index); } /** * Protobuf type {@code com.daml.lf.value.Record} */ public static final class Record extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Record) RecordOrBuilder { private static final long serialVersionUID = 0L; // Use Record.newBuilder() to construct. private Record(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Record() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Record(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Record_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Record_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Record.class, com.daml.lf.value.ValueOuterClass.Record.Builder.class); } public static final int RECORD_ID_FIELD_NUMBER = 1; private com.daml.lf.value.ValueOuterClass.Identifier recordId_; /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier record_id = 1; * @return Whether the recordId field is set. */ @java.lang.Override public boolean hasRecordId() { return recordId_ != null; } /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier record_id = 1; * @return The recordId. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Identifier getRecordId() { return recordId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : recordId_; } /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier record_id = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getRecordIdOrBuilder() { return getRecordId(); } public static final int FIELDS_FIELD_NUMBER = 2; private java.util.List fields_; /** * repeated .com.daml.lf.value.RecordField fields = 2; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.RecordField getFields(int index) { return fields_.get(index); } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.RecordFieldOrBuilder getFieldsOrBuilder( int index) { return fields_.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 (recordId_ != null) { output.writeMessage(1, getRecordId()); } for (int i = 0; i < fields_.size(); i++) { output.writeMessage(2, fields_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (recordId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRecordId()); } for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fields_.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.value.ValueOuterClass.Record)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Record other = (com.daml.lf.value.ValueOuterClass.Record) obj; if (hasRecordId() != other.hasRecordId()) return false; if (hasRecordId()) { if (!getRecordId() .equals(other.getRecordId())) return false; } if (!getFieldsList() .equals(other.getFieldsList())) 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 (hasRecordId()) { hash = (37 * hash) + RECORD_ID_FIELD_NUMBER; hash = (53 * hash) + getRecordId().hashCode(); } if (getFieldsCount() > 0) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.Record parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Record 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.value.ValueOuterClass.Record parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Record 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.value.ValueOuterClass.Record parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Record parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.Record parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Record 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.value.ValueOuterClass.Record parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Record 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.value.ValueOuterClass.Record parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Record 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.value.ValueOuterClass.Record 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.value.Record} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Record) com.daml.lf.value.ValueOuterClass.RecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Record_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Record_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Record.class, com.daml.lf.value.ValueOuterClass.Record.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Record.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (recordIdBuilder_ == null) { recordId_ = null; } else { recordId_ = null; recordIdBuilder_ = null; } if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); } else { fields_ = null; fieldsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Record_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Record getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Record.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Record build() { com.daml.lf.value.ValueOuterClass.Record result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Record buildPartial() { com.daml.lf.value.ValueOuterClass.Record result = new com.daml.lf.value.ValueOuterClass.Record(this); int from_bitField0_ = bitField0_; if (recordIdBuilder_ == null) { result.recordId_ = recordId_; } else { result.recordId_ = recordIdBuilder_.build(); } if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Record) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Record)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Record other) { if (other == com.daml.lf.value.ValueOuterClass.Record.getDefaultInstance()) return this; if (other.hasRecordId()) { mergeRecordId(other.getRecordId()); } if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } 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( getRecordIdFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { com.daml.lf.value.ValueOuterClass.RecordField m = input.readMessage( com.daml.lf.value.ValueOuterClass.RecordField.parser(), extensionRegistry); if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(m); } else { fieldsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.daml.lf.value.ValueOuterClass.Identifier recordId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder> recordIdBuilder_; /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier record_id = 1; * @return Whether the recordId field is set. */ public boolean hasRecordId() { return recordIdBuilder_ != null || recordId_ != null; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier record_id = 1; * @return The recordId. */ public com.daml.lf.value.ValueOuterClass.Identifier getRecordId() { if (recordIdBuilder_ == null) { return recordId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : recordId_; } else { return recordIdBuilder_.getMessage(); } } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier record_id = 1; */ public Builder setRecordId(com.daml.lf.value.ValueOuterClass.Identifier value) { if (recordIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recordId_ = value; onChanged(); } else { recordIdBuilder_.setMessage(value); } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier record_id = 1; */ public Builder setRecordId( com.daml.lf.value.ValueOuterClass.Identifier.Builder builderForValue) { if (recordIdBuilder_ == null) { recordId_ = builderForValue.build(); onChanged(); } else { recordIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier record_id = 1; */ public Builder mergeRecordId(com.daml.lf.value.ValueOuterClass.Identifier value) { if (recordIdBuilder_ == null) { if (recordId_ != null) { recordId_ = com.daml.lf.value.ValueOuterClass.Identifier.newBuilder(recordId_).mergeFrom(value).buildPartial(); } else { recordId_ = value; } onChanged(); } else { recordIdBuilder_.mergeFrom(value); } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier record_id = 1; */ public Builder clearRecordId() { if (recordIdBuilder_ == null) { recordId_ = null; onChanged(); } else { recordId_ = null; recordIdBuilder_ = null; } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier record_id = 1; */ public com.daml.lf.value.ValueOuterClass.Identifier.Builder getRecordIdBuilder() { onChanged(); return getRecordIdFieldBuilder().getBuilder(); } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier record_id = 1; */ public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getRecordIdOrBuilder() { if (recordIdBuilder_ != null) { return recordIdBuilder_.getMessageOrBuilder(); } else { return recordId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : recordId_; } } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier record_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> getRecordIdFieldBuilder() { if (recordIdBuilder_ == null) { recordIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder>( getRecordId(), getParentForChildren(), isClean()); recordId_ = null; } return recordIdBuilder_; } private java.util.List fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.RecordField, com.daml.lf.value.ValueOuterClass.RecordField.Builder, com.daml.lf.value.ValueOuterClass.RecordFieldOrBuilder> fieldsBuilder_; /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public com.daml.lf.value.ValueOuterClass.RecordField getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public Builder setFields( int index, com.daml.lf.value.ValueOuterClass.RecordField value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public Builder setFields( int index, com.daml.lf.value.ValueOuterClass.RecordField.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public Builder addFields(com.daml.lf.value.ValueOuterClass.RecordField value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public Builder addFields( int index, com.daml.lf.value.ValueOuterClass.RecordField value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public Builder addFields( com.daml.lf.value.ValueOuterClass.RecordField.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public Builder addFields( int index, com.daml.lf.value.ValueOuterClass.RecordField.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldsBuilder_.clear(); } return this; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public com.daml.lf.value.ValueOuterClass.RecordField.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public com.daml.lf.value.ValueOuterClass.RecordFieldOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public com.daml.lf.value.ValueOuterClass.RecordField.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.lf.value.ValueOuterClass.RecordField.getDefaultInstance()); } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public com.daml.lf.value.ValueOuterClass.RecordField.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.lf.value.ValueOuterClass.RecordField.getDefaultInstance()); } /** * repeated .com.daml.lf.value.RecordField fields = 2; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.RecordField, com.daml.lf.value.ValueOuterClass.RecordField.Builder, com.daml.lf.value.ValueOuterClass.RecordFieldOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.RecordField, com.daml.lf.value.ValueOuterClass.RecordField.Builder, com.daml.lf.value.ValueOuterClass.RecordFieldOrBuilder>( fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } @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.value.Record) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Record) private static final com.daml.lf.value.ValueOuterClass.Record DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Record(); } public static com.daml.lf.value.ValueOuterClass.Record getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Record 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.value.ValueOuterClass.Record getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecordFieldOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.RecordField) com.google.protobuf.MessageOrBuilder { /** *
     * *until version 11*, optional
     * 
* * string label = 1; * @return The label. */ java.lang.String getLabel(); /** *
     * *until version 11*, optional
     * 
* * string label = 1; * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); /** * .com.daml.lf.value.Value value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** * .com.daml.lf.value.Value value = 2; * @return The value. */ com.daml.lf.value.ValueOuterClass.Value getValue(); /** * .com.daml.lf.value.Value value = 2; */ com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code com.daml.lf.value.RecordField} */ public static final class RecordField extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.RecordField) RecordFieldOrBuilder { private static final long serialVersionUID = 0L; // Use RecordField.newBuilder() to construct. private RecordField(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecordField() { label_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecordField(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_RecordField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_RecordField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.RecordField.class, com.daml.lf.value.ValueOuterClass.RecordField.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** *
     * *until version 11*, optional
     * 
* * string label = 1; * @return The label. */ @java.lang.Override public java.lang.String getLabel() { java.lang.Object ref = label_; 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(); label_ = s; return s; } } /** *
     * *until version 11*, optional
     * 
* * string label = 1; * @return The bytes for label. */ @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private com.daml.lf.value.ValueOuterClass.Value value_; /** * .com.daml.lf.value.Value value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** * .com.daml.lf.value.Value value = 2; * @return The value. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value getValue() { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } /** * .com.daml.lf.value.Value value = 2; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { return getValue(); } 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(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } if (value_ != null) { output.writeMessage(2, getValue()); } 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(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } 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.value.ValueOuterClass.RecordField)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.RecordField other = (com.daml.lf.value.ValueOuterClass.RecordField) obj; if (!getLabel() .equals(other.getLabel())) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) 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) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.RecordField parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.RecordField 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.value.ValueOuterClass.RecordField parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.RecordField 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.value.ValueOuterClass.RecordField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.RecordField parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.RecordField parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.RecordField 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.value.ValueOuterClass.RecordField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.RecordField 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.value.ValueOuterClass.RecordField parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.RecordField 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.value.ValueOuterClass.RecordField 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.value.RecordField} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.RecordField) com.daml.lf.value.ValueOuterClass.RecordFieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_RecordField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_RecordField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.RecordField.class, com.daml.lf.value.ValueOuterClass.RecordField.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.RecordField.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); label_ = ""; if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_RecordField_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.RecordField getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.RecordField.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.RecordField build() { com.daml.lf.value.ValueOuterClass.RecordField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.RecordField buildPartial() { com.daml.lf.value.ValueOuterClass.RecordField result = new com.daml.lf.value.ValueOuterClass.RecordField(this); result.label_ = label_; if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.RecordField) { return mergeFrom((com.daml.lf.value.ValueOuterClass.RecordField)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.RecordField other) { if (other == com.daml.lf.value.ValueOuterClass.RecordField.getDefaultInstance()) return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); } if (other.hasValue()) { mergeValue(other.getValue()); } 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: { label_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object label_ = ""; /** *
       * *until version 11*, optional
       * 
* * string label = 1; * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * *until version 11*, optional
       * 
* * string label = 1; * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *until version 11*, optional
       * 
* * string label = 1; * @param value The label to set. * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** *
       * *until version 11*, optional
       * 
* * string label = 1; * @return This builder for chaining. */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** *
       * *until version 11*, optional
       * 
* * string label = 1; * @param value The bytes for label to set. * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; onChanged(); return this; } private com.daml.lf.value.ValueOuterClass.Value value_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> valueBuilder_; /** * .com.daml.lf.value.Value value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .com.daml.lf.value.Value value = 2; * @return The value. */ public com.daml.lf.value.ValueOuterClass.Value getValue() { if (valueBuilder_ == null) { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .com.daml.lf.value.Value value = 2; */ public Builder setValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder setValue( com.daml.lf.value.ValueOuterClass.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder mergeValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = com.daml.lf.value.ValueOuterClass.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .com.daml.lf.value.Value value = 2; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value value = 2; */ public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } } /** * .com.daml.lf.value.Value value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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.value.RecordField) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.RecordField) private static final com.daml.lf.value.ValueOuterClass.RecordField DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.RecordField(); } public static com.daml.lf.value.ValueOuterClass.RecordField getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecordField 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.value.ValueOuterClass.RecordField getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Identifier) com.google.protobuf.MessageOrBuilder { /** *
     * non-empty
     * 
* * string package_id = 1; * @return The packageId. */ java.lang.String getPackageId(); /** *
     * non-empty
     * 
* * string package_id = 1; * @return The bytes for packageId. */ com.google.protobuf.ByteString getPackageIdBytes(); /** *
     * at least length 1
     * 
* * repeated string module_name = 2; * @return A list containing the moduleName. */ java.util.List getModuleNameList(); /** *
     * at least length 1
     * 
* * repeated string module_name = 2; * @return The count of moduleName. */ int getModuleNameCount(); /** *
     * at least length 1
     * 
* * repeated string module_name = 2; * @param index The index of the element to return. * @return The moduleName at the given index. */ java.lang.String getModuleName(int index); /** *
     * at least length 1
     * 
* * repeated string module_name = 2; * @param index The index of the value to return. * @return The bytes of the moduleName at the given index. */ com.google.protobuf.ByteString getModuleNameBytes(int index); /** *
     * at least length 1
     * 
* * repeated string name = 3; * @return A list containing the name. */ java.util.List getNameList(); /** *
     * at least length 1
     * 
* * repeated string name = 3; * @return The count of name. */ int getNameCount(); /** *
     * at least length 1
     * 
* * repeated string name = 3; * @param index The index of the element to return. * @return The name at the given index. */ java.lang.String getName(int index); /** *
     * at least length 1
     * 
* * repeated string name = 3; * @param index The index of the value to return. * @return The bytes of the name at the given index. */ com.google.protobuf.ByteString getNameBytes(int index); } /** *
   * Each component of the module name and the name have additional
   * lexical restrictions besides non-emptiness -- see the value.rst
   * spec for more info.
   * 
* * Protobuf type {@code com.daml.lf.value.Identifier} */ public static final class Identifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Identifier) IdentifierOrBuilder { private static final long serialVersionUID = 0L; // Use Identifier.newBuilder() to construct. private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Identifier() { packageId_ = ""; moduleName_ = com.google.protobuf.LazyStringArrayList.EMPTY; name_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Identifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Identifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Identifier_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Identifier.class, com.daml.lf.value.ValueOuterClass.Identifier.Builder.class); } public static final int PACKAGE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object packageId_; /** *
     * non-empty
     * 
* * string package_id = 1; * @return The packageId. */ @java.lang.Override public java.lang.String getPackageId() { java.lang.Object ref = packageId_; 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(); packageId_ = s; return s; } } /** *
     * non-empty
     * 
* * string package_id = 1; * @return The bytes for packageId. */ @java.lang.Override public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODULE_NAME_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList moduleName_; /** *
     * at least length 1
     * 
* * repeated string module_name = 2; * @return A list containing the moduleName. */ public com.google.protobuf.ProtocolStringList getModuleNameList() { return moduleName_; } /** *
     * at least length 1
     * 
* * repeated string module_name = 2; * @return The count of moduleName. */ public int getModuleNameCount() { return moduleName_.size(); } /** *
     * at least length 1
     * 
* * repeated string module_name = 2; * @param index The index of the element to return. * @return The moduleName at the given index. */ public java.lang.String getModuleName(int index) { return moduleName_.get(index); } /** *
     * at least length 1
     * 
* * repeated string module_name = 2; * @param index The index of the value to return. * @return The bytes of the moduleName at the given index. */ public com.google.protobuf.ByteString getModuleNameBytes(int index) { return moduleName_.getByteString(index); } public static final int NAME_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList name_; /** *
     * at least length 1
     * 
* * repeated string name = 3; * @return A list containing the name. */ public com.google.protobuf.ProtocolStringList getNameList() { return name_; } /** *
     * at least length 1
     * 
* * repeated string name = 3; * @return The count of name. */ public int getNameCount() { return name_.size(); } /** *
     * at least length 1
     * 
* * repeated string name = 3; * @param index The index of the element to return. * @return The name at the given index. */ public java.lang.String getName(int index) { return name_.get(index); } /** *
     * at least length 1
     * 
* * repeated string name = 3; * @param index The index of the value to return. * @return The bytes of the name at the given index. */ public com.google.protobuf.ByteString getNameBytes(int index) { return name_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageId_); } for (int i = 0; i < moduleName_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, moduleName_.getRaw(i)); } for (int i = 0; i < name_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageId_); } { int dataSize = 0; for (int i = 0; i < moduleName_.size(); i++) { dataSize += computeStringSizeNoTag(moduleName_.getRaw(i)); } size += dataSize; size += 1 * getModuleNameList().size(); } { int dataSize = 0; for (int i = 0; i < name_.size(); i++) { dataSize += computeStringSizeNoTag(name_.getRaw(i)); } size += dataSize; size += 1 * getNameList().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.value.ValueOuterClass.Identifier)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Identifier other = (com.daml.lf.value.ValueOuterClass.Identifier) obj; if (!getPackageId() .equals(other.getPackageId())) return false; if (!getModuleNameList() .equals(other.getModuleNameList())) return false; if (!getNameList() .equals(other.getNameList())) 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_ID_FIELD_NUMBER; hash = (53 * hash) + getPackageId().hashCode(); if (getModuleNameCount() > 0) { hash = (37 * hash) + MODULE_NAME_FIELD_NUMBER; hash = (53 * hash) + getModuleNameList().hashCode(); } if (getNameCount() > 0) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getNameList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.Identifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Identifier 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.value.ValueOuterClass.Identifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Identifier 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.value.ValueOuterClass.Identifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Identifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.Identifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Identifier 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.value.ValueOuterClass.Identifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Identifier 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.value.ValueOuterClass.Identifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Identifier 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.value.ValueOuterClass.Identifier 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; } /** *
     * Each component of the module name and the name have additional
     * lexical restrictions besides non-emptiness -- see the value.rst
     * spec for more info.
     * 
* * Protobuf type {@code com.daml.lf.value.Identifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Identifier) com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Identifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Identifier_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Identifier.class, com.daml.lf.value.ValueOuterClass.Identifier.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Identifier.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); packageId_ = ""; moduleName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); name_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Identifier_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Identifier getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Identifier build() { com.daml.lf.value.ValueOuterClass.Identifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Identifier buildPartial() { com.daml.lf.value.ValueOuterClass.Identifier result = new com.daml.lf.value.ValueOuterClass.Identifier(this); int from_bitField0_ = bitField0_; result.packageId_ = packageId_; if (((bitField0_ & 0x00000001) != 0)) { moduleName_ = moduleName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.moduleName_ = moduleName_; if (((bitField0_ & 0x00000002) != 0)) { name_ = name_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.name_ = name_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Identifier) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Identifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Identifier other) { if (other == com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance()) return this; if (!other.getPackageId().isEmpty()) { packageId_ = other.packageId_; onChanged(); } if (!other.moduleName_.isEmpty()) { if (moduleName_.isEmpty()) { moduleName_ = other.moduleName_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureModuleNameIsMutable(); moduleName_.addAll(other.moduleName_); } onChanged(); } if (!other.name_.isEmpty()) { if (name_.isEmpty()) { name_ = other.name_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNameIsMutable(); name_.addAll(other.name_); } 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: { packageId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureModuleNameIsMutable(); moduleName_.add(s); break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureNameIsMutable(); name_.add(s); 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 packageId_ = ""; /** *
       * non-empty
       * 
* * string package_id = 1; * @return The packageId. */ public java.lang.String getPackageId() { java.lang.Object ref = packageId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); packageId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * non-empty
       * 
* * string package_id = 1; * @return The bytes for packageId. */ public com.google.protobuf.ByteString getPackageIdBytes() { java.lang.Object ref = packageId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * non-empty
       * 
* * string package_id = 1; * @param value The packageId to set. * @return This builder for chaining. */ public Builder setPackageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } packageId_ = value; onChanged(); return this; } /** *
       * non-empty
       * 
* * string package_id = 1; * @return This builder for chaining. */ public Builder clearPackageId() { packageId_ = getDefaultInstance().getPackageId(); onChanged(); return this; } /** *
       * non-empty
       * 
* * string package_id = 1; * @param value The bytes for packageId to set. * @return This builder for chaining. */ public Builder setPackageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); packageId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList moduleName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureModuleNameIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { moduleName_ = new com.google.protobuf.LazyStringArrayList(moduleName_); bitField0_ |= 0x00000001; } } /** *
       * at least length 1
       * 
* * repeated string module_name = 2; * @return A list containing the moduleName. */ public com.google.protobuf.ProtocolStringList getModuleNameList() { return moduleName_.getUnmodifiableView(); } /** *
       * at least length 1
       * 
* * repeated string module_name = 2; * @return The count of moduleName. */ public int getModuleNameCount() { return moduleName_.size(); } /** *
       * at least length 1
       * 
* * repeated string module_name = 2; * @param index The index of the element to return. * @return The moduleName at the given index. */ public java.lang.String getModuleName(int index) { return moduleName_.get(index); } /** *
       * at least length 1
       * 
* * repeated string module_name = 2; * @param index The index of the value to return. * @return The bytes of the moduleName at the given index. */ public com.google.protobuf.ByteString getModuleNameBytes(int index) { return moduleName_.getByteString(index); } /** *
       * at least length 1
       * 
* * repeated string module_name = 2; * @param index The index to set the value at. * @param value The moduleName to set. * @return This builder for chaining. */ public Builder setModuleName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureModuleNameIsMutable(); moduleName_.set(index, value); onChanged(); return this; } /** *
       * at least length 1
       * 
* * repeated string module_name = 2; * @param value The moduleName to add. * @return This builder for chaining. */ public Builder addModuleName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureModuleNameIsMutable(); moduleName_.add(value); onChanged(); return this; } /** *
       * at least length 1
       * 
* * repeated string module_name = 2; * @param values The moduleName to add. * @return This builder for chaining. */ public Builder addAllModuleName( java.lang.Iterable values) { ensureModuleNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, moduleName_); onChanged(); return this; } /** *
       * at least length 1
       * 
* * repeated string module_name = 2; * @return This builder for chaining. */ public Builder clearModuleName() { moduleName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * at least length 1
       * 
* * repeated string module_name = 2; * @param value The bytes of the moduleName to add. * @return This builder for chaining. */ public Builder addModuleNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureModuleNameIsMutable(); moduleName_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList name_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNameIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { name_ = new com.google.protobuf.LazyStringArrayList(name_); bitField0_ |= 0x00000002; } } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @return A list containing the name. */ public com.google.protobuf.ProtocolStringList getNameList() { return name_.getUnmodifiableView(); } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @return The count of name. */ public int getNameCount() { return name_.size(); } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @param index The index of the element to return. * @return The name at the given index. */ public java.lang.String getName(int index) { return name_.get(index); } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @param index The index of the value to return. * @return The bytes of the name at the given index. */ public com.google.protobuf.ByteString getNameBytes(int index) { return name_.getByteString(index); } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @param index The index to set the value at. * @param value The name to set. * @return This builder for chaining. */ public Builder setName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.set(index, value); onChanged(); return this; } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @param value The name to add. * @return This builder for chaining. */ public Builder addName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.add(value); onChanged(); return this; } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @param values The name to add. * @return This builder for chaining. */ public Builder addAllName( java.lang.Iterable values) { ensureNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, name_); onChanged(); return this; } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @param value The bytes of the name to add. * @return This builder for chaining. */ public Builder addNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNameIsMutable(); name_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.lf.value.Identifier) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Identifier) private static final com.daml.lf.value.ValueOuterClass.Identifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Identifier(); } public static com.daml.lf.value.ValueOuterClass.Identifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Identifier 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.value.ValueOuterClass.Identifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VariantOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Variant) com.google.protobuf.MessageOrBuilder { /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier variant_id = 1; * @return Whether the variantId field is set. */ boolean hasVariantId(); /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier variant_id = 1; * @return The variantId. */ com.daml.lf.value.ValueOuterClass.Identifier getVariantId(); /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier variant_id = 1; */ com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getVariantIdOrBuilder(); /** * string constructor = 2; * @return The constructor. */ java.lang.String getConstructor(); /** * string constructor = 2; * @return The bytes for constructor. */ com.google.protobuf.ByteString getConstructorBytes(); /** * .com.daml.lf.value.Value value = 3; * @return Whether the value field is set. */ boolean hasValue(); /** * .com.daml.lf.value.Value value = 3; * @return The value. */ com.daml.lf.value.ValueOuterClass.Value getValue(); /** * .com.daml.lf.value.Value value = 3; */ com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code com.daml.lf.value.Variant} */ public static final class Variant extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Variant) VariantOrBuilder { private static final long serialVersionUID = 0L; // Use Variant.newBuilder() to construct. private Variant(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Variant() { constructor_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Variant(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Variant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Variant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Variant.class, com.daml.lf.value.ValueOuterClass.Variant.Builder.class); } public static final int VARIANT_ID_FIELD_NUMBER = 1; private com.daml.lf.value.ValueOuterClass.Identifier variantId_; /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier variant_id = 1; * @return Whether the variantId field is set. */ @java.lang.Override public boolean hasVariantId() { return variantId_ != null; } /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier variant_id = 1; * @return The variantId. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Identifier getVariantId() { return variantId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : variantId_; } /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier variant_id = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getVariantIdOrBuilder() { return getVariantId(); } public static final int CONSTRUCTOR_FIELD_NUMBER = 2; private volatile java.lang.Object constructor_; /** * string constructor = 2; * @return The constructor. */ @java.lang.Override public java.lang.String getConstructor() { java.lang.Object ref = constructor_; 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(); constructor_ = s; return s; } } /** * string constructor = 2; * @return The bytes for constructor. */ @java.lang.Override public com.google.protobuf.ByteString getConstructorBytes() { java.lang.Object ref = constructor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); constructor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 3; private com.daml.lf.value.ValueOuterClass.Value value_; /** * .com.daml.lf.value.Value value = 3; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** * .com.daml.lf.value.Value value = 3; * @return The value. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value getValue() { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } /** * .com.daml.lf.value.Value value = 3; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { return getValue(); } 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 (variantId_ != null) { output.writeMessage(1, getVariantId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constructor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constructor_); } if (value_ != null) { output.writeMessage(3, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (variantId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getVariantId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constructor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constructor_); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValue()); } 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.value.ValueOuterClass.Variant)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Variant other = (com.daml.lf.value.ValueOuterClass.Variant) obj; if (hasVariantId() != other.hasVariantId()) return false; if (hasVariantId()) { if (!getVariantId() .equals(other.getVariantId())) return false; } if (!getConstructor() .equals(other.getConstructor())) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) 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 (hasVariantId()) { hash = (37 * hash) + VARIANT_ID_FIELD_NUMBER; hash = (53 * hash) + getVariantId().hashCode(); } hash = (37 * hash) + CONSTRUCTOR_FIELD_NUMBER; hash = (53 * hash) + getConstructor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.Variant parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Variant 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.value.ValueOuterClass.Variant parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Variant 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.value.ValueOuterClass.Variant parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Variant parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.Variant parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Variant 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.value.ValueOuterClass.Variant parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Variant 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.value.ValueOuterClass.Variant parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Variant 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.value.ValueOuterClass.Variant 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.value.Variant} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Variant) com.daml.lf.value.ValueOuterClass.VariantOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Variant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Variant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Variant.class, com.daml.lf.value.ValueOuterClass.Variant.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Variant.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (variantIdBuilder_ == null) { variantId_ = null; } else { variantId_ = null; variantIdBuilder_ = null; } constructor_ = ""; if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Variant_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Variant getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Variant.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Variant build() { com.daml.lf.value.ValueOuterClass.Variant result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Variant buildPartial() { com.daml.lf.value.ValueOuterClass.Variant result = new com.daml.lf.value.ValueOuterClass.Variant(this); if (variantIdBuilder_ == null) { result.variantId_ = variantId_; } else { result.variantId_ = variantIdBuilder_.build(); } result.constructor_ = constructor_; if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Variant) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Variant)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Variant other) { if (other == com.daml.lf.value.ValueOuterClass.Variant.getDefaultInstance()) return this; if (other.hasVariantId()) { mergeVariantId(other.getVariantId()); } if (!other.getConstructor().isEmpty()) { constructor_ = other.constructor_; onChanged(); } if (other.hasValue()) { mergeValue(other.getValue()); } 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( getVariantIdFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { constructor_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.daml.lf.value.ValueOuterClass.Identifier variantId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder> variantIdBuilder_; /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier variant_id = 1; * @return Whether the variantId field is set. */ public boolean hasVariantId() { return variantIdBuilder_ != null || variantId_ != null; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier variant_id = 1; * @return The variantId. */ public com.daml.lf.value.ValueOuterClass.Identifier getVariantId() { if (variantIdBuilder_ == null) { return variantId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : variantId_; } else { return variantIdBuilder_.getMessage(); } } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier variant_id = 1; */ public Builder setVariantId(com.daml.lf.value.ValueOuterClass.Identifier value) { if (variantIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } variantId_ = value; onChanged(); } else { variantIdBuilder_.setMessage(value); } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier variant_id = 1; */ public Builder setVariantId( com.daml.lf.value.ValueOuterClass.Identifier.Builder builderForValue) { if (variantIdBuilder_ == null) { variantId_ = builderForValue.build(); onChanged(); } else { variantIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier variant_id = 1; */ public Builder mergeVariantId(com.daml.lf.value.ValueOuterClass.Identifier value) { if (variantIdBuilder_ == null) { if (variantId_ != null) { variantId_ = com.daml.lf.value.ValueOuterClass.Identifier.newBuilder(variantId_).mergeFrom(value).buildPartial(); } else { variantId_ = value; } onChanged(); } else { variantIdBuilder_.mergeFrom(value); } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier variant_id = 1; */ public Builder clearVariantId() { if (variantIdBuilder_ == null) { variantId_ = null; onChanged(); } else { variantId_ = null; variantIdBuilder_ = null; } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier variant_id = 1; */ public com.daml.lf.value.ValueOuterClass.Identifier.Builder getVariantIdBuilder() { onChanged(); return getVariantIdFieldBuilder().getBuilder(); } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier variant_id = 1; */ public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getVariantIdOrBuilder() { if (variantIdBuilder_ != null) { return variantIdBuilder_.getMessageOrBuilder(); } else { return variantId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : variantId_; } } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier variant_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> getVariantIdFieldBuilder() { if (variantIdBuilder_ == null) { variantIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder>( getVariantId(), getParentForChildren(), isClean()); variantId_ = null; } return variantIdBuilder_; } private java.lang.Object constructor_ = ""; /** * string constructor = 2; * @return The constructor. */ public java.lang.String getConstructor() { java.lang.Object ref = constructor_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); constructor_ = s; return s; } else { return (java.lang.String) ref; } } /** * string constructor = 2; * @return The bytes for constructor. */ public com.google.protobuf.ByteString getConstructorBytes() { java.lang.Object ref = constructor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); constructor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string constructor = 2; * @param value The constructor to set. * @return This builder for chaining. */ public Builder setConstructor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } constructor_ = value; onChanged(); return this; } /** * string constructor = 2; * @return This builder for chaining. */ public Builder clearConstructor() { constructor_ = getDefaultInstance().getConstructor(); onChanged(); return this; } /** * string constructor = 2; * @param value The bytes for constructor to set. * @return This builder for chaining. */ public Builder setConstructorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); constructor_ = value; onChanged(); return this; } private com.daml.lf.value.ValueOuterClass.Value value_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> valueBuilder_; /** * .com.daml.lf.value.Value value = 3; * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .com.daml.lf.value.Value value = 3; * @return The value. */ public com.daml.lf.value.ValueOuterClass.Value getValue() { if (valueBuilder_ == null) { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .com.daml.lf.value.Value value = 3; */ public Builder setValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .com.daml.lf.value.Value value = 3; */ public Builder setValue( com.daml.lf.value.ValueOuterClass.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.daml.lf.value.Value value = 3; */ public Builder mergeValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = com.daml.lf.value.ValueOuterClass.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .com.daml.lf.value.Value value = 3; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .com.daml.lf.value.Value value = 3; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value value = 3; */ public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } } /** * .com.daml.lf.value.Value value = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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.value.Variant) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Variant) private static final com.daml.lf.value.ValueOuterClass.Variant DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Variant(); } public static com.daml.lf.value.ValueOuterClass.Variant getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Variant 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.value.ValueOuterClass.Variant getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Enum) com.google.protobuf.MessageOrBuilder { /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier enum_id = 1; * @return Whether the enumId field is set. */ boolean hasEnumId(); /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier enum_id = 1; * @return The enumId. */ com.daml.lf.value.ValueOuterClass.Identifier getEnumId(); /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier enum_id = 1; */ com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getEnumIdOrBuilder(); /** * string value = 2; * @return The value. */ java.lang.String getValue(); /** * string value = 2; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code com.daml.lf.value.Enum} */ public static final class Enum extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Enum) EnumOrBuilder { private static final long serialVersionUID = 0L; // Use Enum.newBuilder() to construct. private Enum(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Enum() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Enum(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Enum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Enum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Enum.class, com.daml.lf.value.ValueOuterClass.Enum.Builder.class); } public static final int ENUM_ID_FIELD_NUMBER = 1; private com.daml.lf.value.ValueOuterClass.Identifier enumId_; /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier enum_id = 1; * @return Whether the enumId field is set. */ @java.lang.Override public boolean hasEnumId() { return enumId_ != null; } /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier enum_id = 1; * @return The enumId. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Identifier getEnumId() { return enumId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : enumId_; } /** *
     * *until version 11*, optional
     * 
* * .com.daml.lf.value.Identifier enum_id = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getEnumIdOrBuilder() { return getEnumId(); } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * string value = 2; * @return The value. */ @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = value_; 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(); value_ = s; return s; } } /** * string value = 2; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = 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 (enumId_ != null) { output.writeMessage(1, getEnumId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enumId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEnumId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } 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.value.ValueOuterClass.Enum)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Enum other = (com.daml.lf.value.ValueOuterClass.Enum) obj; if (hasEnumId() != other.hasEnumId()) return false; if (hasEnumId()) { if (!getEnumId() .equals(other.getEnumId())) return false; } if (!getValue() .equals(other.getValue())) 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 (hasEnumId()) { hash = (37 * hash) + ENUM_ID_FIELD_NUMBER; hash = (53 * hash) + getEnumId().hashCode(); } hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.Enum parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Enum 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.value.ValueOuterClass.Enum parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Enum 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.value.ValueOuterClass.Enum parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Enum parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.Enum parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Enum 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.value.ValueOuterClass.Enum parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Enum 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.value.ValueOuterClass.Enum parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Enum 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.value.ValueOuterClass.Enum 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.value.Enum} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Enum) com.daml.lf.value.ValueOuterClass.EnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Enum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Enum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Enum.class, com.daml.lf.value.ValueOuterClass.Enum.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Enum.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (enumIdBuilder_ == null) { enumId_ = null; } else { enumId_ = null; enumIdBuilder_ = null; } value_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Enum_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Enum getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Enum.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Enum build() { com.daml.lf.value.ValueOuterClass.Enum result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Enum buildPartial() { com.daml.lf.value.ValueOuterClass.Enum result = new com.daml.lf.value.ValueOuterClass.Enum(this); if (enumIdBuilder_ == null) { result.enumId_ = enumId_; } else { result.enumId_ = enumIdBuilder_.build(); } result.value_ = value_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Enum) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Enum)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Enum other) { if (other == com.daml.lf.value.ValueOuterClass.Enum.getDefaultInstance()) return this; if (other.hasEnumId()) { mergeEnumId(other.getEnumId()); } if (!other.getValue().isEmpty()) { value_ = other.value_; 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( getEnumIdFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { value_ = input.readStringRequireUtf8(); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.daml.lf.value.ValueOuterClass.Identifier enumId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder> enumIdBuilder_; /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier enum_id = 1; * @return Whether the enumId field is set. */ public boolean hasEnumId() { return enumIdBuilder_ != null || enumId_ != null; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier enum_id = 1; * @return The enumId. */ public com.daml.lf.value.ValueOuterClass.Identifier getEnumId() { if (enumIdBuilder_ == null) { return enumId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : enumId_; } else { return enumIdBuilder_.getMessage(); } } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier enum_id = 1; */ public Builder setEnumId(com.daml.lf.value.ValueOuterClass.Identifier value) { if (enumIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } enumId_ = value; onChanged(); } else { enumIdBuilder_.setMessage(value); } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier enum_id = 1; */ public Builder setEnumId( com.daml.lf.value.ValueOuterClass.Identifier.Builder builderForValue) { if (enumIdBuilder_ == null) { enumId_ = builderForValue.build(); onChanged(); } else { enumIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier enum_id = 1; */ public Builder mergeEnumId(com.daml.lf.value.ValueOuterClass.Identifier value) { if (enumIdBuilder_ == null) { if (enumId_ != null) { enumId_ = com.daml.lf.value.ValueOuterClass.Identifier.newBuilder(enumId_).mergeFrom(value).buildPartial(); } else { enumId_ = value; } onChanged(); } else { enumIdBuilder_.mergeFrom(value); } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier enum_id = 1; */ public Builder clearEnumId() { if (enumIdBuilder_ == null) { enumId_ = null; onChanged(); } else { enumId_ = null; enumIdBuilder_ = null; } return this; } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier enum_id = 1; */ public com.daml.lf.value.ValueOuterClass.Identifier.Builder getEnumIdBuilder() { onChanged(); return getEnumIdFieldBuilder().getBuilder(); } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier enum_id = 1; */ public com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder getEnumIdOrBuilder() { if (enumIdBuilder_ != null) { return enumIdBuilder_.getMessageOrBuilder(); } else { return enumId_ == null ? com.daml.lf.value.ValueOuterClass.Identifier.getDefaultInstance() : enumId_; } } /** *
       * *until version 11*, optional
       * 
* * .com.daml.lf.value.Identifier enum_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> getEnumIdFieldBuilder() { if (enumIdBuilder_ == null) { enumIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Identifier, com.daml.lf.value.ValueOuterClass.Identifier.Builder, com.daml.lf.value.ValueOuterClass.IdentifierOrBuilder>( getEnumId(), getParentForChildren(), isClean()); enumId_ = null; } return enumIdBuilder_; } private java.lang.Object value_ = ""; /** * string value = 2; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * string value = 2; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * string value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * string value = 2; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.lf.value.Enum) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Enum) private static final com.daml.lf.value.ValueOuterClass.Enum DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Enum(); } public static com.daml.lf.value.ValueOuterClass.Enum getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Enum 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.value.ValueOuterClass.Enum getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContractIdOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.ContractId) com.google.protobuf.MessageOrBuilder { /** * string contract_id = 1; * @return The contractId. */ java.lang.String getContractId(); /** * string contract_id = 1; * @return The bytes for contractId. */ com.google.protobuf.ByteString getContractIdBytes(); } /** * Protobuf type {@code com.daml.lf.value.ContractId} */ public static final class ContractId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.ContractId) ContractIdOrBuilder { private static final long serialVersionUID = 0L; // Use ContractId.newBuilder() to construct. private ContractId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContractId() { contractId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ContractId(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_ContractId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_ContractId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.ContractId.class, com.daml.lf.value.ValueOuterClass.ContractId.Builder.class); } public static final int CONTRACT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object contractId_; /** * string contract_id = 1; * @return The contractId. */ @java.lang.Override public java.lang.String getContractId() { java.lang.Object ref = contractId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contractId_ = s; return s; } } /** * string contract_id = 1; * @return The bytes for contractId. */ @java.lang.Override public com.google.protobuf.ByteString getContractIdBytes() { java.lang.Object ref = contractId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contractId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contractId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contractId_); } 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.value.ValueOuterClass.ContractId)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.ContractId other = (com.daml.lf.value.ValueOuterClass.ContractId) obj; if (!getContractId() .equals(other.getContractId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONTRACT_ID_FIELD_NUMBER; hash = (53 * hash) + getContractId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.ContractId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.ContractId 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.value.ValueOuterClass.ContractId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.ContractId 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.value.ValueOuterClass.ContractId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.ContractId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.ContractId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.ContractId 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.value.ValueOuterClass.ContractId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.ContractId 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.value.ValueOuterClass.ContractId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.ContractId 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.value.ValueOuterClass.ContractId 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.value.ContractId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.ContractId) com.daml.lf.value.ValueOuterClass.ContractIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_ContractId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_ContractId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.ContractId.class, com.daml.lf.value.ValueOuterClass.ContractId.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.ContractId.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); contractId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_ContractId_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractId getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractId build() { com.daml.lf.value.ValueOuterClass.ContractId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.ContractId buildPartial() { com.daml.lf.value.ValueOuterClass.ContractId result = new com.daml.lf.value.ValueOuterClass.ContractId(this); result.contractId_ = contractId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.ContractId) { return mergeFrom((com.daml.lf.value.ValueOuterClass.ContractId)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.ContractId other) { if (other == com.daml.lf.value.ValueOuterClass.ContractId.getDefaultInstance()) return this; if (!other.getContractId().isEmpty()) { contractId_ = other.contractId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { contractId_ = input.readStringRequireUtf8(); break; } // case 10 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 java.lang.Object contractId_ = ""; /** * string contract_id = 1; * @return The contractId. */ public java.lang.String getContractId() { java.lang.Object ref = contractId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contractId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string contract_id = 1; * @return The bytes for contractId. */ public com.google.protobuf.ByteString getContractIdBytes() { java.lang.Object ref = contractId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contractId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string contract_id = 1; * @param value The contractId to set. * @return This builder for chaining. */ public Builder setContractId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contractId_ = value; onChanged(); return this; } /** * string contract_id = 1; * @return This builder for chaining. */ public Builder clearContractId() { contractId_ = getDefaultInstance().getContractId(); onChanged(); return this; } /** * string contract_id = 1; * @param value The bytes for contractId to set. * @return This builder for chaining. */ public Builder setContractIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contractId_ = value; onChanged(); return this; } @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.value.ContractId) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.ContractId) private static final com.daml.lf.value.ValueOuterClass.ContractId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.ContractId(); } public static com.daml.lf.value.ValueOuterClass.ContractId getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContractId 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.value.ValueOuterClass.ContractId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.List) com.google.protobuf.MessageOrBuilder { /** * repeated .com.daml.lf.value.Value elements = 1; */ java.util.List getElementsList(); /** * repeated .com.daml.lf.value.Value elements = 1; */ com.daml.lf.value.ValueOuterClass.Value getElements(int index); /** * repeated .com.daml.lf.value.Value elements = 1; */ int getElementsCount(); /** * repeated .com.daml.lf.value.Value elements = 1; */ java.util.List getElementsOrBuilderList(); /** * repeated .com.daml.lf.value.Value elements = 1; */ com.daml.lf.value.ValueOuterClass.ValueOrBuilder getElementsOrBuilder( int index); } /** * Protobuf type {@code com.daml.lf.value.List} */ public static final class List extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.List) ListOrBuilder { private static final long serialVersionUID = 0L; // Use List.newBuilder() to construct. private List(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private List() { elements_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new List(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_List_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_List_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.List.class, com.daml.lf.value.ValueOuterClass.List.Builder.class); } public static final int ELEMENTS_FIELD_NUMBER = 1; private java.util.List elements_; /** * repeated .com.daml.lf.value.Value elements = 1; */ @java.lang.Override public java.util.List getElementsList() { return elements_; } /** * repeated .com.daml.lf.value.Value elements = 1; */ @java.lang.Override public java.util.List getElementsOrBuilderList() { return elements_; } /** * repeated .com.daml.lf.value.Value elements = 1; */ @java.lang.Override public int getElementsCount() { return elements_.size(); } /** * repeated .com.daml.lf.value.Value elements = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value getElements(int index) { return elements_.get(index); } /** * repeated .com.daml.lf.value.Value elements = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getElementsOrBuilder( int index) { return elements_.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 { for (int i = 0; i < elements_.size(); i++) { output.writeMessage(1, elements_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < elements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, elements_.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.value.ValueOuterClass.List)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.List other = (com.daml.lf.value.ValueOuterClass.List) obj; if (!getElementsList() .equals(other.getElementsList())) 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 (getElementsCount() > 0) { hash = (37 * hash) + ELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getElementsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.List parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.List 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.value.ValueOuterClass.List parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.List 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.value.ValueOuterClass.List parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.List parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.List parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.List 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.value.ValueOuterClass.List parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.List 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.value.ValueOuterClass.List parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.List 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.value.ValueOuterClass.List 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.value.List} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.List) com.daml.lf.value.ValueOuterClass.ListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_List_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_List_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.List.class, com.daml.lf.value.ValueOuterClass.List.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.List.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); } else { elements_ = null; elementsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_List_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.List getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.List.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.List build() { com.daml.lf.value.ValueOuterClass.List result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.List buildPartial() { com.daml.lf.value.ValueOuterClass.List result = new com.daml.lf.value.ValueOuterClass.List(this); int from_bitField0_ = bitField0_; if (elementsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { elements_ = java.util.Collections.unmodifiableList(elements_); bitField0_ = (bitField0_ & ~0x00000001); } result.elements_ = elements_; } else { result.elements_ = elementsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.List) { return mergeFrom((com.daml.lf.value.ValueOuterClass.List)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.List other) { if (other == com.daml.lf.value.ValueOuterClass.List.getDefaultInstance()) return this; if (elementsBuilder_ == null) { if (!other.elements_.isEmpty()) { if (elements_.isEmpty()) { elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureElementsIsMutable(); elements_.addAll(other.elements_); } onChanged(); } } else { if (!other.elements_.isEmpty()) { if (elementsBuilder_.isEmpty()) { elementsBuilder_.dispose(); elementsBuilder_ = null; elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000001); elementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getElementsFieldBuilder() : null; } else { elementsBuilder_.addAllMessages(other.elements_); } } } 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: { com.daml.lf.value.ValueOuterClass.Value m = input.readMessage( com.daml.lf.value.ValueOuterClass.Value.parser(), extensionRegistry); if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(m); } else { elementsBuilder_.addMessage(m); } 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 java.util.List elements_ = java.util.Collections.emptyList(); private void ensureElementsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { elements_ = new java.util.ArrayList(elements_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> elementsBuilder_; /** * repeated .com.daml.lf.value.Value elements = 1; */ public java.util.List getElementsList() { if (elementsBuilder_ == null) { return java.util.Collections.unmodifiableList(elements_); } else { return elementsBuilder_.getMessageList(); } } /** * repeated .com.daml.lf.value.Value elements = 1; */ public int getElementsCount() { if (elementsBuilder_ == null) { return elements_.size(); } else { return elementsBuilder_.getCount(); } } /** * repeated .com.daml.lf.value.Value elements = 1; */ public com.daml.lf.value.ValueOuterClass.Value getElements(int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { return elementsBuilder_.getMessage(index); } } /** * repeated .com.daml.lf.value.Value elements = 1; */ public Builder setElements( int index, com.daml.lf.value.ValueOuterClass.Value value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.set(index, value); onChanged(); } else { elementsBuilder_.setMessage(index, value); } return this; } /** * repeated .com.daml.lf.value.Value elements = 1; */ public Builder setElements( int index, com.daml.lf.value.ValueOuterClass.Value.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.set(index, builderForValue.build()); onChanged(); } else { elementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.Value elements = 1; */ public Builder addElements(com.daml.lf.value.ValueOuterClass.Value value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.add(value); onChanged(); } else { elementsBuilder_.addMessage(value); } return this; } /** * repeated .com.daml.lf.value.Value elements = 1; */ public Builder addElements( int index, com.daml.lf.value.ValueOuterClass.Value value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.add(index, value); onChanged(); } else { elementsBuilder_.addMessage(index, value); } return this; } /** * repeated .com.daml.lf.value.Value elements = 1; */ public Builder addElements( com.daml.lf.value.ValueOuterClass.Value.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(builderForValue.build()); onChanged(); } else { elementsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.Value elements = 1; */ public Builder addElements( int index, com.daml.lf.value.ValueOuterClass.Value.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(index, builderForValue.build()); onChanged(); } else { elementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.Value elements = 1; */ public Builder addAllElements( java.lang.Iterable values) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, elements_); onChanged(); } else { elementsBuilder_.addAllMessages(values); } return this; } /** * repeated .com.daml.lf.value.Value elements = 1; */ public Builder clearElements() { if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { elementsBuilder_.clear(); } return this; } /** * repeated .com.daml.lf.value.Value elements = 1; */ public Builder removeElements(int index) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.remove(index); onChanged(); } else { elementsBuilder_.remove(index); } return this; } /** * repeated .com.daml.lf.value.Value elements = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getElementsBuilder( int index) { return getElementsFieldBuilder().getBuilder(index); } /** * repeated .com.daml.lf.value.Value elements = 1; */ public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getElementsOrBuilder( int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { return elementsBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.daml.lf.value.Value elements = 1; */ public java.util.List getElementsOrBuilderList() { if (elementsBuilder_ != null) { return elementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(elements_); } } /** * repeated .com.daml.lf.value.Value elements = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Builder addElementsBuilder() { return getElementsFieldBuilder().addBuilder( com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance()); } /** * repeated .com.daml.lf.value.Value elements = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Builder addElementsBuilder( int index) { return getElementsFieldBuilder().addBuilder( index, com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance()); } /** * repeated .com.daml.lf.value.Value elements = 1; */ public java.util.List getElementsBuilderList() { return getElementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> getElementsFieldBuilder() { if (elementsBuilder_ == null) { elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder>( elements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); elements_ = null; } return elementsBuilder_; } @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.value.List) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.List) private static final com.daml.lf.value.ValueOuterClass.List DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.List(); } public static com.daml.lf.value.ValueOuterClass.List getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public List 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.value.ValueOuterClass.List getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Optional) com.google.protobuf.MessageOrBuilder { /** *
     * optional
     * 
* * .com.daml.lf.value.Value value = 1; * @return Whether the value field is set. */ boolean hasValue(); /** *
     * optional
     * 
* * .com.daml.lf.value.Value value = 1; * @return The value. */ com.daml.lf.value.ValueOuterClass.Value getValue(); /** *
     * optional
     * 
* * .com.daml.lf.value.Value value = 1; */ com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code com.daml.lf.value.Optional} */ public static final class Optional extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Optional) OptionalOrBuilder { private static final long serialVersionUID = 0L; // Use Optional.newBuilder() to construct. private Optional(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Optional() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Optional(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Optional_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Optional_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Optional.class, com.daml.lf.value.ValueOuterClass.Optional.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.daml.lf.value.ValueOuterClass.Value value_; /** *
     * optional
     * 
* * .com.daml.lf.value.Value value = 1; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** *
     * optional
     * 
* * .com.daml.lf.value.Value value = 1; * @return The value. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value getValue() { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } /** *
     * optional
     * 
* * .com.daml.lf.value.Value value = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { return getValue(); } 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 (value_ != null) { output.writeMessage(1, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getValue()); } 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.value.ValueOuterClass.Optional)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Optional other = (com.daml.lf.value.ValueOuterClass.Optional) obj; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) 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 (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.Optional parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Optional 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.value.ValueOuterClass.Optional parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Optional 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.value.ValueOuterClass.Optional parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Optional parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.Optional parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Optional 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.value.ValueOuterClass.Optional parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Optional 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.value.ValueOuterClass.Optional parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Optional 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.value.ValueOuterClass.Optional 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.value.Optional} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Optional) com.daml.lf.value.ValueOuterClass.OptionalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Optional_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Optional_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Optional.class, com.daml.lf.value.ValueOuterClass.Optional.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Optional.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Optional_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Optional getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Optional.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Optional build() { com.daml.lf.value.ValueOuterClass.Optional result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Optional buildPartial() { com.daml.lf.value.ValueOuterClass.Optional result = new com.daml.lf.value.ValueOuterClass.Optional(this); if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Optional) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Optional)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Optional other) { if (other == com.daml.lf.value.ValueOuterClass.Optional.getDefaultInstance()) return this; if (other.hasValue()) { mergeValue(other.getValue()); } 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( getValueFieldBuilder().getBuilder(), extensionRegistry); 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 com.daml.lf.value.ValueOuterClass.Value value_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> valueBuilder_; /** *
       * optional
       * 
* * .com.daml.lf.value.Value value = 1; * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** *
       * optional
       * 
* * .com.daml.lf.value.Value value = 1; * @return The value. */ public com.daml.lf.value.ValueOuterClass.Value getValue() { if (valueBuilder_ == null) { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** *
       * optional
       * 
* * .com.daml.lf.value.Value value = 1; */ public Builder setValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** *
       * optional
       * 
* * .com.daml.lf.value.Value value = 1; */ public Builder setValue( com.daml.lf.value.ValueOuterClass.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * optional
       * 
* * .com.daml.lf.value.Value value = 1; */ public Builder mergeValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = com.daml.lf.value.ValueOuterClass.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** *
       * optional
       * 
* * .com.daml.lf.value.Value value = 1; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** *
       * optional
       * 
* * .com.daml.lf.value.Value value = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** *
       * optional
       * 
* * .com.daml.lf.value.Value value = 1; */ public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } } /** *
       * optional
       * 
* * .com.daml.lf.value.Value value = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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.value.Optional) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Optional) private static final com.daml.lf.value.ValueOuterClass.Optional DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Optional(); } public static com.daml.lf.value.ValueOuterClass.Optional getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Optional 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.value.ValueOuterClass.Optional getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MapOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Map) com.google.protobuf.MessageOrBuilder { /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ java.util.List getEntriesList(); /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ com.daml.lf.value.ValueOuterClass.Map.Entry getEntries(int index); /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ int getEntriesCount(); /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ java.util.List getEntriesOrBuilderList(); /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ com.daml.lf.value.ValueOuterClass.Map.EntryOrBuilder getEntriesOrBuilder( int index); } /** * Protobuf type {@code com.daml.lf.value.Map} */ public static final class Map extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Map) MapOrBuilder { private static final long serialVersionUID = 0L; // Use Map.newBuilder() to construct. private Map(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Map() { entries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Map(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Map_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Map_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Map.class, com.daml.lf.value.ValueOuterClass.Map.Builder.class); } public interface EntryOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Map.Entry) com.google.protobuf.MessageOrBuilder { /** * string key = 1; * @return The key. */ java.lang.String getKey(); /** * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * .com.daml.lf.value.Value value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** * .com.daml.lf.value.Value value = 2; * @return The value. */ com.daml.lf.value.ValueOuterClass.Value getValue(); /** * .com.daml.lf.value.Value value = 2; */ com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code com.daml.lf.value.Map.Entry} */ public static final class Entry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Map.Entry) EntryOrBuilder { private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Entry() { key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Entry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Map_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Map_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Map.Entry.class, com.daml.lf.value.ValueOuterClass.Map.Entry.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * string key = 1; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** * string key = 1; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private com.daml.lf.value.ValueOuterClass.Value value_; /** * .com.daml.lf.value.Value value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** * .com.daml.lf.value.Value value = 2; * @return The value. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value getValue() { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } /** * .com.daml.lf.value.Value value = 2; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { return getValue(); } 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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (value_ != null) { output.writeMessage(2, getValue()); } 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(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } 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.value.ValueOuterClass.Map.Entry)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Map.Entry other = (com.daml.lf.value.ValueOuterClass.Map.Entry) obj; if (!getKey() .equals(other.getKey())) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.Map.Entry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Map.Entry 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.value.ValueOuterClass.Map.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Map.Entry 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.value.ValueOuterClass.Map.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Map.Entry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.Map.Entry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Map.Entry 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.value.ValueOuterClass.Map.Entry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Map.Entry 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.value.ValueOuterClass.Map.Entry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Map.Entry 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.value.ValueOuterClass.Map.Entry 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.value.Map.Entry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Map.Entry) com.daml.lf.value.ValueOuterClass.Map.EntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Map_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Map_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Map.Entry.class, com.daml.lf.value.ValueOuterClass.Map.Entry.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Map.Entry.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); key_ = ""; if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Map_Entry_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Map.Entry getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Map.Entry.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Map.Entry build() { com.daml.lf.value.ValueOuterClass.Map.Entry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Map.Entry buildPartial() { com.daml.lf.value.ValueOuterClass.Map.Entry result = new com.daml.lf.value.ValueOuterClass.Map.Entry(this); result.key_ = key_; if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Map.Entry) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Map.Entry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Map.Entry other) { if (other == com.daml.lf.value.ValueOuterClass.Map.Entry.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object key_ = ""; /** * string key = 1; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 1; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private com.daml.lf.value.ValueOuterClass.Value value_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> valueBuilder_; /** * .com.daml.lf.value.Value value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .com.daml.lf.value.Value value = 2; * @return The value. */ public com.daml.lf.value.ValueOuterClass.Value getValue() { if (valueBuilder_ == null) { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .com.daml.lf.value.Value value = 2; */ public Builder setValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder setValue( com.daml.lf.value.ValueOuterClass.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder mergeValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = com.daml.lf.value.ValueOuterClass.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .com.daml.lf.value.Value value = 2; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value value = 2; */ public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } } /** * .com.daml.lf.value.Value value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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.value.Map.Entry) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Map.Entry) private static final com.daml.lf.value.ValueOuterClass.Map.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Map.Entry(); } public static com.daml.lf.value.ValueOuterClass.Map.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Entry 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.value.ValueOuterClass.Map.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ENTRIES_FIELD_NUMBER = 1; private java.util.List entries_; /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Map.Entry getEntries(int index) { return entries_.get(index); } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Map.EntryOrBuilder getEntriesOrBuilder( int index) { return entries_.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 { for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entries_.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.value.ValueOuterClass.Map)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Map other = (com.daml.lf.value.ValueOuterClass.Map) obj; if (!getEntriesList() .equals(other.getEntriesList())) 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 (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.Map parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Map 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.value.ValueOuterClass.Map parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Map 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.value.ValueOuterClass.Map parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Map parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.Map parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Map 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.value.ValueOuterClass.Map parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Map 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.value.ValueOuterClass.Map parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.Map 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.value.ValueOuterClass.Map 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.value.Map} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Map) com.daml.lf.value.ValueOuterClass.MapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Map_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Map_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Map.class, com.daml.lf.value.ValueOuterClass.Map.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Map.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); } else { entries_ = null; entriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Map_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Map getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Map.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Map build() { com.daml.lf.value.ValueOuterClass.Map result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Map buildPartial() { com.daml.lf.value.ValueOuterClass.Map result = new com.daml.lf.value.ValueOuterClass.Map(this); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Map) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Map)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Map other) { if (other == com.daml.lf.value.ValueOuterClass.Map.getDefaultInstance()) return this; if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } 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: { com.daml.lf.value.ValueOuterClass.Map.Entry m = input.readMessage( com.daml.lf.value.ValueOuterClass.Map.Entry.parser(), extensionRegistry); if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(m); } else { entriesBuilder_.addMessage(m); } 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 java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Map.Entry, com.daml.lf.value.ValueOuterClass.Map.Entry.Builder, com.daml.lf.value.ValueOuterClass.Map.EntryOrBuilder> entriesBuilder_; /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Map.Entry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public Builder setEntries( int index, com.daml.lf.value.ValueOuterClass.Map.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public Builder setEntries( int index, com.daml.lf.value.ValueOuterClass.Map.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public Builder addEntries(com.daml.lf.value.ValueOuterClass.Map.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public Builder addEntries( int index, com.daml.lf.value.ValueOuterClass.Map.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public Builder addEntries( com.daml.lf.value.ValueOuterClass.Map.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public Builder addEntries( int index, com.daml.lf.value.ValueOuterClass.Map.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Map.Entry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Map.EntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Map.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( com.daml.lf.value.ValueOuterClass.Map.Entry.getDefaultInstance()); } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Map.Entry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, com.daml.lf.value.ValueOuterClass.Map.Entry.getDefaultInstance()); } /** * repeated .com.daml.lf.value.Map.Entry entries = 1; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Map.Entry, com.daml.lf.value.ValueOuterClass.Map.Entry.Builder, com.daml.lf.value.ValueOuterClass.Map.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Map.Entry, com.daml.lf.value.ValueOuterClass.Map.Entry.Builder, com.daml.lf.value.ValueOuterClass.Map.EntryOrBuilder>( entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } @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.value.Map) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Map) private static final com.daml.lf.value.ValueOuterClass.Map DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Map(); } public static com.daml.lf.value.ValueOuterClass.Map getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Map 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.value.ValueOuterClass.Map getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GenMapOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.GenMap) com.google.protobuf.MessageOrBuilder { /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ java.util.List getEntriesList(); /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ com.daml.lf.value.ValueOuterClass.GenMap.Entry getEntries(int index); /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ int getEntriesCount(); /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ java.util.List getEntriesOrBuilderList(); /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ com.daml.lf.value.ValueOuterClass.GenMap.EntryOrBuilder getEntriesOrBuilder( int index); } /** *
   * *since version 11*
   * 
* * Protobuf type {@code com.daml.lf.value.GenMap} */ public static final class GenMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.GenMap) GenMapOrBuilder { private static final long serialVersionUID = 0L; // Use GenMap.newBuilder() to construct. private GenMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GenMap() { entries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GenMap(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_GenMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_GenMap_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.GenMap.class, com.daml.lf.value.ValueOuterClass.GenMap.Builder.class); } public interface EntryOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.GenMap.Entry) com.google.protobuf.MessageOrBuilder { /** * .com.daml.lf.value.Value key = 1; * @return Whether the key field is set. */ boolean hasKey(); /** * .com.daml.lf.value.Value key = 1; * @return The key. */ com.daml.lf.value.ValueOuterClass.Value getKey(); /** * .com.daml.lf.value.Value key = 1; */ com.daml.lf.value.ValueOuterClass.ValueOrBuilder getKeyOrBuilder(); /** * .com.daml.lf.value.Value value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** * .com.daml.lf.value.Value value = 2; * @return The value. */ com.daml.lf.value.ValueOuterClass.Value getValue(); /** * .com.daml.lf.value.Value value = 2; */ com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code com.daml.lf.value.GenMap.Entry} */ public static final class Entry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.GenMap.Entry) EntryOrBuilder { private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Entry() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Entry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_GenMap_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_GenMap_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.GenMap.Entry.class, com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.daml.lf.value.ValueOuterClass.Value key_; /** * .com.daml.lf.value.Value key = 1; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return key_ != null; } /** * .com.daml.lf.value.Value key = 1; * @return The key. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value getKey() { return key_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : key_; } /** * .com.daml.lf.value.Value key = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getKeyOrBuilder() { return getKey(); } public static final int VALUE_FIELD_NUMBER = 2; private com.daml.lf.value.ValueOuterClass.Value value_; /** * .com.daml.lf.value.Value value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** * .com.daml.lf.value.Value value = 2; * @return The value. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value getValue() { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } /** * .com.daml.lf.value.Value value = 2; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { return getValue(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (key_ != null) { output.writeMessage(1, getKey()); } if (value_ != null) { output.writeMessage(2, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getKey()); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } 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.value.ValueOuterClass.GenMap.Entry)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.GenMap.Entry other = (com.daml.lf.value.ValueOuterClass.GenMap.Entry) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) 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 (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.GenMap.Entry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.GenMap.Entry 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.value.ValueOuterClass.GenMap.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.GenMap.Entry 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.value.ValueOuterClass.GenMap.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.GenMap.Entry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.GenMap.Entry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.GenMap.Entry 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.value.ValueOuterClass.GenMap.Entry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.GenMap.Entry 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.value.ValueOuterClass.GenMap.Entry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.GenMap.Entry 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.value.ValueOuterClass.GenMap.Entry 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.value.GenMap.Entry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.GenMap.Entry) com.daml.lf.value.ValueOuterClass.GenMap.EntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_GenMap_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_GenMap_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.GenMap.Entry.class, com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.GenMap.Entry.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (keyBuilder_ == null) { key_ = null; } else { key_ = null; keyBuilder_ = null; } if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_GenMap_Entry_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMap.Entry getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.GenMap.Entry.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMap.Entry build() { com.daml.lf.value.ValueOuterClass.GenMap.Entry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMap.Entry buildPartial() { com.daml.lf.value.ValueOuterClass.GenMap.Entry result = new com.daml.lf.value.ValueOuterClass.GenMap.Entry(this); if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.GenMap.Entry) { return mergeFrom((com.daml.lf.value.ValueOuterClass.GenMap.Entry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.GenMap.Entry other) { if (other == com.daml.lf.value.ValueOuterClass.GenMap.Entry.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasValue()) { mergeValue(other.getValue()); } 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( getKeyFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.daml.lf.value.ValueOuterClass.Value key_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> keyBuilder_; /** * .com.daml.lf.value.Value key = 1; * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** * .com.daml.lf.value.Value key = 1; * @return The key. */ public com.daml.lf.value.ValueOuterClass.Value getKey() { if (keyBuilder_ == null) { return key_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** * .com.daml.lf.value.Value key = 1; */ public Builder setKey(com.daml.lf.value.ValueOuterClass.Value value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** * .com.daml.lf.value.Value key = 1; */ public Builder setKey( com.daml.lf.value.ValueOuterClass.Value.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.daml.lf.value.Value key = 1; */ public Builder mergeKey(com.daml.lf.value.ValueOuterClass.Value value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = com.daml.lf.value.ValueOuterClass.Value.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** * .com.daml.lf.value.Value key = 1; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** * .com.daml.lf.value.Value key = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value key = 1; */ public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : key_; } } /** * .com.daml.lf.value.Value key = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private com.daml.lf.value.ValueOuterClass.Value value_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> valueBuilder_; /** * .com.daml.lf.value.Value value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .com.daml.lf.value.Value value = 2; * @return The value. */ public com.daml.lf.value.ValueOuterClass.Value getValue() { if (valueBuilder_ == null) { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .com.daml.lf.value.Value value = 2; */ public Builder setValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder setValue( com.daml.lf.value.ValueOuterClass.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder mergeValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = com.daml.lf.value.ValueOuterClass.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .com.daml.lf.value.Value value = 2; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value value = 2; */ public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : value_; } } /** * .com.daml.lf.value.Value value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value, com.daml.lf.value.ValueOuterClass.Value.Builder, com.daml.lf.value.ValueOuterClass.ValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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.value.GenMap.Entry) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.GenMap.Entry) private static final com.daml.lf.value.ValueOuterClass.GenMap.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.GenMap.Entry(); } public static com.daml.lf.value.ValueOuterClass.GenMap.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Entry 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.value.ValueOuterClass.GenMap.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ENTRIES_FIELD_NUMBER = 1; private java.util.List entries_; /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMap.Entry getEntries(int index) { return entries_.get(index); } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMap.EntryOrBuilder getEntriesOrBuilder( int index) { return entries_.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 { for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entries_.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.value.ValueOuterClass.GenMap)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.GenMap other = (com.daml.lf.value.ValueOuterClass.GenMap) obj; if (!getEntriesList() .equals(other.getEntriesList())) 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 (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.GenMap parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.GenMap 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.value.ValueOuterClass.GenMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.GenMap 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.value.ValueOuterClass.GenMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.GenMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.lf.value.ValueOuterClass.GenMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.GenMap 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.value.ValueOuterClass.GenMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.GenMap 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.value.ValueOuterClass.GenMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.lf.value.ValueOuterClass.GenMap 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.value.ValueOuterClass.GenMap prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * *since version 11*
     * 
* * Protobuf type {@code com.daml.lf.value.GenMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.GenMap) com.daml.lf.value.ValueOuterClass.GenMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_GenMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_GenMap_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.GenMap.class, com.daml.lf.value.ValueOuterClass.GenMap.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.GenMap.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); } else { entries_ = null; entriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_GenMap_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMap getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.GenMap.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMap build() { com.daml.lf.value.ValueOuterClass.GenMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.GenMap buildPartial() { com.daml.lf.value.ValueOuterClass.GenMap result = new com.daml.lf.value.ValueOuterClass.GenMap(this); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.GenMap) { return mergeFrom((com.daml.lf.value.ValueOuterClass.GenMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.GenMap other) { if (other == com.daml.lf.value.ValueOuterClass.GenMap.getDefaultInstance()) return this; if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } 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: { com.daml.lf.value.ValueOuterClass.GenMap.Entry m = input.readMessage( com.daml.lf.value.ValueOuterClass.GenMap.Entry.parser(), extensionRegistry); if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(m); } else { entriesBuilder_.addMessage(m); } 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 java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.GenMap.Entry, com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder, com.daml.lf.value.ValueOuterClass.GenMap.EntryOrBuilder> entriesBuilder_; /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.GenMap.Entry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public Builder setEntries( int index, com.daml.lf.value.ValueOuterClass.GenMap.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public Builder setEntries( int index, com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public Builder addEntries(com.daml.lf.value.ValueOuterClass.GenMap.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public Builder addEntries( int index, com.daml.lf.value.ValueOuterClass.GenMap.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public Builder addEntries( com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public Builder addEntries( int index, com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.GenMap.EntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( com.daml.lf.value.ValueOuterClass.GenMap.Entry.getDefaultInstance()); } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, com.daml.lf.value.ValueOuterClass.GenMap.Entry.getDefaultInstance()); } /** * repeated .com.daml.lf.value.GenMap.Entry entries = 1; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.GenMap.Entry, com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder, com.daml.lf.value.ValueOuterClass.GenMap.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.GenMap.Entry, com.daml.lf.value.ValueOuterClass.GenMap.Entry.Builder, com.daml.lf.value.ValueOuterClass.GenMap.EntryOrBuilder>( entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } @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.value.GenMap) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.GenMap) private static final com.daml.lf.value.ValueOuterClass.GenMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.GenMap(); } public static com.daml.lf.value.ValueOuterClass.GenMap getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GenMap 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.value.ValueOuterClass.GenMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_VersionedValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_VersionedValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Value_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Record_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Record_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_RecordField_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_RecordField_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Identifier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Identifier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Variant_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Variant_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Enum_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Enum_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_ContractId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_ContractId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_List_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_List_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Optional_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Optional_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Map_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Map_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Map_Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Map_Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_GenMap_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_GenMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_GenMap_Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_GenMap_Entry_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\027com/daml/lf/value.proto\022\021com.daml.lf.v" + "alue\032\033google/protobuf/empty.proto\"0\n\016Ver" + "sionedValue\022\017\n\007version\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\014\"\247\004\n\005Value\022+\n\006record\030\001 \001(\0132\031.com.daml" + ".lf.value.RecordH\000\022-\n\007variant\030\002 \001(\0132\032.co" + "m.daml.lf.value.VariantH\000\022\'\n\004list\030\004 \001(\0132" + "\027.com.daml.lf.value.ListH\000\022\017\n\005int64\030\005 \001(" + "\022H\000\022\021\n\007numeric\030\006 \001(\tH\000\022\016\n\004text\030\010 \001(\tH\000\022\023" + "\n\ttimestamp\030\t \001(\020H\000\022\017\n\005party\030\n \001(\tH\000\022\016\n\004" + "bool\030\013 \001(\010H\000\022&\n\004unit\030\014 \001(\0132\026.google.prot" + "obuf.EmptyH\000\022\016\n\004date\030\r \001(\005H\000\022/\n\010optional" + "\030\016 \001(\0132\033.com.daml.lf.value.OptionalH\000\022;\n" + "\022contract_id_struct\030\017 \001(\0132\035.com.daml.lf." + "value.ContractIdH\000\022%\n\003map\030\020 \001(\0132\026.com.da" + "ml.lf.value.MapH\000\022\'\n\004enum\030\021 \001(\0132\027.com.da" + "ml.lf.value.EnumH\000\022,\n\007gen_map\030\022 \001(\0132\031.co" + "m.daml.lf.value.GenMapH\000B\005\n\003sumJ\004\010\003\020\004\"j\n" + "\006Record\0220\n\trecord_id\030\001 \001(\0132\035.com.daml.lf" + ".value.Identifier\022.\n\006fields\030\002 \003(\0132\036.com." + "daml.lf.value.RecordField\"E\n\013RecordField" + "\022\r\n\005label\030\001 \001(\t\022\'\n\005value\030\002 \001(\0132\030.com.dam" + "l.lf.value.Value\"C\n\nIdentifier\022\022\n\npackag" + "e_id\030\001 \001(\t\022\023\n\013module_name\030\002 \003(\t\022\014\n\004name\030" + "\003 \003(\t\"z\n\007Variant\0221\n\nvariant_id\030\001 \001(\0132\035.c" + "om.daml.lf.value.Identifier\022\023\n\013construct" + "or\030\002 \001(\t\022\'\n\005value\030\003 \001(\0132\030.com.daml.lf.va" + "lue.Value\"E\n\004Enum\022.\n\007enum_id\030\001 \001(\0132\035.com" + ".daml.lf.value.Identifier\022\r\n\005value\030\002 \001(\t" + "\"\'\n\nContractId\022\023\n\013contract_id\030\001 \001(\tJ\004\010\002\020" + "\003\"2\n\004List\022*\n\010elements\030\001 \003(\0132\030.com.daml.l" + "f.value.Value\"3\n\010Optional\022\'\n\005value\030\001 \001(\013" + "2\030.com.daml.lf.value.Value\"s\n\003Map\022-\n\007ent" + "ries\030\001 \003(\0132\034.com.daml.lf.value.Map.Entry" + "\032=\n\005Entry\022\013\n\003key\030\001 \001(\t\022\'\n\005value\030\002 \001(\0132\030." + "com.daml.lf.value.Value\"\223\001\n\006GenMap\0220\n\007en" + "tries\030\001 \003(\0132\037.com.daml.lf.value.GenMap.E" + "ntry\032W\n\005Entry\022%\n\003key\030\001 \001(\0132\030.com.daml.lf" + ".value.Value\022\'\n\005value\030\002 \001(\0132\030.com.daml.l" + "f.value.ValueB\023\n\021com.daml.lf.valueb\006prot" + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.EmptyProto.getDescriptor(), }); internal_static_com_daml_lf_value_VersionedValue_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_daml_lf_value_VersionedValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_VersionedValue_descriptor, new java.lang.String[] { "Version", "Value", }); internal_static_com_daml_lf_value_Value_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_daml_lf_value_Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_descriptor, new java.lang.String[] { "Record", "Variant", "List", "Int64", "Numeric", "Text", "Timestamp", "Party", "Bool", "Unit", "Date", "Optional", "ContractIdStruct", "Map", "Enum", "GenMap", "Sum", }); internal_static_com_daml_lf_value_Record_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_daml_lf_value_Record_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Record_descriptor, new java.lang.String[] { "RecordId", "Fields", }); internal_static_com_daml_lf_value_RecordField_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_daml_lf_value_RecordField_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_RecordField_descriptor, new java.lang.String[] { "Label", "Value", }); internal_static_com_daml_lf_value_Identifier_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_daml_lf_value_Identifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Identifier_descriptor, new java.lang.String[] { "PackageId", "ModuleName", "Name", }); internal_static_com_daml_lf_value_Variant_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_daml_lf_value_Variant_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Variant_descriptor, new java.lang.String[] { "VariantId", "Constructor", "Value", }); internal_static_com_daml_lf_value_Enum_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_daml_lf_value_Enum_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Enum_descriptor, new java.lang.String[] { "EnumId", "Value", }); internal_static_com_daml_lf_value_ContractId_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_com_daml_lf_value_ContractId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_ContractId_descriptor, new java.lang.String[] { "ContractId", }); internal_static_com_daml_lf_value_List_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_com_daml_lf_value_List_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_List_descriptor, new java.lang.String[] { "Elements", }); internal_static_com_daml_lf_value_Optional_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_com_daml_lf_value_Optional_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Optional_descriptor, new java.lang.String[] { "Value", }); internal_static_com_daml_lf_value_Map_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_com_daml_lf_value_Map_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Map_descriptor, new java.lang.String[] { "Entries", }); internal_static_com_daml_lf_value_Map_Entry_descriptor = internal_static_com_daml_lf_value_Map_descriptor.getNestedTypes().get(0); internal_static_com_daml_lf_value_Map_Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Map_Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_com_daml_lf_value_GenMap_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_com_daml_lf_value_GenMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_GenMap_descriptor, new java.lang.String[] { "Entries", }); internal_static_com_daml_lf_value_GenMap_Entry_descriptor = internal_static_com_daml_lf_value_GenMap_descriptor.getNestedTypes().get(0); internal_static_com_daml_lf_value_GenMap_Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_GenMap_Entry_descriptor, new java.lang.String[] { "Key", "Value", }); com.google.protobuf.EmptyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy