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.2.0-adhoc.20240826.13247.0.v8d88a081
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();
    }

    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;
    @SuppressWarnings("serial")
    private volatile java.lang.Object version_ = "";
    /**
     * string version = 1;
     * @return The version.
     */
    @java.lang.Override
    public java.lang.String getVersion() {
      java.lang.Object ref = version_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        version_ = s;
        return s;
      }
    }
    /**
     * string version = 1;
     * @return The bytes for version.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getVersionBytes() {
      java.lang.Object ref = version_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        version_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int VALUE_FIELD_NUMBER = 2;
    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_;
    }

    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();
        bitField0_ = 0;
        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);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.daml.lf.value.ValueOuterClass.VersionedValue result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.version_ = version_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.value_ = value_;
        }
      }

      @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_;
          bitField0_ |= 0x00000001;
          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();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                value_ = input.readBytes();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.lang.Object version_ = "";
      /**
       * string version = 1;
       * @return The version.
       */
      public java.lang.String getVersion() {
        java.lang.Object ref = version_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          version_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string version = 1;
       * @return The bytes for version.
       */
      public com.google.protobuf.ByteString
          getVersionBytes() {
        java.lang.Object ref = version_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          version_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string version = 1;
       * @param value The version to set.
       * @return This builder for chaining.
       */
      public Builder setVersion(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        version_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * string version = 1;
       * @return This builder for chaining.
       */
      public Builder clearVersion() {
        version_ = getDefaultInstance().getVersion();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * string version = 1;
       * @param value The bytes for version to set.
       * @return This builder for chaining.
       */
      public Builder setVersionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        version_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString 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;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * bytes value = 2;
       * @return This builder for chaining.
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000002);
        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 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.emptyList(); name_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Identifier(); } 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList moduleName_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList name_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * 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(); bitField0_ = 0; packageId_ = ""; moduleName_ = com.google.protobuf.LazyStringArrayList.emptyList(); name_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Identifier result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.packageId_ = packageId_; } if (((from_bitField0_ & 0x00000002) != 0)) { moduleName_.makeImmutable(); result.moduleName_ = moduleName_; } if (((from_bitField0_ & 0x00000004) != 0)) { name_.makeImmutable(); result.name_ = name_; } } @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_; bitField0_ |= 0x00000001; onChanged(); } if (!other.moduleName_.isEmpty()) { if (moduleName_.isEmpty()) { moduleName_ = other.moduleName_; bitField0_ |= 0x00000002; } else { ensureModuleNameIsMutable(); moduleName_.addAll(other.moduleName_); } onChanged(); } if (!other.name_.isEmpty()) { if (name_.isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000004; } 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(); bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * non-empty
       * 
* * string package_id = 1; * @return This builder for chaining. */ public Builder clearPackageId() { packageId_ = getDefaultInstance().getPackageId(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList moduleName_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureModuleNameIsMutable() { if (!moduleName_.isModifiable()) { moduleName_ = new com.google.protobuf.LazyStringArrayList(moduleName_); } bitField0_ |= 0x00000002; } /** *
       * at least length 1
       * 
* * repeated string module_name = 2; * @return A list containing the moduleName. */ public com.google.protobuf.ProtocolStringList getModuleNameList() { moduleName_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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_); bitField0_ |= 0x00000002; 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.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; 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); bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList name_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureNameIsMutable() { if (!name_.isModifiable()) { name_ = new com.google.protobuf.LazyStringArrayList(name_); } bitField0_ |= 0x00000004; } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @return A list containing the name. */ public com.google.protobuf.ProtocolStringList getNameList() { name_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000004; 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); bitField0_ |= 0x00000004; 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_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * at least length 1
       * 
* * repeated string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; 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); bitField0_ |= 0x00000004; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.lf.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 ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Value) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.Empty unit = 1; * @return Whether the unit field is set. */ boolean hasUnit(); /** * .google.protobuf.Empty unit = 1; * @return The unit. */ com.google.protobuf.Empty getUnit(); /** * .google.protobuf.Empty unit = 1; */ com.google.protobuf.EmptyOrBuilder getUnitOrBuilder(); /** * bool bool = 2; * @return Whether the bool field is set. */ boolean hasBool(); /** * bool bool = 2; * @return The bool. */ boolean getBool(); /** * sint64 int64 = 3; * @return Whether the int64 field is set. */ boolean hasInt64(); /** * sint64 int64 = 3; * @return The int64. */ long getInt64(); /** *
     * 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 = 4; * @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 = 4; * @return The date. */ int getDate(); /** *
     * 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 = 5; * @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 = 5; * @return The timestamp. */ long getTimestamp(); /** *
     * 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(); /** *
     * 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(); /** *
     * 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 party = 7; * @return Whether the party field is set. */ boolean hasParty(); /** * string party = 7; * @return The party. */ java.lang.String getParty(); /** * string party = 7; * @return The bytes for party. */ com.google.protobuf.ByteString getPartyBytes(); /** * 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(); /** * bytes contract_id = 9; * @return Whether the contractId field is set. */ boolean hasContractId(); /** * bytes contract_id = 9; * @return The contractId. */ com.google.protobuf.ByteString getContractId(); /** * .com.daml.lf.value.Value.Optional optional = 10; * @return Whether the optional field is set. */ boolean hasOptional(); /** * .com.daml.lf.value.Value.Optional optional = 10; * @return The optional. */ com.daml.lf.value.ValueOuterClass.Value.Optional getOptional(); /** * .com.daml.lf.value.Value.Optional optional = 10; */ com.daml.lf.value.ValueOuterClass.Value.OptionalOrBuilder getOptionalOrBuilder(); /** * .com.daml.lf.value.Value.List list = 11; * @return Whether the list field is set. */ boolean hasList(); /** * .com.daml.lf.value.Value.List list = 11; * @return The list. */ com.daml.lf.value.ValueOuterClass.Value.List getList(); /** * .com.daml.lf.value.Value.List list = 11; */ com.daml.lf.value.ValueOuterClass.Value.ListOrBuilder getListOrBuilder(); /** * .com.daml.lf.value.Value.Map map = 12; * @return Whether the map field is set. */ boolean hasMap(); /** * .com.daml.lf.value.Value.Map map = 12; * @return The map. */ com.daml.lf.value.ValueOuterClass.Value.Map getMap(); /** * .com.daml.lf.value.Value.Map map = 12; */ com.daml.lf.value.ValueOuterClass.Value.MapOrBuilder getMapOrBuilder(); /** *
     * *Available in versions >= 2.dev
     * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; * @return Whether the textMap field is set. */ boolean hasTextMap(); /** *
     * *Available in versions >= 2.dev
     * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; * @return The textMap. */ com.daml.lf.value.ValueOuterClass.Value.TextMap getTextMap(); /** *
     * *Available in versions >= 2.dev
     * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; */ com.daml.lf.value.ValueOuterClass.Value.TextMapOrBuilder getTextMapOrBuilder(); /** * .com.daml.lf.value.Value.Record record = 13; * @return Whether the record field is set. */ boolean hasRecord(); /** * .com.daml.lf.value.Value.Record record = 13; * @return The record. */ com.daml.lf.value.ValueOuterClass.Value.Record getRecord(); /** * .com.daml.lf.value.Value.Record record = 13; */ com.daml.lf.value.ValueOuterClass.Value.RecordOrBuilder getRecordOrBuilder(); /** * .com.daml.lf.value.Value.Variant variant = 14; * @return Whether the variant field is set. */ boolean hasVariant(); /** * .com.daml.lf.value.Value.Variant variant = 14; * @return The variant. */ com.daml.lf.value.ValueOuterClass.Value.Variant getVariant(); /** * .com.daml.lf.value.Value.Variant variant = 14; */ com.daml.lf.value.ValueOuterClass.Value.VariantOrBuilder getVariantOrBuilder(); /** * .com.daml.lf.value.Value.Enum enum = 15; * @return Whether the enum field is set. */ boolean hasEnum(); /** * .com.daml.lf.value.Value.Enum enum = 15; * @return The enum. */ com.daml.lf.value.ValueOuterClass.Value.Enum getEnum(); /** * .com.daml.lf.value.Value.Enum enum = 15; */ com.daml.lf.value.ValueOuterClass.Value.EnumOrBuilder getEnumOrBuilder(); 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(); } 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); } public interface RecordOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Value.Record) com.google.protobuf.MessageOrBuilder { /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ java.util.List getFieldsList(); /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ com.daml.lf.value.ValueOuterClass.Value.Record.Field getFields(int index); /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ int getFieldsCount(); /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ java.util.List getFieldsOrBuilderList(); /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ com.daml.lf.value.ValueOuterClass.Value.Record.FieldOrBuilder getFieldsOrBuilder( int index); } /** * Protobuf type {@code com.daml.lf.value.Value.Record} */ public static final class Record extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Record_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Record.class, com.daml.lf.value.ValueOuterClass.Value.Record.Builder.class); } public interface FieldOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Value.Record.Field) com.google.protobuf.MessageOrBuilder { /** * .com.daml.lf.value.Value value = 1; * @return Whether the value field is set. */ boolean hasValue(); /** * .com.daml.lf.value.Value value = 1; * @return The value. */ com.daml.lf.value.ValueOuterClass.Value getValue(); /** * .com.daml.lf.value.Value value = 1; */ com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code com.daml.lf.value.Value.Record.Field} */ public static final class Field extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Value.Record.Field) FieldOrBuilder { private static final long serialVersionUID = 0L; // Use Field.newBuilder() to construct. private Field(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Field() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Field(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_Record_Field_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_Record_Field_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Record.Field.class, com.daml.lf.value.ValueOuterClass.Value.Record.Field.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private com.daml.lf.value.ValueOuterClass.Value value_; /** * .com.daml.lf.value.Value value = 1; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * .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_; } /** * .com.daml.lf.value.Value value = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.ValueOrBuilder getValueOrBuilder() { return value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, 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.Value.Record.Field)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value.Record.Field other = (com.daml.lf.value.ValueOuterClass.Value.Record.Field) 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.Value.Record.Field parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.Record.Field 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.Record.Field parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.Record.Field 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.Record.Field parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.Record.Field 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.Record.Field 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.Record.Field 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.Record.Field 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.Record.Field 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.Record.Field 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.Record.Field 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.Record.Field 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.Value.Record.Field} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value.Record.Field) com.daml.lf.value.ValueOuterClass.Value.Record.FieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_Record_Field_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_Record_Field_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Record.Field.class, com.daml.lf.value.ValueOuterClass.Value.Record.Field.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.Record.Field.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); 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_Value_Record_Field_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Record.Field getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.Record.Field.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Record.Field build() { com.daml.lf.value.ValueOuterClass.Value.Record.Field result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Record.Field buildPartial() { com.daml.lf.value.ValueOuterClass.Value.Record.Field result = new com.daml.lf.value.ValueOuterClass.Value.Record.Field(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value.Record.Field result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Value.Record.Field) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value.Record.Field)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value.Record.Field other) { if (other == com.daml.lf.value.ValueOuterClass.Value.Record.Field.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); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.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 = 1; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * .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(); } } /** * .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; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .com.daml.lf.value.Value value = 1; */ public Builder setValue( com.daml.lf.value.ValueOuterClass.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .com.daml.lf.value.Value value = 1; */ public Builder mergeValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && value_ != null && value_ != com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .com.daml.lf.value.Value value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.Value value = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getValueBuilder() { bitField0_ |= 0x00000001; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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.Value.Record.Field) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value.Record.Field) private static final com.daml.lf.value.ValueOuterClass.Value.Record.Field DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value.Record.Field(); } public static com.daml.lf.value.ValueOuterClass.Value.Record.Field getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Field 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.Record.Field getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int FIELDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List fields_; /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Record.Field getFields(int index) { return fields_.get(index); } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Record.FieldOrBuilder 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 { for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.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 < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, 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.Value.Record)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value.Record other = (com.daml.lf.value.ValueOuterClass.Value.Record) obj; 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 (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.Value.Record parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Record parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Record parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.Record} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value.Record) com.daml.lf.value.ValueOuterClass.Value.RecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Record_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Record.class, com.daml.lf.value.ValueOuterClass.Value.Record.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.Record.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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_Value_Record_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Record getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.Record.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Record build() { com.daml.lf.value.ValueOuterClass.Value.Record result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Record buildPartial() { com.daml.lf.value.ValueOuterClass.Value.Record result = new com.daml.lf.value.ValueOuterClass.Value.Record(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.lf.value.ValueOuterClass.Value.Record result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value.Record result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Value.Record) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value.Record)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value.Record other) { if (other == com.daml.lf.value.ValueOuterClass.Value.Record.getDefaultInstance()) return this; 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: { com.daml.lf.value.ValueOuterClass.Value.Record.Field m = input.readMessage( com.daml.lf.value.ValueOuterClass.Value.Record.Field.parser(), extensionRegistry); if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(m); } else { fieldsBuilder_.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 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.Value.Record.Field, com.daml.lf.value.ValueOuterClass.Value.Record.Field.Builder, com.daml.lf.value.ValueOuterClass.Value.Record.FieldOrBuilder> fieldsBuilder_; /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Record.Field getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public Builder setFields( int index, com.daml.lf.value.ValueOuterClass.Value.Record.Field 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.Value.Record.Field fields = 1; */ public Builder setFields( int index, com.daml.lf.value.ValueOuterClass.Value.Record.Field.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.Value.Record.Field fields = 1; */ public Builder addFields(com.daml.lf.value.ValueOuterClass.Value.Record.Field 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.Value.Record.Field fields = 1; */ public Builder addFields( int index, com.daml.lf.value.ValueOuterClass.Value.Record.Field 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.Value.Record.Field fields = 1; */ public Builder addFields( com.daml.lf.value.ValueOuterClass.Value.Record.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public Builder addFields( int index, com.daml.lf.value.ValueOuterClass.Value.Record.Field.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.Value.Record.Field fields = 1; */ 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.Value.Record.Field fields = 1; */ 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.Value.Record.Field fields = 1; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Record.Field.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Record.FieldOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Record.Field.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.lf.value.ValueOuterClass.Value.Record.Field.getDefaultInstance()); } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Record.Field.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.lf.value.ValueOuterClass.Value.Record.Field.getDefaultInstance()); } /** * repeated .com.daml.lf.value.Value.Record.Field fields = 1; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Record.Field, com.daml.lf.value.ValueOuterClass.Value.Record.Field.Builder, com.daml.lf.value.ValueOuterClass.Value.Record.FieldOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Record.Field, com.daml.lf.value.ValueOuterClass.Value.Record.Field.Builder, com.daml.lf.value.ValueOuterClass.Value.Record.FieldOrBuilder>( 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.Value.Record) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value.Record) private static final com.daml.lf.value.ValueOuterClass.Value.Record DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value.Record(); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Record getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VariantOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Value.Variant) com.google.protobuf.MessageOrBuilder { /** * string constructor = 1; * @return The constructor. */ java.lang.String getConstructor(); /** * string constructor = 1; * @return The bytes for constructor. */ com.google.protobuf.ByteString getConstructorBytes(); /** * .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.Value.Variant} */ public static final class Variant extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Variant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Variant.class, com.daml.lf.value.ValueOuterClass.Value.Variant.Builder.class); } private int bitField0_; public static final int CONSTRUCTOR_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object constructor_ = ""; /** * string constructor = 1; * @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 = 1; * @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 = 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : 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(constructor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, constructor_); } if (((bitField0_ & 0x00000001) != 0)) { 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(constructor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, constructor_); } if (((bitField0_ & 0x00000001) != 0)) { 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.Value.Variant)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value.Variant other = (com.daml.lf.value.ValueOuterClass.Value.Variant) obj; 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(); 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.Value.Variant parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Variant parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Variant parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.Variant} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value.Variant) com.daml.lf.value.ValueOuterClass.Value.VariantOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Variant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Variant.class, com.daml.lf.value.ValueOuterClass.Value.Variant.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.Variant.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; constructor_ = ""; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); 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_Value_Variant_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Variant getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.Variant.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Variant build() { com.daml.lf.value.ValueOuterClass.Value.Variant result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Variant buildPartial() { com.daml.lf.value.ValueOuterClass.Value.Variant result = new com.daml.lf.value.ValueOuterClass.Value.Variant(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value.Variant result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.constructor_ = constructor_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Value.Variant) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value.Variant)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value.Variant other) { if (other == com.daml.lf.value.ValueOuterClass.Value.Variant.getDefaultInstance()) return this; if (!other.getConstructor().isEmpty()) { constructor_ = other.constructor_; bitField0_ |= 0x00000001; 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: { constructor_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object constructor_ = ""; /** * string constructor = 1; * @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 = 1; * @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 = 1; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string constructor = 1; * @return This builder for chaining. */ public Builder clearConstructor() { constructor_ = getDefaultInstance().getConstructor(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string constructor = 1; * @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; bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder mergeValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.Value value = 2; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getValueBuilder() { bitField0_ |= 0x00000002; 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.Value.Variant) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value.Variant) private static final com.daml.lf.value.ValueOuterClass.Value.Variant DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value.Variant(); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Variant getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Value.Enum) com.google.protobuf.MessageOrBuilder { /** * string value = 1; * @return The value. */ java.lang.String getValue(); /** * string value = 1; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code com.daml.lf.value.Value.Enum} */ public static final class Enum extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Enum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Enum.class, com.daml.lf.value.ValueOuterClass.Value.Enum.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** * string value = 1; * @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 = 1; * @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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, 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(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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.Value.Enum)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value.Enum other = (com.daml.lf.value.ValueOuterClass.Value.Enum) obj; 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) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.lf.value.ValueOuterClass.Value.Enum parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Enum parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Enum parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.Enum} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value.Enum) com.daml.lf.value.ValueOuterClass.Value.EnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Enum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Enum.class, com.daml.lf.value.ValueOuterClass.Value.Enum.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.Enum.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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_Value_Enum_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Enum getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.Enum.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Enum build() { com.daml.lf.value.ValueOuterClass.Value.Enum result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Enum buildPartial() { com.daml.lf.value.ValueOuterClass.Value.Enum result = new com.daml.lf.value.ValueOuterClass.Value.Enum(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value.Enum result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = value_; } } @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.Enum) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value.Enum)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value.Enum other) { if (other == com.daml.lf.value.ValueOuterClass.Value.Enum.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000001; 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: { value_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; 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.lang.Object value_ = ""; /** * string value = 1; * @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 = 1; * @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 = 1; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string value = 1; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.lf.value.Value.Enum) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value.Enum) private static final com.daml.lf.value.ValueOuterClass.Value.Enum DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value.Enum(); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Enum getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.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.Value.List} */ public static final class List extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_List_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.List.class, com.daml.lf.value.ValueOuterClass.Value.List.Builder.class); } public static final int ELEMENTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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.Value.List)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value.List other = (com.daml.lf.value.ValueOuterClass.Value.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.Value.List parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.List parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.List parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.List} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value.List) com.daml.lf.value.ValueOuterClass.Value.ListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_List_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.List.class, com.daml.lf.value.ValueOuterClass.Value.List.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.List.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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_Value_List_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.List getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.List.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.List build() { com.daml.lf.value.ValueOuterClass.Value.List result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.List buildPartial() { com.daml.lf.value.ValueOuterClass.Value.List result = new com.daml.lf.value.ValueOuterClass.Value.List(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.lf.value.ValueOuterClass.Value.List result) { if (elementsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { elements_ = java.util.Collections.unmodifiableList(elements_); bitField0_ = (bitField0_ & ~0x00000001); } result.elements_ = elements_; } else { result.elements_ = elementsBuilder_.build(); } } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value.List result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Value.List) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value.List)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value.List other) { if (other == com.daml.lf.value.ValueOuterClass.Value.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.Value.List) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value.List) private static final com.daml.lf.value.ValueOuterClass.Value.List DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value.List(); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.List getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.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.Value.Optional} */ public static final class Optional extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Optional_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Optional.class, com.daml.lf.value.ValueOuterClass.Value.Optional.Builder.class); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, 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.Value.Optional)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value.Optional other = (com.daml.lf.value.ValueOuterClass.Value.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.Value.Optional parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Optional parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Optional parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.Optional} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value.Optional) com.daml.lf.value.ValueOuterClass.Value.OptionalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Optional_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Optional.class, com.daml.lf.value.ValueOuterClass.Value.Optional.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.Optional.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); 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_Value_Optional_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Optional getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.Optional.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Optional build() { com.daml.lf.value.ValueOuterClass.Value.Optional result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Optional buildPartial() { com.daml.lf.value.ValueOuterClass.Value.Optional result = new com.daml.lf.value.ValueOuterClass.Value.Optional(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value.Optional result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Value.Optional) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value.Optional)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value.Optional other) { if (other == com.daml.lf.value.ValueOuterClass.Value.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); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * optional
         * 
* * .com.daml.lf.value.Value value = 1; */ public Builder mergeValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && value_ != null && value_ != com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * optional
         * 
* * .com.daml.lf.value.Value value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** *
         * optional
         * 
* * .com.daml.lf.value.Value value = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getValueBuilder() { bitField0_ |= 0x00000001; 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.Value.Optional) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value.Optional) private static final com.daml.lf.value.ValueOuterClass.Value.Optional DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value.Optional(); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Optional getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TextMapOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Value.TextMap) com.google.protobuf.MessageOrBuilder { /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ java.util.List getEntriesList(); /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry getEntries(int index); /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ int getEntriesCount(); /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ java.util.List getEntriesOrBuilderList(); /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ com.daml.lf.value.ValueOuterClass.Value.TextMap.EntryOrBuilder getEntriesOrBuilder( int index); } /** * Protobuf type {@code com.daml.lf.value.Value.TextMap} */ public static final class TextMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Value.TextMap) TextMapOrBuilder { private static final long serialVersionUID = 0L; // Use TextMap.newBuilder() to construct. private TextMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TextMap() { entries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TextMap(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_TextMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_TextMap_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.TextMap.class, com.daml.lf.value.ValueOuterClass.Value.TextMap.Builder.class); } public interface EntryOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Value.TextMap.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.Value.TextMap.Entry} */ public static final class Entry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.Value.TextMap.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_TextMap_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_TextMap_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.class, com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : 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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (((bitField0_ & 0x00000001) != 0)) { 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 (((bitField0_ & 0x00000001) != 0)) { 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.Value.TextMap.Entry)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry other = (com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.Entry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.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.Value.TextMap.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.Value.TextMap.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.Value.TextMap.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.Value.TextMap.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.Value.TextMap.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.Value.TextMap.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.Value.TextMap.Entry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value.TextMap.Entry) com.daml.lf.value.ValueOuterClass.Value.TextMap.EntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_TextMap_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_TextMap_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.class, com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); 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_Value_TextMap_Entry_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry build() { com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry buildPartial() { com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry result = new com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry other) { if (other == com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; 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(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder mergeValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.Value value = 2; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getValueBuilder() { bitField0_ |= 0x00000002; 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.Value.TextMap.Entry) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value.TextMap.Entry) private static final com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry(); } public static com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ENTRIES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List entries_; /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry getEntries(int index) { return entries_.get(index); } /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value.TextMap other = (com.daml.lf.value.ValueOuterClass.Value.TextMap) 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.Value.TextMap parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.TextMap 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.TextMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.TextMap 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.TextMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.TextMap 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.TextMap 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.TextMap 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.TextMap 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.TextMap 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.TextMap 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.TextMap 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.TextMap 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.Value.TextMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value.TextMap) com.daml.lf.value.ValueOuterClass.Value.TextMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_TextMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_Value_TextMap_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.TextMap.class, com.daml.lf.value.ValueOuterClass.Value.TextMap.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.TextMap.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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_Value_TextMap_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMap getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.TextMap.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMap build() { com.daml.lf.value.ValueOuterClass.Value.TextMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMap buildPartial() { com.daml.lf.value.ValueOuterClass.Value.TextMap result = new com.daml.lf.value.ValueOuterClass.Value.TextMap(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.lf.value.ValueOuterClass.Value.TextMap result) { if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value.TextMap result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Value.TextMap) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value.TextMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value.TextMap other) { if (other == com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.Entry m = input.readMessage( com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.Entry, com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.Builder, com.daml.lf.value.ValueOuterClass.Value.TextMap.EntryOrBuilder> entriesBuilder_; /** * repeated .com.daml.lf.value.Value.TextMap.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.Value.TextMap.Entry entries = 1; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ public Builder setEntries( int index, com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.Entry entries = 1; */ public Builder setEntries( int index, com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.Entry entries = 1; */ public Builder addEntries(com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.Entry entries = 1; */ public Builder addEntries( int index, com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.Entry entries = 1; */ public Builder addEntries( com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ public Builder addEntries( int index, com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap.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.Value.TextMap.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.Value.TextMap.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.Value.TextMap.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Value.TextMap.EntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.daml.lf.value.Value.TextMap.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.Value.TextMap.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.getDefaultInstance()); } /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.getDefaultInstance()); } /** * repeated .com.daml.lf.value.Value.TextMap.Entry entries = 1; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry, com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.Builder, com.daml.lf.value.ValueOuterClass.Value.TextMap.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry, com.daml.lf.value.ValueOuterClass.Value.TextMap.Entry.Builder, com.daml.lf.value.ValueOuterClass.Value.TextMap.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.Value.TextMap) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value.TextMap) private static final com.daml.lf.value.ValueOuterClass.Value.TextMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value.TextMap(); } public static com.daml.lf.value.ValueOuterClass.Value.TextMap getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TextMap 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.TextMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MapOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Value.Map) com.google.protobuf.MessageOrBuilder { /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ java.util.List getEntriesList(); /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ com.daml.lf.value.ValueOuterClass.Value.Map.Entry getEntries(int index); /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ int getEntriesCount(); /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ java.util.List getEntriesOrBuilderList(); /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ com.daml.lf.value.ValueOuterClass.Value.Map.EntryOrBuilder getEntriesOrBuilder( int index); } /** * Protobuf type {@code com.daml.lf.value.Value.Map} */ public static final class Map extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Map_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Map.class, com.daml.lf.value.ValueOuterClass.Value.Map.Builder.class); } public interface EntryOrBuilder extends // @@protoc_insertion_point(interface_extends:com.daml.lf.value.Value.Map.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.Value.Map.Entry} */ public static final class Entry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.lf.value.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() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Entry(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Map_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Map.Entry.class, com.daml.lf.value.ValueOuterClass.Value.Map.Entry.Builder.class); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 key_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : key_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 value_ == null ? com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance() : 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getKey()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getKey()); } if (((bitField0_ & 0x00000002) != 0)) { 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.Value.Map.Entry)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value.Map.Entry other = (com.daml.lf.value.ValueOuterClass.Value.Map.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.Value.Map.Entry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Map.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Map.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.Map.Entry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value.Map.Entry) com.daml.lf.value.ValueOuterClass.Value.Map.EntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Map_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Map.Entry.class, com.daml.lf.value.ValueOuterClass.Value.Map.Entry.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.Map.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeyFieldBuilder(); getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); 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_Value_Map_Entry_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Map.Entry getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.Map.Entry.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Map.Entry build() { com.daml.lf.value.ValueOuterClass.Value.Map.Entry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Map.Entry buildPartial() { com.daml.lf.value.ValueOuterClass.Value.Map.Entry result = new com.daml.lf.value.ValueOuterClass.Value.Map.Entry(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value.Map.Entry result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Value.Map.Entry) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value.Map.Entry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value.Map.Entry other) { if (other == com.daml.lf.value.ValueOuterClass.Value.Map.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); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .com.daml.lf.value.Value key = 1; */ public Builder mergeKey(com.daml.lf.value.ValueOuterClass.Value value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && key_ != null && key_ != com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } if (key_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .com.daml.lf.value.Value key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.Value key = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getKeyBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder mergeValue(com.daml.lf.value.ValueOuterClass.Value value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != com.daml.lf.value.ValueOuterClass.Value.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .com.daml.lf.value.Value value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .com.daml.lf.value.Value value = 2; */ public com.daml.lf.value.ValueOuterClass.Value.Builder getValueBuilder() { bitField0_ |= 0x00000002; 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.Value.Map.Entry) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value.Map.Entry) private static final com.daml.lf.value.ValueOuterClass.Value.Map.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value.Map.Entry(); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Map.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ENTRIES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List entries_; /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Map.Entry getEntries(int index) { return entries_.get(index); } /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.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.Value.Map)) { return super.equals(obj); } com.daml.lf.value.ValueOuterClass.Value.Map other = (com.daml.lf.value.ValueOuterClass.Value.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.Value.Map parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Map parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Map parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.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.Value.Map} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.lf.value.Value.Map) com.daml.lf.value.ValueOuterClass.Value.MapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.lf.value.ValueOuterClass.internal_static_com_daml_lf_value_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_Value_Map_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.lf.value.ValueOuterClass.Value.Map.class, com.daml.lf.value.ValueOuterClass.Value.Map.Builder.class); } // Construct using com.daml.lf.value.ValueOuterClass.Value.Map.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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_Value_Map_descriptor; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Map getDefaultInstanceForType() { return com.daml.lf.value.ValueOuterClass.Value.Map.getDefaultInstance(); } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Map build() { com.daml.lf.value.ValueOuterClass.Value.Map result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Map buildPartial() { com.daml.lf.value.ValueOuterClass.Value.Map result = new com.daml.lf.value.ValueOuterClass.Value.Map(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.lf.value.ValueOuterClass.Value.Map result) { if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value.Map result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.value.ValueOuterClass.Value.Map) { return mergeFrom((com.daml.lf.value.ValueOuterClass.Value.Map)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.lf.value.ValueOuterClass.Value.Map other) { if (other == com.daml.lf.value.ValueOuterClass.Value.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.Value.Map.Entry m = input.readMessage( com.daml.lf.value.ValueOuterClass.Value.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.Value.Map.Entry, com.daml.lf.value.ValueOuterClass.Value.Map.Entry.Builder, com.daml.lf.value.ValueOuterClass.Value.Map.EntryOrBuilder> entriesBuilder_; /** * repeated .com.daml.lf.value.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.Value.Map.Entry entries = 1; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Map.Entry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ public Builder setEntries( int index, com.daml.lf.value.ValueOuterClass.Value.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.Value.Map.Entry entries = 1; */ public Builder setEntries( int index, com.daml.lf.value.ValueOuterClass.Value.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.Value.Map.Entry entries = 1; */ public Builder addEntries(com.daml.lf.value.ValueOuterClass.Value.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.Value.Map.Entry entries = 1; */ public Builder addEntries( int index, com.daml.lf.value.ValueOuterClass.Value.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.Value.Map.Entry entries = 1; */ public Builder addEntries( com.daml.lf.value.ValueOuterClass.Value.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.Value.Map.Entry entries = 1; */ public Builder addEntries( int index, com.daml.lf.value.ValueOuterClass.Value.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.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.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.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.Value.Map.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Map.Entry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Map.EntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.daml.lf.value.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.Value.Map.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Map.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( com.daml.lf.value.ValueOuterClass.Value.Map.Entry.getDefaultInstance()); } /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ public com.daml.lf.value.ValueOuterClass.Value.Map.Entry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, com.daml.lf.value.ValueOuterClass.Value.Map.Entry.getDefaultInstance()); } /** * repeated .com.daml.lf.value.Value.Map.Entry entries = 1; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Map.Entry, com.daml.lf.value.ValueOuterClass.Value.Map.Entry.Builder, com.daml.lf.value.ValueOuterClass.Value.Map.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Map.Entry, com.daml.lf.value.ValueOuterClass.Value.Map.Entry.Builder, com.daml.lf.value.ValueOuterClass.Value.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.Value.Map) } // @@protoc_insertion_point(class_scope:com.daml.lf.value.Value.Map) private static final com.daml.lf.value.ValueOuterClass.Value.Map DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.lf.value.ValueOuterClass.Value.Map(); } public static com.daml.lf.value.ValueOuterClass.Value.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.Value.Map getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; @SuppressWarnings("serial") private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UNIT(1), BOOL(2), INT64(3), DATE(4), TIMESTAMP(5), NUMERIC(6), PARTY(7), TEXT(8), CONTRACT_ID(9), OPTIONAL(10), LIST(11), MAP(12), TEXT_MAP(1001), RECORD(13), VARIANT(14), ENUM(15), 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 UNIT; case 2: return BOOL; case 3: return INT64; case 4: return DATE; case 5: return TIMESTAMP; case 6: return NUMERIC; case 7: return PARTY; case 8: return TEXT; case 9: return CONTRACT_ID; case 10: return OPTIONAL; case 11: return LIST; case 12: return MAP; case 1001: return TEXT_MAP; case 13: return RECORD; case 14: return VARIANT; case 15: return ENUM; 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 UNIT_FIELD_NUMBER = 1; /** * .google.protobuf.Empty unit = 1; * @return Whether the unit field is set. */ @java.lang.Override public boolean hasUnit() { return sumCase_ == 1; } /** * .google.protobuf.Empty unit = 1; * @return The unit. */ @java.lang.Override public com.google.protobuf.Empty getUnit() { if (sumCase_ == 1) { return (com.google.protobuf.Empty) sum_; } return com.google.protobuf.Empty.getDefaultInstance(); } /** * .google.protobuf.Empty unit = 1; */ @java.lang.Override public com.google.protobuf.EmptyOrBuilder getUnitOrBuilder() { if (sumCase_ == 1) { return (com.google.protobuf.Empty) sum_; } return com.google.protobuf.Empty.getDefaultInstance(); } public static final int BOOL_FIELD_NUMBER = 2; /** * bool bool = 2; * @return Whether the bool field is set. */ @java.lang.Override public boolean hasBool() { return sumCase_ == 2; } /** * bool bool = 2; * @return The bool. */ @java.lang.Override public boolean getBool() { if (sumCase_ == 2) { return (java.lang.Boolean) sum_; } return false; } public static final int INT64_FIELD_NUMBER = 3; /** * sint64 int64 = 3; * @return Whether the int64 field is set. */ @java.lang.Override public boolean hasInt64() { return sumCase_ == 3; } /** * sint64 int64 = 3; * @return The int64. */ @java.lang.Override public long getInt64() { if (sumCase_ == 3) { return (java.lang.Long) sum_; } return 0L; } public static final int DATE_FIELD_NUMBER = 4; /** *
     * 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 = 4; * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return sumCase_ == 4; } /** *
     * 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 = 4; * @return The date. */ @java.lang.Override public int getDate() { if (sumCase_ == 4) { return (java.lang.Integer) sum_; } return 0; } public static final int TIMESTAMP_FIELD_NUMBER = 5; /** *
     * 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 = 5; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return sumCase_ == 5; } /** *
     * 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 = 5; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { if (sumCase_ == 5) { return (java.lang.Long) sum_; } return 0L; } public static final int NUMERIC_FIELD_NUMBER = 6; /** *
     * 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; } /** *
     * 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; } } /** *
     * 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 PARTY_FIELD_NUMBER = 7; /** * string party = 7; * @return Whether the party field is set. */ public boolean hasParty() { return sumCase_ == 7; } /** * string party = 7; * @return The party. */ public java.lang.String getParty() { java.lang.Object ref = ""; if (sumCase_ == 7) { 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_ == 7) { sum_ = s; } return s; } } /** * string party = 7; * @return The bytes for party. */ public com.google.protobuf.ByteString getPartyBytes() { java.lang.Object ref = ""; if (sumCase_ == 7) { ref = sum_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 7) { 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 CONTRACT_ID_FIELD_NUMBER = 9; /** * bytes contract_id = 9; * @return Whether the contractId field is set. */ @java.lang.Override public boolean hasContractId() { return sumCase_ == 9; } /** * bytes contract_id = 9; * @return The contractId. */ @java.lang.Override public com.google.protobuf.ByteString getContractId() { if (sumCase_ == 9) { return (com.google.protobuf.ByteString) sum_; } return com.google.protobuf.ByteString.EMPTY; } public static final int OPTIONAL_FIELD_NUMBER = 10; /** * .com.daml.lf.value.Value.Optional optional = 10; * @return Whether the optional field is set. */ @java.lang.Override public boolean hasOptional() { return sumCase_ == 10; } /** * .com.daml.lf.value.Value.Optional optional = 10; * @return The optional. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Optional getOptional() { if (sumCase_ == 10) { return (com.daml.lf.value.ValueOuterClass.Value.Optional) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Optional.getDefaultInstance(); } /** * .com.daml.lf.value.Value.Optional optional = 10; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.OptionalOrBuilder getOptionalOrBuilder() { if (sumCase_ == 10) { return (com.daml.lf.value.ValueOuterClass.Value.Optional) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Optional.getDefaultInstance(); } public static final int LIST_FIELD_NUMBER = 11; /** * .com.daml.lf.value.Value.List list = 11; * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return sumCase_ == 11; } /** * .com.daml.lf.value.Value.List list = 11; * @return The list. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.List getList() { if (sumCase_ == 11) { return (com.daml.lf.value.ValueOuterClass.Value.List) sum_; } return com.daml.lf.value.ValueOuterClass.Value.List.getDefaultInstance(); } /** * .com.daml.lf.value.Value.List list = 11; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.ListOrBuilder getListOrBuilder() { if (sumCase_ == 11) { return (com.daml.lf.value.ValueOuterClass.Value.List) sum_; } return com.daml.lf.value.ValueOuterClass.Value.List.getDefaultInstance(); } public static final int MAP_FIELD_NUMBER = 12; /** * .com.daml.lf.value.Value.Map map = 12; * @return Whether the map field is set. */ @java.lang.Override public boolean hasMap() { return sumCase_ == 12; } /** * .com.daml.lf.value.Value.Map map = 12; * @return The map. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Map getMap() { if (sumCase_ == 12) { return (com.daml.lf.value.ValueOuterClass.Value.Map) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Map.getDefaultInstance(); } /** * .com.daml.lf.value.Value.Map map = 12; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.MapOrBuilder getMapOrBuilder() { if (sumCase_ == 12) { return (com.daml.lf.value.ValueOuterClass.Value.Map) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Map.getDefaultInstance(); } public static final int TEXT_MAP_FIELD_NUMBER = 1001; /** *
     * *Available in versions >= 2.dev
     * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; * @return Whether the textMap field is set. */ @java.lang.Override public boolean hasTextMap() { return sumCase_ == 1001; } /** *
     * *Available in versions >= 2.dev
     * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; * @return The textMap. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMap getTextMap() { if (sumCase_ == 1001) { return (com.daml.lf.value.ValueOuterClass.Value.TextMap) sum_; } return com.daml.lf.value.ValueOuterClass.Value.TextMap.getDefaultInstance(); } /** *
     * *Available in versions >= 2.dev
     * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMapOrBuilder getTextMapOrBuilder() { if (sumCase_ == 1001) { return (com.daml.lf.value.ValueOuterClass.Value.TextMap) sum_; } return com.daml.lf.value.ValueOuterClass.Value.TextMap.getDefaultInstance(); } public static final int RECORD_FIELD_NUMBER = 13; /** * .com.daml.lf.value.Value.Record record = 13; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return sumCase_ == 13; } /** * .com.daml.lf.value.Value.Record record = 13; * @return The record. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Record getRecord() { if (sumCase_ == 13) { return (com.daml.lf.value.ValueOuterClass.Value.Record) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Record.getDefaultInstance(); } /** * .com.daml.lf.value.Value.Record record = 13; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.RecordOrBuilder getRecordOrBuilder() { if (sumCase_ == 13) { return (com.daml.lf.value.ValueOuterClass.Value.Record) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Record.getDefaultInstance(); } public static final int VARIANT_FIELD_NUMBER = 14; /** * .com.daml.lf.value.Value.Variant variant = 14; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return sumCase_ == 14; } /** * .com.daml.lf.value.Value.Variant variant = 14; * @return The variant. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Variant getVariant() { if (sumCase_ == 14) { return (com.daml.lf.value.ValueOuterClass.Value.Variant) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Variant.getDefaultInstance(); } /** * .com.daml.lf.value.Value.Variant variant = 14; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.VariantOrBuilder getVariantOrBuilder() { if (sumCase_ == 14) { return (com.daml.lf.value.ValueOuterClass.Value.Variant) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Variant.getDefaultInstance(); } public static final int ENUM_FIELD_NUMBER = 15; /** * .com.daml.lf.value.Value.Enum enum = 15; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return sumCase_ == 15; } /** * .com.daml.lf.value.Value.Enum enum = 15; * @return The enum. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Enum getEnum() { if (sumCase_ == 15) { return (com.daml.lf.value.ValueOuterClass.Value.Enum) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Enum.getDefaultInstance(); } /** * .com.daml.lf.value.Value.Enum enum = 15; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.EnumOrBuilder getEnumOrBuilder() { if (sumCase_ == 15) { return (com.daml.lf.value.ValueOuterClass.Value.Enum) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Enum.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.google.protobuf.Empty) sum_); } if (sumCase_ == 2) { output.writeBool( 2, (boolean)((java.lang.Boolean) sum_)); } if (sumCase_ == 3) { output.writeSInt64( 3, (long)((java.lang.Long) sum_)); } if (sumCase_ == 4) { output.writeInt32( 4, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 5) { output.writeSFixed64( 5, (long)((java.lang.Long) sum_)); } if (sumCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sum_); } if (sumCase_ == 7) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, sum_); } if (sumCase_ == 8) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sum_); } if (sumCase_ == 9) { output.writeBytes( 9, (com.google.protobuf.ByteString) sum_); } if (sumCase_ == 10) { output.writeMessage(10, (com.daml.lf.value.ValueOuterClass.Value.Optional) sum_); } if (sumCase_ == 11) { output.writeMessage(11, (com.daml.lf.value.ValueOuterClass.Value.List) sum_); } if (sumCase_ == 12) { output.writeMessage(12, (com.daml.lf.value.ValueOuterClass.Value.Map) sum_); } if (sumCase_ == 13) { output.writeMessage(13, (com.daml.lf.value.ValueOuterClass.Value.Record) sum_); } if (sumCase_ == 14) { output.writeMessage(14, (com.daml.lf.value.ValueOuterClass.Value.Variant) sum_); } if (sumCase_ == 15) { output.writeMessage(15, (com.daml.lf.value.ValueOuterClass.Value.Enum) sum_); } if (sumCase_ == 1001) { output.writeMessage(1001, (com.daml.lf.value.ValueOuterClass.Value.TextMap) 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.google.protobuf.Empty) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 2, (boolean)((java.lang.Boolean) sum_)); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size( 3, (long)((java.lang.Long) sum_)); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 4, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size( 5, (long)((java.lang.Long) sum_)); } if (sumCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sum_); } if (sumCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, sum_); } if (sumCase_ == 8) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 9, (com.google.protobuf.ByteString) sum_); } if (sumCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.daml.lf.value.ValueOuterClass.Value.Optional) sum_); } if (sumCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.daml.lf.value.ValueOuterClass.Value.List) sum_); } if (sumCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.daml.lf.value.ValueOuterClass.Value.Map) sum_); } if (sumCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.daml.lf.value.ValueOuterClass.Value.Record) sum_); } if (sumCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.daml.lf.value.ValueOuterClass.Value.Variant) sum_); } if (sumCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.daml.lf.value.ValueOuterClass.Value.Enum) sum_); } if (sumCase_ == 1001) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1001, (com.daml.lf.value.ValueOuterClass.Value.TextMap) 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 (!getUnit() .equals(other.getUnit())) return false; break; case 2: if (getBool() != other.getBool()) return false; break; case 3: if (getInt64() != other.getInt64()) return false; break; case 4: if (getDate() != other.getDate()) return false; break; case 5: if (getTimestamp() != other.getTimestamp()) return false; break; case 6: if (!getNumeric() .equals(other.getNumeric())) return false; break; case 7: if (!getParty() .equals(other.getParty())) return false; break; case 8: if (!getText() .equals(other.getText())) return false; break; case 9: if (!getContractId() .equals(other.getContractId())) return false; break; case 10: if (!getOptional() .equals(other.getOptional())) return false; break; case 11: if (!getList() .equals(other.getList())) return false; break; case 12: if (!getMap() .equals(other.getMap())) return false; break; case 1001: if (!getTextMap() .equals(other.getTextMap())) return false; break; case 13: if (!getRecord() .equals(other.getRecord())) return false; break; case 14: if (!getVariant() .equals(other.getVariant())) return false; break; case 15: if (!getEnum() .equals(other.getEnum())) 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) + UNIT_FIELD_NUMBER; hash = (53 * hash) + getUnit().hashCode(); break; case 2: hash = (37 * hash) + BOOL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBool()); break; case 3: hash = (37 * hash) + INT64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInt64()); break; case 4: hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate(); break; case 5: hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); break; case 6: hash = (37 * hash) + NUMERIC_FIELD_NUMBER; hash = (53 * hash) + getNumeric().hashCode(); break; case 7: hash = (37 * hash) + PARTY_FIELD_NUMBER; hash = (53 * hash) + getParty().hashCode(); break; case 8: hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); break; case 9: hash = (37 * hash) + CONTRACT_ID_FIELD_NUMBER; hash = (53 * hash) + getContractId().hashCode(); break; case 10: hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; hash = (53 * hash) + getOptional().hashCode(); break; case 11: hash = (37 * hash) + LIST_FIELD_NUMBER; hash = (53 * hash) + getList().hashCode(); break; case 12: hash = (37 * hash) + MAP_FIELD_NUMBER; hash = (53 * hash) + getMap().hashCode(); break; case 1001: hash = (37 * hash) + TEXT_MAP_FIELD_NUMBER; hash = (53 * hash) + getTextMap().hashCode(); break; case 13: hash = (37 * hash) + RECORD_FIELD_NUMBER; hash = (53 * hash) + getRecord().hashCode(); break; case 14: hash = (37 * hash) + VARIANT_FIELD_NUMBER; hash = (53 * hash) + getVariant().hashCode(); break; case 15: hash = (37 * hash) + ENUM_FIELD_NUMBER; hash = (53 * hash) + getEnum().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(); bitField0_ = 0; if (unitBuilder_ != null) { unitBuilder_.clear(); } if (optionalBuilder_ != null) { optionalBuilder_.clear(); } if (listBuilder_ != null) { listBuilder_.clear(); } if (mapBuilder_ != null) { mapBuilder_.clear(); } if (textMapBuilder_ != null) { textMapBuilder_.clear(); } if (recordBuilder_ != null) { recordBuilder_.clear(); } if (variantBuilder_ != null) { variantBuilder_.clear(); } if (enumBuilder_ != null) { enumBuilder_.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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.lf.value.ValueOuterClass.Value result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.lf.value.ValueOuterClass.Value result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 1 && unitBuilder_ != null) { result.sum_ = unitBuilder_.build(); } if (sumCase_ == 10 && optionalBuilder_ != null) { result.sum_ = optionalBuilder_.build(); } if (sumCase_ == 11 && listBuilder_ != null) { result.sum_ = listBuilder_.build(); } if (sumCase_ == 12 && mapBuilder_ != null) { result.sum_ = mapBuilder_.build(); } if (sumCase_ == 1001 && textMapBuilder_ != null) { result.sum_ = textMapBuilder_.build(); } if (sumCase_ == 13 && recordBuilder_ != null) { result.sum_ = recordBuilder_.build(); } if (sumCase_ == 14 && variantBuilder_ != null) { result.sum_ = variantBuilder_.build(); } if (sumCase_ == 15 && enumBuilder_ != null) { result.sum_ = enumBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.lf.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 UNIT: { mergeUnit(other.getUnit()); break; } case BOOL: { setBool(other.getBool()); break; } case INT64: { setInt64(other.getInt64()); break; } case DATE: { setDate(other.getDate()); break; } case TIMESTAMP: { setTimestamp(other.getTimestamp()); break; } case NUMERIC: { sumCase_ = 6; sum_ = other.sum_; onChanged(); break; } case PARTY: { sumCase_ = 7; sum_ = other.sum_; onChanged(); break; } case TEXT: { sumCase_ = 8; sum_ = other.sum_; onChanged(); break; } case CONTRACT_ID: { setContractId(other.getContractId()); break; } case OPTIONAL: { mergeOptional(other.getOptional()); break; } case LIST: { mergeList(other.getList()); break; } case MAP: { mergeMap(other.getMap()); break; } case TEXT_MAP: { mergeTextMap(other.getTextMap()); break; } case RECORD: { mergeRecord(other.getRecord()); break; } case VARIANT: { mergeVariant(other.getVariant()); break; } case ENUM: { mergeEnum(other.getEnum()); 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( getUnitFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1; break; } // case 10 case 16: { sum_ = input.readBool(); sumCase_ = 2; break; } // case 16 case 24: { sum_ = input.readSInt64(); sumCase_ = 3; break; } // case 24 case 32: { sum_ = input.readInt32(); sumCase_ = 4; break; } // case 32 case 41: { sum_ = input.readSFixed64(); sumCase_ = 5; break; } // case 41 case 50: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 6; sum_ = s; break; } // case 50 case 58: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 7; sum_ = s; break; } // case 58 case 66: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 8; sum_ = s; break; } // case 66 case 74: { sum_ = input.readBytes(); sumCase_ = 9; break; } // case 74 case 82: { input.readMessage( getOptionalFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 10; break; } // case 82 case 90: { input.readMessage( getListFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 11; break; } // case 90 case 98: { input.readMessage( getMapFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 12; break; } // case 98 case 106: { input.readMessage( getRecordFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 13; break; } // case 106 case 114: { input.readMessage( getVariantFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 14; break; } // case 114 case 122: { input.readMessage( getEnumFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 15; break; } // case 122 case 8010: { input.readMessage( getTextMapFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1001; break; } // case 8010 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int 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 int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> unitBuilder_; /** * .google.protobuf.Empty unit = 1; * @return Whether the unit field is set. */ @java.lang.Override public boolean hasUnit() { return sumCase_ == 1; } /** * .google.protobuf.Empty unit = 1; * @return The unit. */ @java.lang.Override public com.google.protobuf.Empty getUnit() { if (unitBuilder_ == null) { if (sumCase_ == 1) { return (com.google.protobuf.Empty) sum_; } return com.google.protobuf.Empty.getDefaultInstance(); } else { if (sumCase_ == 1) { return unitBuilder_.getMessage(); } return com.google.protobuf.Empty.getDefaultInstance(); } } /** * .google.protobuf.Empty unit = 1; */ 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_ = 1; return this; } /** * .google.protobuf.Empty unit = 1; */ public Builder setUnit( com.google.protobuf.Empty.Builder builderForValue) { if (unitBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { unitBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** * .google.protobuf.Empty unit = 1; */ public Builder mergeUnit(com.google.protobuf.Empty value) { if (unitBuilder_ == null) { if (sumCase_ == 1 && 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_ == 1) { unitBuilder_.mergeFrom(value); } else { unitBuilder_.setMessage(value); } } sumCase_ = 1; return this; } /** * .google.protobuf.Empty unit = 1; */ public Builder clearUnit() { if (unitBuilder_ == null) { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; } unitBuilder_.clear(); } return this; } /** * .google.protobuf.Empty unit = 1; */ public com.google.protobuf.Empty.Builder getUnitBuilder() { return getUnitFieldBuilder().getBuilder(); } /** * .google.protobuf.Empty unit = 1; */ @java.lang.Override public com.google.protobuf.EmptyOrBuilder getUnitOrBuilder() { if ((sumCase_ == 1) && (unitBuilder_ != null)) { return unitBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.google.protobuf.Empty) sum_; } return com.google.protobuf.Empty.getDefaultInstance(); } } /** * .google.protobuf.Empty unit = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> getUnitFieldBuilder() { if (unitBuilder_ == null) { if (!(sumCase_ == 1)) { 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_ = 1; onChanged(); return unitBuilder_; } /** * bool bool = 2; * @return Whether the bool field is set. */ public boolean hasBool() { return sumCase_ == 2; } /** * bool bool = 2; * @return The bool. */ public boolean getBool() { if (sumCase_ == 2) { return (java.lang.Boolean) sum_; } return false; } /** * bool bool = 2; * @param value The bool to set. * @return This builder for chaining. */ public Builder setBool(boolean value) { sumCase_ = 2; sum_ = value; onChanged(); return this; } /** * bool bool = 2; * @return This builder for chaining. */ public Builder clearBool() { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** * sint64 int64 = 3; * @return Whether the int64 field is set. */ public boolean hasInt64() { return sumCase_ == 3; } /** * sint64 int64 = 3; * @return The int64. */ public long getInt64() { if (sumCase_ == 3) { return (java.lang.Long) sum_; } return 0L; } /** * sint64 int64 = 3; * @param value The int64 to set. * @return This builder for chaining. */ public Builder setInt64(long value) { sumCase_ = 3; sum_ = value; onChanged(); return this; } /** * sint64 int64 = 3; * @return This builder for chaining. */ public Builder clearInt64() { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; 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 = 4; * @return Whether the date field is set. */ public boolean hasDate() { return sumCase_ == 4; } /** *
       * 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 = 4; * @return The date. */ public int getDate() { if (sumCase_ == 4) { 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 = 4; * @param value The date to set. * @return This builder for chaining. */ public Builder setDate(int value) { sumCase_ = 4; 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 = 4; * @return This builder for chaining. */ public Builder clearDate() { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; 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 = 5; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return sumCase_ == 5; } /** *
       * 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 = 5; * @return The timestamp. */ public long getTimestamp() { if (sumCase_ == 5) { 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 = 5; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { sumCase_ = 5; 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 = 5; * @return This builder for chaining. */ public Builder clearTimestamp() { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * 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; } /** *
       * 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; } } /** *
       * 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; } } /** *
       * 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; } /** *
       * 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; } /** *
       * 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 party = 7; * @return Whether the party field is set. */ @java.lang.Override public boolean hasParty() { return sumCase_ == 7; } /** * string party = 7; * @return The party. */ @java.lang.Override public java.lang.String getParty() { java.lang.Object ref = ""; if (sumCase_ == 7) { 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_ == 7) { sum_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string party = 7; * @return The bytes for party. */ @java.lang.Override public com.google.protobuf.ByteString getPartyBytes() { java.lang.Object ref = ""; if (sumCase_ == 7) { ref = sum_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 7) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string party = 7; * @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_ = 7; sum_ = value; onChanged(); return this; } /** * string party = 7; * @return This builder for chaining. */ public Builder clearParty() { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** * string party = 7; * @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_ = 7; 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; } /** * bytes contract_id = 9; * @return Whether the contractId field is set. */ public boolean hasContractId() { return sumCase_ == 9; } /** * bytes contract_id = 9; * @return The contractId. */ public com.google.protobuf.ByteString getContractId() { if (sumCase_ == 9) { return (com.google.protobuf.ByteString) sum_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes contract_id = 9; * @param value The contractId to set. * @return This builder for chaining. */ public Builder setContractId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 9; sum_ = value; onChanged(); return this; } /** * bytes contract_id = 9; * @return This builder for chaining. */ public Builder clearContractId() { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Optional, com.daml.lf.value.ValueOuterClass.Value.Optional.Builder, com.daml.lf.value.ValueOuterClass.Value.OptionalOrBuilder> optionalBuilder_; /** * .com.daml.lf.value.Value.Optional optional = 10; * @return Whether the optional field is set. */ @java.lang.Override public boolean hasOptional() { return sumCase_ == 10; } /** * .com.daml.lf.value.Value.Optional optional = 10; * @return The optional. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Optional getOptional() { if (optionalBuilder_ == null) { if (sumCase_ == 10) { return (com.daml.lf.value.ValueOuterClass.Value.Optional) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Optional.getDefaultInstance(); } else { if (sumCase_ == 10) { return optionalBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Value.Optional.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.Optional optional = 10; */ public Builder setOptional(com.daml.lf.value.ValueOuterClass.Value.Optional value) { if (optionalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalBuilder_.setMessage(value); } sumCase_ = 10; return this; } /** * .com.daml.lf.value.Value.Optional optional = 10; */ public Builder setOptional( com.daml.lf.value.ValueOuterClass.Value.Optional.Builder builderForValue) { if (optionalBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalBuilder_.setMessage(builderForValue.build()); } sumCase_ = 10; return this; } /** * .com.daml.lf.value.Value.Optional optional = 10; */ public Builder mergeOptional(com.daml.lf.value.ValueOuterClass.Value.Optional value) { if (optionalBuilder_ == null) { if (sumCase_ == 10 && sum_ != com.daml.lf.value.ValueOuterClass.Value.Optional.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Value.Optional.newBuilder((com.daml.lf.value.ValueOuterClass.Value.Optional) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 10) { optionalBuilder_.mergeFrom(value); } else { optionalBuilder_.setMessage(value); } } sumCase_ = 10; return this; } /** * .com.daml.lf.value.Value.Optional optional = 10; */ public Builder clearOptional() { if (optionalBuilder_ == null) { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; } optionalBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Value.Optional optional = 10; */ public com.daml.lf.value.ValueOuterClass.Value.Optional.Builder getOptionalBuilder() { return getOptionalFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value.Optional optional = 10; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.OptionalOrBuilder getOptionalOrBuilder() { if ((sumCase_ == 10) && (optionalBuilder_ != null)) { return optionalBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 10) { return (com.daml.lf.value.ValueOuterClass.Value.Optional) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Optional.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.Optional optional = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Optional, com.daml.lf.value.ValueOuterClass.Value.Optional.Builder, com.daml.lf.value.ValueOuterClass.Value.OptionalOrBuilder> getOptionalFieldBuilder() { if (optionalBuilder_ == null) { if (!(sumCase_ == 10)) { sum_ = com.daml.lf.value.ValueOuterClass.Value.Optional.getDefaultInstance(); } optionalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Optional, com.daml.lf.value.ValueOuterClass.Value.Optional.Builder, com.daml.lf.value.ValueOuterClass.Value.OptionalOrBuilder>( (com.daml.lf.value.ValueOuterClass.Value.Optional) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 10; onChanged(); return optionalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.List, com.daml.lf.value.ValueOuterClass.Value.List.Builder, com.daml.lf.value.ValueOuterClass.Value.ListOrBuilder> listBuilder_; /** * .com.daml.lf.value.Value.List list = 11; * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return sumCase_ == 11; } /** * .com.daml.lf.value.Value.List list = 11; * @return The list. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.List getList() { if (listBuilder_ == null) { if (sumCase_ == 11) { return (com.daml.lf.value.ValueOuterClass.Value.List) sum_; } return com.daml.lf.value.ValueOuterClass.Value.List.getDefaultInstance(); } else { if (sumCase_ == 11) { return listBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Value.List.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.List list = 11; */ public Builder setList(com.daml.lf.value.ValueOuterClass.Value.List value) { if (listBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { listBuilder_.setMessage(value); } sumCase_ = 11; return this; } /** * .com.daml.lf.value.Value.List list = 11; */ public Builder setList( com.daml.lf.value.ValueOuterClass.Value.List.Builder builderForValue) { if (listBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { listBuilder_.setMessage(builderForValue.build()); } sumCase_ = 11; return this; } /** * .com.daml.lf.value.Value.List list = 11; */ public Builder mergeList(com.daml.lf.value.ValueOuterClass.Value.List value) { if (listBuilder_ == null) { if (sumCase_ == 11 && sum_ != com.daml.lf.value.ValueOuterClass.Value.List.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Value.List.newBuilder((com.daml.lf.value.ValueOuterClass.Value.List) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 11) { listBuilder_.mergeFrom(value); } else { listBuilder_.setMessage(value); } } sumCase_ = 11; return this; } /** * .com.daml.lf.value.Value.List list = 11; */ public Builder clearList() { if (listBuilder_ == null) { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; } listBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Value.List list = 11; */ public com.daml.lf.value.ValueOuterClass.Value.List.Builder getListBuilder() { return getListFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value.List list = 11; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.ListOrBuilder getListOrBuilder() { if ((sumCase_ == 11) && (listBuilder_ != null)) { return listBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 11) { return (com.daml.lf.value.ValueOuterClass.Value.List) sum_; } return com.daml.lf.value.ValueOuterClass.Value.List.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.List list = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.List, com.daml.lf.value.ValueOuterClass.Value.List.Builder, com.daml.lf.value.ValueOuterClass.Value.ListOrBuilder> getListFieldBuilder() { if (listBuilder_ == null) { if (!(sumCase_ == 11)) { sum_ = com.daml.lf.value.ValueOuterClass.Value.List.getDefaultInstance(); } listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.List, com.daml.lf.value.ValueOuterClass.Value.List.Builder, com.daml.lf.value.ValueOuterClass.Value.ListOrBuilder>( (com.daml.lf.value.ValueOuterClass.Value.List) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 11; onChanged(); return listBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Map, com.daml.lf.value.ValueOuterClass.Value.Map.Builder, com.daml.lf.value.ValueOuterClass.Value.MapOrBuilder> mapBuilder_; /** * .com.daml.lf.value.Value.Map map = 12; * @return Whether the map field is set. */ @java.lang.Override public boolean hasMap() { return sumCase_ == 12; } /** * .com.daml.lf.value.Value.Map map = 12; * @return The map. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Map getMap() { if (mapBuilder_ == null) { if (sumCase_ == 12) { return (com.daml.lf.value.ValueOuterClass.Value.Map) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Map.getDefaultInstance(); } else { if (sumCase_ == 12) { return mapBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Value.Map.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.Map map = 12; */ public Builder setMap(com.daml.lf.value.ValueOuterClass.Value.Map value) { if (mapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { mapBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** * .com.daml.lf.value.Value.Map map = 12; */ public Builder setMap( com.daml.lf.value.ValueOuterClass.Value.Map.Builder builderForValue) { if (mapBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { mapBuilder_.setMessage(builderForValue.build()); } sumCase_ = 12; return this; } /** * .com.daml.lf.value.Value.Map map = 12; */ public Builder mergeMap(com.daml.lf.value.ValueOuterClass.Value.Map value) { if (mapBuilder_ == null) { if (sumCase_ == 12 && sum_ != com.daml.lf.value.ValueOuterClass.Value.Map.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Value.Map.newBuilder((com.daml.lf.value.ValueOuterClass.Value.Map) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 12) { mapBuilder_.mergeFrom(value); } else { mapBuilder_.setMessage(value); } } sumCase_ = 12; return this; } /** * .com.daml.lf.value.Value.Map map = 12; */ public Builder clearMap() { if (mapBuilder_ == null) { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; } mapBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Value.Map map = 12; */ public com.daml.lf.value.ValueOuterClass.Value.Map.Builder getMapBuilder() { return getMapFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value.Map map = 12; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.MapOrBuilder getMapOrBuilder() { if ((sumCase_ == 12) && (mapBuilder_ != null)) { return mapBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 12) { return (com.daml.lf.value.ValueOuterClass.Value.Map) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Map.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.Map map = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Map, com.daml.lf.value.ValueOuterClass.Value.Map.Builder, com.daml.lf.value.ValueOuterClass.Value.MapOrBuilder> getMapFieldBuilder() { if (mapBuilder_ == null) { if (!(sumCase_ == 12)) { sum_ = com.daml.lf.value.ValueOuterClass.Value.Map.getDefaultInstance(); } mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Map, com.daml.lf.value.ValueOuterClass.Value.Map.Builder, com.daml.lf.value.ValueOuterClass.Value.MapOrBuilder>( (com.daml.lf.value.ValueOuterClass.Value.Map) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 12; onChanged(); return mapBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.TextMap, com.daml.lf.value.ValueOuterClass.Value.TextMap.Builder, com.daml.lf.value.ValueOuterClass.Value.TextMapOrBuilder> textMapBuilder_; /** *
       * *Available in versions >= 2.dev
       * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; * @return Whether the textMap field is set. */ @java.lang.Override public boolean hasTextMap() { return sumCase_ == 1001; } /** *
       * *Available in versions >= 2.dev
       * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; * @return The textMap. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMap getTextMap() { if (textMapBuilder_ == null) { if (sumCase_ == 1001) { return (com.daml.lf.value.ValueOuterClass.Value.TextMap) sum_; } return com.daml.lf.value.ValueOuterClass.Value.TextMap.getDefaultInstance(); } else { if (sumCase_ == 1001) { return textMapBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Value.TextMap.getDefaultInstance(); } } /** *
       * *Available in versions >= 2.dev
       * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; */ public Builder setTextMap(com.daml.lf.value.ValueOuterClass.Value.TextMap value) { if (textMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { textMapBuilder_.setMessage(value); } sumCase_ = 1001; return this; } /** *
       * *Available in versions >= 2.dev
       * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; */ public Builder setTextMap( com.daml.lf.value.ValueOuterClass.Value.TextMap.Builder builderForValue) { if (textMapBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { textMapBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1001; return this; } /** *
       * *Available in versions >= 2.dev
       * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; */ public Builder mergeTextMap(com.daml.lf.value.ValueOuterClass.Value.TextMap value) { if (textMapBuilder_ == null) { if (sumCase_ == 1001 && sum_ != com.daml.lf.value.ValueOuterClass.Value.TextMap.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Value.TextMap.newBuilder((com.daml.lf.value.ValueOuterClass.Value.TextMap) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1001) { textMapBuilder_.mergeFrom(value); } else { textMapBuilder_.setMessage(value); } } sumCase_ = 1001; return this; } /** *
       * *Available in versions >= 2.dev
       * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; */ public Builder clearTextMap() { if (textMapBuilder_ == null) { if (sumCase_ == 1001) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1001) { sumCase_ = 0; sum_ = null; } textMapBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 2.dev
       * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; */ public com.daml.lf.value.ValueOuterClass.Value.TextMap.Builder getTextMapBuilder() { return getTextMapFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 2.dev
       * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.TextMapOrBuilder getTextMapOrBuilder() { if ((sumCase_ == 1001) && (textMapBuilder_ != null)) { return textMapBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1001) { return (com.daml.lf.value.ValueOuterClass.Value.TextMap) sum_; } return com.daml.lf.value.ValueOuterClass.Value.TextMap.getDefaultInstance(); } } /** *
       * *Available in versions >= 2.dev
       * 
* * .com.daml.lf.value.Value.TextMap text_map = 1001; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.TextMap, com.daml.lf.value.ValueOuterClass.Value.TextMap.Builder, com.daml.lf.value.ValueOuterClass.Value.TextMapOrBuilder> getTextMapFieldBuilder() { if (textMapBuilder_ == null) { if (!(sumCase_ == 1001)) { sum_ = com.daml.lf.value.ValueOuterClass.Value.TextMap.getDefaultInstance(); } textMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.TextMap, com.daml.lf.value.ValueOuterClass.Value.TextMap.Builder, com.daml.lf.value.ValueOuterClass.Value.TextMapOrBuilder>( (com.daml.lf.value.ValueOuterClass.Value.TextMap) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1001; onChanged(); return textMapBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Record, com.daml.lf.value.ValueOuterClass.Value.Record.Builder, com.daml.lf.value.ValueOuterClass.Value.RecordOrBuilder> recordBuilder_; /** * .com.daml.lf.value.Value.Record record = 13; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return sumCase_ == 13; } /** * .com.daml.lf.value.Value.Record record = 13; * @return The record. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Record getRecord() { if (recordBuilder_ == null) { if (sumCase_ == 13) { return (com.daml.lf.value.ValueOuterClass.Value.Record) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Record.getDefaultInstance(); } else { if (sumCase_ == 13) { return recordBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Value.Record.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.Record record = 13; */ public Builder setRecord(com.daml.lf.value.ValueOuterClass.Value.Record value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { recordBuilder_.setMessage(value); } sumCase_ = 13; return this; } /** * .com.daml.lf.value.Value.Record record = 13; */ public Builder setRecord( com.daml.lf.value.ValueOuterClass.Value.Record.Builder builderForValue) { if (recordBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { recordBuilder_.setMessage(builderForValue.build()); } sumCase_ = 13; return this; } /** * .com.daml.lf.value.Value.Record record = 13; */ public Builder mergeRecord(com.daml.lf.value.ValueOuterClass.Value.Record value) { if (recordBuilder_ == null) { if (sumCase_ == 13 && sum_ != com.daml.lf.value.ValueOuterClass.Value.Record.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Value.Record.newBuilder((com.daml.lf.value.ValueOuterClass.Value.Record) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 13) { recordBuilder_.mergeFrom(value); } else { recordBuilder_.setMessage(value); } } sumCase_ = 13; return this; } /** * .com.daml.lf.value.Value.Record record = 13; */ public Builder clearRecord() { if (recordBuilder_ == null) { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; } recordBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Value.Record record = 13; */ public com.daml.lf.value.ValueOuterClass.Value.Record.Builder getRecordBuilder() { return getRecordFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value.Record record = 13; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.RecordOrBuilder getRecordOrBuilder() { if ((sumCase_ == 13) && (recordBuilder_ != null)) { return recordBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 13) { return (com.daml.lf.value.ValueOuterClass.Value.Record) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Record.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.Record record = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Record, com.daml.lf.value.ValueOuterClass.Value.Record.Builder, com.daml.lf.value.ValueOuterClass.Value.RecordOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { if (!(sumCase_ == 13)) { sum_ = com.daml.lf.value.ValueOuterClass.Value.Record.getDefaultInstance(); } recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Record, com.daml.lf.value.ValueOuterClass.Value.Record.Builder, com.daml.lf.value.ValueOuterClass.Value.RecordOrBuilder>( (com.daml.lf.value.ValueOuterClass.Value.Record) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 13; onChanged(); return recordBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Variant, com.daml.lf.value.ValueOuterClass.Value.Variant.Builder, com.daml.lf.value.ValueOuterClass.Value.VariantOrBuilder> variantBuilder_; /** * .com.daml.lf.value.Value.Variant variant = 14; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return sumCase_ == 14; } /** * .com.daml.lf.value.Value.Variant variant = 14; * @return The variant. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Variant getVariant() { if (variantBuilder_ == null) { if (sumCase_ == 14) { return (com.daml.lf.value.ValueOuterClass.Value.Variant) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Variant.getDefaultInstance(); } else { if (sumCase_ == 14) { return variantBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Value.Variant.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.Variant variant = 14; */ public Builder setVariant(com.daml.lf.value.ValueOuterClass.Value.Variant value) { if (variantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { variantBuilder_.setMessage(value); } sumCase_ = 14; return this; } /** * .com.daml.lf.value.Value.Variant variant = 14; */ public Builder setVariant( com.daml.lf.value.ValueOuterClass.Value.Variant.Builder builderForValue) { if (variantBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { variantBuilder_.setMessage(builderForValue.build()); } sumCase_ = 14; return this; } /** * .com.daml.lf.value.Value.Variant variant = 14; */ public Builder mergeVariant(com.daml.lf.value.ValueOuterClass.Value.Variant value) { if (variantBuilder_ == null) { if (sumCase_ == 14 && sum_ != com.daml.lf.value.ValueOuterClass.Value.Variant.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Value.Variant.newBuilder((com.daml.lf.value.ValueOuterClass.Value.Variant) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 14) { variantBuilder_.mergeFrom(value); } else { variantBuilder_.setMessage(value); } } sumCase_ = 14; return this; } /** * .com.daml.lf.value.Value.Variant variant = 14; */ public Builder clearVariant() { if (variantBuilder_ == null) { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; } variantBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Value.Variant variant = 14; */ public com.daml.lf.value.ValueOuterClass.Value.Variant.Builder getVariantBuilder() { return getVariantFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value.Variant variant = 14; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.VariantOrBuilder getVariantOrBuilder() { if ((sumCase_ == 14) && (variantBuilder_ != null)) { return variantBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 14) { return (com.daml.lf.value.ValueOuterClass.Value.Variant) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Variant.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.Variant variant = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Variant, com.daml.lf.value.ValueOuterClass.Value.Variant.Builder, com.daml.lf.value.ValueOuterClass.Value.VariantOrBuilder> getVariantFieldBuilder() { if (variantBuilder_ == null) { if (!(sumCase_ == 14)) { sum_ = com.daml.lf.value.ValueOuterClass.Value.Variant.getDefaultInstance(); } variantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Variant, com.daml.lf.value.ValueOuterClass.Value.Variant.Builder, com.daml.lf.value.ValueOuterClass.Value.VariantOrBuilder>( (com.daml.lf.value.ValueOuterClass.Value.Variant) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 14; onChanged(); return variantBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Enum, com.daml.lf.value.ValueOuterClass.Value.Enum.Builder, com.daml.lf.value.ValueOuterClass.Value.EnumOrBuilder> enumBuilder_; /** * .com.daml.lf.value.Value.Enum enum = 15; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return sumCase_ == 15; } /** * .com.daml.lf.value.Value.Enum enum = 15; * @return The enum. */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.Enum getEnum() { if (enumBuilder_ == null) { if (sumCase_ == 15) { return (com.daml.lf.value.ValueOuterClass.Value.Enum) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Enum.getDefaultInstance(); } else { if (sumCase_ == 15) { return enumBuilder_.getMessage(); } return com.daml.lf.value.ValueOuterClass.Value.Enum.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.Enum enum = 15; */ public Builder setEnum(com.daml.lf.value.ValueOuterClass.Value.Enum value) { if (enumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { enumBuilder_.setMessage(value); } sumCase_ = 15; return this; } /** * .com.daml.lf.value.Value.Enum enum = 15; */ public Builder setEnum( com.daml.lf.value.ValueOuterClass.Value.Enum.Builder builderForValue) { if (enumBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { enumBuilder_.setMessage(builderForValue.build()); } sumCase_ = 15; return this; } /** * .com.daml.lf.value.Value.Enum enum = 15; */ public Builder mergeEnum(com.daml.lf.value.ValueOuterClass.Value.Enum value) { if (enumBuilder_ == null) { if (sumCase_ == 15 && sum_ != com.daml.lf.value.ValueOuterClass.Value.Enum.getDefaultInstance()) { sum_ = com.daml.lf.value.ValueOuterClass.Value.Enum.newBuilder((com.daml.lf.value.ValueOuterClass.Value.Enum) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 15) { enumBuilder_.mergeFrom(value); } else { enumBuilder_.setMessage(value); } } sumCase_ = 15; return this; } /** * .com.daml.lf.value.Value.Enum enum = 15; */ public Builder clearEnum() { if (enumBuilder_ == null) { if (sumCase_ == 15) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 15) { sumCase_ = 0; sum_ = null; } enumBuilder_.clear(); } return this; } /** * .com.daml.lf.value.Value.Enum enum = 15; */ public com.daml.lf.value.ValueOuterClass.Value.Enum.Builder getEnumBuilder() { return getEnumFieldBuilder().getBuilder(); } /** * .com.daml.lf.value.Value.Enum enum = 15; */ @java.lang.Override public com.daml.lf.value.ValueOuterClass.Value.EnumOrBuilder getEnumOrBuilder() { if ((sumCase_ == 15) && (enumBuilder_ != null)) { return enumBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 15) { return (com.daml.lf.value.ValueOuterClass.Value.Enum) sum_; } return com.daml.lf.value.ValueOuterClass.Value.Enum.getDefaultInstance(); } } /** * .com.daml.lf.value.Value.Enum enum = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Enum, com.daml.lf.value.ValueOuterClass.Value.Enum.Builder, com.daml.lf.value.ValueOuterClass.Value.EnumOrBuilder> getEnumFieldBuilder() { if (enumBuilder_ == null) { if (!(sumCase_ == 15)) { sum_ = com.daml.lf.value.ValueOuterClass.Value.Enum.getDefaultInstance(); } enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.lf.value.ValueOuterClass.Value.Enum, com.daml.lf.value.ValueOuterClass.Value.Enum.Builder, com.daml.lf.value.ValueOuterClass.Value.EnumOrBuilder>( (com.daml.lf.value.ValueOuterClass.Value.Enum) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 15; onChanged(); return enumBuilder_; } @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; } } 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_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_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_Value_Record_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_Record_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Value_Record_Field_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_Record_Field_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Value_Variant_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_Variant_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Value_Enum_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_Enum_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Value_List_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_List_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Value_Optional_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_Optional_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Value_TextMap_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_TextMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Value_TextMap_Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_TextMap_Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Value_Map_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_Map_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_lf_value_Value_Map_Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_lf_value_Value_Map_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\"C\n\nIdentifier\022\022\n\npackage_id\030\001 \001(\t\022\023\n" + "\013module_name\030\002 \003(\t\022\014\n\004name\030\003 \003(\t\"\376\010\n\005Val" + "ue\022&\n\004unit\030\001 \001(\0132\026.google.protobuf.Empty" + "H\000\022\016\n\004bool\030\002 \001(\010H\000\022\017\n\005int64\030\003 \001(\022H\000\022\016\n\004d" + "ate\030\004 \001(\005H\000\022\023\n\ttimestamp\030\005 \001(\020H\000\022\021\n\007nume" + "ric\030\006 \001(\tH\000\022\017\n\005party\030\007 \001(\tH\000\022\016\n\004text\030\010 \001" + "(\tH\000\022\025\n\013contract_id\030\t \001(\014H\000\0225\n\010optional\030" + "\n \001(\0132!.com.daml.lf.value.Value.Optional" + "H\000\022-\n\004list\030\013 \001(\0132\035.com.daml.lf.value.Val" + "ue.ListH\000\022+\n\003map\030\014 \001(\0132\034.com.daml.lf.val" + "ue.Value.MapH\000\0225\n\010text_map\030\351\007 \001(\0132 .com." + "daml.lf.value.Value.TextMapH\000\0221\n\006record\030" + "\r \001(\0132\037.com.daml.lf.value.Value.RecordH\000" + "\0223\n\007variant\030\016 \001(\0132 .com.daml.lf.value.Va" + "lue.VariantH\000\022-\n\004enum\030\017 \001(\0132\035.com.daml.l" + "f.value.Value.EnumH\000\032q\n\006Record\0225\n\006fields" + "\030\001 \003(\0132%.com.daml.lf.value.Value.Record." + "Field\0320\n\005Field\022\'\n\005value\030\001 \001(\0132\030.com.daml" + ".lf.value.Value\032G\n\007Variant\022\023\n\013constructo" + "r\030\001 \001(\t\022\'\n\005value\030\002 \001(\0132\030.com.daml.lf.val" + "ue.Value\032\025\n\004Enum\022\r\n\005value\030\001 \001(\t\0322\n\004List\022" + "*\n\010elements\030\001 \003(\0132\030.com.daml.lf.value.Va" + "lue\0323\n\010Optional\022\'\n\005value\030\001 \001(\0132\030.com.dam" + "l.lf.value.Value\032\201\001\n\007TextMap\0227\n\007entries\030" + "\001 \003(\0132&.com.daml.lf.value.Value.TextMap." + "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\032\223\001\n\003Map\0223\n\007" + "entries\030\001 \003(\0132\".com.daml.lf.value.Value." + "Map.Entry\032W\n\005Entry\022%\n\003key\030\001 \001(\0132\030.com.da" + "ml.lf.value.Value\022\'\n\005value\030\002 \001(\0132\030.com.d" + "aml.lf.value.ValueB\005\n\003sumB\023\n\021com.daml.lf" + ".valueb\006proto3" }; 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_Identifier_descriptor = getDescriptor().getMessageTypes().get(1); 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_Value_descriptor = getDescriptor().getMessageTypes().get(2); 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[] { "Unit", "Bool", "Int64", "Date", "Timestamp", "Numeric", "Party", "Text", "ContractId", "Optional", "List", "Map", "TextMap", "Record", "Variant", "Enum", "Sum", }); internal_static_com_daml_lf_value_Value_Record_descriptor = internal_static_com_daml_lf_value_Value_descriptor.getNestedTypes().get(0); internal_static_com_daml_lf_value_Value_Record_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_Record_descriptor, new java.lang.String[] { "Fields", }); internal_static_com_daml_lf_value_Value_Record_Field_descriptor = internal_static_com_daml_lf_value_Value_Record_descriptor.getNestedTypes().get(0); internal_static_com_daml_lf_value_Value_Record_Field_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_Record_Field_descriptor, new java.lang.String[] { "Value", }); internal_static_com_daml_lf_value_Value_Variant_descriptor = internal_static_com_daml_lf_value_Value_descriptor.getNestedTypes().get(1); internal_static_com_daml_lf_value_Value_Variant_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_Variant_descriptor, new java.lang.String[] { "Constructor", "Value", }); internal_static_com_daml_lf_value_Value_Enum_descriptor = internal_static_com_daml_lf_value_Value_descriptor.getNestedTypes().get(2); internal_static_com_daml_lf_value_Value_Enum_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_Enum_descriptor, new java.lang.String[] { "Value", }); internal_static_com_daml_lf_value_Value_List_descriptor = internal_static_com_daml_lf_value_Value_descriptor.getNestedTypes().get(3); internal_static_com_daml_lf_value_Value_List_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_List_descriptor, new java.lang.String[] { "Elements", }); internal_static_com_daml_lf_value_Value_Optional_descriptor = internal_static_com_daml_lf_value_Value_descriptor.getNestedTypes().get(4); internal_static_com_daml_lf_value_Value_Optional_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_Optional_descriptor, new java.lang.String[] { "Value", }); internal_static_com_daml_lf_value_Value_TextMap_descriptor = internal_static_com_daml_lf_value_Value_descriptor.getNestedTypes().get(5); internal_static_com_daml_lf_value_Value_TextMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_TextMap_descriptor, new java.lang.String[] { "Entries", }); internal_static_com_daml_lf_value_Value_TextMap_Entry_descriptor = internal_static_com_daml_lf_value_Value_TextMap_descriptor.getNestedTypes().get(0); internal_static_com_daml_lf_value_Value_TextMap_Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_TextMap_Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_com_daml_lf_value_Value_Map_descriptor = internal_static_com_daml_lf_value_Value_descriptor.getNestedTypes().get(6); internal_static_com_daml_lf_value_Value_Map_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_Map_descriptor, new java.lang.String[] { "Entries", }); internal_static_com_daml_lf_value_Value_Map_Entry_descriptor = internal_static_com_daml_lf_value_Value_Map_descriptor.getNestedTypes().get(0); internal_static_com_daml_lf_value_Value_Map_Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_lf_value_Value_Map_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