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

com.intel.analytics.bigdl.serialization.Bigdl Maven / Gradle / Ivy

There is a newer version: 0.11.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: bigdl.proto

package com.intel.analytics.bigdl.serialization;

public final class Bigdl {
  private Bigdl() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code com.intel.analytics.bigdl.serialization.VarFormat}
   */
  public enum VarFormat
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * EMPTY_FORMAT = 0;
     */
    EMPTY_FORMAT(0),
    /**
     * DEFAULT = 1;
     */
    DEFAULT(1),
    /**
     * ONE_D = 2;
     */
    ONE_D(2),
    /**
     * IN_OUT = 3;
     */
    IN_OUT(3),
    /**
     * OUT_IN = 4;
     */
    OUT_IN(4),
    /**
     * IN_OUT_KW_KH = 5;
     */
    IN_OUT_KW_KH(5),
    /**
     * OUT_IN_KW_KH = 6;
     */
    OUT_IN_KW_KH(6),
    /**
     * GP_OUT_IN_KW_KH = 7;
     */
    GP_OUT_IN_KW_KH(7),
    /**
     * GP_IN_OUT_KW_KH = 8;
     */
    GP_IN_OUT_KW_KH(8),
    /**
     * OUT_IN_KT_KH_KW = 9;
     */
    OUT_IN_KT_KH_KW(9),
    UNRECOGNIZED(-1),
    ;

    /**
     * EMPTY_FORMAT = 0;
     */
    public static final int EMPTY_FORMAT_VALUE = 0;
    /**
     * DEFAULT = 1;
     */
    public static final int DEFAULT_VALUE = 1;
    /**
     * ONE_D = 2;
     */
    public static final int ONE_D_VALUE = 2;
    /**
     * IN_OUT = 3;
     */
    public static final int IN_OUT_VALUE = 3;
    /**
     * OUT_IN = 4;
     */
    public static final int OUT_IN_VALUE = 4;
    /**
     * IN_OUT_KW_KH = 5;
     */
    public static final int IN_OUT_KW_KH_VALUE = 5;
    /**
     * OUT_IN_KW_KH = 6;
     */
    public static final int OUT_IN_KW_KH_VALUE = 6;
    /**
     * GP_OUT_IN_KW_KH = 7;
     */
    public static final int GP_OUT_IN_KW_KH_VALUE = 7;
    /**
     * GP_IN_OUT_KW_KH = 8;
     */
    public static final int GP_IN_OUT_KW_KH_VALUE = 8;
    /**
     * OUT_IN_KT_KH_KW = 9;
     */
    public static final int OUT_IN_KT_KH_KW_VALUE = 9;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static VarFormat valueOf(int value) {
      return forNumber(value);
    }

    public static VarFormat forNumber(int value) {
      switch (value) {
        case 0: return EMPTY_FORMAT;
        case 1: return DEFAULT;
        case 2: return ONE_D;
        case 3: return IN_OUT;
        case 4: return OUT_IN;
        case 5: return IN_OUT_KW_KH;
        case 6: return OUT_IN_KW_KH;
        case 7: return GP_OUT_IN_KW_KH;
        case 8: return GP_IN_OUT_KW_KH;
        case 9: return OUT_IN_KT_KH_KW;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        VarFormat> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public VarFormat findValueByNumber(int number) {
              return VarFormat.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(0);
    }

    private static final VarFormat[] VALUES = values();

    public static VarFormat valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private VarFormat(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.VarFormat)
  }

  /**
   * Protobuf enum {@code com.intel.analytics.bigdl.serialization.InitMethodType}
   */
  public enum InitMethodType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * EMPTY_INITIALIZATION = 0;
     */
    EMPTY_INITIALIZATION(0),
    /**
     * RANDOM_UNIFORM = 1;
     */
    RANDOM_UNIFORM(1),
    /**
     * RANDOM_UNIFORM_PARAM = 2;
     */
    RANDOM_UNIFORM_PARAM(2),
    /**
     * RANDOM_NORMAL = 3;
     */
    RANDOM_NORMAL(3),
    /**
     * ZEROS = 4;
     */
    ZEROS(4),
    /**
     * ONES = 5;
     */
    ONES(5),
    /**
     * CONST = 6;
     */
    CONST(6),
    /**
     * XAVIER = 7;
     */
    XAVIER(7),
    /**
     * BILINEARFILLER = 8;
     */
    BILINEARFILLER(8),
    UNRECOGNIZED(-1),
    ;

    /**
     * EMPTY_INITIALIZATION = 0;
     */
    public static final int EMPTY_INITIALIZATION_VALUE = 0;
    /**
     * RANDOM_UNIFORM = 1;
     */
    public static final int RANDOM_UNIFORM_VALUE = 1;
    /**
     * RANDOM_UNIFORM_PARAM = 2;
     */
    public static final int RANDOM_UNIFORM_PARAM_VALUE = 2;
    /**
     * RANDOM_NORMAL = 3;
     */
    public static final int RANDOM_NORMAL_VALUE = 3;
    /**
     * ZEROS = 4;
     */
    public static final int ZEROS_VALUE = 4;
    /**
     * ONES = 5;
     */
    public static final int ONES_VALUE = 5;
    /**
     * CONST = 6;
     */
    public static final int CONST_VALUE = 6;
    /**
     * XAVIER = 7;
     */
    public static final int XAVIER_VALUE = 7;
    /**
     * BILINEARFILLER = 8;
     */
    public static final int BILINEARFILLER_VALUE = 8;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static InitMethodType valueOf(int value) {
      return forNumber(value);
    }

    public static InitMethodType forNumber(int value) {
      switch (value) {
        case 0: return EMPTY_INITIALIZATION;
        case 1: return RANDOM_UNIFORM;
        case 2: return RANDOM_UNIFORM_PARAM;
        case 3: return RANDOM_NORMAL;
        case 4: return ZEROS;
        case 5: return ONES;
        case 6: return CONST;
        case 7: return XAVIER;
        case 8: return BILINEARFILLER;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        InitMethodType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public InitMethodType findValueByNumber(int number) {
              return InitMethodType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(1);
    }

    private static final InitMethodType[] VALUES = values();

    public static InitMethodType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private InitMethodType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.InitMethodType)
  }

  /**
   * Protobuf enum {@code com.intel.analytics.bigdl.serialization.RegularizerType}
   */
  public enum RegularizerType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * L1L2Regularizer = 0;
     */
    L1L2Regularizer(0),
    /**
     * L1Regularizer = 1;
     */
    L1Regularizer(1),
    /**
     * L2Regularizer = 2;
     */
    L2Regularizer(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * L1L2Regularizer = 0;
     */
    public static final int L1L2Regularizer_VALUE = 0;
    /**
     * L1Regularizer = 1;
     */
    public static final int L1Regularizer_VALUE = 1;
    /**
     * L2Regularizer = 2;
     */
    public static final int L2Regularizer_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static RegularizerType valueOf(int value) {
      return forNumber(value);
    }

    public static RegularizerType forNumber(int value) {
      switch (value) {
        case 0: return L1L2Regularizer;
        case 1: return L1Regularizer;
        case 2: return L2Regularizer;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        RegularizerType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public RegularizerType findValueByNumber(int number) {
              return RegularizerType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(2);
    }

    private static final RegularizerType[] VALUES = values();

    public static RegularizerType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private RegularizerType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.RegularizerType)
  }

  /**
   * Protobuf enum {@code com.intel.analytics.bigdl.serialization.InputDataFormat}
   */
  public enum InputDataFormat
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * NCHW = 0;
     */
    NCHW(0),
    /**
     * NHWC = 1;
     */
    NHWC(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * NCHW = 0;
     */
    public static final int NCHW_VALUE = 0;
    /**
     * NHWC = 1;
     */
    public static final int NHWC_VALUE = 1;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static InputDataFormat valueOf(int value) {
      return forNumber(value);
    }

    public static InputDataFormat forNumber(int value) {
      switch (value) {
        case 0: return NCHW;
        case 1: return NHWC;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        InputDataFormat> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public InputDataFormat findValueByNumber(int number) {
              return InputDataFormat.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(3);
    }

    private static final InputDataFormat[] VALUES = values();

    public static InputDataFormat valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private InputDataFormat(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.InputDataFormat)
  }

  /**
   * Protobuf enum {@code com.intel.analytics.bigdl.serialization.TensorType}
   */
  public enum TensorType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * DENSE = 0;
     */
    DENSE(0),
    /**
     * QUANT = 1;
     */
    QUANT(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * DENSE = 0;
     */
    public static final int DENSE_VALUE = 0;
    /**
     * QUANT = 1;
     */
    public static final int QUANT_VALUE = 1;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static TensorType valueOf(int value) {
      return forNumber(value);
    }

    public static TensorType forNumber(int value) {
      switch (value) {
        case 0: return DENSE;
        case 1: return QUANT;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        TensorType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public TensorType findValueByNumber(int number) {
              return TensorType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(4);
    }

    private static final TensorType[] VALUES = values();

    public static TensorType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private TensorType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.TensorType)
  }

  /**
   * Protobuf enum {@code com.intel.analytics.bigdl.serialization.DataType}
   */
  public enum DataType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * INT32 = 0;
     */
    INT32(0),
    /**
     * INT64 = 1;
     */
    INT64(1),
    /**
     * FLOAT = 2;
     */
    FLOAT(2),
    /**
     * DOUBLE = 3;
     */
    DOUBLE(3),
    /**
     * STRING = 4;
     */
    STRING(4),
    /**
     * BOOL = 5;
     */
    BOOL(5),
    /**
     * CHAR = 6;
     */
    CHAR(6),
    /**
     * SHORT = 7;
     */
    SHORT(7),
    /**
     * BYTES = 8;
     */
    BYTES(8),
    /**
     * REGULARIZER = 9;
     */
    REGULARIZER(9),
    /**
     * TENSOR = 10;
     */
    TENSOR(10),
    /**
     * VARIABLE_FORMAT = 11;
     */
    VARIABLE_FORMAT(11),
    /**
     * INITMETHOD = 12;
     */
    INITMETHOD(12),
    /**
     * MODULE = 13;
     */
    MODULE(13),
    /**
     * NAME_ATTR_LIST = 14;
     */
    NAME_ATTR_LIST(14),
    /**
     * ARRAY_VALUE = 15;
     */
    ARRAY_VALUE(15),
    /**
     * DATA_FORMAT = 16;
     */
    DATA_FORMAT(16),
    /**
     * CUSTOM = 17;
     */
    CUSTOM(17),
    /**
     * SHAPE = 18;
     */
    SHAPE(18),
    UNRECOGNIZED(-1),
    ;

    /**
     * INT32 = 0;
     */
    public static final int INT32_VALUE = 0;
    /**
     * INT64 = 1;
     */
    public static final int INT64_VALUE = 1;
    /**
     * FLOAT = 2;
     */
    public static final int FLOAT_VALUE = 2;
    /**
     * DOUBLE = 3;
     */
    public static final int DOUBLE_VALUE = 3;
    /**
     * STRING = 4;
     */
    public static final int STRING_VALUE = 4;
    /**
     * BOOL = 5;
     */
    public static final int BOOL_VALUE = 5;
    /**
     * CHAR = 6;
     */
    public static final int CHAR_VALUE = 6;
    /**
     * SHORT = 7;
     */
    public static final int SHORT_VALUE = 7;
    /**
     * BYTES = 8;
     */
    public static final int BYTES_VALUE = 8;
    /**
     * REGULARIZER = 9;
     */
    public static final int REGULARIZER_VALUE = 9;
    /**
     * TENSOR = 10;
     */
    public static final int TENSOR_VALUE = 10;
    /**
     * VARIABLE_FORMAT = 11;
     */
    public static final int VARIABLE_FORMAT_VALUE = 11;
    /**
     * INITMETHOD = 12;
     */
    public static final int INITMETHOD_VALUE = 12;
    /**
     * MODULE = 13;
     */
    public static final int MODULE_VALUE = 13;
    /**
     * NAME_ATTR_LIST = 14;
     */
    public static final int NAME_ATTR_LIST_VALUE = 14;
    /**
     * ARRAY_VALUE = 15;
     */
    public static final int ARRAY_VALUE_VALUE = 15;
    /**
     * DATA_FORMAT = 16;
     */
    public static final int DATA_FORMAT_VALUE = 16;
    /**
     * CUSTOM = 17;
     */
    public static final int CUSTOM_VALUE = 17;
    /**
     * SHAPE = 18;
     */
    public static final int SHAPE_VALUE = 18;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static DataType valueOf(int value) {
      return forNumber(value);
    }

    public static DataType forNumber(int value) {
      switch (value) {
        case 0: return INT32;
        case 1: return INT64;
        case 2: return FLOAT;
        case 3: return DOUBLE;
        case 4: return STRING;
        case 5: return BOOL;
        case 6: return CHAR;
        case 7: return SHORT;
        case 8: return BYTES;
        case 9: return REGULARIZER;
        case 10: return TENSOR;
        case 11: return VARIABLE_FORMAT;
        case 12: return INITMETHOD;
        case 13: return MODULE;
        case 14: return NAME_ATTR_LIST;
        case 15: return ARRAY_VALUE;
        case 16: return DATA_FORMAT;
        case 17: return CUSTOM;
        case 18: return SHAPE;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        DataType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public DataType findValueByNumber(int number) {
              return DataType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(5);
    }

    private static final DataType[] VALUES = values();

    public static DataType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private DataType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.DataType)
  }

  public interface BigDLModuleOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.BigDLModule)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     *module name
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     *module name
     * 
* * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * sub modules
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ java.util.List getSubModulesList(); /** *
     * sub modules
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getSubModules(int index); /** *
     * sub modules
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ int getSubModulesCount(); /** *
     * sub modules
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ java.util.List getSubModulesOrBuilderList(); /** *
     * sub modules
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getSubModulesOrBuilder( int index); /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ boolean hasWeight(); /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getWeight(); /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getWeightOrBuilder(); /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ boolean hasBias(); /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getBias(); /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getBiasOrBuilder(); /** *
     *pre modules of the same hierarchy
     * 
* * repeated string preModules = 5; */ java.util.List getPreModulesList(); /** *
     *pre modules of the same hierarchy
     * 
* * repeated string preModules = 5; */ int getPreModulesCount(); /** *
     *pre modules of the same hierarchy
     * 
* * repeated string preModules = 5; */ java.lang.String getPreModules(int index); /** *
     *pre modules of the same hierarchy
     * 
* * repeated string preModules = 5; */ com.google.protobuf.ByteString getPreModulesBytes(int index); /** *
     *next modules of the same hierachy
     * 
* * repeated string nextModules = 6; */ java.util.List getNextModulesList(); /** *
     *next modules of the same hierachy
     * 
* * repeated string nextModules = 6; */ int getNextModulesCount(); /** *
     *next modules of the same hierachy
     * 
* * repeated string nextModules = 6; */ java.lang.String getNextModules(int index); /** *
     *next modules of the same hierachy
     * 
* * repeated string nextModules = 6; */ com.google.protobuf.ByteString getNextModulesBytes(int index); /** *
     *module type to identify a module like linear, graph, etc
     * 
* * string moduleType = 7; */ java.lang.String getModuleType(); /** *
     *module type to identify a module like linear, graph, etc
     * 
* * string moduleType = 7; */ com.google.protobuf.ByteString getModuleTypeBytes(); /** *
     * module attributes
     * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ int getAttrCount(); /** *
     * module attributes
     * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ boolean containsAttr( java.lang.String key); /** * Use {@link #getAttrMap()} instead. */ @java.lang.Deprecated java.util.Map getAttr(); /** *
     * module attributes
     * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ java.util.Map getAttrMap(); /** *
     * module attributes
     * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrDefault( java.lang.String key, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue defaultValue); /** *
     * module attributes
     * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrThrow( java.lang.String key); /** *
     *version of this module
     * 
* * string version = 9; */ java.lang.String getVersion(); /** *
     *version of this module
     * 
* * string version = 9; */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * is module status in train
     * 
* * bool train = 10; */ boolean getTrain(); /** *
     * name post fix
     * 
* * string namePostfix = 11; */ java.lang.String getNamePostfix(); /** *
     * name post fix
     * 
* * string namePostfix = 11; */ com.google.protobuf.ByteString getNamePostfixBytes(); /** *
     * unique ID of this module , used for shared modules
     * 
* * int32 id = 12; */ int getId(); /** *
     * input shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ boolean hasInputShape(); /** *
     * input shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ com.intel.analytics.bigdl.serialization.Bigdl.Shape getInputShape(); /** *
     * input shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getInputShapeOrBuilder(); /** *
     *output shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ boolean hasOutputShape(); /** *
     *output shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ com.intel.analytics.bigdl.serialization.Bigdl.Shape getOutputShape(); /** *
     *output shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getOutputShapeOrBuilder(); /** *
     * indicator if module has parameters
     * 
* * bool hasParameters = 15; */ boolean getHasParameters(); /** *
     * parameters, e.g., weight and bias
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ java.util.List getParametersList(); /** *
     * parameters, e.g., weight and bias
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getParameters(int index); /** *
     * parameters, e.g., weight and bias
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ int getParametersCount(); /** *
     * parameters, e.g., weight and bias
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ java.util.List getParametersOrBuilderList(); /** *
     * parameters, e.g., weight and bias
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getParametersOrBuilder( int index); /** * bool isMklInt8Enabled = 17; */ boolean getIsMklInt8Enabled(); /** * int32 inputDimMasks = 18; */ int getInputDimMasks(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ java.util.List getInputScalesList(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getInputScales(int index); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ int getInputScalesCount(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ java.util.List getInputScalesOrBuilderList(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getInputScalesOrBuilder( int index); /** * int32 outputDimMasks = 20; */ int getOutputDimMasks(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ java.util.List getOutputScalesList(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getOutputScales(int index); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ int getOutputScalesCount(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ java.util.List getOutputScalesOrBuilderList(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getOutputScalesOrBuilder( int index); /** * int32 weightDimMasks = 22; */ int getWeightDimMasks(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ java.util.List getWeightScalesList(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getWeightScales(int index); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ int getWeightScalesCount(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ java.util.List getWeightScalesOrBuilderList(); /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getWeightScalesOrBuilder( int index); } /** * Protobuf type {@code com.intel.analytics.bigdl.serialization.BigDLModule} */ public static final class BigDLModule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.BigDLModule) BigDLModuleOrBuilder { private static final long serialVersionUID = 0L; // Use BigDLModule.newBuilder() to construct. private BigDLModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BigDLModule() { name_ = ""; subModules_ = java.util.Collections.emptyList(); preModules_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextModules_ = com.google.protobuf.LazyStringArrayList.EMPTY; moduleType_ = ""; version_ = ""; train_ = false; namePostfix_ = ""; id_ = 0; hasParameters_ = false; parameters_ = java.util.Collections.emptyList(); isMklInt8Enabled_ = false; inputDimMasks_ = 0; inputScales_ = java.util.Collections.emptyList(); outputDimMasks_ = 0; outputScales_ = java.util.Collections.emptyList(); weightDimMasks_ = 0; weightScales_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BigDLModule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { subModules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } subModules_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.parser(), extensionRegistry)); break; } case 26: { com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder subBuilder = null; if (weight_ != null) { subBuilder = weight_.toBuilder(); } weight_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(weight_); weight_ = subBuilder.buildPartial(); } break; } case 34: { com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder subBuilder = null; if (bias_ != null) { subBuilder = bias_.toBuilder(); } bias_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bias_); bias_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { preModules_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } preModules_.add(s); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { nextModules_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } nextModules_.add(s); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); moduleType_ = s; break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { attr_ = com.google.protobuf.MapField.newMapField( AttrDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000080; } com.google.protobuf.MapEntry attr__ = input.readMessage( AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); attr_.getMutableMap().put( attr__.getKey(), attr__.getValue()); break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); version_ = s; break; } case 80: { train_ = input.readBool(); break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); namePostfix_ = s; break; } case 96: { id_ = input.readInt32(); break; } case 106: { com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder subBuilder = null; if (inputShape_ != null) { subBuilder = inputShape_.toBuilder(); } inputShape_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Shape.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(inputShape_); inputShape_ = subBuilder.buildPartial(); } break; } case 114: { com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder subBuilder = null; if (outputShape_ != null) { subBuilder = outputShape_.toBuilder(); } outputShape_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Shape.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(outputShape_); outputShape_ = subBuilder.buildPartial(); } break; } case 120: { hasParameters_ = input.readBool(); break; } case 130: { if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { parameters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00008000; } parameters_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.parser(), extensionRegistry)); break; } case 136: { isMklInt8Enabled_ = input.readBool(); break; } case 144: { inputDimMasks_ = input.readInt32(); break; } case 154: { if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { inputScales_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00040000; } inputScales_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.parser(), extensionRegistry)); break; } case 160: { outputDimMasks_ = input.readInt32(); break; } case 170: { if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) { outputScales_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00100000; } outputScales_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.parser(), extensionRegistry)); break; } case 176: { weightDimMasks_ = input.readInt32(); break; } case 186: { if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) { weightScales_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00400000; } weightScales_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { subModules_ = java.util.Collections.unmodifiableList(subModules_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { preModules_ = preModules_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { nextModules_ = nextModules_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); } if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { inputScales_ = java.util.Collections.unmodifiableList(inputScales_); } if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) { outputScales_ = java.util.Collections.unmodifiableList(outputScales_); } if (((mutable_bitField0_ & 0x00400000) == 0x00400000)) { weightScales_ = java.util.Collections.unmodifiableList(weightScales_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 8: return internalGetAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.class, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     *module name
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     *module name
     * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBMODULES_FIELD_NUMBER = 2; private java.util.List subModules_; /** *
     * sub modules
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public java.util.List getSubModulesList() { return subModules_; } /** *
     * sub modules
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public java.util.List getSubModulesOrBuilderList() { return subModules_; } /** *
     * sub modules
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public int getSubModulesCount() { return subModules_.size(); } /** *
     * sub modules
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getSubModules(int index) { return subModules_.get(index); } /** *
     * sub modules
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getSubModulesOrBuilder( int index) { return subModules_.get(index); } public static final int WEIGHT_FIELD_NUMBER = 3; private com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor weight_; /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public boolean hasWeight() { return weight_ != null; } /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getWeight() { return weight_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : weight_; } /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getWeightOrBuilder() { return getWeight(); } public static final int BIAS_FIELD_NUMBER = 4; private com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor bias_; /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public boolean hasBias() { return bias_ != null; } /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getBias() { return bias_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : bias_; } /** *
     * deprecated, please use parameters
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getBiasOrBuilder() { return getBias(); } public static final int PREMODULES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList preModules_; /** *
     *pre modules of the same hierarchy
     * 
* * repeated string preModules = 5; */ public com.google.protobuf.ProtocolStringList getPreModulesList() { return preModules_; } /** *
     *pre modules of the same hierarchy
     * 
* * repeated string preModules = 5; */ public int getPreModulesCount() { return preModules_.size(); } /** *
     *pre modules of the same hierarchy
     * 
* * repeated string preModules = 5; */ public java.lang.String getPreModules(int index) { return preModules_.get(index); } /** *
     *pre modules of the same hierarchy
     * 
* * repeated string preModules = 5; */ public com.google.protobuf.ByteString getPreModulesBytes(int index) { return preModules_.getByteString(index); } public static final int NEXTMODULES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList nextModules_; /** *
     *next modules of the same hierachy
     * 
* * repeated string nextModules = 6; */ public com.google.protobuf.ProtocolStringList getNextModulesList() { return nextModules_; } /** *
     *next modules of the same hierachy
     * 
* * repeated string nextModules = 6; */ public int getNextModulesCount() { return nextModules_.size(); } /** *
     *next modules of the same hierachy
     * 
* * repeated string nextModules = 6; */ public java.lang.String getNextModules(int index) { return nextModules_.get(index); } /** *
     *next modules of the same hierachy
     * 
* * repeated string nextModules = 6; */ public com.google.protobuf.ByteString getNextModulesBytes(int index) { return nextModules_.getByteString(index); } public static final int MODULETYPE_FIELD_NUMBER = 7; private volatile java.lang.Object moduleType_; /** *
     *module type to identify a module like linear, graph, etc
     * 
* * string moduleType = 7; */ public java.lang.String getModuleType() { java.lang.Object ref = moduleType_; 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(); moduleType_ = s; return s; } } /** *
     *module type to identify a module like linear, graph, etc
     * 
* * string moduleType = 7; */ public com.google.protobuf.ByteString getModuleTypeBytes() { java.lang.Object ref = moduleType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); moduleType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTR_FIELD_NUMBER = 8; private static final class AttrDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_AttrEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> attr_; private com.google.protobuf.MapField internalGetAttr() { if (attr_ == null) { return com.google.protobuf.MapField.emptyMapField( AttrDefaultEntryHolder.defaultEntry); } return attr_; } public int getAttrCount() { return internalGetAttr().getMap().size(); } /** *
     * module attributes
     * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public boolean containsAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttr().getMap().containsKey(key); } /** * Use {@link #getAttrMap()} instead. */ @java.lang.Deprecated public java.util.Map getAttr() { return getAttrMap(); } /** *
     * module attributes
     * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public java.util.Map getAttrMap() { return internalGetAttr().getMap(); } /** *
     * module attributes
     * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrDefault( java.lang.String key, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * module attributes
     * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int VERSION_FIELD_NUMBER = 9; private volatile java.lang.Object version_; /** *
     *version of this module
     * 
* * string version = 9; */ 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; } } /** *
     *version of this module
     * 
* * string version = 9; */ 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 TRAIN_FIELD_NUMBER = 10; private boolean train_; /** *
     * is module status in train
     * 
* * bool train = 10; */ public boolean getTrain() { return train_; } public static final int NAMEPOSTFIX_FIELD_NUMBER = 11; private volatile java.lang.Object namePostfix_; /** *
     * name post fix
     * 
* * string namePostfix = 11; */ public java.lang.String getNamePostfix() { java.lang.Object ref = namePostfix_; 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(); namePostfix_ = s; return s; } } /** *
     * name post fix
     * 
* * string namePostfix = 11; */ public com.google.protobuf.ByteString getNamePostfixBytes() { java.lang.Object ref = namePostfix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namePostfix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 12; private int id_; /** *
     * unique ID of this module , used for shared modules
     * 
* * int32 id = 12; */ public int getId() { return id_; } public static final int INPUTSHAPE_FIELD_NUMBER = 13; private com.intel.analytics.bigdl.serialization.Bigdl.Shape inputShape_; /** *
     * input shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public boolean hasInputShape() { return inputShape_ != null; } /** *
     * input shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape getInputShape() { return inputShape_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : inputShape_; } /** *
     * input shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getInputShapeOrBuilder() { return getInputShape(); } public static final int OUTPUTSHAPE_FIELD_NUMBER = 14; private com.intel.analytics.bigdl.serialization.Bigdl.Shape outputShape_; /** *
     *output shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public boolean hasOutputShape() { return outputShape_ != null; } /** *
     *output shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape getOutputShape() { return outputShape_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : outputShape_; } /** *
     *output shape
     * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getOutputShapeOrBuilder() { return getOutputShape(); } public static final int HASPARAMETERS_FIELD_NUMBER = 15; private boolean hasParameters_; /** *
     * indicator if module has parameters
     * 
* * bool hasParameters = 15; */ public boolean getHasParameters() { return hasParameters_; } public static final int PARAMETERS_FIELD_NUMBER = 16; private java.util.List parameters_; /** *
     * parameters, e.g., weight and bias
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public java.util.List getParametersList() { return parameters_; } /** *
     * parameters, e.g., weight and bias
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public java.util.List getParametersOrBuilderList() { return parameters_; } /** *
     * parameters, e.g., weight and bias
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public int getParametersCount() { return parameters_.size(); } /** *
     * parameters, e.g., weight and bias
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getParameters(int index) { return parameters_.get(index); } /** *
     * parameters, e.g., weight and bias
     * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getParametersOrBuilder( int index) { return parameters_.get(index); } public static final int ISMKLINT8ENABLED_FIELD_NUMBER = 17; private boolean isMklInt8Enabled_; /** * bool isMklInt8Enabled = 17; */ public boolean getIsMklInt8Enabled() { return isMklInt8Enabled_; } public static final int INPUTDIMMASKS_FIELD_NUMBER = 18; private int inputDimMasks_; /** * int32 inputDimMasks = 18; */ public int getInputDimMasks() { return inputDimMasks_; } public static final int INPUTSCALES_FIELD_NUMBER = 19; private java.util.List inputScales_; /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public java.util.List getInputScalesList() { return inputScales_; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public java.util.List getInputScalesOrBuilderList() { return inputScales_; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public int getInputScalesCount() { return inputScales_.size(); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getInputScales(int index) { return inputScales_.get(index); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getInputScalesOrBuilder( int index) { return inputScales_.get(index); } public static final int OUTPUTDIMMASKS_FIELD_NUMBER = 20; private int outputDimMasks_; /** * int32 outputDimMasks = 20; */ public int getOutputDimMasks() { return outputDimMasks_; } public static final int OUTPUTSCALES_FIELD_NUMBER = 21; private java.util.List outputScales_; /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public java.util.List getOutputScalesList() { return outputScales_; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public java.util.List getOutputScalesOrBuilderList() { return outputScales_; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public int getOutputScalesCount() { return outputScales_.size(); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getOutputScales(int index) { return outputScales_.get(index); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getOutputScalesOrBuilder( int index) { return outputScales_.get(index); } public static final int WEIGHTDIMMASKS_FIELD_NUMBER = 22; private int weightDimMasks_; /** * int32 weightDimMasks = 22; */ public int getWeightDimMasks() { return weightDimMasks_; } public static final int WEIGHTSCALES_FIELD_NUMBER = 23; private java.util.List weightScales_; /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public java.util.List getWeightScalesList() { return weightScales_; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public java.util.List getWeightScalesOrBuilderList() { return weightScales_; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public int getWeightScalesCount() { return weightScales_.size(); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getWeightScales(int index) { return weightScales_.get(index); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getWeightScalesOrBuilder( int index) { return weightScales_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < subModules_.size(); i++) { output.writeMessage(2, subModules_.get(i)); } if (weight_ != null) { output.writeMessage(3, getWeight()); } if (bias_ != null) { output.writeMessage(4, getBias()); } for (int i = 0; i < preModules_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, preModules_.getRaw(i)); } for (int i = 0; i < nextModules_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, nextModules_.getRaw(i)); } if (!getModuleTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, moduleType_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttr(), AttrDefaultEntryHolder.defaultEntry, 8); if (!getVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, version_); } if (train_ != false) { output.writeBool(10, train_); } if (!getNamePostfixBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, namePostfix_); } if (id_ != 0) { output.writeInt32(12, id_); } if (inputShape_ != null) { output.writeMessage(13, getInputShape()); } if (outputShape_ != null) { output.writeMessage(14, getOutputShape()); } if (hasParameters_ != false) { output.writeBool(15, hasParameters_); } for (int i = 0; i < parameters_.size(); i++) { output.writeMessage(16, parameters_.get(i)); } if (isMklInt8Enabled_ != false) { output.writeBool(17, isMklInt8Enabled_); } if (inputDimMasks_ != 0) { output.writeInt32(18, inputDimMasks_); } for (int i = 0; i < inputScales_.size(); i++) { output.writeMessage(19, inputScales_.get(i)); } if (outputDimMasks_ != 0) { output.writeInt32(20, outputDimMasks_); } for (int i = 0; i < outputScales_.size(); i++) { output.writeMessage(21, outputScales_.get(i)); } if (weightDimMasks_ != 0) { output.writeInt32(22, weightDimMasks_); } for (int i = 0; i < weightScales_.size(); i++) { output.writeMessage(23, weightScales_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < subModules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, subModules_.get(i)); } if (weight_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getWeight()); } if (bias_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBias()); } { int dataSize = 0; for (int i = 0; i < preModules_.size(); i++) { dataSize += computeStringSizeNoTag(preModules_.getRaw(i)); } size += dataSize; size += 1 * getPreModulesList().size(); } { int dataSize = 0; for (int i = 0; i < nextModules_.size(); i++) { dataSize += computeStringSizeNoTag(nextModules_.getRaw(i)); } size += dataSize; size += 1 * getNextModulesList().size(); } if (!getModuleTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, moduleType_); } for (java.util.Map.Entry entry : internalGetAttr().getMap().entrySet()) { com.google.protobuf.MapEntry attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, attr__); } if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, version_); } if (train_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, train_); } if (!getNamePostfixBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, namePostfix_); } if (id_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, id_); } if (inputShape_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getInputShape()); } if (outputShape_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getOutputShape()); } if (hasParameters_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, hasParameters_); } for (int i = 0; i < parameters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, parameters_.get(i)); } if (isMklInt8Enabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, isMklInt8Enabled_); } if (inputDimMasks_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(18, inputDimMasks_); } for (int i = 0; i < inputScales_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, inputScales_.get(i)); } if (outputDimMasks_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(20, outputDimMasks_); } for (int i = 0; i < outputScales_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, outputScales_.get(i)); } if (weightDimMasks_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(22, weightDimMasks_); } for (int i = 0; i < weightScales_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, weightScales_.get(i)); } size += unknownFields.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.intel.analytics.bigdl.serialization.Bigdl.BigDLModule)) { return super.equals(obj); } com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule other = (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getSubModulesList() .equals(other.getSubModulesList()); result = result && (hasWeight() == other.hasWeight()); if (hasWeight()) { result = result && getWeight() .equals(other.getWeight()); } result = result && (hasBias() == other.hasBias()); if (hasBias()) { result = result && getBias() .equals(other.getBias()); } result = result && getPreModulesList() .equals(other.getPreModulesList()); result = result && getNextModulesList() .equals(other.getNextModulesList()); result = result && getModuleType() .equals(other.getModuleType()); result = result && internalGetAttr().equals( other.internalGetAttr()); result = result && getVersion() .equals(other.getVersion()); result = result && (getTrain() == other.getTrain()); result = result && getNamePostfix() .equals(other.getNamePostfix()); result = result && (getId() == other.getId()); result = result && (hasInputShape() == other.hasInputShape()); if (hasInputShape()) { result = result && getInputShape() .equals(other.getInputShape()); } result = result && (hasOutputShape() == other.hasOutputShape()); if (hasOutputShape()) { result = result && getOutputShape() .equals(other.getOutputShape()); } result = result && (getHasParameters() == other.getHasParameters()); result = result && getParametersList() .equals(other.getParametersList()); result = result && (getIsMklInt8Enabled() == other.getIsMklInt8Enabled()); result = result && (getInputDimMasks() == other.getInputDimMasks()); result = result && getInputScalesList() .equals(other.getInputScalesList()); result = result && (getOutputDimMasks() == other.getOutputDimMasks()); result = result && getOutputScalesList() .equals(other.getOutputScalesList()); result = result && (getWeightDimMasks() == other.getWeightDimMasks()); result = result && getWeightScalesList() .equals(other.getWeightScalesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getSubModulesCount() > 0) { hash = (37 * hash) + SUBMODULES_FIELD_NUMBER; hash = (53 * hash) + getSubModulesList().hashCode(); } if (hasWeight()) { hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight().hashCode(); } if (hasBias()) { hash = (37 * hash) + BIAS_FIELD_NUMBER; hash = (53 * hash) + getBias().hashCode(); } if (getPreModulesCount() > 0) { hash = (37 * hash) + PREMODULES_FIELD_NUMBER; hash = (53 * hash) + getPreModulesList().hashCode(); } if (getNextModulesCount() > 0) { hash = (37 * hash) + NEXTMODULES_FIELD_NUMBER; hash = (53 * hash) + getNextModulesList().hashCode(); } hash = (37 * hash) + MODULETYPE_FIELD_NUMBER; hash = (53 * hash) + getModuleType().hashCode(); if (!internalGetAttr().getMap().isEmpty()) { hash = (37 * hash) + ATTR_FIELD_NUMBER; hash = (53 * hash) + internalGetAttr().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + TRAIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTrain()); hash = (37 * hash) + NAMEPOSTFIX_FIELD_NUMBER; hash = (53 * hash) + getNamePostfix().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); if (hasInputShape()) { hash = (37 * hash) + INPUTSHAPE_FIELD_NUMBER; hash = (53 * hash) + getInputShape().hashCode(); } if (hasOutputShape()) { hash = (37 * hash) + OUTPUTSHAPE_FIELD_NUMBER; hash = (53 * hash) + getOutputShape().hashCode(); } hash = (37 * hash) + HASPARAMETERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasParameters()); if (getParametersCount() > 0) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); } hash = (37 * hash) + ISMKLINT8ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsMklInt8Enabled()); hash = (37 * hash) + INPUTDIMMASKS_FIELD_NUMBER; hash = (53 * hash) + getInputDimMasks(); if (getInputScalesCount() > 0) { hash = (37 * hash) + INPUTSCALES_FIELD_NUMBER; hash = (53 * hash) + getInputScalesList().hashCode(); } hash = (37 * hash) + OUTPUTDIMMASKS_FIELD_NUMBER; hash = (53 * hash) + getOutputDimMasks(); if (getOutputScalesCount() > 0) { hash = (37 * hash) + OUTPUTSCALES_FIELD_NUMBER; hash = (53 * hash) + getOutputScalesList().hashCode(); } hash = (37 * hash) + WEIGHTDIMMASKS_FIELD_NUMBER; hash = (53 * hash) + getWeightDimMasks(); if (getWeightScalesCount() > 0) { hash = (37 * hash) + WEIGHTSCALES_FIELD_NUMBER; hash = (53 * hash) + getWeightScalesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule 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.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule 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.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.intel.analytics.bigdl.serialization.BigDLModule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.BigDLModule) com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 8: return internalGetAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 8: return internalGetMutableAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.class, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder.class); } // Construct using com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSubModulesFieldBuilder(); getParametersFieldBuilder(); getInputScalesFieldBuilder(); getOutputScalesFieldBuilder(); getWeightScalesFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; if (subModulesBuilder_ == null) { subModules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { subModulesBuilder_.clear(); } if (weightBuilder_ == null) { weight_ = null; } else { weight_ = null; weightBuilder_ = null; } if (biasBuilder_ == null) { bias_ = null; } else { bias_ = null; biasBuilder_ = null; } preModules_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); nextModules_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); moduleType_ = ""; internalGetMutableAttr().clear(); version_ = ""; train_ = false; namePostfix_ = ""; id_ = 0; if (inputShapeBuilder_ == null) { inputShape_ = null; } else { inputShape_ = null; inputShapeBuilder_ = null; } if (outputShapeBuilder_ == null) { outputShape_ = null; } else { outputShape_ = null; outputShapeBuilder_ = null; } hasParameters_ = false; if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); } else { parametersBuilder_.clear(); } isMklInt8Enabled_ = false; inputDimMasks_ = 0; if (inputScalesBuilder_ == null) { inputScales_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); } else { inputScalesBuilder_.clear(); } outputDimMasks_ = 0; if (outputScalesBuilder_ == null) { outputScales_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00100000); } else { outputScalesBuilder_.clear(); } weightDimMasks_ = 0; if (weightScalesBuilder_ == null) { weightScales_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00400000); } else { weightScalesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_descriptor; } public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getDefaultInstanceForType() { return com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance(); } public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule build() { com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule buildPartial() { com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule result = new com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (subModulesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { subModules_ = java.util.Collections.unmodifiableList(subModules_); bitField0_ = (bitField0_ & ~0x00000002); } result.subModules_ = subModules_; } else { result.subModules_ = subModulesBuilder_.build(); } if (weightBuilder_ == null) { result.weight_ = weight_; } else { result.weight_ = weightBuilder_.build(); } if (biasBuilder_ == null) { result.bias_ = bias_; } else { result.bias_ = biasBuilder_.build(); } if (((bitField0_ & 0x00000010) == 0x00000010)) { preModules_ = preModules_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.preModules_ = preModules_; if (((bitField0_ & 0x00000020) == 0x00000020)) { nextModules_ = nextModules_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.nextModules_ = nextModules_; result.moduleType_ = moduleType_; result.attr_ = internalGetAttr(); result.attr_.makeImmutable(); result.version_ = version_; result.train_ = train_; result.namePostfix_ = namePostfix_; result.id_ = id_; if (inputShapeBuilder_ == null) { result.inputShape_ = inputShape_; } else { result.inputShape_ = inputShapeBuilder_.build(); } if (outputShapeBuilder_ == null) { result.outputShape_ = outputShape_; } else { result.outputShape_ = outputShapeBuilder_.build(); } result.hasParameters_ = hasParameters_; if (parametersBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); bitField0_ = (bitField0_ & ~0x00008000); } result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } result.isMklInt8Enabled_ = isMklInt8Enabled_; result.inputDimMasks_ = inputDimMasks_; if (inputScalesBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000)) { inputScales_ = java.util.Collections.unmodifiableList(inputScales_); bitField0_ = (bitField0_ & ~0x00040000); } result.inputScales_ = inputScales_; } else { result.inputScales_ = inputScalesBuilder_.build(); } result.outputDimMasks_ = outputDimMasks_; if (outputScalesBuilder_ == null) { if (((bitField0_ & 0x00100000) == 0x00100000)) { outputScales_ = java.util.Collections.unmodifiableList(outputScales_); bitField0_ = (bitField0_ & ~0x00100000); } result.outputScales_ = outputScales_; } else { result.outputScales_ = outputScalesBuilder_.build(); } result.weightDimMasks_ = weightDimMasks_; if (weightScalesBuilder_ == null) { if (((bitField0_ & 0x00400000) == 0x00400000)) { weightScales_ = java.util.Collections.unmodifiableList(weightScales_); bitField0_ = (bitField0_ & ~0x00400000); } result.weightScales_ = weightScales_; } else { result.weightScales_ = weightScalesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) { return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule other) { if (other == com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (subModulesBuilder_ == null) { if (!other.subModules_.isEmpty()) { if (subModules_.isEmpty()) { subModules_ = other.subModules_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSubModulesIsMutable(); subModules_.addAll(other.subModules_); } onChanged(); } } else { if (!other.subModules_.isEmpty()) { if (subModulesBuilder_.isEmpty()) { subModulesBuilder_.dispose(); subModulesBuilder_ = null; subModules_ = other.subModules_; bitField0_ = (bitField0_ & ~0x00000002); subModulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSubModulesFieldBuilder() : null; } else { subModulesBuilder_.addAllMessages(other.subModules_); } } } if (other.hasWeight()) { mergeWeight(other.getWeight()); } if (other.hasBias()) { mergeBias(other.getBias()); } if (!other.preModules_.isEmpty()) { if (preModules_.isEmpty()) { preModules_ = other.preModules_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePreModulesIsMutable(); preModules_.addAll(other.preModules_); } onChanged(); } if (!other.nextModules_.isEmpty()) { if (nextModules_.isEmpty()) { nextModules_ = other.nextModules_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureNextModulesIsMutable(); nextModules_.addAll(other.nextModules_); } onChanged(); } if (!other.getModuleType().isEmpty()) { moduleType_ = other.moduleType_; onChanged(); } internalGetMutableAttr().mergeFrom( other.internalGetAttr()); if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (other.getTrain() != false) { setTrain(other.getTrain()); } if (!other.getNamePostfix().isEmpty()) { namePostfix_ = other.namePostfix_; onChanged(); } if (other.getId() != 0) { setId(other.getId()); } if (other.hasInputShape()) { mergeInputShape(other.getInputShape()); } if (other.hasOutputShape()) { mergeOutputShape(other.getOutputShape()); } if (other.getHasParameters() != false) { setHasParameters(other.getHasParameters()); } if (parametersBuilder_ == null) { if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00008000); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); } onChanged(); } } else { if (!other.parameters_.isEmpty()) { if (parametersBuilder_.isEmpty()) { parametersBuilder_.dispose(); parametersBuilder_ = null; parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00008000); parametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParametersFieldBuilder() : null; } else { parametersBuilder_.addAllMessages(other.parameters_); } } } if (other.getIsMklInt8Enabled() != false) { setIsMklInt8Enabled(other.getIsMklInt8Enabled()); } if (other.getInputDimMasks() != 0) { setInputDimMasks(other.getInputDimMasks()); } if (inputScalesBuilder_ == null) { if (!other.inputScales_.isEmpty()) { if (inputScales_.isEmpty()) { inputScales_ = other.inputScales_; bitField0_ = (bitField0_ & ~0x00040000); } else { ensureInputScalesIsMutable(); inputScales_.addAll(other.inputScales_); } onChanged(); } } else { if (!other.inputScales_.isEmpty()) { if (inputScalesBuilder_.isEmpty()) { inputScalesBuilder_.dispose(); inputScalesBuilder_ = null; inputScales_ = other.inputScales_; bitField0_ = (bitField0_ & ~0x00040000); inputScalesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInputScalesFieldBuilder() : null; } else { inputScalesBuilder_.addAllMessages(other.inputScales_); } } } if (other.getOutputDimMasks() != 0) { setOutputDimMasks(other.getOutputDimMasks()); } if (outputScalesBuilder_ == null) { if (!other.outputScales_.isEmpty()) { if (outputScales_.isEmpty()) { outputScales_ = other.outputScales_; bitField0_ = (bitField0_ & ~0x00100000); } else { ensureOutputScalesIsMutable(); outputScales_.addAll(other.outputScales_); } onChanged(); } } else { if (!other.outputScales_.isEmpty()) { if (outputScalesBuilder_.isEmpty()) { outputScalesBuilder_.dispose(); outputScalesBuilder_ = null; outputScales_ = other.outputScales_; bitField0_ = (bitField0_ & ~0x00100000); outputScalesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOutputScalesFieldBuilder() : null; } else { outputScalesBuilder_.addAllMessages(other.outputScales_); } } } if (other.getWeightDimMasks() != 0) { setWeightDimMasks(other.getWeightDimMasks()); } if (weightScalesBuilder_ == null) { if (!other.weightScales_.isEmpty()) { if (weightScales_.isEmpty()) { weightScales_ = other.weightScales_; bitField0_ = (bitField0_ & ~0x00400000); } else { ensureWeightScalesIsMutable(); weightScales_.addAll(other.weightScales_); } onChanged(); } } else { if (!other.weightScales_.isEmpty()) { if (weightScalesBuilder_.isEmpty()) { weightScalesBuilder_.dispose(); weightScalesBuilder_ = null; weightScales_ = other.weightScales_; bitField0_ = (bitField0_ & ~0x00400000); weightScalesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWeightScalesFieldBuilder() : null; } else { weightScalesBuilder_.addAllMessages(other.weightScales_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       *module name
       * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *module name
       * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *module name
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       *module name
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       *module name
       * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.util.List subModules_ = java.util.Collections.emptyList(); private void ensureSubModulesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { subModules_ = new java.util.ArrayList(subModules_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder> subModulesBuilder_; /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public java.util.List getSubModulesList() { if (subModulesBuilder_ == null) { return java.util.Collections.unmodifiableList(subModules_); } else { return subModulesBuilder_.getMessageList(); } } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public int getSubModulesCount() { if (subModulesBuilder_ == null) { return subModules_.size(); } else { return subModulesBuilder_.getCount(); } } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getSubModules(int index) { if (subModulesBuilder_ == null) { return subModules_.get(index); } else { return subModulesBuilder_.getMessage(index); } } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public Builder setSubModules( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) { if (subModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubModulesIsMutable(); subModules_.set(index, value); onChanged(); } else { subModulesBuilder_.setMessage(index, value); } return this; } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public Builder setSubModules( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder builderForValue) { if (subModulesBuilder_ == null) { ensureSubModulesIsMutable(); subModules_.set(index, builderForValue.build()); onChanged(); } else { subModulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public Builder addSubModules(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) { if (subModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubModulesIsMutable(); subModules_.add(value); onChanged(); } else { subModulesBuilder_.addMessage(value); } return this; } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public Builder addSubModules( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) { if (subModulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubModulesIsMutable(); subModules_.add(index, value); onChanged(); } else { subModulesBuilder_.addMessage(index, value); } return this; } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public Builder addSubModules( com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder builderForValue) { if (subModulesBuilder_ == null) { ensureSubModulesIsMutable(); subModules_.add(builderForValue.build()); onChanged(); } else { subModulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public Builder addSubModules( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder builderForValue) { if (subModulesBuilder_ == null) { ensureSubModulesIsMutable(); subModules_.add(index, builderForValue.build()); onChanged(); } else { subModulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public Builder addAllSubModules( java.lang.Iterable values) { if (subModulesBuilder_ == null) { ensureSubModulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, subModules_); onChanged(); } else { subModulesBuilder_.addAllMessages(values); } return this; } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public Builder clearSubModules() { if (subModulesBuilder_ == null) { subModules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { subModulesBuilder_.clear(); } return this; } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public Builder removeSubModules(int index) { if (subModulesBuilder_ == null) { ensureSubModulesIsMutable(); subModules_.remove(index); onChanged(); } else { subModulesBuilder_.remove(index); } return this; } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder getSubModulesBuilder( int index) { return getSubModulesFieldBuilder().getBuilder(index); } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getSubModulesOrBuilder( int index) { if (subModulesBuilder_ == null) { return subModules_.get(index); } else { return subModulesBuilder_.getMessageOrBuilder(index); } } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public java.util.List getSubModulesOrBuilderList() { if (subModulesBuilder_ != null) { return subModulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subModules_); } } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder addSubModulesBuilder() { return getSubModulesFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance()); } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder addSubModulesBuilder( int index) { return getSubModulesFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance()); } /** *
       * sub modules
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2; */ public java.util.List getSubModulesBuilderList() { return getSubModulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder> getSubModulesFieldBuilder() { if (subModulesBuilder_ == null) { subModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder>( subModules_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); subModules_ = null; } return subModulesBuilder_; } private com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor weight_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> weightBuilder_; /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public boolean hasWeight() { return weightBuilder_ != null || weight_ != null; } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getWeight() { if (weightBuilder_ == null) { return weight_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : weight_; } else { return weightBuilder_.getMessage(); } } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public Builder setWeight(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (weightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } weight_ = value; onChanged(); } else { weightBuilder_.setMessage(value); } return this; } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public Builder setWeight( com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) { if (weightBuilder_ == null) { weight_ = builderForValue.build(); onChanged(); } else { weightBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public Builder mergeWeight(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (weightBuilder_ == null) { if (weight_ != null) { weight_ = com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.newBuilder(weight_).mergeFrom(value).buildPartial(); } else { weight_ = value; } onChanged(); } else { weightBuilder_.mergeFrom(value); } return this; } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public Builder clearWeight() { if (weightBuilder_ == null) { weight_ = null; onChanged(); } else { weight_ = null; weightBuilder_ = null; } return this; } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder getWeightBuilder() { onChanged(); return getWeightFieldBuilder().getBuilder(); } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getWeightOrBuilder() { if (weightBuilder_ != null) { return weightBuilder_.getMessageOrBuilder(); } else { return weight_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : weight_; } } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> getWeightFieldBuilder() { if (weightBuilder_ == null) { weightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>( getWeight(), getParentForChildren(), isClean()); weight_ = null; } return weightBuilder_; } private com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor bias_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> biasBuilder_; /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public boolean hasBias() { return biasBuilder_ != null || bias_ != null; } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getBias() { if (biasBuilder_ == null) { return bias_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : bias_; } else { return biasBuilder_.getMessage(); } } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public Builder setBias(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (biasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bias_ = value; onChanged(); } else { biasBuilder_.setMessage(value); } return this; } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public Builder setBias( com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) { if (biasBuilder_ == null) { bias_ = builderForValue.build(); onChanged(); } else { biasBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public Builder mergeBias(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (biasBuilder_ == null) { if (bias_ != null) { bias_ = com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.newBuilder(bias_).mergeFrom(value).buildPartial(); } else { bias_ = value; } onChanged(); } else { biasBuilder_.mergeFrom(value); } return this; } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public Builder clearBias() { if (biasBuilder_ == null) { bias_ = null; onChanged(); } else { bias_ = null; biasBuilder_ = null; } return this; } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder getBiasBuilder() { onChanged(); return getBiasFieldBuilder().getBuilder(); } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getBiasOrBuilder() { if (biasBuilder_ != null) { return biasBuilder_.getMessageOrBuilder(); } else { return bias_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : bias_; } } /** *
       * deprecated, please use parameters
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> getBiasFieldBuilder() { if (biasBuilder_ == null) { biasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>( getBias(), getParentForChildren(), isClean()); bias_ = null; } return biasBuilder_; } private com.google.protobuf.LazyStringList preModules_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePreModulesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { preModules_ = new com.google.protobuf.LazyStringArrayList(preModules_); bitField0_ |= 0x00000010; } } /** *
       *pre modules of the same hierarchy
       * 
* * repeated string preModules = 5; */ public com.google.protobuf.ProtocolStringList getPreModulesList() { return preModules_.getUnmodifiableView(); } /** *
       *pre modules of the same hierarchy
       * 
* * repeated string preModules = 5; */ public int getPreModulesCount() { return preModules_.size(); } /** *
       *pre modules of the same hierarchy
       * 
* * repeated string preModules = 5; */ public java.lang.String getPreModules(int index) { return preModules_.get(index); } /** *
       *pre modules of the same hierarchy
       * 
* * repeated string preModules = 5; */ public com.google.protobuf.ByteString getPreModulesBytes(int index) { return preModules_.getByteString(index); } /** *
       *pre modules of the same hierarchy
       * 
* * repeated string preModules = 5; */ public Builder setPreModules( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePreModulesIsMutable(); preModules_.set(index, value); onChanged(); return this; } /** *
       *pre modules of the same hierarchy
       * 
* * repeated string preModules = 5; */ public Builder addPreModules( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePreModulesIsMutable(); preModules_.add(value); onChanged(); return this; } /** *
       *pre modules of the same hierarchy
       * 
* * repeated string preModules = 5; */ public Builder addAllPreModules( java.lang.Iterable values) { ensurePreModulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, preModules_); onChanged(); return this; } /** *
       *pre modules of the same hierarchy
       * 
* * repeated string preModules = 5; */ public Builder clearPreModules() { preModules_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       *pre modules of the same hierarchy
       * 
* * repeated string preModules = 5; */ public Builder addPreModulesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePreModulesIsMutable(); preModules_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList nextModules_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNextModulesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { nextModules_ = new com.google.protobuf.LazyStringArrayList(nextModules_); bitField0_ |= 0x00000020; } } /** *
       *next modules of the same hierachy
       * 
* * repeated string nextModules = 6; */ public com.google.protobuf.ProtocolStringList getNextModulesList() { return nextModules_.getUnmodifiableView(); } /** *
       *next modules of the same hierachy
       * 
* * repeated string nextModules = 6; */ public int getNextModulesCount() { return nextModules_.size(); } /** *
       *next modules of the same hierachy
       * 
* * repeated string nextModules = 6; */ public java.lang.String getNextModules(int index) { return nextModules_.get(index); } /** *
       *next modules of the same hierachy
       * 
* * repeated string nextModules = 6; */ public com.google.protobuf.ByteString getNextModulesBytes(int index) { return nextModules_.getByteString(index); } /** *
       *next modules of the same hierachy
       * 
* * repeated string nextModules = 6; */ public Builder setNextModules( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNextModulesIsMutable(); nextModules_.set(index, value); onChanged(); return this; } /** *
       *next modules of the same hierachy
       * 
* * repeated string nextModules = 6; */ public Builder addNextModules( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNextModulesIsMutable(); nextModules_.add(value); onChanged(); return this; } /** *
       *next modules of the same hierachy
       * 
* * repeated string nextModules = 6; */ public Builder addAllNextModules( java.lang.Iterable values) { ensureNextModulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nextModules_); onChanged(); return this; } /** *
       *next modules of the same hierachy
       * 
* * repeated string nextModules = 6; */ public Builder clearNextModules() { nextModules_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
       *next modules of the same hierachy
       * 
* * repeated string nextModules = 6; */ public Builder addNextModulesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNextModulesIsMutable(); nextModules_.add(value); onChanged(); return this; } private java.lang.Object moduleType_ = ""; /** *
       *module type to identify a module like linear, graph, etc
       * 
* * string moduleType = 7; */ public java.lang.String getModuleType() { java.lang.Object ref = moduleType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); moduleType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *module type to identify a module like linear, graph, etc
       * 
* * string moduleType = 7; */ public com.google.protobuf.ByteString getModuleTypeBytes() { java.lang.Object ref = moduleType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); moduleType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *module type to identify a module like linear, graph, etc
       * 
* * string moduleType = 7; */ public Builder setModuleType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } moduleType_ = value; onChanged(); return this; } /** *
       *module type to identify a module like linear, graph, etc
       * 
* * string moduleType = 7; */ public Builder clearModuleType() { moduleType_ = getDefaultInstance().getModuleType(); onChanged(); return this; } /** *
       *module type to identify a module like linear, graph, etc
       * 
* * string moduleType = 7; */ public Builder setModuleTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); moduleType_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> attr_; private com.google.protobuf.MapField internalGetAttr() { if (attr_ == null) { return com.google.protobuf.MapField.emptyMapField( AttrDefaultEntryHolder.defaultEntry); } return attr_; } private com.google.protobuf.MapField internalGetMutableAttr() { onChanged();; if (attr_ == null) { attr_ = com.google.protobuf.MapField.newMapField( AttrDefaultEntryHolder.defaultEntry); } if (!attr_.isMutable()) { attr_ = attr_.copy(); } return attr_; } public int getAttrCount() { return internalGetAttr().getMap().size(); } /** *
       * module attributes
       * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public boolean containsAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttr().getMap().containsKey(key); } /** * Use {@link #getAttrMap()} instead. */ @java.lang.Deprecated public java.util.Map getAttr() { return getAttrMap(); } /** *
       * module attributes
       * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public java.util.Map getAttrMap() { return internalGetAttr().getMap(); } /** *
       * module attributes
       * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrDefault( java.lang.String key, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * module attributes
       * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttr() { internalGetMutableAttr().getMutableMap() .clear(); return this; } /** *
       * module attributes
       * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public Builder removeAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttr().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttr() { return internalGetMutableAttr().getMutableMap(); } /** *
       * module attributes
       * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public Builder putAttr( java.lang.String key, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttr().getMutableMap() .put(key, value); return this; } /** *
       * module attributes
       * 
* * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8; */ public Builder putAllAttr( java.util.Map values) { internalGetMutableAttr().getMutableMap() .putAll(values); return this; } private java.lang.Object version_ = ""; /** *
       *version of this module
       * 
* * string version = 9; */ 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; } } /** *
       *version of this module
       * 
* * string version = 9; */ 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; } } /** *
       *version of this module
       * 
* * string version = 9; */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
       *version of this module
       * 
* * string version = 9; */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       *version of this module
       * 
* * string version = 9; */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private boolean train_ ; /** *
       * is module status in train
       * 
* * bool train = 10; */ public boolean getTrain() { return train_; } /** *
       * is module status in train
       * 
* * bool train = 10; */ public Builder setTrain(boolean value) { train_ = value; onChanged(); return this; } /** *
       * is module status in train
       * 
* * bool train = 10; */ public Builder clearTrain() { train_ = false; onChanged(); return this; } private java.lang.Object namePostfix_ = ""; /** *
       * name post fix
       * 
* * string namePostfix = 11; */ public java.lang.String getNamePostfix() { java.lang.Object ref = namePostfix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namePostfix_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name post fix
       * 
* * string namePostfix = 11; */ public com.google.protobuf.ByteString getNamePostfixBytes() { java.lang.Object ref = namePostfix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namePostfix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name post fix
       * 
* * string namePostfix = 11; */ public Builder setNamePostfix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namePostfix_ = value; onChanged(); return this; } /** *
       * name post fix
       * 
* * string namePostfix = 11; */ public Builder clearNamePostfix() { namePostfix_ = getDefaultInstance().getNamePostfix(); onChanged(); return this; } /** *
       * name post fix
       * 
* * string namePostfix = 11; */ public Builder setNamePostfixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namePostfix_ = value; onChanged(); return this; } private int id_ ; /** *
       * unique ID of this module , used for shared modules
       * 
* * int32 id = 12; */ public int getId() { return id_; } /** *
       * unique ID of this module , used for shared modules
       * 
* * int32 id = 12; */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** *
       * unique ID of this module , used for shared modules
       * 
* * int32 id = 12; */ public Builder clearId() { id_ = 0; onChanged(); return this; } private com.intel.analytics.bigdl.serialization.Bigdl.Shape inputShape_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> inputShapeBuilder_; /** *
       * input shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public boolean hasInputShape() { return inputShapeBuilder_ != null || inputShape_ != null; } /** *
       * input shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape getInputShape() { if (inputShapeBuilder_ == null) { return inputShape_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : inputShape_; } else { return inputShapeBuilder_.getMessage(); } } /** *
       * input shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public Builder setInputShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (inputShapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } inputShape_ = value; onChanged(); } else { inputShapeBuilder_.setMessage(value); } return this; } /** *
       * input shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public Builder setInputShape( com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) { if (inputShapeBuilder_ == null) { inputShape_ = builderForValue.build(); onChanged(); } else { inputShapeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * input shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public Builder mergeInputShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (inputShapeBuilder_ == null) { if (inputShape_ != null) { inputShape_ = com.intel.analytics.bigdl.serialization.Bigdl.Shape.newBuilder(inputShape_).mergeFrom(value).buildPartial(); } else { inputShape_ = value; } onChanged(); } else { inputShapeBuilder_.mergeFrom(value); } return this; } /** *
       * input shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public Builder clearInputShape() { if (inputShapeBuilder_ == null) { inputShape_ = null; onChanged(); } else { inputShape_ = null; inputShapeBuilder_ = null; } return this; } /** *
       * input shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder getInputShapeBuilder() { onChanged(); return getInputShapeFieldBuilder().getBuilder(); } /** *
       * input shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getInputShapeOrBuilder() { if (inputShapeBuilder_ != null) { return inputShapeBuilder_.getMessageOrBuilder(); } else { return inputShape_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : inputShape_; } } /** *
       * input shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape inputShape = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> getInputShapeFieldBuilder() { if (inputShapeBuilder_ == null) { inputShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>( getInputShape(), getParentForChildren(), isClean()); inputShape_ = null; } return inputShapeBuilder_; } private com.intel.analytics.bigdl.serialization.Bigdl.Shape outputShape_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> outputShapeBuilder_; /** *
       *output shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public boolean hasOutputShape() { return outputShapeBuilder_ != null || outputShape_ != null; } /** *
       *output shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape getOutputShape() { if (outputShapeBuilder_ == null) { return outputShape_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : outputShape_; } else { return outputShapeBuilder_.getMessage(); } } /** *
       *output shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public Builder setOutputShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (outputShapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } outputShape_ = value; onChanged(); } else { outputShapeBuilder_.setMessage(value); } return this; } /** *
       *output shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public Builder setOutputShape( com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) { if (outputShapeBuilder_ == null) { outputShape_ = builderForValue.build(); onChanged(); } else { outputShapeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       *output shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public Builder mergeOutputShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (outputShapeBuilder_ == null) { if (outputShape_ != null) { outputShape_ = com.intel.analytics.bigdl.serialization.Bigdl.Shape.newBuilder(outputShape_).mergeFrom(value).buildPartial(); } else { outputShape_ = value; } onChanged(); } else { outputShapeBuilder_.mergeFrom(value); } return this; } /** *
       *output shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public Builder clearOutputShape() { if (outputShapeBuilder_ == null) { outputShape_ = null; onChanged(); } else { outputShape_ = null; outputShapeBuilder_ = null; } return this; } /** *
       *output shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder getOutputShapeBuilder() { onChanged(); return getOutputShapeFieldBuilder().getBuilder(); } /** *
       *output shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getOutputShapeOrBuilder() { if (outputShapeBuilder_ != null) { return outputShapeBuilder_.getMessageOrBuilder(); } else { return outputShape_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : outputShape_; } } /** *
       *output shape
       * 
* * .com.intel.analytics.bigdl.serialization.Shape outputShape = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> getOutputShapeFieldBuilder() { if (outputShapeBuilder_ == null) { outputShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>( getOutputShape(), getParentForChildren(), isClean()); outputShape_ = null; } return outputShapeBuilder_; } private boolean hasParameters_ ; /** *
       * indicator if module has parameters
       * 
* * bool hasParameters = 15; */ public boolean getHasParameters() { return hasParameters_; } /** *
       * indicator if module has parameters
       * 
* * bool hasParameters = 15; */ public Builder setHasParameters(boolean value) { hasParameters_ = value; onChanged(); return this; } /** *
       * indicator if module has parameters
       * 
* * bool hasParameters = 15; */ public Builder clearHasParameters() { hasParameters_ = false; onChanged(); return this; } private java.util.List parameters_ = java.util.Collections.emptyList(); private void ensureParametersIsMutable() { if (!((bitField0_ & 0x00008000) == 0x00008000)) { parameters_ = new java.util.ArrayList(parameters_); bitField0_ |= 0x00008000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> parametersBuilder_; /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public java.util.List getParametersList() { if (parametersBuilder_ == null) { return java.util.Collections.unmodifiableList(parameters_); } else { return parametersBuilder_.getMessageList(); } } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public int getParametersCount() { if (parametersBuilder_ == null) { return parameters_.size(); } else { return parametersBuilder_.getCount(); } } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getParameters(int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { return parametersBuilder_.getMessage(index); } } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public Builder setParameters( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.set(index, value); onChanged(); } else { parametersBuilder_.setMessage(index, value); } return this; } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public Builder setParameters( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.set(index, builderForValue.build()); onChanged(); } else { parametersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public Builder addParameters(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.add(value); onChanged(); } else { parametersBuilder_.addMessage(value); } return this; } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public Builder addParameters( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.add(index, value); onChanged(); } else { parametersBuilder_.addMessage(index, value); } return this; } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public Builder addParameters( com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(builderForValue.build()); onChanged(); } else { parametersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public Builder addParameters( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(index, builderForValue.build()); onChanged(); } else { parametersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public Builder addAllParameters( java.lang.Iterable values) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parameters_); onChanged(); } else { parametersBuilder_.addAllMessages(values); } return this; } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { parametersBuilder_.clear(); } return this; } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.remove(index); onChanged(); } else { parametersBuilder_.remove(index); } return this; } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder getParametersBuilder( int index) { return getParametersFieldBuilder().getBuilder(index); } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getParametersOrBuilder( int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { return parametersBuilder_.getMessageOrBuilder(index); } } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public java.util.List getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(parameters_); } } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder addParametersBuilder() { return getParametersFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance()); } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder addParametersBuilder( int index) { return getParametersFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance()); } /** *
       * parameters, e.g., weight and bias
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16; */ public java.util.List getParametersBuilderList() { return getParametersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>( parameters_, ((bitField0_ & 0x00008000) == 0x00008000), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } private boolean isMklInt8Enabled_ ; /** * bool isMklInt8Enabled = 17; */ public boolean getIsMklInt8Enabled() { return isMklInt8Enabled_; } /** * bool isMklInt8Enabled = 17; */ public Builder setIsMklInt8Enabled(boolean value) { isMklInt8Enabled_ = value; onChanged(); return this; } /** * bool isMklInt8Enabled = 17; */ public Builder clearIsMklInt8Enabled() { isMklInt8Enabled_ = false; onChanged(); return this; } private int inputDimMasks_ ; /** * int32 inputDimMasks = 18; */ public int getInputDimMasks() { return inputDimMasks_; } /** * int32 inputDimMasks = 18; */ public Builder setInputDimMasks(int value) { inputDimMasks_ = value; onChanged(); return this; } /** * int32 inputDimMasks = 18; */ public Builder clearInputDimMasks() { inputDimMasks_ = 0; onChanged(); return this; } private java.util.List inputScales_ = java.util.Collections.emptyList(); private void ensureInputScalesIsMutable() { if (!((bitField0_ & 0x00040000) == 0x00040000)) { inputScales_ = new java.util.ArrayList(inputScales_); bitField0_ |= 0x00040000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder> inputScalesBuilder_; /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public java.util.List getInputScalesList() { if (inputScalesBuilder_ == null) { return java.util.Collections.unmodifiableList(inputScales_); } else { return inputScalesBuilder_.getMessageList(); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public int getInputScalesCount() { if (inputScalesBuilder_ == null) { return inputScales_.size(); } else { return inputScalesBuilder_.getCount(); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getInputScales(int index) { if (inputScalesBuilder_ == null) { return inputScales_.get(index); } else { return inputScalesBuilder_.getMessage(index); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public Builder setInputScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (inputScalesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputScalesIsMutable(); inputScales_.set(index, value); onChanged(); } else { inputScalesBuilder_.setMessage(index, value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public Builder setInputScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) { if (inputScalesBuilder_ == null) { ensureInputScalesIsMutable(); inputScales_.set(index, builderForValue.build()); onChanged(); } else { inputScalesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public Builder addInputScales(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (inputScalesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputScalesIsMutable(); inputScales_.add(value); onChanged(); } else { inputScalesBuilder_.addMessage(value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public Builder addInputScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (inputScalesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputScalesIsMutable(); inputScales_.add(index, value); onChanged(); } else { inputScalesBuilder_.addMessage(index, value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public Builder addInputScales( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) { if (inputScalesBuilder_ == null) { ensureInputScalesIsMutable(); inputScales_.add(builderForValue.build()); onChanged(); } else { inputScalesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public Builder addInputScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) { if (inputScalesBuilder_ == null) { ensureInputScalesIsMutable(); inputScales_.add(index, builderForValue.build()); onChanged(); } else { inputScalesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public Builder addAllInputScales( java.lang.Iterable values) { if (inputScalesBuilder_ == null) { ensureInputScalesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, inputScales_); onChanged(); } else { inputScalesBuilder_.addAllMessages(values); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public Builder clearInputScales() { if (inputScalesBuilder_ == null) { inputScales_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); } else { inputScalesBuilder_.clear(); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public Builder removeInputScales(int index) { if (inputScalesBuilder_ == null) { ensureInputScalesIsMutable(); inputScales_.remove(index); onChanged(); } else { inputScalesBuilder_.remove(index); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder getInputScalesBuilder( int index) { return getInputScalesFieldBuilder().getBuilder(index); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getInputScalesOrBuilder( int index) { if (inputScalesBuilder_ == null) { return inputScales_.get(index); } else { return inputScalesBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public java.util.List getInputScalesOrBuilderList() { if (inputScalesBuilder_ != null) { return inputScalesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inputScales_); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addInputScalesBuilder() { return getInputScalesFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance()); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addInputScalesBuilder( int index) { return getInputScalesFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance()); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19; */ public java.util.List getInputScalesBuilderList() { return getInputScalesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder> getInputScalesFieldBuilder() { if (inputScalesBuilder_ == null) { inputScalesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>( inputScales_, ((bitField0_ & 0x00040000) == 0x00040000), getParentForChildren(), isClean()); inputScales_ = null; } return inputScalesBuilder_; } private int outputDimMasks_ ; /** * int32 outputDimMasks = 20; */ public int getOutputDimMasks() { return outputDimMasks_; } /** * int32 outputDimMasks = 20; */ public Builder setOutputDimMasks(int value) { outputDimMasks_ = value; onChanged(); return this; } /** * int32 outputDimMasks = 20; */ public Builder clearOutputDimMasks() { outputDimMasks_ = 0; onChanged(); return this; } private java.util.List outputScales_ = java.util.Collections.emptyList(); private void ensureOutputScalesIsMutable() { if (!((bitField0_ & 0x00100000) == 0x00100000)) { outputScales_ = new java.util.ArrayList(outputScales_); bitField0_ |= 0x00100000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder> outputScalesBuilder_; /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public java.util.List getOutputScalesList() { if (outputScalesBuilder_ == null) { return java.util.Collections.unmodifiableList(outputScales_); } else { return outputScalesBuilder_.getMessageList(); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public int getOutputScalesCount() { if (outputScalesBuilder_ == null) { return outputScales_.size(); } else { return outputScalesBuilder_.getCount(); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getOutputScales(int index) { if (outputScalesBuilder_ == null) { return outputScales_.get(index); } else { return outputScalesBuilder_.getMessage(index); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public Builder setOutputScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (outputScalesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputScalesIsMutable(); outputScales_.set(index, value); onChanged(); } else { outputScalesBuilder_.setMessage(index, value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public Builder setOutputScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) { if (outputScalesBuilder_ == null) { ensureOutputScalesIsMutable(); outputScales_.set(index, builderForValue.build()); onChanged(); } else { outputScalesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public Builder addOutputScales(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (outputScalesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputScalesIsMutable(); outputScales_.add(value); onChanged(); } else { outputScalesBuilder_.addMessage(value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public Builder addOutputScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (outputScalesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputScalesIsMutable(); outputScales_.add(index, value); onChanged(); } else { outputScalesBuilder_.addMessage(index, value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public Builder addOutputScales( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) { if (outputScalesBuilder_ == null) { ensureOutputScalesIsMutable(); outputScales_.add(builderForValue.build()); onChanged(); } else { outputScalesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public Builder addOutputScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) { if (outputScalesBuilder_ == null) { ensureOutputScalesIsMutable(); outputScales_.add(index, builderForValue.build()); onChanged(); } else { outputScalesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public Builder addAllOutputScales( java.lang.Iterable values) { if (outputScalesBuilder_ == null) { ensureOutputScalesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, outputScales_); onChanged(); } else { outputScalesBuilder_.addAllMessages(values); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public Builder clearOutputScales() { if (outputScalesBuilder_ == null) { outputScales_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00100000); onChanged(); } else { outputScalesBuilder_.clear(); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public Builder removeOutputScales(int index) { if (outputScalesBuilder_ == null) { ensureOutputScalesIsMutable(); outputScales_.remove(index); onChanged(); } else { outputScalesBuilder_.remove(index); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder getOutputScalesBuilder( int index) { return getOutputScalesFieldBuilder().getBuilder(index); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getOutputScalesOrBuilder( int index) { if (outputScalesBuilder_ == null) { return outputScales_.get(index); } else { return outputScalesBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public java.util.List getOutputScalesOrBuilderList() { if (outputScalesBuilder_ != null) { return outputScalesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(outputScales_); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addOutputScalesBuilder() { return getOutputScalesFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance()); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addOutputScalesBuilder( int index) { return getOutputScalesFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance()); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21; */ public java.util.List getOutputScalesBuilderList() { return getOutputScalesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder> getOutputScalesFieldBuilder() { if (outputScalesBuilder_ == null) { outputScalesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>( outputScales_, ((bitField0_ & 0x00100000) == 0x00100000), getParentForChildren(), isClean()); outputScales_ = null; } return outputScalesBuilder_; } private int weightDimMasks_ ; /** * int32 weightDimMasks = 22; */ public int getWeightDimMasks() { return weightDimMasks_; } /** * int32 weightDimMasks = 22; */ public Builder setWeightDimMasks(int value) { weightDimMasks_ = value; onChanged(); return this; } /** * int32 weightDimMasks = 22; */ public Builder clearWeightDimMasks() { weightDimMasks_ = 0; onChanged(); return this; } private java.util.List weightScales_ = java.util.Collections.emptyList(); private void ensureWeightScalesIsMutable() { if (!((bitField0_ & 0x00400000) == 0x00400000)) { weightScales_ = new java.util.ArrayList(weightScales_); bitField0_ |= 0x00400000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder> weightScalesBuilder_; /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public java.util.List getWeightScalesList() { if (weightScalesBuilder_ == null) { return java.util.Collections.unmodifiableList(weightScales_); } else { return weightScalesBuilder_.getMessageList(); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public int getWeightScalesCount() { if (weightScalesBuilder_ == null) { return weightScales_.size(); } else { return weightScalesBuilder_.getCount(); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getWeightScales(int index) { if (weightScalesBuilder_ == null) { return weightScales_.get(index); } else { return weightScalesBuilder_.getMessage(index); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public Builder setWeightScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (weightScalesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeightScalesIsMutable(); weightScales_.set(index, value); onChanged(); } else { weightScalesBuilder_.setMessage(index, value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public Builder setWeightScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) { if (weightScalesBuilder_ == null) { ensureWeightScalesIsMutable(); weightScales_.set(index, builderForValue.build()); onChanged(); } else { weightScalesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public Builder addWeightScales(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (weightScalesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeightScalesIsMutable(); weightScales_.add(value); onChanged(); } else { weightScalesBuilder_.addMessage(value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public Builder addWeightScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (weightScalesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeightScalesIsMutable(); weightScales_.add(index, value); onChanged(); } else { weightScalesBuilder_.addMessage(index, value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public Builder addWeightScales( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) { if (weightScalesBuilder_ == null) { ensureWeightScalesIsMutable(); weightScales_.add(builderForValue.build()); onChanged(); } else { weightScalesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public Builder addWeightScales( int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) { if (weightScalesBuilder_ == null) { ensureWeightScalesIsMutable(); weightScales_.add(index, builderForValue.build()); onChanged(); } else { weightScalesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public Builder addAllWeightScales( java.lang.Iterable values) { if (weightScalesBuilder_ == null) { ensureWeightScalesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, weightScales_); onChanged(); } else { weightScalesBuilder_.addAllMessages(values); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public Builder clearWeightScales() { if (weightScalesBuilder_ == null) { weightScales_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00400000); onChanged(); } else { weightScalesBuilder_.clear(); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public Builder removeWeightScales(int index) { if (weightScalesBuilder_ == null) { ensureWeightScalesIsMutable(); weightScales_.remove(index); onChanged(); } else { weightScalesBuilder_.remove(index); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder getWeightScalesBuilder( int index) { return getWeightScalesFieldBuilder().getBuilder(index); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getWeightScalesOrBuilder( int index) { if (weightScalesBuilder_ == null) { return weightScales_.get(index); } else { return weightScalesBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public java.util.List getWeightScalesOrBuilderList() { if (weightScalesBuilder_ != null) { return weightScalesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(weightScales_); } } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addWeightScalesBuilder() { return getWeightScalesFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance()); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addWeightScalesBuilder( int index) { return getWeightScalesFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance()); } /** * repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23; */ public java.util.List getWeightScalesBuilderList() { return getWeightScalesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder> getWeightScalesFieldBuilder() { if (weightScalesBuilder_ == null) { weightScalesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>( weightScales_, ((bitField0_ & 0x00400000) == 0x00400000), getParentForChildren(), isClean()); weightScales_ = null; } return weightScalesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.BigDLModule) } // @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.BigDLModule) private static final com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule(); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BigDLModule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BigDLModule(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InitMethodOrBuilder extends // @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.InitMethod) com.google.protobuf.MessageOrBuilder { /** * .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1; */ int getMethodTypeValue(); /** * .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1; */ com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType getMethodType(); /** * repeated double data = 2; */ java.util.List getDataList(); /** * repeated double data = 2; */ int getDataCount(); /** * repeated double data = 2; */ double getData(int index); } /** * Protobuf type {@code com.intel.analytics.bigdl.serialization.InitMethod} */ public static final class InitMethod extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.InitMethod) InitMethodOrBuilder { private static final long serialVersionUID = 0L; // Use InitMethod.newBuilder() to construct. private InitMethod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InitMethod() { methodType_ = 0; data_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InitMethod( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); methodType_ = rawValue; break; } case 17: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } data_.add(input.readDouble()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { data_.add(input.readDouble()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { data_ = java.util.Collections.unmodifiableList(data_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_InitMethod_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_InitMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.class, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder.class); } private int bitField0_; public static final int METHODTYPE_FIELD_NUMBER = 1; private int methodType_; /** * .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1; */ public int getMethodTypeValue() { return methodType_; } /** * .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType getMethodType() { com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType result = com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.valueOf(methodType_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.UNRECOGNIZED : result; } public static final int DATA_FIELD_NUMBER = 2; private java.util.List data_; /** * repeated double data = 2; */ public java.util.List getDataList() { return data_; } /** * repeated double data = 2; */ public int getDataCount() { return data_.size(); } /** * repeated double data = 2; */ public double getData(int index) { return data_.get(index); } private int dataMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (methodType_ != com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.EMPTY_INITIALIZATION.getNumber()) { output.writeEnum(1, methodType_); } if (getDataList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(dataMemoizedSerializedSize); } for (int i = 0; i < data_.size(); i++) { output.writeDoubleNoTag(data_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (methodType_ != com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.EMPTY_INITIALIZATION.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, methodType_); } { int dataSize = 0; dataSize = 8 * getDataList().size(); size += dataSize; if (!getDataList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } dataMemoizedSerializedSize = dataSize; } size += unknownFields.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.intel.analytics.bigdl.serialization.Bigdl.InitMethod)) { return super.equals(obj); } com.intel.analytics.bigdl.serialization.Bigdl.InitMethod other = (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) obj; boolean result = true; result = result && methodType_ == other.methodType_; result = result && getDataList() .equals(other.getDataList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + METHODTYPE_FIELD_NUMBER; hash = (53 * hash) + methodType_; if (getDataCount() > 0) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getDataList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod 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.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod 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.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.intel.analytics.bigdl.serialization.InitMethod} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.InitMethod) com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_InitMethod_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_InitMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.class, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder.class); } // Construct using com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); methodType_ = 0; data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_InitMethod_descriptor; } public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getDefaultInstanceForType() { return com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance(); } public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod build() { com.intel.analytics.bigdl.serialization.Bigdl.InitMethod result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod buildPartial() { com.intel.analytics.bigdl.serialization.Bigdl.InitMethod result = new com.intel.analytics.bigdl.serialization.Bigdl.InitMethod(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.methodType_ = methodType_; if (((bitField0_ & 0x00000002) == 0x00000002)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000002); } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) { return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.InitMethod)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod other) { if (other == com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance()) return this; if (other.methodType_ != 0) { setMethodTypeValue(other.getMethodTypeValue()); } if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int methodType_ = 0; /** * .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1; */ public int getMethodTypeValue() { return methodType_; } /** * .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1; */ public Builder setMethodTypeValue(int value) { methodType_ = value; onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType getMethodType() { com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType result = com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.valueOf(methodType_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.UNRECOGNIZED : result; } /** * .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1; */ public Builder setMethodType(com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType value) { if (value == null) { throw new NullPointerException(); } methodType_ = value.getNumber(); onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1; */ public Builder clearMethodType() { methodType_ = 0; onChanged(); return this; } private java.util.List data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { data_ = new java.util.ArrayList(data_); bitField0_ |= 0x00000002; } } /** * repeated double data = 2; */ public java.util.List getDataList() { return java.util.Collections.unmodifiableList(data_); } /** * repeated double data = 2; */ public int getDataCount() { return data_.size(); } /** * repeated double data = 2; */ public double getData(int index) { return data_.get(index); } /** * repeated double data = 2; */ public Builder setData( int index, double value) { ensureDataIsMutable(); data_.set(index, value); onChanged(); return this; } /** * repeated double data = 2; */ public Builder addData(double value) { ensureDataIsMutable(); data_.add(value); onChanged(); return this; } /** * repeated double data = 2; */ public Builder addAllData( java.lang.Iterable values) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); return this; } /** * repeated double data = 2; */ public Builder clearData() { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.InitMethod) } // @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.InitMethod) private static final com.intel.analytics.bigdl.serialization.Bigdl.InitMethod DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.InitMethod(); } public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public InitMethod parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InitMethod(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BigDLTensorOrBuilder extends // @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.BigDLTensor) com.google.protobuf.MessageOrBuilder { /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ int getDatatypeValue(); /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype(); /** *
     *size of tensor
     * 
* * repeated int32 size = 2; */ java.util.List getSizeList(); /** *
     *size of tensor
     * 
* * repeated int32 size = 2; */ int getSizeCount(); /** *
     *size of tensor
     * 
* * repeated int32 size = 2; */ int getSize(int index); /** *
     *stride of tensor
     * 
* * repeated int32 stride = 3; */ java.util.List getStrideList(); /** *
     *stride of tensor
     * 
* * repeated int32 stride = 3; */ int getStrideCount(); /** *
     *stride of tensor
     * 
* * repeated int32 stride = 3; */ int getStride(int index); /** *
     *offset
     * 
* * int32 offset = 4; */ int getOffset(); /** *
     * dimension
     * 
* * int32 dimension = 5; */ int getDimension(); /** *
     *total number of elements
     * 
* * int32 nElements = 6; */ int getNElements(); /** *
     * is scalar tensor
     * 
* * bool isScalar = 7; */ boolean getIsScalar(); /** *
     * reference to storage
     * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ boolean hasStorage(); /** *
     * reference to storage
     * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getStorage(); /** *
     * reference to storage
     * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder getStorageOrBuilder(); /** *
     * tensor ID, used for tensor sharing
     * 
* * int32 id = 9; */ int getId(); /** * .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10; */ int getTensorTypeValue(); /** * .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10; */ com.intel.analytics.bigdl.serialization.Bigdl.TensorType getTensorType(); } /** * Protobuf type {@code com.intel.analytics.bigdl.serialization.BigDLTensor} */ public static final class BigDLTensor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.BigDLTensor) BigDLTensorOrBuilder { private static final long serialVersionUID = 0L; // Use BigDLTensor.newBuilder() to construct. private BigDLTensor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BigDLTensor() { datatype_ = 0; size_ = java.util.Collections.emptyList(); stride_ = java.util.Collections.emptyList(); offset_ = 0; dimension_ = 0; nElements_ = 0; isScalar_ = false; id_ = 0; tensorType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BigDLTensor( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); datatype_ = rawValue; break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { size_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } size_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { size_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { size_.add(input.readInt32()); } input.popLimit(limit); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { stride_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } stride_.add(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { stride_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { stride_.add(input.readInt32()); } input.popLimit(limit); break; } case 32: { offset_ = input.readInt32(); break; } case 40: { dimension_ = input.readInt32(); break; } case 48: { nElements_ = input.readInt32(); break; } case 56: { isScalar_ = input.readBool(); break; } case 66: { com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder subBuilder = null; if (storage_ != null) { subBuilder = storage_.toBuilder(); } storage_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(storage_); storage_ = subBuilder.buildPartial(); } break; } case 72: { id_ = input.readInt32(); break; } case 80: { int rawValue = input.readEnum(); tensorType_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { size_ = java.util.Collections.unmodifiableList(size_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { stride_ = java.util.Collections.unmodifiableList(stride_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.class, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder.class); } private int bitField0_; public static final int DATATYPE_FIELD_NUMBER = 1; private int datatype_; /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public int getDatatypeValue() { return datatype_; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() { com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result; } public static final int SIZE_FIELD_NUMBER = 2; private java.util.List size_; /** *
     *size of tensor
     * 
* * repeated int32 size = 2; */ public java.util.List getSizeList() { return size_; } /** *
     *size of tensor
     * 
* * repeated int32 size = 2; */ public int getSizeCount() { return size_.size(); } /** *
     *size of tensor
     * 
* * repeated int32 size = 2; */ public int getSize(int index) { return size_.get(index); } private int sizeMemoizedSerializedSize = -1; public static final int STRIDE_FIELD_NUMBER = 3; private java.util.List stride_; /** *
     *stride of tensor
     * 
* * repeated int32 stride = 3; */ public java.util.List getStrideList() { return stride_; } /** *
     *stride of tensor
     * 
* * repeated int32 stride = 3; */ public int getStrideCount() { return stride_.size(); } /** *
     *stride of tensor
     * 
* * repeated int32 stride = 3; */ public int getStride(int index) { return stride_.get(index); } private int strideMemoizedSerializedSize = -1; public static final int OFFSET_FIELD_NUMBER = 4; private int offset_; /** *
     *offset
     * 
* * int32 offset = 4; */ public int getOffset() { return offset_; } public static final int DIMENSION_FIELD_NUMBER = 5; private int dimension_; /** *
     * dimension
     * 
* * int32 dimension = 5; */ public int getDimension() { return dimension_; } public static final int NELEMENTS_FIELD_NUMBER = 6; private int nElements_; /** *
     *total number of elements
     * 
* * int32 nElements = 6; */ public int getNElements() { return nElements_; } public static final int ISSCALAR_FIELD_NUMBER = 7; private boolean isScalar_; /** *
     * is scalar tensor
     * 
* * bool isScalar = 7; */ public boolean getIsScalar() { return isScalar_; } public static final int STORAGE_FIELD_NUMBER = 8; private com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage storage_; /** *
     * reference to storage
     * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public boolean hasStorage() { return storage_ != null; } /** *
     * reference to storage
     * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getStorage() { return storage_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.getDefaultInstance() : storage_; } /** *
     * reference to storage
     * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder getStorageOrBuilder() { return getStorage(); } public static final int ID_FIELD_NUMBER = 9; private int id_; /** *
     * tensor ID, used for tensor sharing
     * 
* * int32 id = 9; */ public int getId() { return id_; } public static final int TENSORTYPE_FIELD_NUMBER = 10; private int tensorType_; /** * .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10; */ public int getTensorTypeValue() { return tensorType_; } /** * .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.TensorType getTensorType() { com.intel.analytics.bigdl.serialization.Bigdl.TensorType result = com.intel.analytics.bigdl.serialization.Bigdl.TensorType.valueOf(tensorType_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.TensorType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) { output.writeEnum(1, datatype_); } if (getSizeList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(sizeMemoizedSerializedSize); } for (int i = 0; i < size_.size(); i++) { output.writeInt32NoTag(size_.get(i)); } if (getStrideList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(strideMemoizedSerializedSize); } for (int i = 0; i < stride_.size(); i++) { output.writeInt32NoTag(stride_.get(i)); } if (offset_ != 0) { output.writeInt32(4, offset_); } if (dimension_ != 0) { output.writeInt32(5, dimension_); } if (nElements_ != 0) { output.writeInt32(6, nElements_); } if (isScalar_ != false) { output.writeBool(7, isScalar_); } if (storage_ != null) { output.writeMessage(8, getStorage()); } if (id_ != 0) { output.writeInt32(9, id_); } if (tensorType_ != com.intel.analytics.bigdl.serialization.Bigdl.TensorType.DENSE.getNumber()) { output.writeEnum(10, tensorType_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, datatype_); } { int dataSize = 0; for (int i = 0; i < size_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(size_.get(i)); } size += dataSize; if (!getSizeList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } sizeMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < stride_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(stride_.get(i)); } size += dataSize; if (!getStrideList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } strideMemoizedSerializedSize = dataSize; } if (offset_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, offset_); } if (dimension_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, dimension_); } if (nElements_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, nElements_); } if (isScalar_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isScalar_); } if (storage_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getStorage()); } if (id_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, id_); } if (tensorType_ != com.intel.analytics.bigdl.serialization.Bigdl.TensorType.DENSE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, tensorType_); } size += unknownFields.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.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor)) { return super.equals(obj); } com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor other = (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) obj; boolean result = true; result = result && datatype_ == other.datatype_; result = result && getSizeList() .equals(other.getSizeList()); result = result && getStrideList() .equals(other.getStrideList()); result = result && (getOffset() == other.getOffset()); result = result && (getDimension() == other.getDimension()); result = result && (getNElements() == other.getNElements()); result = result && (getIsScalar() == other.getIsScalar()); result = result && (hasStorage() == other.hasStorage()); if (hasStorage()) { result = result && getStorage() .equals(other.getStorage()); } result = result && (getId() == other.getId()); result = result && tensorType_ == other.tensorType_; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + datatype_; if (getSizeCount() > 0) { hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + getSizeList().hashCode(); } if (getStrideCount() > 0) { hash = (37 * hash) + STRIDE_FIELD_NUMBER; hash = (53 * hash) + getStrideList().hashCode(); } hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); hash = (37 * hash) + DIMENSION_FIELD_NUMBER; hash = (53 * hash) + getDimension(); hash = (37 * hash) + NELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getNElements(); hash = (37 * hash) + ISSCALAR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsScalar()); if (hasStorage()) { hash = (37 * hash) + STORAGE_FIELD_NUMBER; hash = (53 * hash) + getStorage().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); hash = (37 * hash) + TENSORTYPE_FIELD_NUMBER; hash = (53 * hash) + tensorType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor 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.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor 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.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.intel.analytics.bigdl.serialization.BigDLTensor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.BigDLTensor) com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.class, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder.class); } // Construct using com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); datatype_ = 0; size_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); stride_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); offset_ = 0; dimension_ = 0; nElements_ = 0; isScalar_ = false; if (storageBuilder_ == null) { storage_ = null; } else { storage_ = null; storageBuilder_ = null; } id_ = 0; tensorType_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_descriptor; } public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getDefaultInstanceForType() { return com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance(); } public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor build() { com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor buildPartial() { com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor result = new com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.datatype_ = datatype_; if (((bitField0_ & 0x00000002) == 0x00000002)) { size_ = java.util.Collections.unmodifiableList(size_); bitField0_ = (bitField0_ & ~0x00000002); } result.size_ = size_; if (((bitField0_ & 0x00000004) == 0x00000004)) { stride_ = java.util.Collections.unmodifiableList(stride_); bitField0_ = (bitField0_ & ~0x00000004); } result.stride_ = stride_; result.offset_ = offset_; result.dimension_ = dimension_; result.nElements_ = nElements_; result.isScalar_ = isScalar_; if (storageBuilder_ == null) { result.storage_ = storage_; } else { result.storage_ = storageBuilder_.build(); } result.id_ = id_; result.tensorType_ = tensorType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) { return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor other) { if (other == com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance()) return this; if (other.datatype_ != 0) { setDatatypeValue(other.getDatatypeValue()); } if (!other.size_.isEmpty()) { if (size_.isEmpty()) { size_ = other.size_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSizeIsMutable(); size_.addAll(other.size_); } onChanged(); } if (!other.stride_.isEmpty()) { if (stride_.isEmpty()) { stride_ = other.stride_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureStrideIsMutable(); stride_.addAll(other.stride_); } onChanged(); } if (other.getOffset() != 0) { setOffset(other.getOffset()); } if (other.getDimension() != 0) { setDimension(other.getDimension()); } if (other.getNElements() != 0) { setNElements(other.getNElements()); } if (other.getIsScalar() != false) { setIsScalar(other.getIsScalar()); } if (other.hasStorage()) { mergeStorage(other.getStorage()); } if (other.getId() != 0) { setId(other.getId()); } if (other.tensorType_ != 0) { setTensorTypeValue(other.getTensorTypeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int datatype_ = 0; /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public int getDatatypeValue() { return datatype_; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public Builder setDatatypeValue(int value) { datatype_ = value; onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() { com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public Builder setDatatype(com.intel.analytics.bigdl.serialization.Bigdl.DataType value) { if (value == null) { throw new NullPointerException(); } datatype_ = value.getNumber(); onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public Builder clearDatatype() { datatype_ = 0; onChanged(); return this; } private java.util.List size_ = java.util.Collections.emptyList(); private void ensureSizeIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { size_ = new java.util.ArrayList(size_); bitField0_ |= 0x00000002; } } /** *
       *size of tensor
       * 
* * repeated int32 size = 2; */ public java.util.List getSizeList() { return java.util.Collections.unmodifiableList(size_); } /** *
       *size of tensor
       * 
* * repeated int32 size = 2; */ public int getSizeCount() { return size_.size(); } /** *
       *size of tensor
       * 
* * repeated int32 size = 2; */ public int getSize(int index) { return size_.get(index); } /** *
       *size of tensor
       * 
* * repeated int32 size = 2; */ public Builder setSize( int index, int value) { ensureSizeIsMutable(); size_.set(index, value); onChanged(); return this; } /** *
       *size of tensor
       * 
* * repeated int32 size = 2; */ public Builder addSize(int value) { ensureSizeIsMutable(); size_.add(value); onChanged(); return this; } /** *
       *size of tensor
       * 
* * repeated int32 size = 2; */ public Builder addAllSize( java.lang.Iterable values) { ensureSizeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, size_); onChanged(); return this; } /** *
       *size of tensor
       * 
* * repeated int32 size = 2; */ public Builder clearSize() { size_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.util.List stride_ = java.util.Collections.emptyList(); private void ensureStrideIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { stride_ = new java.util.ArrayList(stride_); bitField0_ |= 0x00000004; } } /** *
       *stride of tensor
       * 
* * repeated int32 stride = 3; */ public java.util.List getStrideList() { return java.util.Collections.unmodifiableList(stride_); } /** *
       *stride of tensor
       * 
* * repeated int32 stride = 3; */ public int getStrideCount() { return stride_.size(); } /** *
       *stride of tensor
       * 
* * repeated int32 stride = 3; */ public int getStride(int index) { return stride_.get(index); } /** *
       *stride of tensor
       * 
* * repeated int32 stride = 3; */ public Builder setStride( int index, int value) { ensureStrideIsMutable(); stride_.set(index, value); onChanged(); return this; } /** *
       *stride of tensor
       * 
* * repeated int32 stride = 3; */ public Builder addStride(int value) { ensureStrideIsMutable(); stride_.add(value); onChanged(); return this; } /** *
       *stride of tensor
       * 
* * repeated int32 stride = 3; */ public Builder addAllStride( java.lang.Iterable values) { ensureStrideIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stride_); onChanged(); return this; } /** *
       *stride of tensor
       * 
* * repeated int32 stride = 3; */ public Builder clearStride() { stride_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private int offset_ ; /** *
       *offset
       * 
* * int32 offset = 4; */ public int getOffset() { return offset_; } /** *
       *offset
       * 
* * int32 offset = 4; */ public Builder setOffset(int value) { offset_ = value; onChanged(); return this; } /** *
       *offset
       * 
* * int32 offset = 4; */ public Builder clearOffset() { offset_ = 0; onChanged(); return this; } private int dimension_ ; /** *
       * dimension
       * 
* * int32 dimension = 5; */ public int getDimension() { return dimension_; } /** *
       * dimension
       * 
* * int32 dimension = 5; */ public Builder setDimension(int value) { dimension_ = value; onChanged(); return this; } /** *
       * dimension
       * 
* * int32 dimension = 5; */ public Builder clearDimension() { dimension_ = 0; onChanged(); return this; } private int nElements_ ; /** *
       *total number of elements
       * 
* * int32 nElements = 6; */ public int getNElements() { return nElements_; } /** *
       *total number of elements
       * 
* * int32 nElements = 6; */ public Builder setNElements(int value) { nElements_ = value; onChanged(); return this; } /** *
       *total number of elements
       * 
* * int32 nElements = 6; */ public Builder clearNElements() { nElements_ = 0; onChanged(); return this; } private boolean isScalar_ ; /** *
       * is scalar tensor
       * 
* * bool isScalar = 7; */ public boolean getIsScalar() { return isScalar_; } /** *
       * is scalar tensor
       * 
* * bool isScalar = 7; */ public Builder setIsScalar(boolean value) { isScalar_ = value; onChanged(); return this; } /** *
       * is scalar tensor
       * 
* * bool isScalar = 7; */ public Builder clearIsScalar() { isScalar_ = false; onChanged(); return this; } private com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage storage_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder> storageBuilder_; /** *
       * reference to storage
       * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public boolean hasStorage() { return storageBuilder_ != null || storage_ != null; } /** *
       * reference to storage
       * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getStorage() { if (storageBuilder_ == null) { return storage_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.getDefaultInstance() : storage_; } else { return storageBuilder_.getMessage(); } } /** *
       * reference to storage
       * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public Builder setStorage(com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage value) { if (storageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storage_ = value; onChanged(); } else { storageBuilder_.setMessage(value); } return this; } /** *
       * reference to storage
       * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public Builder setStorage( com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder builderForValue) { if (storageBuilder_ == null) { storage_ = builderForValue.build(); onChanged(); } else { storageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * reference to storage
       * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public Builder mergeStorage(com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage value) { if (storageBuilder_ == null) { if (storage_ != null) { storage_ = com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.newBuilder(storage_).mergeFrom(value).buildPartial(); } else { storage_ = value; } onChanged(); } else { storageBuilder_.mergeFrom(value); } return this; } /** *
       * reference to storage
       * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public Builder clearStorage() { if (storageBuilder_ == null) { storage_ = null; onChanged(); } else { storage_ = null; storageBuilder_ = null; } return this; } /** *
       * reference to storage
       * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder getStorageBuilder() { onChanged(); return getStorageFieldBuilder().getBuilder(); } /** *
       * reference to storage
       * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder getStorageOrBuilder() { if (storageBuilder_ != null) { return storageBuilder_.getMessageOrBuilder(); } else { return storage_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.getDefaultInstance() : storage_; } } /** *
       * reference to storage
       * 
* * .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder> getStorageFieldBuilder() { if (storageBuilder_ == null) { storageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder>( getStorage(), getParentForChildren(), isClean()); storage_ = null; } return storageBuilder_; } private int id_ ; /** *
       * tensor ID, used for tensor sharing
       * 
* * int32 id = 9; */ public int getId() { return id_; } /** *
       * tensor ID, used for tensor sharing
       * 
* * int32 id = 9; */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** *
       * tensor ID, used for tensor sharing
       * 
* * int32 id = 9; */ public Builder clearId() { id_ = 0; onChanged(); return this; } private int tensorType_ = 0; /** * .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10; */ public int getTensorTypeValue() { return tensorType_; } /** * .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10; */ public Builder setTensorTypeValue(int value) { tensorType_ = value; onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.TensorType getTensorType() { com.intel.analytics.bigdl.serialization.Bigdl.TensorType result = com.intel.analytics.bigdl.serialization.Bigdl.TensorType.valueOf(tensorType_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.TensorType.UNRECOGNIZED : result; } /** * .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10; */ public Builder setTensorType(com.intel.analytics.bigdl.serialization.Bigdl.TensorType value) { if (value == null) { throw new NullPointerException(); } tensorType_ = value.getNumber(); onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10; */ public Builder clearTensorType() { tensorType_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.BigDLTensor) } // @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.BigDLTensor) private static final com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor(); } public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BigDLTensor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BigDLTensor(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TensorStorageOrBuilder extends // @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.TensorStorage) com.google.protobuf.MessageOrBuilder { /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ int getDatatypeValue(); /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype(); /** *
     *float tensor element
     * 
* * repeated float float_data = 2; */ java.util.List getFloatDataList(); /** *
     *float tensor element
     * 
* * repeated float float_data = 2; */ int getFloatDataCount(); /** *
     *float tensor element
     * 
* * repeated float float_data = 2; */ float getFloatData(int index); /** *
     *double tensor element
     * 
* * repeated double double_data = 3; */ java.util.List getDoubleDataList(); /** *
     *double tensor element
     * 
* * repeated double double_data = 3; */ int getDoubleDataCount(); /** *
     *double tensor element
     * 
* * repeated double double_data = 3; */ double getDoubleData(int index); /** *
     *boolean tensor element
     * 
* * repeated bool bool_data = 4; */ java.util.List getBoolDataList(); /** *
     *boolean tensor element
     * 
* * repeated bool bool_data = 4; */ int getBoolDataCount(); /** *
     *boolean tensor element
     * 
* * repeated bool bool_data = 4; */ boolean getBoolData(int index); /** *
     *string tensor element
     * 
* * repeated string string_data = 5; */ java.util.List getStringDataList(); /** *
     *string tensor element
     * 
* * repeated string string_data = 5; */ int getStringDataCount(); /** *
     *string tensor element
     * 
* * repeated string string_data = 5; */ java.lang.String getStringData(int index); /** *
     *string tensor element
     * 
* * repeated string string_data = 5; */ com.google.protobuf.ByteString getStringDataBytes(int index); /** *
     *int tensor element
     * 
* * repeated int32 int_data = 6; */ java.util.List getIntDataList(); /** *
     *int tensor element
     * 
* * repeated int32 int_data = 6; */ int getIntDataCount(); /** *
     *int tensor element
     * 
* * repeated int32 int_data = 6; */ int getIntData(int index); /** *
     *long tensor element
     * 
* * repeated int64 long_data = 7; */ java.util.List getLongDataList(); /** *
     *long tensor element
     * 
* * repeated int64 long_data = 7; */ int getLongDataCount(); /** *
     *long tensor element
     * 
* * repeated int64 long_data = 7; */ long getLongData(int index); /** *
     *byte tensor element
     * 
* * repeated bytes bytes_data = 8; */ java.util.List getBytesDataList(); /** *
     *byte tensor element
     * 
* * repeated bytes bytes_data = 8; */ int getBytesDataCount(); /** *
     *byte tensor element
     * 
* * repeated bytes bytes_data = 8; */ com.google.protobuf.ByteString getBytesData(int index); /** *
     * storage Id, used for storage sharing
     * 
* * int32 id = 9; */ int getId(); } /** * Protobuf type {@code com.intel.analytics.bigdl.serialization.TensorStorage} */ public static final class TensorStorage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.TensorStorage) TensorStorageOrBuilder { private static final long serialVersionUID = 0L; // Use TensorStorage.newBuilder() to construct. private TensorStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TensorStorage() { datatype_ = 0; floatData_ = java.util.Collections.emptyList(); doubleData_ = java.util.Collections.emptyList(); boolData_ = java.util.Collections.emptyList(); stringData_ = com.google.protobuf.LazyStringArrayList.EMPTY; intData_ = java.util.Collections.emptyList(); longData_ = java.util.Collections.emptyList(); bytesData_ = java.util.Collections.emptyList(); id_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TensorStorage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); datatype_ = rawValue; break; } case 21: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { floatData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } floatData_.add(input.readFloat()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { floatData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { floatData_.add(input.readFloat()); } input.popLimit(limit); break; } case 25: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { doubleData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } doubleData_.add(input.readDouble()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { doubleData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { doubleData_.add(input.readDouble()); } input.popLimit(limit); break; } case 32: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { boolData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } boolData_.add(input.readBool()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { boolData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { boolData_.add(input.readBool()); } input.popLimit(limit); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { stringData_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } stringData_.add(s); break; } case 48: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { intData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } intData_.add(input.readInt32()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { intData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { intData_.add(input.readInt32()); } input.popLimit(limit); break; } case 56: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { longData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } longData_.add(input.readInt64()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { longData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { longData_.add(input.readInt64()); } input.popLimit(limit); break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { bytesData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } bytesData_.add(input.readBytes()); break; } case 72: { id_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { floatData_ = java.util.Collections.unmodifiableList(floatData_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { doubleData_ = java.util.Collections.unmodifiableList(doubleData_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { boolData_ = java.util.Collections.unmodifiableList(boolData_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { stringData_ = stringData_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { intData_ = java.util.Collections.unmodifiableList(intData_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { longData_ = java.util.Collections.unmodifiableList(longData_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { bytesData_ = java.util.Collections.unmodifiableList(bytesData_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.class, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder.class); } private int bitField0_; public static final int DATATYPE_FIELD_NUMBER = 1; private int datatype_; /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public int getDatatypeValue() { return datatype_; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() { com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result; } public static final int FLOAT_DATA_FIELD_NUMBER = 2; private java.util.List floatData_; /** *
     *float tensor element
     * 
* * repeated float float_data = 2; */ public java.util.List getFloatDataList() { return floatData_; } /** *
     *float tensor element
     * 
* * repeated float float_data = 2; */ public int getFloatDataCount() { return floatData_.size(); } /** *
     *float tensor element
     * 
* * repeated float float_data = 2; */ public float getFloatData(int index) { return floatData_.get(index); } private int floatDataMemoizedSerializedSize = -1; public static final int DOUBLE_DATA_FIELD_NUMBER = 3; private java.util.List doubleData_; /** *
     *double tensor element
     * 
* * repeated double double_data = 3; */ public java.util.List getDoubleDataList() { return doubleData_; } /** *
     *double tensor element
     * 
* * repeated double double_data = 3; */ public int getDoubleDataCount() { return doubleData_.size(); } /** *
     *double tensor element
     * 
* * repeated double double_data = 3; */ public double getDoubleData(int index) { return doubleData_.get(index); } private int doubleDataMemoizedSerializedSize = -1; public static final int BOOL_DATA_FIELD_NUMBER = 4; private java.util.List boolData_; /** *
     *boolean tensor element
     * 
* * repeated bool bool_data = 4; */ public java.util.List getBoolDataList() { return boolData_; } /** *
     *boolean tensor element
     * 
* * repeated bool bool_data = 4; */ public int getBoolDataCount() { return boolData_.size(); } /** *
     *boolean tensor element
     * 
* * repeated bool bool_data = 4; */ public boolean getBoolData(int index) { return boolData_.get(index); } private int boolDataMemoizedSerializedSize = -1; public static final int STRING_DATA_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList stringData_; /** *
     *string tensor element
     * 
* * repeated string string_data = 5; */ public com.google.protobuf.ProtocolStringList getStringDataList() { return stringData_; } /** *
     *string tensor element
     * 
* * repeated string string_data = 5; */ public int getStringDataCount() { return stringData_.size(); } /** *
     *string tensor element
     * 
* * repeated string string_data = 5; */ public java.lang.String getStringData(int index) { return stringData_.get(index); } /** *
     *string tensor element
     * 
* * repeated string string_data = 5; */ public com.google.protobuf.ByteString getStringDataBytes(int index) { return stringData_.getByteString(index); } public static final int INT_DATA_FIELD_NUMBER = 6; private java.util.List intData_; /** *
     *int tensor element
     * 
* * repeated int32 int_data = 6; */ public java.util.List getIntDataList() { return intData_; } /** *
     *int tensor element
     * 
* * repeated int32 int_data = 6; */ public int getIntDataCount() { return intData_.size(); } /** *
     *int tensor element
     * 
* * repeated int32 int_data = 6; */ public int getIntData(int index) { return intData_.get(index); } private int intDataMemoizedSerializedSize = -1; public static final int LONG_DATA_FIELD_NUMBER = 7; private java.util.List longData_; /** *
     *long tensor element
     * 
* * repeated int64 long_data = 7; */ public java.util.List getLongDataList() { return longData_; } /** *
     *long tensor element
     * 
* * repeated int64 long_data = 7; */ public int getLongDataCount() { return longData_.size(); } /** *
     *long tensor element
     * 
* * repeated int64 long_data = 7; */ public long getLongData(int index) { return longData_.get(index); } private int longDataMemoizedSerializedSize = -1; public static final int BYTES_DATA_FIELD_NUMBER = 8; private java.util.List bytesData_; /** *
     *byte tensor element
     * 
* * repeated bytes bytes_data = 8; */ public java.util.List getBytesDataList() { return bytesData_; } /** *
     *byte tensor element
     * 
* * repeated bytes bytes_data = 8; */ public int getBytesDataCount() { return bytesData_.size(); } /** *
     *byte tensor element
     * 
* * repeated bytes bytes_data = 8; */ public com.google.protobuf.ByteString getBytesData(int index) { return bytesData_.get(index); } public static final int ID_FIELD_NUMBER = 9; private int id_; /** *
     * storage Id, used for storage sharing
     * 
* * int32 id = 9; */ public int getId() { return id_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) { output.writeEnum(1, datatype_); } if (getFloatDataList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(floatDataMemoizedSerializedSize); } for (int i = 0; i < floatData_.size(); i++) { output.writeFloatNoTag(floatData_.get(i)); } if (getDoubleDataList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(doubleDataMemoizedSerializedSize); } for (int i = 0; i < doubleData_.size(); i++) { output.writeDoubleNoTag(doubleData_.get(i)); } if (getBoolDataList().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(boolDataMemoizedSerializedSize); } for (int i = 0; i < boolData_.size(); i++) { output.writeBoolNoTag(boolData_.get(i)); } for (int i = 0; i < stringData_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, stringData_.getRaw(i)); } if (getIntDataList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(intDataMemoizedSerializedSize); } for (int i = 0; i < intData_.size(); i++) { output.writeInt32NoTag(intData_.get(i)); } if (getLongDataList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(longDataMemoizedSerializedSize); } for (int i = 0; i < longData_.size(); i++) { output.writeInt64NoTag(longData_.get(i)); } for (int i = 0; i < bytesData_.size(); i++) { output.writeBytes(8, bytesData_.get(i)); } if (id_ != 0) { output.writeInt32(9, id_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, datatype_); } { int dataSize = 0; dataSize = 4 * getFloatDataList().size(); size += dataSize; if (!getFloatDataList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } floatDataMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 8 * getDoubleDataList().size(); size += dataSize; if (!getDoubleDataList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } doubleDataMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 1 * getBoolDataList().size(); size += dataSize; if (!getBoolDataList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } boolDataMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < stringData_.size(); i++) { dataSize += computeStringSizeNoTag(stringData_.getRaw(i)); } size += dataSize; size += 1 * getStringDataList().size(); } { int dataSize = 0; for (int i = 0; i < intData_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(intData_.get(i)); } size += dataSize; if (!getIntDataList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } intDataMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < longData_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(longData_.get(i)); } size += dataSize; if (!getLongDataList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } longDataMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < bytesData_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(bytesData_.get(i)); } size += dataSize; size += 1 * getBytesDataList().size(); } if (id_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, id_); } size += unknownFields.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.intel.analytics.bigdl.serialization.Bigdl.TensorStorage)) { return super.equals(obj); } com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage other = (com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage) obj; boolean result = true; result = result && datatype_ == other.datatype_; result = result && getFloatDataList() .equals(other.getFloatDataList()); result = result && getDoubleDataList() .equals(other.getDoubleDataList()); result = result && getBoolDataList() .equals(other.getBoolDataList()); result = result && getStringDataList() .equals(other.getStringDataList()); result = result && getIntDataList() .equals(other.getIntDataList()); result = result && getLongDataList() .equals(other.getLongDataList()); result = result && getBytesDataList() .equals(other.getBytesDataList()); result = result && (getId() == other.getId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + datatype_; if (getFloatDataCount() > 0) { hash = (37 * hash) + FLOAT_DATA_FIELD_NUMBER; hash = (53 * hash) + getFloatDataList().hashCode(); } if (getDoubleDataCount() > 0) { hash = (37 * hash) + DOUBLE_DATA_FIELD_NUMBER; hash = (53 * hash) + getDoubleDataList().hashCode(); } if (getBoolDataCount() > 0) { hash = (37 * hash) + BOOL_DATA_FIELD_NUMBER; hash = (53 * hash) + getBoolDataList().hashCode(); } if (getStringDataCount() > 0) { hash = (37 * hash) + STRING_DATA_FIELD_NUMBER; hash = (53 * hash) + getStringDataList().hashCode(); } if (getIntDataCount() > 0) { hash = (37 * hash) + INT_DATA_FIELD_NUMBER; hash = (53 * hash) + getIntDataList().hashCode(); } if (getLongDataCount() > 0) { hash = (37 * hash) + LONG_DATA_FIELD_NUMBER; hash = (53 * hash) + getLongDataList().hashCode(); } if (getBytesDataCount() > 0) { hash = (37 * hash) + BYTES_DATA_FIELD_NUMBER; hash = (53 * hash) + getBytesDataList().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage 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.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage 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.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.intel.analytics.bigdl.serialization.TensorStorage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.TensorStorage) com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.class, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder.class); } // Construct using com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); datatype_ = 0; floatData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); doubleData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); boolData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); stringData_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); intData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); longData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); bytesData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); id_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_descriptor; } public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getDefaultInstanceForType() { return com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.getDefaultInstance(); } public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage build() { com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage buildPartial() { com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage result = new com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.datatype_ = datatype_; if (((bitField0_ & 0x00000002) == 0x00000002)) { floatData_ = java.util.Collections.unmodifiableList(floatData_); bitField0_ = (bitField0_ & ~0x00000002); } result.floatData_ = floatData_; if (((bitField0_ & 0x00000004) == 0x00000004)) { doubleData_ = java.util.Collections.unmodifiableList(doubleData_); bitField0_ = (bitField0_ & ~0x00000004); } result.doubleData_ = doubleData_; if (((bitField0_ & 0x00000008) == 0x00000008)) { boolData_ = java.util.Collections.unmodifiableList(boolData_); bitField0_ = (bitField0_ & ~0x00000008); } result.boolData_ = boolData_; if (((bitField0_ & 0x00000010) == 0x00000010)) { stringData_ = stringData_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.stringData_ = stringData_; if (((bitField0_ & 0x00000020) == 0x00000020)) { intData_ = java.util.Collections.unmodifiableList(intData_); bitField0_ = (bitField0_ & ~0x00000020); } result.intData_ = intData_; if (((bitField0_ & 0x00000040) == 0x00000040)) { longData_ = java.util.Collections.unmodifiableList(longData_); bitField0_ = (bitField0_ & ~0x00000040); } result.longData_ = longData_; if (((bitField0_ & 0x00000080) == 0x00000080)) { bytesData_ = java.util.Collections.unmodifiableList(bytesData_); bitField0_ = (bitField0_ & ~0x00000080); } result.bytesData_ = bytesData_; result.id_ = id_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage) { return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage other) { if (other == com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.getDefaultInstance()) return this; if (other.datatype_ != 0) { setDatatypeValue(other.getDatatypeValue()); } if (!other.floatData_.isEmpty()) { if (floatData_.isEmpty()) { floatData_ = other.floatData_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFloatDataIsMutable(); floatData_.addAll(other.floatData_); } onChanged(); } if (!other.doubleData_.isEmpty()) { if (doubleData_.isEmpty()) { doubleData_ = other.doubleData_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDoubleDataIsMutable(); doubleData_.addAll(other.doubleData_); } onChanged(); } if (!other.boolData_.isEmpty()) { if (boolData_.isEmpty()) { boolData_ = other.boolData_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureBoolDataIsMutable(); boolData_.addAll(other.boolData_); } onChanged(); } if (!other.stringData_.isEmpty()) { if (stringData_.isEmpty()) { stringData_ = other.stringData_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureStringDataIsMutable(); stringData_.addAll(other.stringData_); } onChanged(); } if (!other.intData_.isEmpty()) { if (intData_.isEmpty()) { intData_ = other.intData_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureIntDataIsMutable(); intData_.addAll(other.intData_); } onChanged(); } if (!other.longData_.isEmpty()) { if (longData_.isEmpty()) { longData_ = other.longData_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureLongDataIsMutable(); longData_.addAll(other.longData_); } onChanged(); } if (!other.bytesData_.isEmpty()) { if (bytesData_.isEmpty()) { bytesData_ = other.bytesData_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureBytesDataIsMutable(); bytesData_.addAll(other.bytesData_); } onChanged(); } if (other.getId() != 0) { setId(other.getId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int datatype_ = 0; /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public int getDatatypeValue() { return datatype_; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public Builder setDatatypeValue(int value) { datatype_ = value; onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() { com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public Builder setDatatype(com.intel.analytics.bigdl.serialization.Bigdl.DataType value) { if (value == null) { throw new NullPointerException(); } datatype_ = value.getNumber(); onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 1; */ public Builder clearDatatype() { datatype_ = 0; onChanged(); return this; } private java.util.List floatData_ = java.util.Collections.emptyList(); private void ensureFloatDataIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { floatData_ = new java.util.ArrayList(floatData_); bitField0_ |= 0x00000002; } } /** *
       *float tensor element
       * 
* * repeated float float_data = 2; */ public java.util.List getFloatDataList() { return java.util.Collections.unmodifiableList(floatData_); } /** *
       *float tensor element
       * 
* * repeated float float_data = 2; */ public int getFloatDataCount() { return floatData_.size(); } /** *
       *float tensor element
       * 
* * repeated float float_data = 2; */ public float getFloatData(int index) { return floatData_.get(index); } /** *
       *float tensor element
       * 
* * repeated float float_data = 2; */ public Builder setFloatData( int index, float value) { ensureFloatDataIsMutable(); floatData_.set(index, value); onChanged(); return this; } /** *
       *float tensor element
       * 
* * repeated float float_data = 2; */ public Builder addFloatData(float value) { ensureFloatDataIsMutable(); floatData_.add(value); onChanged(); return this; } /** *
       *float tensor element
       * 
* * repeated float float_data = 2; */ public Builder addAllFloatData( java.lang.Iterable values) { ensureFloatDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, floatData_); onChanged(); return this; } /** *
       *float tensor element
       * 
* * repeated float float_data = 2; */ public Builder clearFloatData() { floatData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.util.List doubleData_ = java.util.Collections.emptyList(); private void ensureDoubleDataIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { doubleData_ = new java.util.ArrayList(doubleData_); bitField0_ |= 0x00000004; } } /** *
       *double tensor element
       * 
* * repeated double double_data = 3; */ public java.util.List getDoubleDataList() { return java.util.Collections.unmodifiableList(doubleData_); } /** *
       *double tensor element
       * 
* * repeated double double_data = 3; */ public int getDoubleDataCount() { return doubleData_.size(); } /** *
       *double tensor element
       * 
* * repeated double double_data = 3; */ public double getDoubleData(int index) { return doubleData_.get(index); } /** *
       *double tensor element
       * 
* * repeated double double_data = 3; */ public Builder setDoubleData( int index, double value) { ensureDoubleDataIsMutable(); doubleData_.set(index, value); onChanged(); return this; } /** *
       *double tensor element
       * 
* * repeated double double_data = 3; */ public Builder addDoubleData(double value) { ensureDoubleDataIsMutable(); doubleData_.add(value); onChanged(); return this; } /** *
       *double tensor element
       * 
* * repeated double double_data = 3; */ public Builder addAllDoubleData( java.lang.Iterable values) { ensureDoubleDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, doubleData_); onChanged(); return this; } /** *
       *double tensor element
       * 
* * repeated double double_data = 3; */ public Builder clearDoubleData() { doubleData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List boolData_ = java.util.Collections.emptyList(); private void ensureBoolDataIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { boolData_ = new java.util.ArrayList(boolData_); bitField0_ |= 0x00000008; } } /** *
       *boolean tensor element
       * 
* * repeated bool bool_data = 4; */ public java.util.List getBoolDataList() { return java.util.Collections.unmodifiableList(boolData_); } /** *
       *boolean tensor element
       * 
* * repeated bool bool_data = 4; */ public int getBoolDataCount() { return boolData_.size(); } /** *
       *boolean tensor element
       * 
* * repeated bool bool_data = 4; */ public boolean getBoolData(int index) { return boolData_.get(index); } /** *
       *boolean tensor element
       * 
* * repeated bool bool_data = 4; */ public Builder setBoolData( int index, boolean value) { ensureBoolDataIsMutable(); boolData_.set(index, value); onChanged(); return this; } /** *
       *boolean tensor element
       * 
* * repeated bool bool_data = 4; */ public Builder addBoolData(boolean value) { ensureBoolDataIsMutable(); boolData_.add(value); onChanged(); return this; } /** *
       *boolean tensor element
       * 
* * repeated bool bool_data = 4; */ public Builder addAllBoolData( java.lang.Iterable values) { ensureBoolDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, boolData_); onChanged(); return this; } /** *
       *boolean tensor element
       * 
* * repeated bool bool_data = 4; */ public Builder clearBoolData() { boolData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private com.google.protobuf.LazyStringList stringData_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStringDataIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { stringData_ = new com.google.protobuf.LazyStringArrayList(stringData_); bitField0_ |= 0x00000010; } } /** *
       *string tensor element
       * 
* * repeated string string_data = 5; */ public com.google.protobuf.ProtocolStringList getStringDataList() { return stringData_.getUnmodifiableView(); } /** *
       *string tensor element
       * 
* * repeated string string_data = 5; */ public int getStringDataCount() { return stringData_.size(); } /** *
       *string tensor element
       * 
* * repeated string string_data = 5; */ public java.lang.String getStringData(int index) { return stringData_.get(index); } /** *
       *string tensor element
       * 
* * repeated string string_data = 5; */ public com.google.protobuf.ByteString getStringDataBytes(int index) { return stringData_.getByteString(index); } /** *
       *string tensor element
       * 
* * repeated string string_data = 5; */ public Builder setStringData( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringDataIsMutable(); stringData_.set(index, value); onChanged(); return this; } /** *
       *string tensor element
       * 
* * repeated string string_data = 5; */ public Builder addStringData( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringDataIsMutable(); stringData_.add(value); onChanged(); return this; } /** *
       *string tensor element
       * 
* * repeated string string_data = 5; */ public Builder addAllStringData( java.lang.Iterable values) { ensureStringDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stringData_); onChanged(); return this; } /** *
       *string tensor element
       * 
* * repeated string string_data = 5; */ public Builder clearStringData() { stringData_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       *string tensor element
       * 
* * repeated string string_data = 5; */ public Builder addStringDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStringDataIsMutable(); stringData_.add(value); onChanged(); return this; } private java.util.List intData_ = java.util.Collections.emptyList(); private void ensureIntDataIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { intData_ = new java.util.ArrayList(intData_); bitField0_ |= 0x00000020; } } /** *
       *int tensor element
       * 
* * repeated int32 int_data = 6; */ public java.util.List getIntDataList() { return java.util.Collections.unmodifiableList(intData_); } /** *
       *int tensor element
       * 
* * repeated int32 int_data = 6; */ public int getIntDataCount() { return intData_.size(); } /** *
       *int tensor element
       * 
* * repeated int32 int_data = 6; */ public int getIntData(int index) { return intData_.get(index); } /** *
       *int tensor element
       * 
* * repeated int32 int_data = 6; */ public Builder setIntData( int index, int value) { ensureIntDataIsMutable(); intData_.set(index, value); onChanged(); return this; } /** *
       *int tensor element
       * 
* * repeated int32 int_data = 6; */ public Builder addIntData(int value) { ensureIntDataIsMutable(); intData_.add(value); onChanged(); return this; } /** *
       *int tensor element
       * 
* * repeated int32 int_data = 6; */ public Builder addAllIntData( java.lang.Iterable values) { ensureIntDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, intData_); onChanged(); return this; } /** *
       *int tensor element
       * 
* * repeated int32 int_data = 6; */ public Builder clearIntData() { intData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private java.util.List longData_ = java.util.Collections.emptyList(); private void ensureLongDataIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { longData_ = new java.util.ArrayList(longData_); bitField0_ |= 0x00000040; } } /** *
       *long tensor element
       * 
* * repeated int64 long_data = 7; */ public java.util.List getLongDataList() { return java.util.Collections.unmodifiableList(longData_); } /** *
       *long tensor element
       * 
* * repeated int64 long_data = 7; */ public int getLongDataCount() { return longData_.size(); } /** *
       *long tensor element
       * 
* * repeated int64 long_data = 7; */ public long getLongData(int index) { return longData_.get(index); } /** *
       *long tensor element
       * 
* * repeated int64 long_data = 7; */ public Builder setLongData( int index, long value) { ensureLongDataIsMutable(); longData_.set(index, value); onChanged(); return this; } /** *
       *long tensor element
       * 
* * repeated int64 long_data = 7; */ public Builder addLongData(long value) { ensureLongDataIsMutable(); longData_.add(value); onChanged(); return this; } /** *
       *long tensor element
       * 
* * repeated int64 long_data = 7; */ public Builder addAllLongData( java.lang.Iterable values) { ensureLongDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, longData_); onChanged(); return this; } /** *
       *long tensor element
       * 
* * repeated int64 long_data = 7; */ public Builder clearLongData() { longData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private java.util.List bytesData_ = java.util.Collections.emptyList(); private void ensureBytesDataIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { bytesData_ = new java.util.ArrayList(bytesData_); bitField0_ |= 0x00000080; } } /** *
       *byte tensor element
       * 
* * repeated bytes bytes_data = 8; */ public java.util.List getBytesDataList() { return java.util.Collections.unmodifiableList(bytesData_); } /** *
       *byte tensor element
       * 
* * repeated bytes bytes_data = 8; */ public int getBytesDataCount() { return bytesData_.size(); } /** *
       *byte tensor element
       * 
* * repeated bytes bytes_data = 8; */ public com.google.protobuf.ByteString getBytesData(int index) { return bytesData_.get(index); } /** *
       *byte tensor element
       * 
* * repeated bytes bytes_data = 8; */ public Builder setBytesData( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBytesDataIsMutable(); bytesData_.set(index, value); onChanged(); return this; } /** *
       *byte tensor element
       * 
* * repeated bytes bytes_data = 8; */ public Builder addBytesData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBytesDataIsMutable(); bytesData_.add(value); onChanged(); return this; } /** *
       *byte tensor element
       * 
* * repeated bytes bytes_data = 8; */ public Builder addAllBytesData( java.lang.Iterable values) { ensureBytesDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bytesData_); onChanged(); return this; } /** *
       *byte tensor element
       * 
* * repeated bytes bytes_data = 8; */ public Builder clearBytesData() { bytesData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } private int id_ ; /** *
       * storage Id, used for storage sharing
       * 
* * int32 id = 9; */ public int getId() { return id_; } /** *
       * storage Id, used for storage sharing
       * 
* * int32 id = 9; */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** *
       * storage Id, used for storage sharing
       * 
* * int32 id = 9; */ public Builder clearId() { id_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.TensorStorage) } // @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.TensorStorage) private static final com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage(); } public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TensorStorage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TensorStorage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegularizerOrBuilder extends // @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.Regularizer) com.google.protobuf.MessageOrBuilder { /** * .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1; */ int getRegularizerTypeValue(); /** * .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1; */ com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType getRegularizerType(); /** * repeated double regularData = 2; */ java.util.List getRegularDataList(); /** * repeated double regularData = 2; */ int getRegularDataCount(); /** * repeated double regularData = 2; */ double getRegularData(int index); } /** * Protobuf type {@code com.intel.analytics.bigdl.serialization.Regularizer} */ public static final class Regularizer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.Regularizer) RegularizerOrBuilder { private static final long serialVersionUID = 0L; // Use Regularizer.newBuilder() to construct. private Regularizer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Regularizer() { regularizerType_ = 0; regularData_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Regularizer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); regularizerType_ = rawValue; break; } case 17: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { regularData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } regularData_.add(input.readDouble()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { regularData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { regularData_.add(input.readDouble()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { regularData_ = java.util.Collections.unmodifiableList(regularData_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Regularizer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Regularizer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.class, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder.class); } private int bitField0_; public static final int REGULARIZERTYPE_FIELD_NUMBER = 1; private int regularizerType_; /** * .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1; */ public int getRegularizerTypeValue() { return regularizerType_; } /** * .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType getRegularizerType() { com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType result = com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.valueOf(regularizerType_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.UNRECOGNIZED : result; } public static final int REGULARDATA_FIELD_NUMBER = 2; private java.util.List regularData_; /** * repeated double regularData = 2; */ public java.util.List getRegularDataList() { return regularData_; } /** * repeated double regularData = 2; */ public int getRegularDataCount() { return regularData_.size(); } /** * repeated double regularData = 2; */ public double getRegularData(int index) { return regularData_.get(index); } private int regularDataMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (regularizerType_ != com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.L1L2Regularizer.getNumber()) { output.writeEnum(1, regularizerType_); } if (getRegularDataList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(regularDataMemoizedSerializedSize); } for (int i = 0; i < regularData_.size(); i++) { output.writeDoubleNoTag(regularData_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regularizerType_ != com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.L1L2Regularizer.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, regularizerType_); } { int dataSize = 0; dataSize = 8 * getRegularDataList().size(); size += dataSize; if (!getRegularDataList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } regularDataMemoizedSerializedSize = dataSize; } size += unknownFields.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.intel.analytics.bigdl.serialization.Bigdl.Regularizer)) { return super.equals(obj); } com.intel.analytics.bigdl.serialization.Bigdl.Regularizer other = (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) obj; boolean result = true; result = result && regularizerType_ == other.regularizerType_; result = result && getRegularDataList() .equals(other.getRegularDataList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REGULARIZERTYPE_FIELD_NUMBER; hash = (53 * hash) + regularizerType_; if (getRegularDataCount() > 0) { hash = (37 * hash) + REGULARDATA_FIELD_NUMBER; hash = (53 * hash) + getRegularDataList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer 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.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer 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.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.intel.analytics.bigdl.serialization.Regularizer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.Regularizer) com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Regularizer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Regularizer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.class, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder.class); } // Construct using com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); regularizerType_ = 0; regularData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Regularizer_descriptor; } public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getDefaultInstanceForType() { return com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance(); } public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer build() { com.intel.analytics.bigdl.serialization.Bigdl.Regularizer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer buildPartial() { com.intel.analytics.bigdl.serialization.Bigdl.Regularizer result = new com.intel.analytics.bigdl.serialization.Bigdl.Regularizer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.regularizerType_ = regularizerType_; if (((bitField0_ & 0x00000002) == 0x00000002)) { regularData_ = java.util.Collections.unmodifiableList(regularData_); bitField0_ = (bitField0_ & ~0x00000002); } result.regularData_ = regularData_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) { return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.Regularizer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer other) { if (other == com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance()) return this; if (other.regularizerType_ != 0) { setRegularizerTypeValue(other.getRegularizerTypeValue()); } if (!other.regularData_.isEmpty()) { if (regularData_.isEmpty()) { regularData_ = other.regularData_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRegularDataIsMutable(); regularData_.addAll(other.regularData_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int regularizerType_ = 0; /** * .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1; */ public int getRegularizerTypeValue() { return regularizerType_; } /** * .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1; */ public Builder setRegularizerTypeValue(int value) { regularizerType_ = value; onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType getRegularizerType() { com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType result = com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.valueOf(regularizerType_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.UNRECOGNIZED : result; } /** * .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1; */ public Builder setRegularizerType(com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType value) { if (value == null) { throw new NullPointerException(); } regularizerType_ = value.getNumber(); onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1; */ public Builder clearRegularizerType() { regularizerType_ = 0; onChanged(); return this; } private java.util.List regularData_ = java.util.Collections.emptyList(); private void ensureRegularDataIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { regularData_ = new java.util.ArrayList(regularData_); bitField0_ |= 0x00000002; } } /** * repeated double regularData = 2; */ public java.util.List getRegularDataList() { return java.util.Collections.unmodifiableList(regularData_); } /** * repeated double regularData = 2; */ public int getRegularDataCount() { return regularData_.size(); } /** * repeated double regularData = 2; */ public double getRegularData(int index) { return regularData_.get(index); } /** * repeated double regularData = 2; */ public Builder setRegularData( int index, double value) { ensureRegularDataIsMutable(); regularData_.set(index, value); onChanged(); return this; } /** * repeated double regularData = 2; */ public Builder addRegularData(double value) { ensureRegularDataIsMutable(); regularData_.add(value); onChanged(); return this; } /** * repeated double regularData = 2; */ public Builder addAllRegularData( java.lang.Iterable values) { ensureRegularDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regularData_); onChanged(); return this; } /** * repeated double regularData = 2; */ public Builder clearRegularData() { regularData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.Regularizer) } // @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.Regularizer) private static final com.intel.analytics.bigdl.serialization.Bigdl.Regularizer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.Regularizer(); } public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Regularizer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Regularizer(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttrValueOrBuilder extends // @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.AttrValue) com.google.protobuf.MessageOrBuilder { /** * .com.intel.analytics.bigdl.serialization.DataType dataType = 1; */ int getDataTypeValue(); /** * .com.intel.analytics.bigdl.serialization.DataType dataType = 1; */ com.intel.analytics.bigdl.serialization.Bigdl.DataType getDataType(); /** *
     * specific for custom data
     * 
* * string subType = 2; */ java.lang.String getSubType(); /** *
     * specific for custom data
     * 
* * string subType = 2; */ com.google.protobuf.ByteString getSubTypeBytes(); /** *
     * int32 value
     * 
* * int32 int32Value = 3; */ int getInt32Value(); /** *
     *int64 value
     * 
* * int64 int64Value = 4; */ long getInt64Value(); /** *
     *float value
     * 
* * float floatValue = 5; */ float getFloatValue(); /** *
     *float value
     * 
* * double doubleValue = 6; */ double getDoubleValue(); /** *
     * string value
     * 
* * string stringValue = 7; */ java.lang.String getStringValue(); /** *
     * string value
     * 
* * string stringValue = 7; */ com.google.protobuf.ByteString getStringValueBytes(); /** *
     * bool value
     * 
* * bool boolValue = 8; */ boolean getBoolValue(); /** *
     * Regularizer
     * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ boolean hasRegularizerValue(); /** *
     * Regularizer
     * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getRegularizerValue(); /** *
     * Regularizer
     * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder getRegularizerValueOrBuilder(); /** *
     *tensor value
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ boolean hasTensorValue(); /** *
     *tensor value
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getTensorValue(); /** *
     *tensor value
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getTensorValueOrBuilder(); /** *
     *Variable format
     * 
* * .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11; */ int getVariableFormatValueValue(); /** *
     *Variable format
     * 
* * .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11; */ com.intel.analytics.bigdl.serialization.Bigdl.VarFormat getVariableFormatValue(); /** *
     * init method
     * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ boolean hasInitMethodValue(); /** *
     * init method
     * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getInitMethodValue(); /** *
     * init method
     * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder getInitMethodValueOrBuilder(); /** *
     * big DL module
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ boolean hasBigDLModuleValue(); /** *
     * big DL module
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getBigDLModuleValue(); /** *
     * big DL module
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getBigDLModuleValueOrBuilder(); /** *
     * name attribute list
     * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ boolean hasNameAttrListValue(); /** *
     * name attribute list
     * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getNameAttrListValue(); /** *
     * name attribute list
     * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder getNameAttrListValueOrBuilder(); /** *
     *array value of any type
     * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ boolean hasArrayValue(); /** *
     *array value of any type
     * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue getArrayValue(); /** *
     *array value of any type
     * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValueOrBuilder getArrayValueOrBuilder(); /** *
     * data format
     * 
* * .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16; */ int getDataFormatValueValue(); /** *
     * data format
     * 
* * .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16; */ com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat getDataFormatValue(); /** *
     * custom value
     * 
* * .google.protobuf.Any customValue = 17; */ boolean hasCustomValue(); /** *
     * custom value
     * 
* * .google.protobuf.Any customValue = 17; */ com.google.protobuf.Any getCustomValue(); /** *
     * custom value
     * 
* * .google.protobuf.Any customValue = 17; */ com.google.protobuf.AnyOrBuilder getCustomValueOrBuilder(); /** *
     * Shape value
     * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ boolean hasShape(); /** *
     * Shape value
     * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape(); /** *
     * Shape value
     * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder(); public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ValueCase getValueCase(); } /** * Protobuf type {@code com.intel.analytics.bigdl.serialization.AttrValue} */ public static final class AttrValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.AttrValue) AttrValueOrBuilder { private static final long serialVersionUID = 0L; // Use AttrValue.newBuilder() to construct. private AttrValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttrValue() { dataType_ = 0; subType_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttrValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); dataType_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); subType_ = s; break; } case 24: { valueCase_ = 3; value_ = input.readInt32(); break; } case 32: { valueCase_ = 4; value_ = input.readInt64(); break; } case 45: { valueCase_ = 5; value_ = input.readFloat(); break; } case 49: { valueCase_ = 6; value_ = input.readDouble(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); valueCase_ = 7; value_ = s; break; } case 64: { valueCase_ = 8; value_ = input.readBool(); break; } case 74: { com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder subBuilder = null; if (valueCase_ == 9) { subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_).toBuilder(); } value_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 9; break; } case 82: { com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder subBuilder = null; if (valueCase_ == 10) { subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_).toBuilder(); } value_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 10; break; } case 88: { int rawValue = input.readEnum(); valueCase_ = 11; value_ = rawValue; break; } case 98: { com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder subBuilder = null; if (valueCase_ == 12) { subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_).toBuilder(); } value_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 12; break; } case 106: { com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder subBuilder = null; if (valueCase_ == 13) { subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_).toBuilder(); } value_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 13; break; } case 114: { com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder subBuilder = null; if (valueCase_ == 14) { subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_).toBuilder(); } value_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 14; break; } case 122: { com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder subBuilder = null; if (valueCase_ == 15) { subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_).toBuilder(); } value_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 15; break; } case 128: { int rawValue = input.readEnum(); valueCase_ = 16; value_ = rawValue; break; } case 138: { com.google.protobuf.Any.Builder subBuilder = null; if (valueCase_ == 17) { subBuilder = ((com.google.protobuf.Any) value_).toBuilder(); } value_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.protobuf.Any) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 17; break; } case 146: { com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder subBuilder = null; if (valueCase_ == 18) { subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_).toBuilder(); } value_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Shape.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 18; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.class, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder.class); } public interface ArrayValueOrBuilder extends // @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue) com.google.protobuf.MessageOrBuilder { /** * int32 size = 1; */ int getSize(); /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 2; */ int getDatatypeValue(); /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 2; */ com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype(); /** *
       * "Array(int32)"
       * 
* * repeated int32 i32 = 3; */ java.util.List getI32List(); /** *
       * "Array(int32)"
       * 
* * repeated int32 i32 = 3; */ int getI32Count(); /** *
       * "Array(int32)"
       * 
* * repeated int32 i32 = 3; */ int getI32(int index); /** *
       * "Array(int64)"
       * 
* * repeated int64 i64 = 4; */ java.util.List getI64List(); /** *
       * "Array(int64)"
       * 
* * repeated int64 i64 = 4; */ int getI64Count(); /** *
       * "Array(int64)"
       * 
* * repeated int64 i64 = 4; */ long getI64(int index); /** *
       * "Array(float)"
       * 
* * repeated float flt = 5; */ java.util.List getFltList(); /** *
       * "Array(float)"
       * 
* * repeated float flt = 5; */ int getFltCount(); /** *
       * "Array(float)"
       * 
* * repeated float flt = 5; */ float getFlt(int index); /** *
       * "Array(double)"
       * 
* * repeated double dbl = 6; */ java.util.List getDblList(); /** *
       * "Array(double)"
       * 
* * repeated double dbl = 6; */ int getDblCount(); /** *
       * "Array(double)"
       * 
* * repeated double dbl = 6; */ double getDbl(int index); /** *
       * "Array(string)"
       * 
* * repeated string str = 7; */ java.util.List getStrList(); /** *
       * "Array(string)"
       * 
* * repeated string str = 7; */ int getStrCount(); /** *
       * "Array(string)"
       * 
* * repeated string str = 7; */ java.lang.String getStr(int index); /** *
       * "Array(string)"
       * 
* * repeated string str = 7; */ com.google.protobuf.ByteString getStrBytes(int index); /** *
       * "Array(bool)"
       * 
* * repeated bool boolean = 8; */ java.util.List getBooleanList(); /** *
       * "Array(bool)"
       * 
* * repeated bool boolean = 8; */ int getBooleanCount(); /** *
       * "Array(bool)"
       * 
* * repeated bool boolean = 8; */ boolean getBoolean(int index); /** *
       * "Array(Regularizer)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ java.util.List getRegularizerList(); /** *
       * "Array(Regularizer)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getRegularizer(int index); /** *
       * "Array(Regularizer)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ int getRegularizerCount(); /** *
       * "Array(Regularizer)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ java.util.List getRegularizerOrBuilderList(); /** *
       * "Array(Regularizer)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder getRegularizerOrBuilder( int index); /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ java.util.List getTensorList(); /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getTensor(int index); /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ int getTensorCount(); /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ java.util.List getTensorOrBuilderList(); /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getTensorOrBuilder( int index); /** *
       * "Array(VariableFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ java.util.List getVariableFormatList(); /** *
       * "Array(VariableFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ int getVariableFormatCount(); /** *
       * "Array(VariableFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ com.intel.analytics.bigdl.serialization.Bigdl.VarFormat getVariableFormat(int index); /** *
       * "Array(VariableFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ java.util.List getVariableFormatValueList(); /** *
       * "Array(VariableFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ int getVariableFormatValue(int index); /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ java.util.List getInitMethodList(); /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getInitMethod(int index); /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ int getInitMethodCount(); /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ java.util.List getInitMethodOrBuilderList(); /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder getInitMethodOrBuilder( int index); /** *
       * "Array(BigDLModel)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ java.util.List getBigDLModuleList(); /** *
       * "Array(BigDLModel)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getBigDLModule(int index); /** *
       * "Array(BigDLModel)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ int getBigDLModuleCount(); /** *
       * "Array(BigDLModel)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ java.util.List getBigDLModuleOrBuilderList(); /** *
       * "Array(BigDLModel)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getBigDLModuleOrBuilder( int index); /** *
       * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ java.util.List getNameAttrListList(); /** *
       * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getNameAttrList(int index); /** *
       * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ int getNameAttrListCount(); /** *
       * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ java.util.List getNameAttrListOrBuilderList(); /** *
       * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder getNameAttrListOrBuilder( int index); /** *
       * "Array(DataFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ java.util.List getDataFormatList(); /** *
       * "Array(DataFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ int getDataFormatCount(); /** *
       * "Array(DataFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat getDataFormat(int index); /** *
       * "Array(DataFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ java.util.List getDataFormatValueList(); /** *
       * "Array(DataFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ int getDataFormatValue(int index); /** *
       * "Array(Any)"
       * 
* * repeated .google.protobuf.Any custom = 16; */ java.util.List getCustomList(); /** *
       * "Array(Any)"
       * 
* * repeated .google.protobuf.Any custom = 16; */ com.google.protobuf.Any getCustom(int index); /** *
       * "Array(Any)"
       * 
* * repeated .google.protobuf.Any custom = 16; */ int getCustomCount(); /** *
       * "Array(Any)"
       * 
* * repeated .google.protobuf.Any custom = 16; */ java.util.List getCustomOrBuilderList(); /** *
       * "Array(Any)"
       * 
* * repeated .google.protobuf.Any custom = 16; */ com.google.protobuf.AnyOrBuilder getCustomOrBuilder( int index); /** *
       * "Array(Shape)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ java.util.List getShapeList(); /** *
       * "Array(Shape)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape(int index); /** *
       * "Array(Shape)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ int getShapeCount(); /** *
       * "Array(Shape)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ java.util.List getShapeOrBuilderList(); /** *
       * "Array(Shape)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder( int index); } /** * Protobuf type {@code com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue} */ public static final class ArrayValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue) ArrayValueOrBuilder { private static final long serialVersionUID = 0L; // Use ArrayValue.newBuilder() to construct. private ArrayValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ArrayValue() { size_ = 0; datatype_ = 0; i32_ = java.util.Collections.emptyList(); i64_ = java.util.Collections.emptyList(); flt_ = java.util.Collections.emptyList(); dbl_ = java.util.Collections.emptyList(); str_ = com.google.protobuf.LazyStringArrayList.EMPTY; boolean_ = java.util.Collections.emptyList(); regularizer_ = java.util.Collections.emptyList(); tensor_ = java.util.Collections.emptyList(); variableFormat_ = java.util.Collections.emptyList(); initMethod_ = java.util.Collections.emptyList(); bigDLModule_ = java.util.Collections.emptyList(); nameAttrList_ = java.util.Collections.emptyList(); dataFormat_ = java.util.Collections.emptyList(); custom_ = java.util.Collections.emptyList(); shape_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ArrayValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { size_ = input.readInt32(); break; } case 16: { int rawValue = input.readEnum(); datatype_ = rawValue; break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { i32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } i32_.add(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { i32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { i32_.add(input.readInt32()); } input.popLimit(limit); break; } case 32: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { i64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } i64_.add(input.readInt64()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { i64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { i64_.add(input.readInt64()); } input.popLimit(limit); break; } case 45: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { flt_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } flt_.add(input.readFloat()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { flt_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { flt_.add(input.readFloat()); } input.popLimit(limit); break; } case 49: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { dbl_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } dbl_.add(input.readDouble()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { dbl_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { dbl_.add(input.readDouble()); } input.popLimit(limit); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { str_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000040; } str_.add(s); break; } case 64: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { boolean_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } boolean_.add(input.readBool()); break; } case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) { boolean_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } while (input.getBytesUntilLimit() > 0) { boolean_.add(input.readBool()); } input.popLimit(limit); break; } case 74: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { regularizer_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } regularizer_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.parser(), extensionRegistry)); break; } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { tensor_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } tensor_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.parser(), extensionRegistry)); break; } case 88: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { variableFormat_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } variableFormat_.add(rawValue); break; } case 90: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { variableFormat_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } variableFormat_.add(rawValue); } input.popLimit(oldLimit); break; } case 98: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { initMethod_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } initMethod_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.parser(), extensionRegistry)); break; } case 106: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { bigDLModule_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00001000; } bigDLModule_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.parser(), extensionRegistry)); break; } case 114: { if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { nameAttrList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00002000; } nameAttrList_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.parser(), extensionRegistry)); break; } case 120: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { dataFormat_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00004000; } dataFormat_.add(rawValue); break; } case 122: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { dataFormat_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00004000; } dataFormat_.add(rawValue); } input.popLimit(oldLimit); break; } case 130: { if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { custom_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00008000; } custom_.add( input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); break; } case 138: { if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { shape_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00010000; } shape_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Shape.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { i32_ = java.util.Collections.unmodifiableList(i32_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { i64_ = java.util.Collections.unmodifiableList(i64_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { flt_ = java.util.Collections.unmodifiableList(flt_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { dbl_ = java.util.Collections.unmodifiableList(dbl_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { str_ = str_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { boolean_ = java.util.Collections.unmodifiableList(boolean_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { regularizer_ = java.util.Collections.unmodifiableList(regularizer_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { tensor_ = java.util.Collections.unmodifiableList(tensor_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { variableFormat_ = java.util.Collections.unmodifiableList(variableFormat_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { initMethod_ = java.util.Collections.unmodifiableList(initMethod_); } if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { bigDLModule_ = java.util.Collections.unmodifiableList(bigDLModule_); } if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { nameAttrList_ = java.util.Collections.unmodifiableList(nameAttrList_); } if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { dataFormat_ = java.util.Collections.unmodifiableList(dataFormat_); } if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { custom_ = java.util.Collections.unmodifiableList(custom_); } if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { shape_ = java.util.Collections.unmodifiableList(shape_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.class, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder.class); } private int bitField0_; public static final int SIZE_FIELD_NUMBER = 1; private int size_; /** * int32 size = 1; */ public int getSize() { return size_; } public static final int DATATYPE_FIELD_NUMBER = 2; private int datatype_; /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 2; */ public int getDatatypeValue() { return datatype_; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() { com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result; } public static final int I32_FIELD_NUMBER = 3; private java.util.List i32_; /** *
       * "Array(int32)"
       * 
* * repeated int32 i32 = 3; */ public java.util.List getI32List() { return i32_; } /** *
       * "Array(int32)"
       * 
* * repeated int32 i32 = 3; */ public int getI32Count() { return i32_.size(); } /** *
       * "Array(int32)"
       * 
* * repeated int32 i32 = 3; */ public int getI32(int index) { return i32_.get(index); } private int i32MemoizedSerializedSize = -1; public static final int I64_FIELD_NUMBER = 4; private java.util.List i64_; /** *
       * "Array(int64)"
       * 
* * repeated int64 i64 = 4; */ public java.util.List getI64List() { return i64_; } /** *
       * "Array(int64)"
       * 
* * repeated int64 i64 = 4; */ public int getI64Count() { return i64_.size(); } /** *
       * "Array(int64)"
       * 
* * repeated int64 i64 = 4; */ public long getI64(int index) { return i64_.get(index); } private int i64MemoizedSerializedSize = -1; public static final int FLT_FIELD_NUMBER = 5; private java.util.List flt_; /** *
       * "Array(float)"
       * 
* * repeated float flt = 5; */ public java.util.List getFltList() { return flt_; } /** *
       * "Array(float)"
       * 
* * repeated float flt = 5; */ public int getFltCount() { return flt_.size(); } /** *
       * "Array(float)"
       * 
* * repeated float flt = 5; */ public float getFlt(int index) { return flt_.get(index); } private int fltMemoizedSerializedSize = -1; public static final int DBL_FIELD_NUMBER = 6; private java.util.List dbl_; /** *
       * "Array(double)"
       * 
* * repeated double dbl = 6; */ public java.util.List getDblList() { return dbl_; } /** *
       * "Array(double)"
       * 
* * repeated double dbl = 6; */ public int getDblCount() { return dbl_.size(); } /** *
       * "Array(double)"
       * 
* * repeated double dbl = 6; */ public double getDbl(int index) { return dbl_.get(index); } private int dblMemoizedSerializedSize = -1; public static final int STR_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList str_; /** *
       * "Array(string)"
       * 
* * repeated string str = 7; */ public com.google.protobuf.ProtocolStringList getStrList() { return str_; } /** *
       * "Array(string)"
       * 
* * repeated string str = 7; */ public int getStrCount() { return str_.size(); } /** *
       * "Array(string)"
       * 
* * repeated string str = 7; */ public java.lang.String getStr(int index) { return str_.get(index); } /** *
       * "Array(string)"
       * 
* * repeated string str = 7; */ public com.google.protobuf.ByteString getStrBytes(int index) { return str_.getByteString(index); } public static final int BOOLEAN_FIELD_NUMBER = 8; private java.util.List boolean_; /** *
       * "Array(bool)"
       * 
* * repeated bool boolean = 8; */ public java.util.List getBooleanList() { return boolean_; } /** *
       * "Array(bool)"
       * 
* * repeated bool boolean = 8; */ public int getBooleanCount() { return boolean_.size(); } /** *
       * "Array(bool)"
       * 
* * repeated bool boolean = 8; */ public boolean getBoolean(int index) { return boolean_.get(index); } private int booleanMemoizedSerializedSize = -1; public static final int REGULARIZER_FIELD_NUMBER = 9; private java.util.List regularizer_; /** *
       * "Array(Regularizer)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public java.util.List getRegularizerList() { return regularizer_; } /** *
       * "Array(Regularizer)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public java.util.List getRegularizerOrBuilderList() { return regularizer_; } /** *
       * "Array(Regularizer)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public int getRegularizerCount() { return regularizer_.size(); } /** *
       * "Array(Regularizer)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getRegularizer(int index) { return regularizer_.get(index); } /** *
       * "Array(Regularizer)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder getRegularizerOrBuilder( int index) { return regularizer_.get(index); } public static final int TENSOR_FIELD_NUMBER = 10; private java.util.List tensor_; /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public java.util.List getTensorList() { return tensor_; } /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public java.util.List getTensorOrBuilderList() { return tensor_; } /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public int getTensorCount() { return tensor_.size(); } /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getTensor(int index) { return tensor_.get(index); } /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getTensorOrBuilder( int index) { return tensor_.get(index); } public static final int VARIABLEFORMAT_FIELD_NUMBER = 11; private java.util.List variableFormat_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.VarFormat> variableFormat_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.VarFormat>() { public com.intel.analytics.bigdl.serialization.Bigdl.VarFormat convert(java.lang.Integer from) { com.intel.analytics.bigdl.serialization.Bigdl.VarFormat result = com.intel.analytics.bigdl.serialization.Bigdl.VarFormat.valueOf(from); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.VarFormat.UNRECOGNIZED : result; } }; /** *
       * "Array(VariableFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public java.util.List getVariableFormatList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.VarFormat>(variableFormat_, variableFormat_converter_); } /** *
       * "Array(VariableFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public int getVariableFormatCount() { return variableFormat_.size(); } /** *
       * "Array(VariableFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public com.intel.analytics.bigdl.serialization.Bigdl.VarFormat getVariableFormat(int index) { return variableFormat_converter_.convert(variableFormat_.get(index)); } /** *
       * "Array(VariableFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public java.util.List getVariableFormatValueList() { return variableFormat_; } /** *
       * "Array(VariableFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public int getVariableFormatValue(int index) { return variableFormat_.get(index); } private int variableFormatMemoizedSerializedSize; public static final int INITMETHOD_FIELD_NUMBER = 12; private java.util.List initMethod_; /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public java.util.List getInitMethodList() { return initMethod_; } /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public java.util.List getInitMethodOrBuilderList() { return initMethod_; } /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public int getInitMethodCount() { return initMethod_.size(); } /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getInitMethod(int index) { return initMethod_.get(index); } /** *
       * "Array(BigDLTensor)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder getInitMethodOrBuilder( int index) { return initMethod_.get(index); } public static final int BIGDLMODULE_FIELD_NUMBER = 13; private java.util.List bigDLModule_; /** *
       * "Array(BigDLModel)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public java.util.List getBigDLModuleList() { return bigDLModule_; } /** *
       * "Array(BigDLModel)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public java.util.List getBigDLModuleOrBuilderList() { return bigDLModule_; } /** *
       * "Array(BigDLModel)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public int getBigDLModuleCount() { return bigDLModule_.size(); } /** *
       * "Array(BigDLModel)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getBigDLModule(int index) { return bigDLModule_.get(index); } /** *
       * "Array(BigDLModel)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getBigDLModuleOrBuilder( int index) { return bigDLModule_.get(index); } public static final int NAMEATTRLIST_FIELD_NUMBER = 14; private java.util.List nameAttrList_; /** *
       * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public java.util.List getNameAttrListList() { return nameAttrList_; } /** *
       * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public java.util.List getNameAttrListOrBuilderList() { return nameAttrList_; } /** *
       * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public int getNameAttrListCount() { return nameAttrList_.size(); } /** *
       * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getNameAttrList(int index) { return nameAttrList_.get(index); } /** *
       * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder getNameAttrListOrBuilder( int index) { return nameAttrList_.get(index); } public static final int DATAFORMAT_FIELD_NUMBER = 15; private java.util.List dataFormat_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat> dataFormat_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat>() { public com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat convert(java.lang.Integer from) { com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat result = com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat.valueOf(from); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat.UNRECOGNIZED : result; } }; /** *
       * "Array(DataFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public java.util.List getDataFormatList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat>(dataFormat_, dataFormat_converter_); } /** *
       * "Array(DataFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public int getDataFormatCount() { return dataFormat_.size(); } /** *
       * "Array(DataFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat getDataFormat(int index) { return dataFormat_converter_.convert(dataFormat_.get(index)); } /** *
       * "Array(DataFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public java.util.List getDataFormatValueList() { return dataFormat_; } /** *
       * "Array(DataFormat)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public int getDataFormatValue(int index) { return dataFormat_.get(index); } private int dataFormatMemoizedSerializedSize; public static final int CUSTOM_FIELD_NUMBER = 16; private java.util.List custom_; /** *
       * "Array(Any)"
       * 
* * repeated .google.protobuf.Any custom = 16; */ public java.util.List getCustomList() { return custom_; } /** *
       * "Array(Any)"
       * 
* * repeated .google.protobuf.Any custom = 16; */ public java.util.List getCustomOrBuilderList() { return custom_; } /** *
       * "Array(Any)"
       * 
* * repeated .google.protobuf.Any custom = 16; */ public int getCustomCount() { return custom_.size(); } /** *
       * "Array(Any)"
       * 
* * repeated .google.protobuf.Any custom = 16; */ public com.google.protobuf.Any getCustom(int index) { return custom_.get(index); } /** *
       * "Array(Any)"
       * 
* * repeated .google.protobuf.Any custom = 16; */ public com.google.protobuf.AnyOrBuilder getCustomOrBuilder( int index) { return custom_.get(index); } public static final int SHAPE_FIELD_NUMBER = 17; private java.util.List shape_; /** *
       * "Array(Shape)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public java.util.List getShapeList() { return shape_; } /** *
       * "Array(Shape)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public java.util.List getShapeOrBuilderList() { return shape_; } /** *
       * "Array(Shape)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public int getShapeCount() { return shape_.size(); } /** *
       * "Array(Shape)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape(int index) { return shape_.get(index); } /** *
       * "Array(Shape)"
       * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder( int index) { return shape_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (size_ != 0) { output.writeInt32(1, size_); } if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) { output.writeEnum(2, datatype_); } if (getI32List().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(i32MemoizedSerializedSize); } for (int i = 0; i < i32_.size(); i++) { output.writeInt32NoTag(i32_.get(i)); } if (getI64List().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(i64MemoizedSerializedSize); } for (int i = 0; i < i64_.size(); i++) { output.writeInt64NoTag(i64_.get(i)); } if (getFltList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(fltMemoizedSerializedSize); } for (int i = 0; i < flt_.size(); i++) { output.writeFloatNoTag(flt_.get(i)); } if (getDblList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(dblMemoizedSerializedSize); } for (int i = 0; i < dbl_.size(); i++) { output.writeDoubleNoTag(dbl_.get(i)); } for (int i = 0; i < str_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, str_.getRaw(i)); } if (getBooleanList().size() > 0) { output.writeUInt32NoTag(66); output.writeUInt32NoTag(booleanMemoizedSerializedSize); } for (int i = 0; i < boolean_.size(); i++) { output.writeBoolNoTag(boolean_.get(i)); } for (int i = 0; i < regularizer_.size(); i++) { output.writeMessage(9, regularizer_.get(i)); } for (int i = 0; i < tensor_.size(); i++) { output.writeMessage(10, tensor_.get(i)); } if (getVariableFormatList().size() > 0) { output.writeUInt32NoTag(90); output.writeUInt32NoTag(variableFormatMemoizedSerializedSize); } for (int i = 0; i < variableFormat_.size(); i++) { output.writeEnumNoTag(variableFormat_.get(i)); } for (int i = 0; i < initMethod_.size(); i++) { output.writeMessage(12, initMethod_.get(i)); } for (int i = 0; i < bigDLModule_.size(); i++) { output.writeMessage(13, bigDLModule_.get(i)); } for (int i = 0; i < nameAttrList_.size(); i++) { output.writeMessage(14, nameAttrList_.get(i)); } if (getDataFormatList().size() > 0) { output.writeUInt32NoTag(122); output.writeUInt32NoTag(dataFormatMemoizedSerializedSize); } for (int i = 0; i < dataFormat_.size(); i++) { output.writeEnumNoTag(dataFormat_.get(i)); } for (int i = 0; i < custom_.size(); i++) { output.writeMessage(16, custom_.get(i)); } for (int i = 0; i < shape_.size(); i++) { output.writeMessage(17, shape_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (size_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, size_); } if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, datatype_); } { int dataSize = 0; for (int i = 0; i < i32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(i32_.get(i)); } size += dataSize; if (!getI32List().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } i32MemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < i64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(i64_.get(i)); } size += dataSize; if (!getI64List().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } i64MemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 4 * getFltList().size(); size += dataSize; if (!getFltList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } fltMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 8 * getDblList().size(); size += dataSize; if (!getDblList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } dblMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < str_.size(); i++) { dataSize += computeStringSizeNoTag(str_.getRaw(i)); } size += dataSize; size += 1 * getStrList().size(); } { int dataSize = 0; dataSize = 1 * getBooleanList().size(); size += dataSize; if (!getBooleanList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } booleanMemoizedSerializedSize = dataSize; } for (int i = 0; i < regularizer_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, regularizer_.get(i)); } for (int i = 0; i < tensor_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, tensor_.get(i)); } { int dataSize = 0; for (int i = 0; i < variableFormat_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(variableFormat_.get(i)); } size += dataSize; if (!getVariableFormatList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }variableFormatMemoizedSerializedSize = dataSize; } for (int i = 0; i < initMethod_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, initMethod_.get(i)); } for (int i = 0; i < bigDLModule_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, bigDLModule_.get(i)); } for (int i = 0; i < nameAttrList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, nameAttrList_.get(i)); } { int dataSize = 0; for (int i = 0; i < dataFormat_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(dataFormat_.get(i)); } size += dataSize; if (!getDataFormatList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }dataFormatMemoizedSerializedSize = dataSize; } for (int i = 0; i < custom_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, custom_.get(i)); } for (int i = 0; i < shape_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, shape_.get(i)); } size += unknownFields.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.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue)) { return super.equals(obj); } com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue other = (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) obj; boolean result = true; result = result && (getSize() == other.getSize()); result = result && datatype_ == other.datatype_; result = result && getI32List() .equals(other.getI32List()); result = result && getI64List() .equals(other.getI64List()); result = result && getFltList() .equals(other.getFltList()); result = result && getDblList() .equals(other.getDblList()); result = result && getStrList() .equals(other.getStrList()); result = result && getBooleanList() .equals(other.getBooleanList()); result = result && getRegularizerList() .equals(other.getRegularizerList()); result = result && getTensorList() .equals(other.getTensorList()); result = result && variableFormat_.equals(other.variableFormat_); result = result && getInitMethodList() .equals(other.getInitMethodList()); result = result && getBigDLModuleList() .equals(other.getBigDLModuleList()); result = result && getNameAttrListList() .equals(other.getNameAttrListList()); result = result && dataFormat_.equals(other.dataFormat_); result = result && getCustomList() .equals(other.getCustomList()); result = result && getShapeList() .equals(other.getShapeList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + getSize(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + datatype_; if (getI32Count() > 0) { hash = (37 * hash) + I32_FIELD_NUMBER; hash = (53 * hash) + getI32List().hashCode(); } if (getI64Count() > 0) { hash = (37 * hash) + I64_FIELD_NUMBER; hash = (53 * hash) + getI64List().hashCode(); } if (getFltCount() > 0) { hash = (37 * hash) + FLT_FIELD_NUMBER; hash = (53 * hash) + getFltList().hashCode(); } if (getDblCount() > 0) { hash = (37 * hash) + DBL_FIELD_NUMBER; hash = (53 * hash) + getDblList().hashCode(); } if (getStrCount() > 0) { hash = (37 * hash) + STR_FIELD_NUMBER; hash = (53 * hash) + getStrList().hashCode(); } if (getBooleanCount() > 0) { hash = (37 * hash) + BOOLEAN_FIELD_NUMBER; hash = (53 * hash) + getBooleanList().hashCode(); } if (getRegularizerCount() > 0) { hash = (37 * hash) + REGULARIZER_FIELD_NUMBER; hash = (53 * hash) + getRegularizerList().hashCode(); } if (getTensorCount() > 0) { hash = (37 * hash) + TENSOR_FIELD_NUMBER; hash = (53 * hash) + getTensorList().hashCode(); } if (getVariableFormatCount() > 0) { hash = (37 * hash) + VARIABLEFORMAT_FIELD_NUMBER; hash = (53 * hash) + variableFormat_.hashCode(); } if (getInitMethodCount() > 0) { hash = (37 * hash) + INITMETHOD_FIELD_NUMBER; hash = (53 * hash) + getInitMethodList().hashCode(); } if (getBigDLModuleCount() > 0) { hash = (37 * hash) + BIGDLMODULE_FIELD_NUMBER; hash = (53 * hash) + getBigDLModuleList().hashCode(); } if (getNameAttrListCount() > 0) { hash = (37 * hash) + NAMEATTRLIST_FIELD_NUMBER; hash = (53 * hash) + getNameAttrListList().hashCode(); } if (getDataFormatCount() > 0) { hash = (37 * hash) + DATAFORMAT_FIELD_NUMBER; hash = (53 * hash) + dataFormat_.hashCode(); } if (getCustomCount() > 0) { hash = (37 * hash) + CUSTOM_FIELD_NUMBER; hash = (53 * hash) + getCustomList().hashCode(); } if (getShapeCount() > 0) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShapeList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue 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.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue 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.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.intel.analytics.bigdl.serialization.AttrValue.ArrayValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue) com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.class, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder.class); } // Construct using com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRegularizerFieldBuilder(); getTensorFieldBuilder(); getInitMethodFieldBuilder(); getBigDLModuleFieldBuilder(); getNameAttrListFieldBuilder(); getCustomFieldBuilder(); getShapeFieldBuilder(); } } public Builder clear() { super.clear(); size_ = 0; datatype_ = 0; i32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); i64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); flt_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); dbl_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); str_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); boolean_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); if (regularizerBuilder_ == null) { regularizer_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { regularizerBuilder_.clear(); } if (tensorBuilder_ == null) { tensor_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { tensorBuilder_.clear(); } variableFormat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); if (initMethodBuilder_ == null) { initMethod_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); } else { initMethodBuilder_.clear(); } if (bigDLModuleBuilder_ == null) { bigDLModule_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); } else { bigDLModuleBuilder_.clear(); } if (nameAttrListBuilder_ == null) { nameAttrList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); } else { nameAttrListBuilder_.clear(); } dataFormat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00004000); if (customBuilder_ == null) { custom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); } else { customBuilder_.clear(); } if (shapeBuilder_ == null) { shape_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); } else { shapeBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_descriptor; } public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue getDefaultInstanceForType() { return com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance(); } public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue build() { com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue buildPartial() { com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue result = new com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.size_ = size_; result.datatype_ = datatype_; if (((bitField0_ & 0x00000004) == 0x00000004)) { i32_ = java.util.Collections.unmodifiableList(i32_); bitField0_ = (bitField0_ & ~0x00000004); } result.i32_ = i32_; if (((bitField0_ & 0x00000008) == 0x00000008)) { i64_ = java.util.Collections.unmodifiableList(i64_); bitField0_ = (bitField0_ & ~0x00000008); } result.i64_ = i64_; if (((bitField0_ & 0x00000010) == 0x00000010)) { flt_ = java.util.Collections.unmodifiableList(flt_); bitField0_ = (bitField0_ & ~0x00000010); } result.flt_ = flt_; if (((bitField0_ & 0x00000020) == 0x00000020)) { dbl_ = java.util.Collections.unmodifiableList(dbl_); bitField0_ = (bitField0_ & ~0x00000020); } result.dbl_ = dbl_; if (((bitField0_ & 0x00000040) == 0x00000040)) { str_ = str_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.str_ = str_; if (((bitField0_ & 0x00000080) == 0x00000080)) { boolean_ = java.util.Collections.unmodifiableList(boolean_); bitField0_ = (bitField0_ & ~0x00000080); } result.boolean_ = boolean_; if (regularizerBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { regularizer_ = java.util.Collections.unmodifiableList(regularizer_); bitField0_ = (bitField0_ & ~0x00000100); } result.regularizer_ = regularizer_; } else { result.regularizer_ = regularizerBuilder_.build(); } if (tensorBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { tensor_ = java.util.Collections.unmodifiableList(tensor_); bitField0_ = (bitField0_ & ~0x00000200); } result.tensor_ = tensor_; } else { result.tensor_ = tensorBuilder_.build(); } if (((bitField0_ & 0x00000400) == 0x00000400)) { variableFormat_ = java.util.Collections.unmodifiableList(variableFormat_); bitField0_ = (bitField0_ & ~0x00000400); } result.variableFormat_ = variableFormat_; if (initMethodBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800)) { initMethod_ = java.util.Collections.unmodifiableList(initMethod_); bitField0_ = (bitField0_ & ~0x00000800); } result.initMethod_ = initMethod_; } else { result.initMethod_ = initMethodBuilder_.build(); } if (bigDLModuleBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000)) { bigDLModule_ = java.util.Collections.unmodifiableList(bigDLModule_); bitField0_ = (bitField0_ & ~0x00001000); } result.bigDLModule_ = bigDLModule_; } else { result.bigDLModule_ = bigDLModuleBuilder_.build(); } if (nameAttrListBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000)) { nameAttrList_ = java.util.Collections.unmodifiableList(nameAttrList_); bitField0_ = (bitField0_ & ~0x00002000); } result.nameAttrList_ = nameAttrList_; } else { result.nameAttrList_ = nameAttrListBuilder_.build(); } if (((bitField0_ & 0x00004000) == 0x00004000)) { dataFormat_ = java.util.Collections.unmodifiableList(dataFormat_); bitField0_ = (bitField0_ & ~0x00004000); } result.dataFormat_ = dataFormat_; if (customBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000)) { custom_ = java.util.Collections.unmodifiableList(custom_); bitField0_ = (bitField0_ & ~0x00008000); } result.custom_ = custom_; } else { result.custom_ = customBuilder_.build(); } if (shapeBuilder_ == null) { if (((bitField0_ & 0x00010000) == 0x00010000)) { shape_ = java.util.Collections.unmodifiableList(shape_); bitField0_ = (bitField0_ & ~0x00010000); } result.shape_ = shape_; } else { result.shape_ = shapeBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) { return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue other) { if (other == com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance()) return this; if (other.getSize() != 0) { setSize(other.getSize()); } if (other.datatype_ != 0) { setDatatypeValue(other.getDatatypeValue()); } if (!other.i32_.isEmpty()) { if (i32_.isEmpty()) { i32_ = other.i32_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureI32IsMutable(); i32_.addAll(other.i32_); } onChanged(); } if (!other.i64_.isEmpty()) { if (i64_.isEmpty()) { i64_ = other.i64_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureI64IsMutable(); i64_.addAll(other.i64_); } onChanged(); } if (!other.flt_.isEmpty()) { if (flt_.isEmpty()) { flt_ = other.flt_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFltIsMutable(); flt_.addAll(other.flt_); } onChanged(); } if (!other.dbl_.isEmpty()) { if (dbl_.isEmpty()) { dbl_ = other.dbl_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDblIsMutable(); dbl_.addAll(other.dbl_); } onChanged(); } if (!other.str_.isEmpty()) { if (str_.isEmpty()) { str_ = other.str_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureStrIsMutable(); str_.addAll(other.str_); } onChanged(); } if (!other.boolean_.isEmpty()) { if (boolean_.isEmpty()) { boolean_ = other.boolean_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureBooleanIsMutable(); boolean_.addAll(other.boolean_); } onChanged(); } if (regularizerBuilder_ == null) { if (!other.regularizer_.isEmpty()) { if (regularizer_.isEmpty()) { regularizer_ = other.regularizer_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureRegularizerIsMutable(); regularizer_.addAll(other.regularizer_); } onChanged(); } } else { if (!other.regularizer_.isEmpty()) { if (regularizerBuilder_.isEmpty()) { regularizerBuilder_.dispose(); regularizerBuilder_ = null; regularizer_ = other.regularizer_; bitField0_ = (bitField0_ & ~0x00000100); regularizerBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegularizerFieldBuilder() : null; } else { regularizerBuilder_.addAllMessages(other.regularizer_); } } } if (tensorBuilder_ == null) { if (!other.tensor_.isEmpty()) { if (tensor_.isEmpty()) { tensor_ = other.tensor_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureTensorIsMutable(); tensor_.addAll(other.tensor_); } onChanged(); } } else { if (!other.tensor_.isEmpty()) { if (tensorBuilder_.isEmpty()) { tensorBuilder_.dispose(); tensorBuilder_ = null; tensor_ = other.tensor_; bitField0_ = (bitField0_ & ~0x00000200); tensorBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTensorFieldBuilder() : null; } else { tensorBuilder_.addAllMessages(other.tensor_); } } } if (!other.variableFormat_.isEmpty()) { if (variableFormat_.isEmpty()) { variableFormat_ = other.variableFormat_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureVariableFormatIsMutable(); variableFormat_.addAll(other.variableFormat_); } onChanged(); } if (initMethodBuilder_ == null) { if (!other.initMethod_.isEmpty()) { if (initMethod_.isEmpty()) { initMethod_ = other.initMethod_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureInitMethodIsMutable(); initMethod_.addAll(other.initMethod_); } onChanged(); } } else { if (!other.initMethod_.isEmpty()) { if (initMethodBuilder_.isEmpty()) { initMethodBuilder_.dispose(); initMethodBuilder_ = null; initMethod_ = other.initMethod_; bitField0_ = (bitField0_ & ~0x00000800); initMethodBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInitMethodFieldBuilder() : null; } else { initMethodBuilder_.addAllMessages(other.initMethod_); } } } if (bigDLModuleBuilder_ == null) { if (!other.bigDLModule_.isEmpty()) { if (bigDLModule_.isEmpty()) { bigDLModule_ = other.bigDLModule_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureBigDLModuleIsMutable(); bigDLModule_.addAll(other.bigDLModule_); } onChanged(); } } else { if (!other.bigDLModule_.isEmpty()) { if (bigDLModuleBuilder_.isEmpty()) { bigDLModuleBuilder_.dispose(); bigDLModuleBuilder_ = null; bigDLModule_ = other.bigDLModule_; bitField0_ = (bitField0_ & ~0x00001000); bigDLModuleBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBigDLModuleFieldBuilder() : null; } else { bigDLModuleBuilder_.addAllMessages(other.bigDLModule_); } } } if (nameAttrListBuilder_ == null) { if (!other.nameAttrList_.isEmpty()) { if (nameAttrList_.isEmpty()) { nameAttrList_ = other.nameAttrList_; bitField0_ = (bitField0_ & ~0x00002000); } else { ensureNameAttrListIsMutable(); nameAttrList_.addAll(other.nameAttrList_); } onChanged(); } } else { if (!other.nameAttrList_.isEmpty()) { if (nameAttrListBuilder_.isEmpty()) { nameAttrListBuilder_.dispose(); nameAttrListBuilder_ = null; nameAttrList_ = other.nameAttrList_; bitField0_ = (bitField0_ & ~0x00002000); nameAttrListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNameAttrListFieldBuilder() : null; } else { nameAttrListBuilder_.addAllMessages(other.nameAttrList_); } } } if (!other.dataFormat_.isEmpty()) { if (dataFormat_.isEmpty()) { dataFormat_ = other.dataFormat_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureDataFormatIsMutable(); dataFormat_.addAll(other.dataFormat_); } onChanged(); } if (customBuilder_ == null) { if (!other.custom_.isEmpty()) { if (custom_.isEmpty()) { custom_ = other.custom_; bitField0_ = (bitField0_ & ~0x00008000); } else { ensureCustomIsMutable(); custom_.addAll(other.custom_); } onChanged(); } } else { if (!other.custom_.isEmpty()) { if (customBuilder_.isEmpty()) { customBuilder_.dispose(); customBuilder_ = null; custom_ = other.custom_; bitField0_ = (bitField0_ & ~0x00008000); customBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCustomFieldBuilder() : null; } else { customBuilder_.addAllMessages(other.custom_); } } } if (shapeBuilder_ == null) { if (!other.shape_.isEmpty()) { if (shape_.isEmpty()) { shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00010000); } else { ensureShapeIsMutable(); shape_.addAll(other.shape_); } onChanged(); } } else { if (!other.shape_.isEmpty()) { if (shapeBuilder_.isEmpty()) { shapeBuilder_.dispose(); shapeBuilder_ = null; shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00010000); shapeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShapeFieldBuilder() : null; } else { shapeBuilder_.addAllMessages(other.shape_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int size_ ; /** * int32 size = 1; */ public int getSize() { return size_; } /** * int32 size = 1; */ public Builder setSize(int value) { size_ = value; onChanged(); return this; } /** * int32 size = 1; */ public Builder clearSize() { size_ = 0; onChanged(); return this; } private int datatype_ = 0; /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 2; */ public int getDatatypeValue() { return datatype_; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 2; */ public Builder setDatatypeValue(int value) { datatype_ = value; onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() { com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 2; */ public Builder setDatatype(com.intel.analytics.bigdl.serialization.Bigdl.DataType value) { if (value == null) { throw new NullPointerException(); } datatype_ = value.getNumber(); onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.DataType datatype = 2; */ public Builder clearDatatype() { datatype_ = 0; onChanged(); return this; } private java.util.List i32_ = java.util.Collections.emptyList(); private void ensureI32IsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { i32_ = new java.util.ArrayList(i32_); bitField0_ |= 0x00000004; } } /** *
         * "Array(int32)"
         * 
* * repeated int32 i32 = 3; */ public java.util.List getI32List() { return java.util.Collections.unmodifiableList(i32_); } /** *
         * "Array(int32)"
         * 
* * repeated int32 i32 = 3; */ public int getI32Count() { return i32_.size(); } /** *
         * "Array(int32)"
         * 
* * repeated int32 i32 = 3; */ public int getI32(int index) { return i32_.get(index); } /** *
         * "Array(int32)"
         * 
* * repeated int32 i32 = 3; */ public Builder setI32( int index, int value) { ensureI32IsMutable(); i32_.set(index, value); onChanged(); return this; } /** *
         * "Array(int32)"
         * 
* * repeated int32 i32 = 3; */ public Builder addI32(int value) { ensureI32IsMutable(); i32_.add(value); onChanged(); return this; } /** *
         * "Array(int32)"
         * 
* * repeated int32 i32 = 3; */ public Builder addAllI32( java.lang.Iterable values) { ensureI32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, i32_); onChanged(); return this; } /** *
         * "Array(int32)"
         * 
* * repeated int32 i32 = 3; */ public Builder clearI32() { i32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List i64_ = java.util.Collections.emptyList(); private void ensureI64IsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { i64_ = new java.util.ArrayList(i64_); bitField0_ |= 0x00000008; } } /** *
         * "Array(int64)"
         * 
* * repeated int64 i64 = 4; */ public java.util.List getI64List() { return java.util.Collections.unmodifiableList(i64_); } /** *
         * "Array(int64)"
         * 
* * repeated int64 i64 = 4; */ public int getI64Count() { return i64_.size(); } /** *
         * "Array(int64)"
         * 
* * repeated int64 i64 = 4; */ public long getI64(int index) { return i64_.get(index); } /** *
         * "Array(int64)"
         * 
* * repeated int64 i64 = 4; */ public Builder setI64( int index, long value) { ensureI64IsMutable(); i64_.set(index, value); onChanged(); return this; } /** *
         * "Array(int64)"
         * 
* * repeated int64 i64 = 4; */ public Builder addI64(long value) { ensureI64IsMutable(); i64_.add(value); onChanged(); return this; } /** *
         * "Array(int64)"
         * 
* * repeated int64 i64 = 4; */ public Builder addAllI64( java.lang.Iterable values) { ensureI64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, i64_); onChanged(); return this; } /** *
         * "Array(int64)"
         * 
* * repeated int64 i64 = 4; */ public Builder clearI64() { i64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private java.util.List flt_ = java.util.Collections.emptyList(); private void ensureFltIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { flt_ = new java.util.ArrayList(flt_); bitField0_ |= 0x00000010; } } /** *
         * "Array(float)"
         * 
* * repeated float flt = 5; */ public java.util.List getFltList() { return java.util.Collections.unmodifiableList(flt_); } /** *
         * "Array(float)"
         * 
* * repeated float flt = 5; */ public int getFltCount() { return flt_.size(); } /** *
         * "Array(float)"
         * 
* * repeated float flt = 5; */ public float getFlt(int index) { return flt_.get(index); } /** *
         * "Array(float)"
         * 
* * repeated float flt = 5; */ public Builder setFlt( int index, float value) { ensureFltIsMutable(); flt_.set(index, value); onChanged(); return this; } /** *
         * "Array(float)"
         * 
* * repeated float flt = 5; */ public Builder addFlt(float value) { ensureFltIsMutable(); flt_.add(value); onChanged(); return this; } /** *
         * "Array(float)"
         * 
* * repeated float flt = 5; */ public Builder addAllFlt( java.lang.Iterable values) { ensureFltIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, flt_); onChanged(); return this; } /** *
         * "Array(float)"
         * 
* * repeated float flt = 5; */ public Builder clearFlt() { flt_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List dbl_ = java.util.Collections.emptyList(); private void ensureDblIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { dbl_ = new java.util.ArrayList(dbl_); bitField0_ |= 0x00000020; } } /** *
         * "Array(double)"
         * 
* * repeated double dbl = 6; */ public java.util.List getDblList() { return java.util.Collections.unmodifiableList(dbl_); } /** *
         * "Array(double)"
         * 
* * repeated double dbl = 6; */ public int getDblCount() { return dbl_.size(); } /** *
         * "Array(double)"
         * 
* * repeated double dbl = 6; */ public double getDbl(int index) { return dbl_.get(index); } /** *
         * "Array(double)"
         * 
* * repeated double dbl = 6; */ public Builder setDbl( int index, double value) { ensureDblIsMutable(); dbl_.set(index, value); onChanged(); return this; } /** *
         * "Array(double)"
         * 
* * repeated double dbl = 6; */ public Builder addDbl(double value) { ensureDblIsMutable(); dbl_.add(value); onChanged(); return this; } /** *
         * "Array(double)"
         * 
* * repeated double dbl = 6; */ public Builder addAllDbl( java.lang.Iterable values) { ensureDblIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dbl_); onChanged(); return this; } /** *
         * "Array(double)"
         * 
* * repeated double dbl = 6; */ public Builder clearDbl() { dbl_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private com.google.protobuf.LazyStringList str_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStrIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { str_ = new com.google.protobuf.LazyStringArrayList(str_); bitField0_ |= 0x00000040; } } /** *
         * "Array(string)"
         * 
* * repeated string str = 7; */ public com.google.protobuf.ProtocolStringList getStrList() { return str_.getUnmodifiableView(); } /** *
         * "Array(string)"
         * 
* * repeated string str = 7; */ public int getStrCount() { return str_.size(); } /** *
         * "Array(string)"
         * 
* * repeated string str = 7; */ public java.lang.String getStr(int index) { return str_.get(index); } /** *
         * "Array(string)"
         * 
* * repeated string str = 7; */ public com.google.protobuf.ByteString getStrBytes(int index) { return str_.getByteString(index); } /** *
         * "Array(string)"
         * 
* * repeated string str = 7; */ public Builder setStr( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStrIsMutable(); str_.set(index, value); onChanged(); return this; } /** *
         * "Array(string)"
         * 
* * repeated string str = 7; */ public Builder addStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStrIsMutable(); str_.add(value); onChanged(); return this; } /** *
         * "Array(string)"
         * 
* * repeated string str = 7; */ public Builder addAllStr( java.lang.Iterable values) { ensureStrIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, str_); onChanged(); return this; } /** *
         * "Array(string)"
         * 
* * repeated string str = 7; */ public Builder clearStr() { str_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
         * "Array(string)"
         * 
* * repeated string str = 7; */ public Builder addStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStrIsMutable(); str_.add(value); onChanged(); return this; } private java.util.List boolean_ = java.util.Collections.emptyList(); private void ensureBooleanIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { boolean_ = new java.util.ArrayList(boolean_); bitField0_ |= 0x00000080; } } /** *
         * "Array(bool)"
         * 
* * repeated bool boolean = 8; */ public java.util.List getBooleanList() { return java.util.Collections.unmodifiableList(boolean_); } /** *
         * "Array(bool)"
         * 
* * repeated bool boolean = 8; */ public int getBooleanCount() { return boolean_.size(); } /** *
         * "Array(bool)"
         * 
* * repeated bool boolean = 8; */ public boolean getBoolean(int index) { return boolean_.get(index); } /** *
         * "Array(bool)"
         * 
* * repeated bool boolean = 8; */ public Builder setBoolean( int index, boolean value) { ensureBooleanIsMutable(); boolean_.set(index, value); onChanged(); return this; } /** *
         * "Array(bool)"
         * 
* * repeated bool boolean = 8; */ public Builder addBoolean(boolean value) { ensureBooleanIsMutable(); boolean_.add(value); onChanged(); return this; } /** *
         * "Array(bool)"
         * 
* * repeated bool boolean = 8; */ public Builder addAllBoolean( java.lang.Iterable values) { ensureBooleanIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, boolean_); onChanged(); return this; } /** *
         * "Array(bool)"
         * 
* * repeated bool boolean = 8; */ public Builder clearBoolean() { boolean_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } private java.util.List regularizer_ = java.util.Collections.emptyList(); private void ensureRegularizerIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { regularizer_ = new java.util.ArrayList(regularizer_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Regularizer, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder, com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder> regularizerBuilder_; /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public java.util.List getRegularizerList() { if (regularizerBuilder_ == null) { return java.util.Collections.unmodifiableList(regularizer_); } else { return regularizerBuilder_.getMessageList(); } } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public int getRegularizerCount() { if (regularizerBuilder_ == null) { return regularizer_.size(); } else { return regularizerBuilder_.getCount(); } } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getRegularizer(int index) { if (regularizerBuilder_ == null) { return regularizer_.get(index); } else { return regularizerBuilder_.getMessage(index); } } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public Builder setRegularizer( int index, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer value) { if (regularizerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegularizerIsMutable(); regularizer_.set(index, value); onChanged(); } else { regularizerBuilder_.setMessage(index, value); } return this; } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public Builder setRegularizer( int index, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder builderForValue) { if (regularizerBuilder_ == null) { ensureRegularizerIsMutable(); regularizer_.set(index, builderForValue.build()); onChanged(); } else { regularizerBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public Builder addRegularizer(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer value) { if (regularizerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegularizerIsMutable(); regularizer_.add(value); onChanged(); } else { regularizerBuilder_.addMessage(value); } return this; } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public Builder addRegularizer( int index, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer value) { if (regularizerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegularizerIsMutable(); regularizer_.add(index, value); onChanged(); } else { regularizerBuilder_.addMessage(index, value); } return this; } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public Builder addRegularizer( com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder builderForValue) { if (regularizerBuilder_ == null) { ensureRegularizerIsMutable(); regularizer_.add(builderForValue.build()); onChanged(); } else { regularizerBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public Builder addRegularizer( int index, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder builderForValue) { if (regularizerBuilder_ == null) { ensureRegularizerIsMutable(); regularizer_.add(index, builderForValue.build()); onChanged(); } else { regularizerBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public Builder addAllRegularizer( java.lang.Iterable values) { if (regularizerBuilder_ == null) { ensureRegularizerIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regularizer_); onChanged(); } else { regularizerBuilder_.addAllMessages(values); } return this; } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public Builder clearRegularizer() { if (regularizerBuilder_ == null) { regularizer_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { regularizerBuilder_.clear(); } return this; } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public Builder removeRegularizer(int index) { if (regularizerBuilder_ == null) { ensureRegularizerIsMutable(); regularizer_.remove(index); onChanged(); } else { regularizerBuilder_.remove(index); } return this; } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder getRegularizerBuilder( int index) { return getRegularizerFieldBuilder().getBuilder(index); } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder getRegularizerOrBuilder( int index) { if (regularizerBuilder_ == null) { return regularizer_.get(index); } else { return regularizerBuilder_.getMessageOrBuilder(index); } } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public java.util.List getRegularizerOrBuilderList() { if (regularizerBuilder_ != null) { return regularizerBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regularizer_); } } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder addRegularizerBuilder() { return getRegularizerFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance()); } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder addRegularizerBuilder( int index) { return getRegularizerFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance()); } /** *
         * "Array(Regularizer)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9; */ public java.util.List getRegularizerBuilderList() { return getRegularizerFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Regularizer, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder, com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder> getRegularizerFieldBuilder() { if (regularizerBuilder_ == null) { regularizerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Regularizer, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder, com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder>( regularizer_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); regularizer_ = null; } return regularizerBuilder_; } private java.util.List tensor_ = java.util.Collections.emptyList(); private void ensureTensorIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { tensor_ = new java.util.ArrayList(tensor_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> tensorBuilder_; /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public java.util.List getTensorList() { if (tensorBuilder_ == null) { return java.util.Collections.unmodifiableList(tensor_); } else { return tensorBuilder_.getMessageList(); } } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public int getTensorCount() { if (tensorBuilder_ == null) { return tensor_.size(); } else { return tensorBuilder_.getCount(); } } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getTensor(int index) { if (tensorBuilder_ == null) { return tensor_.get(index); } else { return tensorBuilder_.getMessage(index); } } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public Builder setTensor( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (tensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorIsMutable(); tensor_.set(index, value); onChanged(); } else { tensorBuilder_.setMessage(index, value); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public Builder setTensor( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.set(index, builderForValue.build()); onChanged(); } else { tensorBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public Builder addTensor(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (tensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorIsMutable(); tensor_.add(value); onChanged(); } else { tensorBuilder_.addMessage(value); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public Builder addTensor( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (tensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorIsMutable(); tensor_.add(index, value); onChanged(); } else { tensorBuilder_.addMessage(index, value); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public Builder addTensor( com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.add(builderForValue.build()); onChanged(); } else { tensorBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public Builder addTensor( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.add(index, builderForValue.build()); onChanged(); } else { tensorBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public Builder addAllTensor( java.lang.Iterable values) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tensor_); onChanged(); } else { tensorBuilder_.addAllMessages(values); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public Builder clearTensor() { if (tensorBuilder_ == null) { tensor_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { tensorBuilder_.clear(); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public Builder removeTensor(int index) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.remove(index); onChanged(); } else { tensorBuilder_.remove(index); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder getTensorBuilder( int index) { return getTensorFieldBuilder().getBuilder(index); } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getTensorOrBuilder( int index) { if (tensorBuilder_ == null) { return tensor_.get(index); } else { return tensorBuilder_.getMessageOrBuilder(index); } } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public java.util.List getTensorOrBuilderList() { if (tensorBuilder_ != null) { return tensorBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tensor_); } } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder addTensorBuilder() { return getTensorFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance()); } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder addTensorBuilder( int index) { return getTensorFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance()); } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10; */ public java.util.List getTensorBuilderList() { return getTensorFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> getTensorFieldBuilder() { if (tensorBuilder_ == null) { tensorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>( tensor_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); tensor_ = null; } return tensorBuilder_; } private java.util.List variableFormat_ = java.util.Collections.emptyList(); private void ensureVariableFormatIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { variableFormat_ = new java.util.ArrayList(variableFormat_); bitField0_ |= 0x00000400; } } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public java.util.List getVariableFormatList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.VarFormat>(variableFormat_, variableFormat_converter_); } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public int getVariableFormatCount() { return variableFormat_.size(); } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public com.intel.analytics.bigdl.serialization.Bigdl.VarFormat getVariableFormat(int index) { return variableFormat_converter_.convert(variableFormat_.get(index)); } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public Builder setVariableFormat( int index, com.intel.analytics.bigdl.serialization.Bigdl.VarFormat value) { if (value == null) { throw new NullPointerException(); } ensureVariableFormatIsMutable(); variableFormat_.set(index, value.getNumber()); onChanged(); return this; } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public Builder addVariableFormat(com.intel.analytics.bigdl.serialization.Bigdl.VarFormat value) { if (value == null) { throw new NullPointerException(); } ensureVariableFormatIsMutable(); variableFormat_.add(value.getNumber()); onChanged(); return this; } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public Builder addAllVariableFormat( java.lang.Iterable values) { ensureVariableFormatIsMutable(); for (com.intel.analytics.bigdl.serialization.Bigdl.VarFormat value : values) { variableFormat_.add(value.getNumber()); } onChanged(); return this; } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public Builder clearVariableFormat() { variableFormat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public java.util.List getVariableFormatValueList() { return java.util.Collections.unmodifiableList(variableFormat_); } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public int getVariableFormatValue(int index) { return variableFormat_.get(index); } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public Builder setVariableFormatValue( int index, int value) { ensureVariableFormatIsMutable(); variableFormat_.set(index, value); onChanged(); return this; } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public Builder addVariableFormatValue(int value) { ensureVariableFormatIsMutable(); variableFormat_.add(value); onChanged(); return this; } /** *
         * "Array(VariableFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11; */ public Builder addAllVariableFormatValue( java.lang.Iterable values) { ensureVariableFormatIsMutable(); for (int value : values) { variableFormat_.add(value); } onChanged(); return this; } private java.util.List initMethod_ = java.util.Collections.emptyList(); private void ensureInitMethodIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { initMethod_ = new java.util.ArrayList(initMethod_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.InitMethod, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder, com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder> initMethodBuilder_; /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public java.util.List getInitMethodList() { if (initMethodBuilder_ == null) { return java.util.Collections.unmodifiableList(initMethod_); } else { return initMethodBuilder_.getMessageList(); } } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public int getInitMethodCount() { if (initMethodBuilder_ == null) { return initMethod_.size(); } else { return initMethodBuilder_.getCount(); } } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getInitMethod(int index) { if (initMethodBuilder_ == null) { return initMethod_.get(index); } else { return initMethodBuilder_.getMessage(index); } } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public Builder setInitMethod( int index, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod value) { if (initMethodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitMethodIsMutable(); initMethod_.set(index, value); onChanged(); } else { initMethodBuilder_.setMessage(index, value); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public Builder setInitMethod( int index, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder builderForValue) { if (initMethodBuilder_ == null) { ensureInitMethodIsMutable(); initMethod_.set(index, builderForValue.build()); onChanged(); } else { initMethodBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public Builder addInitMethod(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod value) { if (initMethodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitMethodIsMutable(); initMethod_.add(value); onChanged(); } else { initMethodBuilder_.addMessage(value); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public Builder addInitMethod( int index, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod value) { if (initMethodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitMethodIsMutable(); initMethod_.add(index, value); onChanged(); } else { initMethodBuilder_.addMessage(index, value); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public Builder addInitMethod( com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder builderForValue) { if (initMethodBuilder_ == null) { ensureInitMethodIsMutable(); initMethod_.add(builderForValue.build()); onChanged(); } else { initMethodBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public Builder addInitMethod( int index, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder builderForValue) { if (initMethodBuilder_ == null) { ensureInitMethodIsMutable(); initMethod_.add(index, builderForValue.build()); onChanged(); } else { initMethodBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public Builder addAllInitMethod( java.lang.Iterable values) { if (initMethodBuilder_ == null) { ensureInitMethodIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, initMethod_); onChanged(); } else { initMethodBuilder_.addAllMessages(values); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public Builder clearInitMethod() { if (initMethodBuilder_ == null) { initMethod_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { initMethodBuilder_.clear(); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public Builder removeInitMethod(int index) { if (initMethodBuilder_ == null) { ensureInitMethodIsMutable(); initMethod_.remove(index); onChanged(); } else { initMethodBuilder_.remove(index); } return this; } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder getInitMethodBuilder( int index) { return getInitMethodFieldBuilder().getBuilder(index); } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder getInitMethodOrBuilder( int index) { if (initMethodBuilder_ == null) { return initMethod_.get(index); } else { return initMethodBuilder_.getMessageOrBuilder(index); } } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public java.util.List getInitMethodOrBuilderList() { if (initMethodBuilder_ != null) { return initMethodBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(initMethod_); } } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder addInitMethodBuilder() { return getInitMethodFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance()); } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder addInitMethodBuilder( int index) { return getInitMethodFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance()); } /** *
         * "Array(BigDLTensor)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12; */ public java.util.List getInitMethodBuilderList() { return getInitMethodFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.InitMethod, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder, com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder> getInitMethodFieldBuilder() { if (initMethodBuilder_ == null) { initMethodBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.InitMethod, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder, com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder>( initMethod_, ((bitField0_ & 0x00000800) == 0x00000800), getParentForChildren(), isClean()); initMethod_ = null; } return initMethodBuilder_; } private java.util.List bigDLModule_ = java.util.Collections.emptyList(); private void ensureBigDLModuleIsMutable() { if (!((bitField0_ & 0x00001000) == 0x00001000)) { bigDLModule_ = new java.util.ArrayList(bigDLModule_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder> bigDLModuleBuilder_; /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public java.util.List getBigDLModuleList() { if (bigDLModuleBuilder_ == null) { return java.util.Collections.unmodifiableList(bigDLModule_); } else { return bigDLModuleBuilder_.getMessageList(); } } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public int getBigDLModuleCount() { if (bigDLModuleBuilder_ == null) { return bigDLModule_.size(); } else { return bigDLModuleBuilder_.getCount(); } } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getBigDLModule(int index) { if (bigDLModuleBuilder_ == null) { return bigDLModule_.get(index); } else { return bigDLModuleBuilder_.getMessage(index); } } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public Builder setBigDLModule( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) { if (bigDLModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBigDLModuleIsMutable(); bigDLModule_.set(index, value); onChanged(); } else { bigDLModuleBuilder_.setMessage(index, value); } return this; } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public Builder setBigDLModule( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder builderForValue) { if (bigDLModuleBuilder_ == null) { ensureBigDLModuleIsMutable(); bigDLModule_.set(index, builderForValue.build()); onChanged(); } else { bigDLModuleBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public Builder addBigDLModule(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) { if (bigDLModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBigDLModuleIsMutable(); bigDLModule_.add(value); onChanged(); } else { bigDLModuleBuilder_.addMessage(value); } return this; } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public Builder addBigDLModule( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) { if (bigDLModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBigDLModuleIsMutable(); bigDLModule_.add(index, value); onChanged(); } else { bigDLModuleBuilder_.addMessage(index, value); } return this; } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public Builder addBigDLModule( com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder builderForValue) { if (bigDLModuleBuilder_ == null) { ensureBigDLModuleIsMutable(); bigDLModule_.add(builderForValue.build()); onChanged(); } else { bigDLModuleBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public Builder addBigDLModule( int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder builderForValue) { if (bigDLModuleBuilder_ == null) { ensureBigDLModuleIsMutable(); bigDLModule_.add(index, builderForValue.build()); onChanged(); } else { bigDLModuleBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public Builder addAllBigDLModule( java.lang.Iterable values) { if (bigDLModuleBuilder_ == null) { ensureBigDLModuleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bigDLModule_); onChanged(); } else { bigDLModuleBuilder_.addAllMessages(values); } return this; } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public Builder clearBigDLModule() { if (bigDLModuleBuilder_ == null) { bigDLModule_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { bigDLModuleBuilder_.clear(); } return this; } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public Builder removeBigDLModule(int index) { if (bigDLModuleBuilder_ == null) { ensureBigDLModuleIsMutable(); bigDLModule_.remove(index); onChanged(); } else { bigDLModuleBuilder_.remove(index); } return this; } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder getBigDLModuleBuilder( int index) { return getBigDLModuleFieldBuilder().getBuilder(index); } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getBigDLModuleOrBuilder( int index) { if (bigDLModuleBuilder_ == null) { return bigDLModule_.get(index); } else { return bigDLModuleBuilder_.getMessageOrBuilder(index); } } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public java.util.List getBigDLModuleOrBuilderList() { if (bigDLModuleBuilder_ != null) { return bigDLModuleBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(bigDLModule_); } } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder addBigDLModuleBuilder() { return getBigDLModuleFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance()); } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder addBigDLModuleBuilder( int index) { return getBigDLModuleFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance()); } /** *
         * "Array(BigDLModel)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13; */ public java.util.List getBigDLModuleBuilderList() { return getBigDLModuleFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder> getBigDLModuleFieldBuilder() { if (bigDLModuleBuilder_ == null) { bigDLModuleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder>( bigDLModule_, ((bitField0_ & 0x00001000) == 0x00001000), getParentForChildren(), isClean()); bigDLModule_ = null; } return bigDLModuleBuilder_; } private java.util.List nameAttrList_ = java.util.Collections.emptyList(); private void ensureNameAttrListIsMutable() { if (!((bitField0_ & 0x00002000) == 0x00002000)) { nameAttrList_ = new java.util.ArrayList(nameAttrList_); bitField0_ |= 0x00002000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder> nameAttrListBuilder_; /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public java.util.List getNameAttrListList() { if (nameAttrListBuilder_ == null) { return java.util.Collections.unmodifiableList(nameAttrList_); } else { return nameAttrListBuilder_.getMessageList(); } } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public int getNameAttrListCount() { if (nameAttrListBuilder_ == null) { return nameAttrList_.size(); } else { return nameAttrListBuilder_.getCount(); } } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getNameAttrList(int index) { if (nameAttrListBuilder_ == null) { return nameAttrList_.get(index); } else { return nameAttrListBuilder_.getMessage(index); } } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public Builder setNameAttrList( int index, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList value) { if (nameAttrListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNameAttrListIsMutable(); nameAttrList_.set(index, value); onChanged(); } else { nameAttrListBuilder_.setMessage(index, value); } return this; } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public Builder setNameAttrList( int index, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder builderForValue) { if (nameAttrListBuilder_ == null) { ensureNameAttrListIsMutable(); nameAttrList_.set(index, builderForValue.build()); onChanged(); } else { nameAttrListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public Builder addNameAttrList(com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList value) { if (nameAttrListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNameAttrListIsMutable(); nameAttrList_.add(value); onChanged(); } else { nameAttrListBuilder_.addMessage(value); } return this; } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public Builder addNameAttrList( int index, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList value) { if (nameAttrListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNameAttrListIsMutable(); nameAttrList_.add(index, value); onChanged(); } else { nameAttrListBuilder_.addMessage(index, value); } return this; } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public Builder addNameAttrList( com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder builderForValue) { if (nameAttrListBuilder_ == null) { ensureNameAttrListIsMutable(); nameAttrList_.add(builderForValue.build()); onChanged(); } else { nameAttrListBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public Builder addNameAttrList( int index, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder builderForValue) { if (nameAttrListBuilder_ == null) { ensureNameAttrListIsMutable(); nameAttrList_.add(index, builderForValue.build()); onChanged(); } else { nameAttrListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public Builder addAllNameAttrList( java.lang.Iterable values) { if (nameAttrListBuilder_ == null) { ensureNameAttrListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nameAttrList_); onChanged(); } else { nameAttrListBuilder_.addAllMessages(values); } return this; } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public Builder clearNameAttrList() { if (nameAttrListBuilder_ == null) { nameAttrList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { nameAttrListBuilder_.clear(); } return this; } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public Builder removeNameAttrList(int index) { if (nameAttrListBuilder_ == null) { ensureNameAttrListIsMutable(); nameAttrList_.remove(index); onChanged(); } else { nameAttrListBuilder_.remove(index); } return this; } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder getNameAttrListBuilder( int index) { return getNameAttrListFieldBuilder().getBuilder(index); } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder getNameAttrListOrBuilder( int index) { if (nameAttrListBuilder_ == null) { return nameAttrList_.get(index); } else { return nameAttrListBuilder_.getMessageOrBuilder(index); } } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public java.util.List getNameAttrListOrBuilderList() { if (nameAttrListBuilder_ != null) { return nameAttrListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nameAttrList_); } } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder addNameAttrListBuilder() { return getNameAttrListFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance()); } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder addNameAttrListBuilder( int index) { return getNameAttrListFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance()); } /** *
         * 
* * repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14; */ public java.util.List getNameAttrListBuilderList() { return getNameAttrListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder> getNameAttrListFieldBuilder() { if (nameAttrListBuilder_ == null) { nameAttrListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder>( nameAttrList_, ((bitField0_ & 0x00002000) == 0x00002000), getParentForChildren(), isClean()); nameAttrList_ = null; } return nameAttrListBuilder_; } private java.util.List dataFormat_ = java.util.Collections.emptyList(); private void ensureDataFormatIsMutable() { if (!((bitField0_ & 0x00004000) == 0x00004000)) { dataFormat_ = new java.util.ArrayList(dataFormat_); bitField0_ |= 0x00004000; } } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public java.util.List getDataFormatList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat>(dataFormat_, dataFormat_converter_); } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public int getDataFormatCount() { return dataFormat_.size(); } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat getDataFormat(int index) { return dataFormat_converter_.convert(dataFormat_.get(index)); } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public Builder setDataFormat( int index, com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat value) { if (value == null) { throw new NullPointerException(); } ensureDataFormatIsMutable(); dataFormat_.set(index, value.getNumber()); onChanged(); return this; } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public Builder addDataFormat(com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat value) { if (value == null) { throw new NullPointerException(); } ensureDataFormatIsMutable(); dataFormat_.add(value.getNumber()); onChanged(); return this; } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public Builder addAllDataFormat( java.lang.Iterable values) { ensureDataFormatIsMutable(); for (com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat value : values) { dataFormat_.add(value.getNumber()); } onChanged(); return this; } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public Builder clearDataFormat() { dataFormat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public java.util.List getDataFormatValueList() { return java.util.Collections.unmodifiableList(dataFormat_); } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public int getDataFormatValue(int index) { return dataFormat_.get(index); } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public Builder setDataFormatValue( int index, int value) { ensureDataFormatIsMutable(); dataFormat_.set(index, value); onChanged(); return this; } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public Builder addDataFormatValue(int value) { ensureDataFormatIsMutable(); dataFormat_.add(value); onChanged(); return this; } /** *
         * "Array(DataFormat)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15; */ public Builder addAllDataFormatValue( java.lang.Iterable values) { ensureDataFormatIsMutable(); for (int value : values) { dataFormat_.add(value); } onChanged(); return this; } private java.util.List custom_ = java.util.Collections.emptyList(); private void ensureCustomIsMutable() { if (!((bitField0_ & 0x00008000) == 0x00008000)) { custom_ = new java.util.ArrayList(custom_); bitField0_ |= 0x00008000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> customBuilder_; /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public java.util.List getCustomList() { if (customBuilder_ == null) { return java.util.Collections.unmodifiableList(custom_); } else { return customBuilder_.getMessageList(); } } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public int getCustomCount() { if (customBuilder_ == null) { return custom_.size(); } else { return customBuilder_.getCount(); } } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public com.google.protobuf.Any getCustom(int index) { if (customBuilder_ == null) { return custom_.get(index); } else { return customBuilder_.getMessage(index); } } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public Builder setCustom( int index, com.google.protobuf.Any value) { if (customBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomIsMutable(); custom_.set(index, value); onChanged(); } else { customBuilder_.setMessage(index, value); } return this; } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public Builder setCustom( int index, com.google.protobuf.Any.Builder builderForValue) { if (customBuilder_ == null) { ensureCustomIsMutable(); custom_.set(index, builderForValue.build()); onChanged(); } else { customBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public Builder addCustom(com.google.protobuf.Any value) { if (customBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomIsMutable(); custom_.add(value); onChanged(); } else { customBuilder_.addMessage(value); } return this; } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public Builder addCustom( int index, com.google.protobuf.Any value) { if (customBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomIsMutable(); custom_.add(index, value); onChanged(); } else { customBuilder_.addMessage(index, value); } return this; } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public Builder addCustom( com.google.protobuf.Any.Builder builderForValue) { if (customBuilder_ == null) { ensureCustomIsMutable(); custom_.add(builderForValue.build()); onChanged(); } else { customBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public Builder addCustom( int index, com.google.protobuf.Any.Builder builderForValue) { if (customBuilder_ == null) { ensureCustomIsMutable(); custom_.add(index, builderForValue.build()); onChanged(); } else { customBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public Builder addAllCustom( java.lang.Iterable values) { if (customBuilder_ == null) { ensureCustomIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, custom_); onChanged(); } else { customBuilder_.addAllMessages(values); } return this; } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public Builder clearCustom() { if (customBuilder_ == null) { custom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { customBuilder_.clear(); } return this; } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public Builder removeCustom(int index) { if (customBuilder_ == null) { ensureCustomIsMutable(); custom_.remove(index); onChanged(); } else { customBuilder_.remove(index); } return this; } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public com.google.protobuf.Any.Builder getCustomBuilder( int index) { return getCustomFieldBuilder().getBuilder(index); } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public com.google.protobuf.AnyOrBuilder getCustomOrBuilder( int index) { if (customBuilder_ == null) { return custom_.get(index); } else { return customBuilder_.getMessageOrBuilder(index); } } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public java.util.List getCustomOrBuilderList() { if (customBuilder_ != null) { return customBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(custom_); } } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public com.google.protobuf.Any.Builder addCustomBuilder() { return getCustomFieldBuilder().addBuilder( com.google.protobuf.Any.getDefaultInstance()); } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public com.google.protobuf.Any.Builder addCustomBuilder( int index) { return getCustomFieldBuilder().addBuilder( index, com.google.protobuf.Any.getDefaultInstance()); } /** *
         * "Array(Any)"
         * 
* * repeated .google.protobuf.Any custom = 16; */ public java.util.List getCustomBuilderList() { return getCustomFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getCustomFieldBuilder() { if (customBuilder_ == null) { customBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( custom_, ((bitField0_ & 0x00008000) == 0x00008000), getParentForChildren(), isClean()); custom_ = null; } return customBuilder_; } private java.util.List shape_ = java.util.Collections.emptyList(); private void ensureShapeIsMutable() { if (!((bitField0_ & 0x00010000) == 0x00010000)) { shape_ = new java.util.ArrayList(shape_); bitField0_ |= 0x00010000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> shapeBuilder_; /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public java.util.List getShapeList() { if (shapeBuilder_ == null) { return java.util.Collections.unmodifiableList(shape_); } else { return shapeBuilder_.getMessageList(); } } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public int getShapeCount() { if (shapeBuilder_ == null) { return shape_.size(); } else { return shapeBuilder_.getCount(); } } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape(int index) { if (shapeBuilder_ == null) { return shape_.get(index); } else { return shapeBuilder_.getMessage(index); } } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public Builder setShape( int index, com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.set(index, value); onChanged(); } else { shapeBuilder_.setMessage(index, value); } return this; } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public Builder setShape( int index, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.set(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public Builder addShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.add(value); onChanged(); } else { shapeBuilder_.addMessage(value); } return this; } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public Builder addShape( int index, com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.add(index, value); onChanged(); } else { shapeBuilder_.addMessage(index, value); } return this; } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public Builder addShape( com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public Builder addShape( int index, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public Builder addAllShape( java.lang.Iterable values) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shape_); onChanged(); } else { shapeBuilder_.addAllMessages(values); } return this; } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public Builder clearShape() { if (shapeBuilder_ == null) { shape_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); } else { shapeBuilder_.clear(); } return this; } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public Builder removeShape(int index) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.remove(index); onChanged(); } else { shapeBuilder_.remove(index); } return this; } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder getShapeBuilder( int index) { return getShapeFieldBuilder().getBuilder(index); } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder( int index) { if (shapeBuilder_ == null) { return shape_.get(index); } else { return shapeBuilder_.getMessageOrBuilder(index); } } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public java.util.List getShapeOrBuilderList() { if (shapeBuilder_ != null) { return shapeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shape_); } } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder addShapeBuilder() { return getShapeFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance()); } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder addShapeBuilder( int index) { return getShapeFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance()); } /** *
         * "Array(Shape)"
         * 
* * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17; */ public java.util.List getShapeBuilderList() { return getShapeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { shapeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>( shape_, ((bitField0_ & 0x00010000) == 0x00010000), getParentForChildren(), isClean()); shape_ = null; } return shapeBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue) } // @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue) private static final com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue(); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ArrayValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ArrayValue(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int valueCase_ = 0; private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite { INT32VALUE(3), INT64VALUE(4), FLOATVALUE(5), DOUBLEVALUE(6), STRINGVALUE(7), BOOLVALUE(8), REGULARIZERVALUE(9), TENSORVALUE(10), VARIABLEFORMATVALUE(11), INITMETHODVALUE(12), BIGDLMODULEVALUE(13), NAMEATTRLISTVALUE(14), ARRAYVALUE(15), DATAFORMATVALUE(16), CUSTOMVALUE(17), SHAPE(18), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 3: return INT32VALUE; case 4: return INT64VALUE; case 5: return FLOATVALUE; case 6: return DOUBLEVALUE; case 7: return STRINGVALUE; case 8: return BOOLVALUE; case 9: return REGULARIZERVALUE; case 10: return TENSORVALUE; case 11: return VARIABLEFORMATVALUE; case 12: return INITMETHODVALUE; case 13: return BIGDLMODULEVALUE; case 14: return NAMEATTRLISTVALUE; case 15: return ARRAYVALUE; case 16: return DATAFORMATVALUE; case 17: return CUSTOMVALUE; case 18: return SHAPE; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int DATATYPE_FIELD_NUMBER = 1; private int dataType_; /** * .com.intel.analytics.bigdl.serialization.DataType dataType = 1; */ public int getDataTypeValue() { return dataType_; } /** * .com.intel.analytics.bigdl.serialization.DataType dataType = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDataType() { com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(dataType_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result; } public static final int SUBTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object subType_; /** *
     * specific for custom data
     * 
* * string subType = 2; */ public java.lang.String getSubType() { java.lang.Object ref = subType_; 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(); subType_ = s; return s; } } /** *
     * specific for custom data
     * 
* * string subType = 2; */ public com.google.protobuf.ByteString getSubTypeBytes() { java.lang.Object ref = subType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INT32VALUE_FIELD_NUMBER = 3; /** *
     * int32 value
     * 
* * int32 int32Value = 3; */ public int getInt32Value() { if (valueCase_ == 3) { return (java.lang.Integer) value_; } return 0; } public static final int INT64VALUE_FIELD_NUMBER = 4; /** *
     *int64 value
     * 
* * int64 int64Value = 4; */ public long getInt64Value() { if (valueCase_ == 4) { return (java.lang.Long) value_; } return 0L; } public static final int FLOATVALUE_FIELD_NUMBER = 5; /** *
     *float value
     * 
* * float floatValue = 5; */ public float getFloatValue() { if (valueCase_ == 5) { return (java.lang.Float) value_; } return 0F; } public static final int DOUBLEVALUE_FIELD_NUMBER = 6; /** *
     *float value
     * 
* * double doubleValue = 6; */ public double getDoubleValue() { if (valueCase_ == 6) { return (java.lang.Double) value_; } return 0D; } public static final int STRINGVALUE_FIELD_NUMBER = 7; /** *
     * string value
     * 
* * string stringValue = 7; */ public java.lang.String getStringValue() { java.lang.Object ref = ""; if (valueCase_ == 7) { 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(); if (valueCase_ == 7) { value_ = s; } return s; } } /** *
     * string value
     * 
* * string stringValue = 7; */ public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 7) { ref = value_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 7) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BOOLVALUE_FIELD_NUMBER = 8; /** *
     * bool value
     * 
* * bool boolValue = 8; */ public boolean getBoolValue() { if (valueCase_ == 8) { return (java.lang.Boolean) value_; } return false; } public static final int REGULARIZERVALUE_FIELD_NUMBER = 9; /** *
     * Regularizer
     * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public boolean hasRegularizerValue() { return valueCase_ == 9; } /** *
     * Regularizer
     * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getRegularizerValue() { if (valueCase_ == 9) { return (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance(); } /** *
     * Regularizer
     * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder getRegularizerValueOrBuilder() { if (valueCase_ == 9) { return (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance(); } public static final int TENSORVALUE_FIELD_NUMBER = 10; /** *
     *tensor value
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public boolean hasTensorValue() { return valueCase_ == 10; } /** *
     *tensor value
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getTensorValue() { if (valueCase_ == 10) { return (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance(); } /** *
     *tensor value
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getTensorValueOrBuilder() { if (valueCase_ == 10) { return (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance(); } public static final int VARIABLEFORMATVALUE_FIELD_NUMBER = 11; /** *
     *Variable format
     * 
* * .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11; */ public int getVariableFormatValueValue() { if (valueCase_ == 11) { return (java.lang.Integer) value_; } return 0; } /** *
     *Variable format
     * 
* * .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11; */ public com.intel.analytics.bigdl.serialization.Bigdl.VarFormat getVariableFormatValue() { if (valueCase_ == 11) { com.intel.analytics.bigdl.serialization.Bigdl.VarFormat result = com.intel.analytics.bigdl.serialization.Bigdl.VarFormat.valueOf( (java.lang.Integer) value_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.VarFormat.UNRECOGNIZED : result; } return com.intel.analytics.bigdl.serialization.Bigdl.VarFormat.EMPTY_FORMAT; } public static final int INITMETHODVALUE_FIELD_NUMBER = 12; /** *
     * init method
     * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public boolean hasInitMethodValue() { return valueCase_ == 12; } /** *
     * init method
     * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getInitMethodValue() { if (valueCase_ == 12) { return (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance(); } /** *
     * init method
     * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder getInitMethodValueOrBuilder() { if (valueCase_ == 12) { return (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance(); } public static final int BIGDLMODULEVALUE_FIELD_NUMBER = 13; /** *
     * big DL module
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public boolean hasBigDLModuleValue() { return valueCase_ == 13; } /** *
     * big DL module
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getBigDLModuleValue() { if (valueCase_ == 13) { return (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance(); } /** *
     * big DL module
     * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getBigDLModuleValueOrBuilder() { if (valueCase_ == 13) { return (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance(); } public static final int NAMEATTRLISTVALUE_FIELD_NUMBER = 14; /** *
     * name attribute list
     * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public boolean hasNameAttrListValue() { return valueCase_ == 14; } /** *
     * name attribute list
     * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getNameAttrListValue() { if (valueCase_ == 14) { return (com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance(); } /** *
     * name attribute list
     * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder getNameAttrListValueOrBuilder() { if (valueCase_ == 14) { return (com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance(); } public static final int ARRAYVALUE_FIELD_NUMBER = 15; /** *
     *array value of any type
     * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public boolean hasArrayValue() { return valueCase_ == 15; } /** *
     *array value of any type
     * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue getArrayValue() { if (valueCase_ == 15) { return (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance(); } /** *
     *array value of any type
     * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValueOrBuilder getArrayValueOrBuilder() { if (valueCase_ == 15) { return (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance(); } public static final int DATAFORMATVALUE_FIELD_NUMBER = 16; /** *
     * data format
     * 
* * .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16; */ public int getDataFormatValueValue() { if (valueCase_ == 16) { return (java.lang.Integer) value_; } return 0; } /** *
     * data format
     * 
* * .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16; */ public com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat getDataFormatValue() { if (valueCase_ == 16) { com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat result = com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat.valueOf( (java.lang.Integer) value_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat.UNRECOGNIZED : result; } return com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat.NCHW; } public static final int CUSTOMVALUE_FIELD_NUMBER = 17; /** *
     * custom value
     * 
* * .google.protobuf.Any customValue = 17; */ public boolean hasCustomValue() { return valueCase_ == 17; } /** *
     * custom value
     * 
* * .google.protobuf.Any customValue = 17; */ public com.google.protobuf.Any getCustomValue() { if (valueCase_ == 17) { return (com.google.protobuf.Any) value_; } return com.google.protobuf.Any.getDefaultInstance(); } /** *
     * custom value
     * 
* * .google.protobuf.Any customValue = 17; */ public com.google.protobuf.AnyOrBuilder getCustomValueOrBuilder() { if (valueCase_ == 17) { return (com.google.protobuf.Any) value_; } return com.google.protobuf.Any.getDefaultInstance(); } public static final int SHAPE_FIELD_NUMBER = 18; /** *
     * Shape value
     * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public boolean hasShape() { return valueCase_ == 18; } /** *
     * Shape value
     * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape() { if (valueCase_ == 18) { return (com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance(); } /** *
     * Shape value
     * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder() { if (valueCase_ == 18) { return (com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dataType_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) { output.writeEnum(1, dataType_); } if (!getSubTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subType_); } if (valueCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) value_)); } if (valueCase_ == 4) { output.writeInt64( 4, (long)((java.lang.Long) value_)); } if (valueCase_ == 5) { output.writeFloat( 5, (float)((java.lang.Float) value_)); } if (valueCase_ == 6) { output.writeDouble( 6, (double)((java.lang.Double) value_)); } if (valueCase_ == 7) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, value_); } if (valueCase_ == 8) { output.writeBool( 8, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 9) { output.writeMessage(9, (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_); } if (valueCase_ == 10) { output.writeMessage(10, (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_); } if (valueCase_ == 11) { output.writeEnum(11, ((java.lang.Integer) value_)); } if (valueCase_ == 12) { output.writeMessage(12, (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_); } if (valueCase_ == 13) { output.writeMessage(13, (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_); } if (valueCase_ == 14) { output.writeMessage(14, (com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_); } if (valueCase_ == 15) { output.writeMessage(15, (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_); } if (valueCase_ == 16) { output.writeEnum(16, ((java.lang.Integer) value_)); } if (valueCase_ == 17) { output.writeMessage(17, (com.google.protobuf.Any) value_); } if (valueCase_ == 18) { output.writeMessage(18, (com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dataType_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, dataType_); } if (!getSubTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subType_); } if (valueCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) value_)); } if (valueCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 4, (long)((java.lang.Long) value_)); } if (valueCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeFloatSize( 5, (float)((java.lang.Float) value_)); } if (valueCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 6, (double)((java.lang.Double) value_)); } if (valueCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, value_); } if (valueCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 8, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_); } if (valueCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_); } if (valueCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, ((java.lang.Integer) value_)); } if (valueCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_); } if (valueCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_); } if (valueCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_); } if (valueCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_); } if (valueCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(16, ((java.lang.Integer) value_)); } if (valueCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (com.google.protobuf.Any) value_); } if (valueCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_); } size += unknownFields.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.intel.analytics.bigdl.serialization.Bigdl.AttrValue)) { return super.equals(obj); } com.intel.analytics.bigdl.serialization.Bigdl.AttrValue other = (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue) obj; boolean result = true; result = result && dataType_ == other.dataType_; result = result && getSubType() .equals(other.getSubType()); result = result && getValueCase().equals( other.getValueCase()); if (!result) return false; switch (valueCase_) { case 3: result = result && (getInt32Value() == other.getInt32Value()); break; case 4: result = result && (getInt64Value() == other.getInt64Value()); break; case 5: result = result && ( java.lang.Float.floatToIntBits(getFloatValue()) == java.lang.Float.floatToIntBits( other.getFloatValue())); break; case 6: result = result && ( java.lang.Double.doubleToLongBits(getDoubleValue()) == java.lang.Double.doubleToLongBits( other.getDoubleValue())); break; case 7: result = result && getStringValue() .equals(other.getStringValue()); break; case 8: result = result && (getBoolValue() == other.getBoolValue()); break; case 9: result = result && getRegularizerValue() .equals(other.getRegularizerValue()); break; case 10: result = result && getTensorValue() .equals(other.getTensorValue()); break; case 11: result = result && getVariableFormatValueValue() == other.getVariableFormatValueValue(); break; case 12: result = result && getInitMethodValue() .equals(other.getInitMethodValue()); break; case 13: result = result && getBigDLModuleValue() .equals(other.getBigDLModuleValue()); break; case 14: result = result && getNameAttrListValue() .equals(other.getNameAttrListValue()); break; case 15: result = result && getArrayValue() .equals(other.getArrayValue()); break; case 16: result = result && getDataFormatValueValue() == other.getDataFormatValueValue(); break; case 17: result = result && getCustomValue() .equals(other.getCustomValue()); break; case 18: result = result && getShape() .equals(other.getShape()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; hash = (37 * hash) + SUBTYPE_FIELD_NUMBER; hash = (53 * hash) + getSubType().hashCode(); switch (valueCase_) { case 3: hash = (37 * hash) + INT32VALUE_FIELD_NUMBER; hash = (53 * hash) + getInt32Value(); break; case 4: hash = (37 * hash) + INT64VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInt64Value()); break; case 5: hash = (37 * hash) + FLOATVALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFloatValue()); break; case 6: hash = (37 * hash) + DOUBLEVALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 7: hash = (37 * hash) + STRINGVALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); break; case 8: hash = (37 * hash) + BOOLVALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBoolValue()); break; case 9: hash = (37 * hash) + REGULARIZERVALUE_FIELD_NUMBER; hash = (53 * hash) + getRegularizerValue().hashCode(); break; case 10: hash = (37 * hash) + TENSORVALUE_FIELD_NUMBER; hash = (53 * hash) + getTensorValue().hashCode(); break; case 11: hash = (37 * hash) + VARIABLEFORMATVALUE_FIELD_NUMBER; hash = (53 * hash) + getVariableFormatValueValue(); break; case 12: hash = (37 * hash) + INITMETHODVALUE_FIELD_NUMBER; hash = (53 * hash) + getInitMethodValue().hashCode(); break; case 13: hash = (37 * hash) + BIGDLMODULEVALUE_FIELD_NUMBER; hash = (53 * hash) + getBigDLModuleValue().hashCode(); break; case 14: hash = (37 * hash) + NAMEATTRLISTVALUE_FIELD_NUMBER; hash = (53 * hash) + getNameAttrListValue().hashCode(); break; case 15: hash = (37 * hash) + ARRAYVALUE_FIELD_NUMBER; hash = (53 * hash) + getArrayValue().hashCode(); break; case 16: hash = (37 * hash) + DATAFORMATVALUE_FIELD_NUMBER; hash = (53 * hash) + getDataFormatValueValue(); break; case 17: hash = (37 * hash) + CUSTOMVALUE_FIELD_NUMBER; hash = (53 * hash) + getCustomValue().hashCode(); break; case 18: hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShape().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue 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.intel.analytics.bigdl.serialization.Bigdl.AttrValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue 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.intel.analytics.bigdl.serialization.Bigdl.AttrValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.intel.analytics.bigdl.serialization.AttrValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.AttrValue) com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.class, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder.class); } // Construct using com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); dataType_ = 0; subType_ = ""; valueCase_ = 0; value_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_descriptor; } public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getDefaultInstanceForType() { return com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance(); } public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue build() { com.intel.analytics.bigdl.serialization.Bigdl.AttrValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue buildPartial() { com.intel.analytics.bigdl.serialization.Bigdl.AttrValue result = new com.intel.analytics.bigdl.serialization.Bigdl.AttrValue(this); result.dataType_ = dataType_; result.subType_ = subType_; if (valueCase_ == 3) { result.value_ = value_; } if (valueCase_ == 4) { result.value_ = value_; } if (valueCase_ == 5) { result.value_ = value_; } if (valueCase_ == 6) { result.value_ = value_; } if (valueCase_ == 7) { result.value_ = value_; } if (valueCase_ == 8) { result.value_ = value_; } if (valueCase_ == 9) { if (regularizerValueBuilder_ == null) { result.value_ = value_; } else { result.value_ = regularizerValueBuilder_.build(); } } if (valueCase_ == 10) { if (tensorValueBuilder_ == null) { result.value_ = value_; } else { result.value_ = tensorValueBuilder_.build(); } } if (valueCase_ == 11) { result.value_ = value_; } if (valueCase_ == 12) { if (initMethodValueBuilder_ == null) { result.value_ = value_; } else { result.value_ = initMethodValueBuilder_.build(); } } if (valueCase_ == 13) { if (bigDLModuleValueBuilder_ == null) { result.value_ = value_; } else { result.value_ = bigDLModuleValueBuilder_.build(); } } if (valueCase_ == 14) { if (nameAttrListValueBuilder_ == null) { result.value_ = value_; } else { result.value_ = nameAttrListValueBuilder_.build(); } } if (valueCase_ == 15) { if (arrayValueBuilder_ == null) { result.value_ = value_; } else { result.value_ = arrayValueBuilder_.build(); } } if (valueCase_ == 16) { result.value_ = value_; } if (valueCase_ == 17) { if (customValueBuilder_ == null) { result.value_ = value_; } else { result.value_ = customValueBuilder_.build(); } } if (valueCase_ == 18) { if (shapeBuilder_ == null) { result.value_ = value_; } else { result.value_ = shapeBuilder_.build(); } } result.valueCase_ = valueCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.AttrValue) { return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.AttrValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue other) { if (other == com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance()) return this; if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } if (!other.getSubType().isEmpty()) { subType_ = other.subType_; onChanged(); } switch (other.getValueCase()) { case INT32VALUE: { setInt32Value(other.getInt32Value()); break; } case INT64VALUE: { setInt64Value(other.getInt64Value()); break; } case FLOATVALUE: { setFloatValue(other.getFloatValue()); break; } case DOUBLEVALUE: { setDoubleValue(other.getDoubleValue()); break; } case STRINGVALUE: { valueCase_ = 7; value_ = other.value_; onChanged(); break; } case BOOLVALUE: { setBoolValue(other.getBoolValue()); break; } case REGULARIZERVALUE: { mergeRegularizerValue(other.getRegularizerValue()); break; } case TENSORVALUE: { mergeTensorValue(other.getTensorValue()); break; } case VARIABLEFORMATVALUE: { setVariableFormatValueValue(other.getVariableFormatValueValue()); break; } case INITMETHODVALUE: { mergeInitMethodValue(other.getInitMethodValue()); break; } case BIGDLMODULEVALUE: { mergeBigDLModuleValue(other.getBigDLModuleValue()); break; } case NAMEATTRLISTVALUE: { mergeNameAttrListValue(other.getNameAttrListValue()); break; } case ARRAYVALUE: { mergeArrayValue(other.getArrayValue()); break; } case DATAFORMATVALUE: { setDataFormatValueValue(other.getDataFormatValueValue()); break; } case CUSTOMVALUE: { mergeCustomValue(other.getCustomValue()); break; } case SHAPE: { mergeShape(other.getShape()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.intel.analytics.bigdl.serialization.Bigdl.AttrValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int dataType_ = 0; /** * .com.intel.analytics.bigdl.serialization.DataType dataType = 1; */ public int getDataTypeValue() { return dataType_; } /** * .com.intel.analytics.bigdl.serialization.DataType dataType = 1; */ public Builder setDataTypeValue(int value) { dataType_ = value; onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.DataType dataType = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDataType() { com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(dataType_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result; } /** * .com.intel.analytics.bigdl.serialization.DataType dataType = 1; */ public Builder setDataType(com.intel.analytics.bigdl.serialization.Bigdl.DataType value) { if (value == null) { throw new NullPointerException(); } dataType_ = value.getNumber(); onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.DataType dataType = 1; */ public Builder clearDataType() { dataType_ = 0; onChanged(); return this; } private java.lang.Object subType_ = ""; /** *
       * specific for custom data
       * 
* * string subType = 2; */ public java.lang.String getSubType() { java.lang.Object ref = subType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * specific for custom data
       * 
* * string subType = 2; */ public com.google.protobuf.ByteString getSubTypeBytes() { java.lang.Object ref = subType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * specific for custom data
       * 
* * string subType = 2; */ public Builder setSubType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subType_ = value; onChanged(); return this; } /** *
       * specific for custom data
       * 
* * string subType = 2; */ public Builder clearSubType() { subType_ = getDefaultInstance().getSubType(); onChanged(); return this; } /** *
       * specific for custom data
       * 
* * string subType = 2; */ public Builder setSubTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subType_ = value; onChanged(); return this; } /** *
       * int32 value
       * 
* * int32 int32Value = 3; */ public int getInt32Value() { if (valueCase_ == 3) { return (java.lang.Integer) value_; } return 0; } /** *
       * int32 value
       * 
* * int32 int32Value = 3; */ public Builder setInt32Value(int value) { valueCase_ = 3; value_ = value; onChanged(); return this; } /** *
       * int32 value
       * 
* * int32 int32Value = 3; */ public Builder clearInt32Value() { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
       *int64 value
       * 
* * int64 int64Value = 4; */ public long getInt64Value() { if (valueCase_ == 4) { return (java.lang.Long) value_; } return 0L; } /** *
       *int64 value
       * 
* * int64 int64Value = 4; */ public Builder setInt64Value(long value) { valueCase_ = 4; value_ = value; onChanged(); return this; } /** *
       *int64 value
       * 
* * int64 int64Value = 4; */ public Builder clearInt64Value() { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
       *float value
       * 
* * float floatValue = 5; */ public float getFloatValue() { if (valueCase_ == 5) { return (java.lang.Float) value_; } return 0F; } /** *
       *float value
       * 
* * float floatValue = 5; */ public Builder setFloatValue(float value) { valueCase_ = 5; value_ = value; onChanged(); return this; } /** *
       *float value
       * 
* * float floatValue = 5; */ public Builder clearFloatValue() { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
       *float value
       * 
* * double doubleValue = 6; */ public double getDoubleValue() { if (valueCase_ == 6) { return (java.lang.Double) value_; } return 0D; } /** *
       *float value
       * 
* * double doubleValue = 6; */ public Builder setDoubleValue(double value) { valueCase_ = 6; value_ = value; onChanged(); return this; } /** *
       *float value
       * 
* * double doubleValue = 6; */ public Builder clearDoubleValue() { if (valueCase_ == 6) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
       * string value
       * 
* * string stringValue = 7; */ public java.lang.String getStringValue() { java.lang.Object ref = ""; if (valueCase_ == 7) { ref = value_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 7) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * string value
       * 
* * string stringValue = 7; */ public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 7) { ref = value_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 7) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * string value
       * 
* * string stringValue = 7; */ public Builder setStringValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 7; value_ = value; onChanged(); return this; } /** *
       * string value
       * 
* * string stringValue = 7; */ public Builder clearStringValue() { if (valueCase_ == 7) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
       * string value
       * 
* * string stringValue = 7; */ public Builder setStringValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 7; value_ = value; onChanged(); return this; } /** *
       * bool value
       * 
* * bool boolValue = 8; */ public boolean getBoolValue() { if (valueCase_ == 8) { return (java.lang.Boolean) value_; } return false; } /** *
       * bool value
       * 
* * bool boolValue = 8; */ public Builder setBoolValue(boolean value) { valueCase_ = 8; value_ = value; onChanged(); return this; } /** *
       * bool value
       * 
* * bool boolValue = 8; */ public Builder clearBoolValue() { if (valueCase_ == 8) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Regularizer, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder, com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder> regularizerValueBuilder_; /** *
       * Regularizer
       * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public boolean hasRegularizerValue() { return valueCase_ == 9; } /** *
       * Regularizer
       * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getRegularizerValue() { if (regularizerValueBuilder_ == null) { if (valueCase_ == 9) { return (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance(); } else { if (valueCase_ == 9) { return regularizerValueBuilder_.getMessage(); } return com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance(); } } /** *
       * Regularizer
       * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public Builder setRegularizerValue(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer value) { if (regularizerValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { regularizerValueBuilder_.setMessage(value); } valueCase_ = 9; return this; } /** *
       * Regularizer
       * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public Builder setRegularizerValue( com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder builderForValue) { if (regularizerValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { regularizerValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 9; return this; } /** *
       * Regularizer
       * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public Builder mergeRegularizerValue(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer value) { if (regularizerValueBuilder_ == null) { if (valueCase_ == 9 && value_ != com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance()) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.newBuilder((com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 9) { regularizerValueBuilder_.mergeFrom(value); } regularizerValueBuilder_.setMessage(value); } valueCase_ = 9; return this; } /** *
       * Regularizer
       * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public Builder clearRegularizerValue() { if (regularizerValueBuilder_ == null) { if (valueCase_ == 9) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 9) { valueCase_ = 0; value_ = null; } regularizerValueBuilder_.clear(); } return this; } /** *
       * Regularizer
       * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder getRegularizerValueBuilder() { return getRegularizerValueFieldBuilder().getBuilder(); } /** *
       * Regularizer
       * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ public com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder getRegularizerValueOrBuilder() { if ((valueCase_ == 9) && (regularizerValueBuilder_ != null)) { return regularizerValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 9) { return (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance(); } } /** *
       * Regularizer
       * 
* * .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Regularizer, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder, com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder> getRegularizerValueFieldBuilder() { if (regularizerValueBuilder_ == null) { if (!(valueCase_ == 9)) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance(); } regularizerValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Regularizer, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder, com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder>( (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 9; onChanged();; return regularizerValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> tensorValueBuilder_; /** *
       *tensor value
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public boolean hasTensorValue() { return valueCase_ == 10; } /** *
       *tensor value
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getTensorValue() { if (tensorValueBuilder_ == null) { if (valueCase_ == 10) { return (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance(); } else { if (valueCase_ == 10) { return tensorValueBuilder_.getMessage(); } return com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance(); } } /** *
       *tensor value
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public Builder setTensorValue(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (tensorValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { tensorValueBuilder_.setMessage(value); } valueCase_ = 10; return this; } /** *
       *tensor value
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public Builder setTensorValue( com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) { if (tensorValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { tensorValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 10; return this; } /** *
       *tensor value
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public Builder mergeTensorValue(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) { if (tensorValueBuilder_ == null) { if (valueCase_ == 10 && value_ != com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance()) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.newBuilder((com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 10) { tensorValueBuilder_.mergeFrom(value); } tensorValueBuilder_.setMessage(value); } valueCase_ = 10; return this; } /** *
       *tensor value
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public Builder clearTensorValue() { if (tensorValueBuilder_ == null) { if (valueCase_ == 10) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 10) { valueCase_ = 0; value_ = null; } tensorValueBuilder_.clear(); } return this; } /** *
       *tensor value
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder getTensorValueBuilder() { return getTensorValueFieldBuilder().getBuilder(); } /** *
       *tensor value
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getTensorValueOrBuilder() { if ((valueCase_ == 10) && (tensorValueBuilder_ != null)) { return tensorValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 10) { return (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance(); } } /** *
       *tensor value
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> getTensorValueFieldBuilder() { if (tensorValueBuilder_ == null) { if (!(valueCase_ == 10)) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance(); } tensorValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>( (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 10; onChanged();; return tensorValueBuilder_; } /** *
       *Variable format
       * 
* * .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11; */ public int getVariableFormatValueValue() { if (valueCase_ == 11) { return ((java.lang.Integer) value_).intValue(); } return 0; } /** *
       *Variable format
       * 
* * .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11; */ public Builder setVariableFormatValueValue(int value) { valueCase_ = 11; value_ = value; onChanged(); return this; } /** *
       *Variable format
       * 
* * .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11; */ public com.intel.analytics.bigdl.serialization.Bigdl.VarFormat getVariableFormatValue() { if (valueCase_ == 11) { com.intel.analytics.bigdl.serialization.Bigdl.VarFormat result = com.intel.analytics.bigdl.serialization.Bigdl.VarFormat.valueOf( (java.lang.Integer) value_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.VarFormat.UNRECOGNIZED : result; } return com.intel.analytics.bigdl.serialization.Bigdl.VarFormat.EMPTY_FORMAT; } /** *
       *Variable format
       * 
* * .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11; */ public Builder setVariableFormatValue(com.intel.analytics.bigdl.serialization.Bigdl.VarFormat value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 11; value_ = value.getNumber(); onChanged(); return this; } /** *
       *Variable format
       * 
* * .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11; */ public Builder clearVariableFormatValue() { if (valueCase_ == 11) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.InitMethod, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder, com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder> initMethodValueBuilder_; /** *
       * init method
       * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public boolean hasInitMethodValue() { return valueCase_ == 12; } /** *
       * init method
       * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getInitMethodValue() { if (initMethodValueBuilder_ == null) { if (valueCase_ == 12) { return (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance(); } else { if (valueCase_ == 12) { return initMethodValueBuilder_.getMessage(); } return com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance(); } } /** *
       * init method
       * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public Builder setInitMethodValue(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod value) { if (initMethodValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { initMethodValueBuilder_.setMessage(value); } valueCase_ = 12; return this; } /** *
       * init method
       * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public Builder setInitMethodValue( com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder builderForValue) { if (initMethodValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { initMethodValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 12; return this; } /** *
       * init method
       * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public Builder mergeInitMethodValue(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod value) { if (initMethodValueBuilder_ == null) { if (valueCase_ == 12 && value_ != com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance()) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.newBuilder((com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 12) { initMethodValueBuilder_.mergeFrom(value); } initMethodValueBuilder_.setMessage(value); } valueCase_ = 12; return this; } /** *
       * init method
       * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public Builder clearInitMethodValue() { if (initMethodValueBuilder_ == null) { if (valueCase_ == 12) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 12) { valueCase_ = 0; value_ = null; } initMethodValueBuilder_.clear(); } return this; } /** *
       * init method
       * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder getInitMethodValueBuilder() { return getInitMethodValueFieldBuilder().getBuilder(); } /** *
       * init method
       * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ public com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder getInitMethodValueOrBuilder() { if ((valueCase_ == 12) && (initMethodValueBuilder_ != null)) { return initMethodValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 12) { return (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance(); } } /** *
       * init method
       * 
* * .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.InitMethod, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder, com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder> getInitMethodValueFieldBuilder() { if (initMethodValueBuilder_ == null) { if (!(valueCase_ == 12)) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance(); } initMethodValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.InitMethod, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder, com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder>( (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 12; onChanged();; return initMethodValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder> bigDLModuleValueBuilder_; /** *
       * big DL module
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public boolean hasBigDLModuleValue() { return valueCase_ == 13; } /** *
       * big DL module
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getBigDLModuleValue() { if (bigDLModuleValueBuilder_ == null) { if (valueCase_ == 13) { return (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance(); } else { if (valueCase_ == 13) { return bigDLModuleValueBuilder_.getMessage(); } return com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance(); } } /** *
       * big DL module
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public Builder setBigDLModuleValue(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) { if (bigDLModuleValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { bigDLModuleValueBuilder_.setMessage(value); } valueCase_ = 13; return this; } /** *
       * big DL module
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public Builder setBigDLModuleValue( com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder builderForValue) { if (bigDLModuleValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { bigDLModuleValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 13; return this; } /** *
       * big DL module
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public Builder mergeBigDLModuleValue(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) { if (bigDLModuleValueBuilder_ == null) { if (valueCase_ == 13 && value_ != com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance()) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.newBuilder((com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 13) { bigDLModuleValueBuilder_.mergeFrom(value); } bigDLModuleValueBuilder_.setMessage(value); } valueCase_ = 13; return this; } /** *
       * big DL module
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public Builder clearBigDLModuleValue() { if (bigDLModuleValueBuilder_ == null) { if (valueCase_ == 13) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 13) { valueCase_ = 0; value_ = null; } bigDLModuleValueBuilder_.clear(); } return this; } /** *
       * big DL module
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder getBigDLModuleValueBuilder() { return getBigDLModuleValueFieldBuilder().getBuilder(); } /** *
       * big DL module
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getBigDLModuleValueOrBuilder() { if ((valueCase_ == 13) && (bigDLModuleValueBuilder_ != null)) { return bigDLModuleValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 13) { return (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance(); } } /** *
       * big DL module
       * 
* * .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder> getBigDLModuleValueFieldBuilder() { if (bigDLModuleValueBuilder_ == null) { if (!(valueCase_ == 13)) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance(); } bigDLModuleValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder>( (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 13; onChanged();; return bigDLModuleValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder> nameAttrListValueBuilder_; /** *
       * name attribute list
       * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public boolean hasNameAttrListValue() { return valueCase_ == 14; } /** *
       * name attribute list
       * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getNameAttrListValue() { if (nameAttrListValueBuilder_ == null) { if (valueCase_ == 14) { return (com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance(); } else { if (valueCase_ == 14) { return nameAttrListValueBuilder_.getMessage(); } return com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance(); } } /** *
       * name attribute list
       * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public Builder setNameAttrListValue(com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList value) { if (nameAttrListValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { nameAttrListValueBuilder_.setMessage(value); } valueCase_ = 14; return this; } /** *
       * name attribute list
       * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public Builder setNameAttrListValue( com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder builderForValue) { if (nameAttrListValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { nameAttrListValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 14; return this; } /** *
       * name attribute list
       * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public Builder mergeNameAttrListValue(com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList value) { if (nameAttrListValueBuilder_ == null) { if (valueCase_ == 14 && value_ != com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance()) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.newBuilder((com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 14) { nameAttrListValueBuilder_.mergeFrom(value); } nameAttrListValueBuilder_.setMessage(value); } valueCase_ = 14; return this; } /** *
       * name attribute list
       * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public Builder clearNameAttrListValue() { if (nameAttrListValueBuilder_ == null) { if (valueCase_ == 14) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 14) { valueCase_ = 0; value_ = null; } nameAttrListValueBuilder_.clear(); } return this; } /** *
       * name attribute list
       * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder getNameAttrListValueBuilder() { return getNameAttrListValueFieldBuilder().getBuilder(); } /** *
       * name attribute list
       * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder getNameAttrListValueOrBuilder() { if ((valueCase_ == 14) && (nameAttrListValueBuilder_ != null)) { return nameAttrListValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 14) { return (com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance(); } } /** *
       * name attribute list
       * 
* * .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder> getNameAttrListValueFieldBuilder() { if (nameAttrListValueBuilder_ == null) { if (!(valueCase_ == 14)) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance(); } nameAttrListValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder>( (com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 14; onChanged();; return nameAttrListValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValueOrBuilder> arrayValueBuilder_; /** *
       *array value of any type
       * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public boolean hasArrayValue() { return valueCase_ == 15; } /** *
       *array value of any type
       * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue getArrayValue() { if (arrayValueBuilder_ == null) { if (valueCase_ == 15) { return (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance(); } else { if (valueCase_ == 15) { return arrayValueBuilder_.getMessage(); } return com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance(); } } /** *
       *array value of any type
       * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public Builder setArrayValue(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue value) { if (arrayValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { arrayValueBuilder_.setMessage(value); } valueCase_ = 15; return this; } /** *
       *array value of any type
       * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public Builder setArrayValue( com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder builderForValue) { if (arrayValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { arrayValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 15; return this; } /** *
       *array value of any type
       * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public Builder mergeArrayValue(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue value) { if (arrayValueBuilder_ == null) { if (valueCase_ == 15 && value_ != com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance()) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.newBuilder((com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 15) { arrayValueBuilder_.mergeFrom(value); } arrayValueBuilder_.setMessage(value); } valueCase_ = 15; return this; } /** *
       *array value of any type
       * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public Builder clearArrayValue() { if (arrayValueBuilder_ == null) { if (valueCase_ == 15) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 15) { valueCase_ = 0; value_ = null; } arrayValueBuilder_.clear(); } return this; } /** *
       *array value of any type
       * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder getArrayValueBuilder() { return getArrayValueFieldBuilder().getBuilder(); } /** *
       *array value of any type
       * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValueOrBuilder getArrayValueOrBuilder() { if ((valueCase_ == 15) && (arrayValueBuilder_ != null)) { return arrayValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 15) { return (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance(); } } /** *
       *array value of any type
       * 
* * .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValueOrBuilder> getArrayValueFieldBuilder() { if (arrayValueBuilder_ == null) { if (!(valueCase_ == 15)) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance(); } arrayValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValueOrBuilder>( (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 15; onChanged();; return arrayValueBuilder_; } /** *
       * data format
       * 
* * .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16; */ public int getDataFormatValueValue() { if (valueCase_ == 16) { return ((java.lang.Integer) value_).intValue(); } return 0; } /** *
       * data format
       * 
* * .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16; */ public Builder setDataFormatValueValue(int value) { valueCase_ = 16; value_ = value; onChanged(); return this; } /** *
       * data format
       * 
* * .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16; */ public com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat getDataFormatValue() { if (valueCase_ == 16) { com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat result = com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat.valueOf( (java.lang.Integer) value_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat.UNRECOGNIZED : result; } return com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat.NCHW; } /** *
       * data format
       * 
* * .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16; */ public Builder setDataFormatValue(com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 16; value_ = value.getNumber(); onChanged(); return this; } /** *
       * data format
       * 
* * .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16; */ public Builder clearDataFormatValue() { if (valueCase_ == 16) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> customValueBuilder_; /** *
       * custom value
       * 
* * .google.protobuf.Any customValue = 17; */ public boolean hasCustomValue() { return valueCase_ == 17; } /** *
       * custom value
       * 
* * .google.protobuf.Any customValue = 17; */ public com.google.protobuf.Any getCustomValue() { if (customValueBuilder_ == null) { if (valueCase_ == 17) { return (com.google.protobuf.Any) value_; } return com.google.protobuf.Any.getDefaultInstance(); } else { if (valueCase_ == 17) { return customValueBuilder_.getMessage(); } return com.google.protobuf.Any.getDefaultInstance(); } } /** *
       * custom value
       * 
* * .google.protobuf.Any customValue = 17; */ public Builder setCustomValue(com.google.protobuf.Any value) { if (customValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { customValueBuilder_.setMessage(value); } valueCase_ = 17; return this; } /** *
       * custom value
       * 
* * .google.protobuf.Any customValue = 17; */ public Builder setCustomValue( com.google.protobuf.Any.Builder builderForValue) { if (customValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { customValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 17; return this; } /** *
       * custom value
       * 
* * .google.protobuf.Any customValue = 17; */ public Builder mergeCustomValue(com.google.protobuf.Any value) { if (customValueBuilder_ == null) { if (valueCase_ == 17 && value_ != com.google.protobuf.Any.getDefaultInstance()) { value_ = com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 17) { customValueBuilder_.mergeFrom(value); } customValueBuilder_.setMessage(value); } valueCase_ = 17; return this; } /** *
       * custom value
       * 
* * .google.protobuf.Any customValue = 17; */ public Builder clearCustomValue() { if (customValueBuilder_ == null) { if (valueCase_ == 17) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 17) { valueCase_ = 0; value_ = null; } customValueBuilder_.clear(); } return this; } /** *
       * custom value
       * 
* * .google.protobuf.Any customValue = 17; */ public com.google.protobuf.Any.Builder getCustomValueBuilder() { return getCustomValueFieldBuilder().getBuilder(); } /** *
       * custom value
       * 
* * .google.protobuf.Any customValue = 17; */ public com.google.protobuf.AnyOrBuilder getCustomValueOrBuilder() { if ((valueCase_ == 17) && (customValueBuilder_ != null)) { return customValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 17) { return (com.google.protobuf.Any) value_; } return com.google.protobuf.Any.getDefaultInstance(); } } /** *
       * custom value
       * 
* * .google.protobuf.Any customValue = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getCustomValueFieldBuilder() { if (customValueBuilder_ == null) { if (!(valueCase_ == 17)) { value_ = com.google.protobuf.Any.getDefaultInstance(); } customValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( (com.google.protobuf.Any) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 17; onChanged();; return customValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> shapeBuilder_; /** *
       * Shape value
       * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public boolean hasShape() { return valueCase_ == 18; } /** *
       * Shape value
       * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape() { if (shapeBuilder_ == null) { if (valueCase_ == 18) { return (com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance(); } else { if (valueCase_ == 18) { return shapeBuilder_.getMessage(); } return com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance(); } } /** *
       * Shape value
       * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public Builder setShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { shapeBuilder_.setMessage(value); } valueCase_ = 18; return this; } /** *
       * Shape value
       * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public Builder setShape( com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) { if (shapeBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { shapeBuilder_.setMessage(builderForValue.build()); } valueCase_ = 18; return this; } /** *
       * Shape value
       * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public Builder mergeShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (shapeBuilder_ == null) { if (valueCase_ == 18 && value_ != com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance()) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.Shape.newBuilder((com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 18) { shapeBuilder_.mergeFrom(value); } shapeBuilder_.setMessage(value); } valueCase_ = 18; return this; } /** *
       * Shape value
       * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public Builder clearShape() { if (shapeBuilder_ == null) { if (valueCase_ == 18) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 18) { valueCase_ = 0; value_ = null; } shapeBuilder_.clear(); } return this; } /** *
       * Shape value
       * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder getShapeBuilder() { return getShapeFieldBuilder().getBuilder(); } /** *
       * Shape value
       * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder() { if ((valueCase_ == 18) && (shapeBuilder_ != null)) { return shapeBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 18) { return (com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_; } return com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance(); } } /** *
       * Shape value
       * 
* * .com.intel.analytics.bigdl.serialization.Shape shape = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { if (!(valueCase_ == 18)) { value_ = com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance(); } shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>( (com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 18; onChanged();; return shapeBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.AttrValue) } // @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.AttrValue) private static final com.intel.analytics.bigdl.serialization.Bigdl.AttrValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.AttrValue(); } public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AttrValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttrValue(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NameAttrListOrBuilder extends // @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.NameAttrList) com.google.protobuf.MessageOrBuilder { /** * string name = 1; */ java.lang.String getName(); /** * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ int getAttrCount(); /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ boolean containsAttr( java.lang.String key); /** * Use {@link #getAttrMap()} instead. */ @java.lang.Deprecated java.util.Map getAttr(); /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ java.util.Map getAttrMap(); /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrDefault( java.lang.String key, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue defaultValue); /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrThrow( java.lang.String key); } /** * Protobuf type {@code com.intel.analytics.bigdl.serialization.NameAttrList} */ public static final class NameAttrList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.NameAttrList) NameAttrListOrBuilder { private static final long serialVersionUID = 0L; // Use NameAttrList.newBuilder() to construct. private NameAttrList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NameAttrList() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NameAttrList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attr_ = com.google.protobuf.MapField.newMapField( AttrDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry attr__ = input.readMessage( AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); attr_.getMutableMap().put( attr__.getKey(), attr__.getValue()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.class, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTR_FIELD_NUMBER = 2; private static final class AttrDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_AttrEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> attr_; private com.google.protobuf.MapField internalGetAttr() { if (attr_ == null) { return com.google.protobuf.MapField.emptyMapField( AttrDefaultEntryHolder.defaultEntry); } return attr_; } public int getAttrCount() { return internalGetAttr().getMap().size(); } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public boolean containsAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttr().getMap().containsKey(key); } /** * Use {@link #getAttrMap()} instead. */ @java.lang.Deprecated public java.util.Map getAttr() { return getAttrMap(); } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public java.util.Map getAttrMap() { return internalGetAttr().getMap(); } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrDefault( java.lang.String key, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttr(), AttrDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (java.util.Map.Entry entry : internalGetAttr().getMap().entrySet()) { com.google.protobuf.MapEntry attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, attr__); } size += unknownFields.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.intel.analytics.bigdl.serialization.Bigdl.NameAttrList)) { return super.equals(obj); } com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList other = (com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && internalGetAttr().equals( other.internalGetAttr()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (!internalGetAttr().getMap().isEmpty()) { hash = (37 * hash) + ATTR_FIELD_NUMBER; hash = (53 * hash) + internalGetAttr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList 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.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList 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.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.intel.analytics.bigdl.serialization.NameAttrList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.NameAttrList) com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableAttr(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.class, com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder.class); } // Construct using com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; internalGetMutableAttr().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_descriptor; } public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getDefaultInstanceForType() { return com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance(); } public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList build() { com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList buildPartial() { com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList result = new com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.attr_ = internalGetAttr(); result.attr_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) { return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList other) { if (other == com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } internalGetMutableAttr().mergeFrom( other.internalGetAttr()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> attr_; private com.google.protobuf.MapField internalGetAttr() { if (attr_ == null) { return com.google.protobuf.MapField.emptyMapField( AttrDefaultEntryHolder.defaultEntry); } return attr_; } private com.google.protobuf.MapField internalGetMutableAttr() { onChanged();; if (attr_ == null) { attr_ = com.google.protobuf.MapField.newMapField( AttrDefaultEntryHolder.defaultEntry); } if (!attr_.isMutable()) { attr_ = attr_.copy(); } return attr_; } public int getAttrCount() { return internalGetAttr().getMap().size(); } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public boolean containsAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttr().getMap().containsKey(key); } /** * Use {@link #getAttrMap()} instead. */ @java.lang.Deprecated public java.util.Map getAttr() { return getAttrMap(); } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public java.util.Map getAttrMap() { return internalGetAttr().getMap(); } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrDefault( java.lang.String key, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttr() { internalGetMutableAttr().getMutableMap() .clear(); return this; } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public Builder removeAttr( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttr().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttr() { return internalGetMutableAttr().getMutableMap(); } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public Builder putAttr( java.lang.String key, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttr().getMutableMap() .put(key, value); return this; } /** * map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 2; */ public Builder putAllAttr( java.util.Map values) { internalGetMutableAttr().getMutableMap() .putAll(values); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.NameAttrList) } // @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.NameAttrList) private static final com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList(); } public static com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NameAttrList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NameAttrList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShapeOrBuilder extends // @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.Shape) com.google.protobuf.MessageOrBuilder { /** * .com.intel.analytics.bigdl.serialization.Shape.ShapeType shapeType = 1; */ int getShapeTypeValue(); /** * .com.intel.analytics.bigdl.serialization.Shape.ShapeType shapeType = 1; */ com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType getShapeType(); /** * int32 ssize = 2; */ int getSsize(); /** * repeated int32 shapeValue = 3; */ java.util.List getShapeValueList(); /** * repeated int32 shapeValue = 3; */ int getShapeValueCount(); /** * repeated int32 shapeValue = 3; */ int getShapeValue(int index); /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ java.util.List getShapeList(); /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape(int index); /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ int getShapeCount(); /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ java.util.List getShapeOrBuilderList(); /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder( int index); } /** * Protobuf type {@code com.intel.analytics.bigdl.serialization.Shape} */ public static final class Shape extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.Shape) ShapeOrBuilder { private static final long serialVersionUID = 0L; // Use Shape.newBuilder() to construct. private Shape(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Shape() { shapeType_ = 0; ssize_ = 0; shapeValue_ = java.util.Collections.emptyList(); shape_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Shape( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); shapeType_ = rawValue; break; } case 16: { ssize_ = input.readInt32(); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { shapeValue_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } shapeValue_.add(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { shapeValue_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { shapeValue_.add(input.readInt32()); } input.popLimit(limit); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { shape_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } shape_.add( input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Shape.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { shapeValue_ = java.util.Collections.unmodifiableList(shapeValue_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { shape_ = java.util.Collections.unmodifiableList(shape_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Shape_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Shape_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.Shape.class, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder.class); } /** * Protobuf enum {@code com.intel.analytics.bigdl.serialization.Shape.ShapeType} */ public enum ShapeType implements com.google.protobuf.ProtocolMessageEnum { /** * SINGLE = 0; */ SINGLE(0), /** * MULTI = 1; */ MULTI(1), UNRECOGNIZED(-1), ; /** * SINGLE = 0; */ public static final int SINGLE_VALUE = 0; /** * MULTI = 1; */ public static final int MULTI_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ShapeType valueOf(int value) { return forNumber(value); } public static ShapeType forNumber(int value) { switch (value) { case 0: return SINGLE; case 1: return MULTI; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ShapeType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ShapeType findValueByNumber(int number) { return ShapeType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDescriptor().getEnumTypes().get(0); } private static final ShapeType[] VALUES = values(); public static ShapeType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ShapeType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.Shape.ShapeType) } private int bitField0_; public static final int SHAPETYPE_FIELD_NUMBER = 1; private int shapeType_; /** * .com.intel.analytics.bigdl.serialization.Shape.ShapeType shapeType = 1; */ public int getShapeTypeValue() { return shapeType_; } /** * .com.intel.analytics.bigdl.serialization.Shape.ShapeType shapeType = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType getShapeType() { com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType result = com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType.valueOf(shapeType_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType.UNRECOGNIZED : result; } public static final int SSIZE_FIELD_NUMBER = 2; private int ssize_; /** * int32 ssize = 2; */ public int getSsize() { return ssize_; } public static final int SHAPEVALUE_FIELD_NUMBER = 3; private java.util.List shapeValue_; /** * repeated int32 shapeValue = 3; */ public java.util.List getShapeValueList() { return shapeValue_; } /** * repeated int32 shapeValue = 3; */ public int getShapeValueCount() { return shapeValue_.size(); } /** * repeated int32 shapeValue = 3; */ public int getShapeValue(int index) { return shapeValue_.get(index); } private int shapeValueMemoizedSerializedSize = -1; public static final int SHAPE_FIELD_NUMBER = 4; private java.util.List shape_; /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public java.util.List getShapeList() { return shape_; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public java.util.List getShapeOrBuilderList() { return shape_; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public int getShapeCount() { return shape_.size(); } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape(int index) { return shape_.get(index); } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder( int index) { return shape_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (shapeType_ != com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType.SINGLE.getNumber()) { output.writeEnum(1, shapeType_); } if (ssize_ != 0) { output.writeInt32(2, ssize_); } if (getShapeValueList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(shapeValueMemoizedSerializedSize); } for (int i = 0; i < shapeValue_.size(); i++) { output.writeInt32NoTag(shapeValue_.get(i)); } for (int i = 0; i < shape_.size(); i++) { output.writeMessage(4, shape_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (shapeType_ != com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType.SINGLE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, shapeType_); } if (ssize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, ssize_); } { int dataSize = 0; for (int i = 0; i < shapeValue_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(shapeValue_.get(i)); } size += dataSize; if (!getShapeValueList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } shapeValueMemoizedSerializedSize = dataSize; } for (int i = 0; i < shape_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, shape_.get(i)); } size += unknownFields.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.intel.analytics.bigdl.serialization.Bigdl.Shape)) { return super.equals(obj); } com.intel.analytics.bigdl.serialization.Bigdl.Shape other = (com.intel.analytics.bigdl.serialization.Bigdl.Shape) obj; boolean result = true; result = result && shapeType_ == other.shapeType_; result = result && (getSsize() == other.getSsize()); result = result && getShapeValueList() .equals(other.getShapeValueList()); result = result && getShapeList() .equals(other.getShapeList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SHAPETYPE_FIELD_NUMBER; hash = (53 * hash) + shapeType_; hash = (37 * hash) + SSIZE_FIELD_NUMBER; hash = (53 * hash) + getSsize(); if (getShapeValueCount() > 0) { hash = (37 * hash) + SHAPEVALUE_FIELD_NUMBER; hash = (53 * hash) + getShapeValueList().hashCode(); } if (getShapeCount() > 0) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShapeList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape 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.intel.analytics.bigdl.serialization.Bigdl.Shape parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape 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.intel.analytics.bigdl.serialization.Bigdl.Shape parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.Shape prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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.intel.analytics.bigdl.serialization.Shape} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.Shape) com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Shape_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Shape_fieldAccessorTable .ensureFieldAccessorsInitialized( com.intel.analytics.bigdl.serialization.Bigdl.Shape.class, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder.class); } // Construct using com.intel.analytics.bigdl.serialization.Bigdl.Shape.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getShapeFieldBuilder(); } } public Builder clear() { super.clear(); shapeType_ = 0; ssize_ = 0; shapeValue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); if (shapeBuilder_ == null) { shape_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { shapeBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Shape_descriptor; } public com.intel.analytics.bigdl.serialization.Bigdl.Shape getDefaultInstanceForType() { return com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance(); } public com.intel.analytics.bigdl.serialization.Bigdl.Shape build() { com.intel.analytics.bigdl.serialization.Bigdl.Shape result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.intel.analytics.bigdl.serialization.Bigdl.Shape buildPartial() { com.intel.analytics.bigdl.serialization.Bigdl.Shape result = new com.intel.analytics.bigdl.serialization.Bigdl.Shape(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.shapeType_ = shapeType_; result.ssize_ = ssize_; if (((bitField0_ & 0x00000004) == 0x00000004)) { shapeValue_ = java.util.Collections.unmodifiableList(shapeValue_); bitField0_ = (bitField0_ & ~0x00000004); } result.shapeValue_ = shapeValue_; if (shapeBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { shape_ = java.util.Collections.unmodifiableList(shape_); bitField0_ = (bitField0_ & ~0x00000008); } result.shape_ = shape_; } else { result.shape_ = shapeBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.Shape) { return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.Shape)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.Shape other) { if (other == com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance()) return this; if (other.shapeType_ != 0) { setShapeTypeValue(other.getShapeTypeValue()); } if (other.getSsize() != 0) { setSsize(other.getSsize()); } if (!other.shapeValue_.isEmpty()) { if (shapeValue_.isEmpty()) { shapeValue_ = other.shapeValue_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureShapeValueIsMutable(); shapeValue_.addAll(other.shapeValue_); } onChanged(); } if (shapeBuilder_ == null) { if (!other.shape_.isEmpty()) { if (shape_.isEmpty()) { shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureShapeIsMutable(); shape_.addAll(other.shape_); } onChanged(); } } else { if (!other.shape_.isEmpty()) { if (shapeBuilder_.isEmpty()) { shapeBuilder_.dispose(); shapeBuilder_ = null; shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00000008); shapeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShapeFieldBuilder() : null; } else { shapeBuilder_.addAllMessages(other.shape_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.intel.analytics.bigdl.serialization.Bigdl.Shape parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.Shape) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int shapeType_ = 0; /** * .com.intel.analytics.bigdl.serialization.Shape.ShapeType shapeType = 1; */ public int getShapeTypeValue() { return shapeType_; } /** * .com.intel.analytics.bigdl.serialization.Shape.ShapeType shapeType = 1; */ public Builder setShapeTypeValue(int value) { shapeType_ = value; onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.Shape.ShapeType shapeType = 1; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType getShapeType() { com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType result = com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType.valueOf(shapeType_); return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType.UNRECOGNIZED : result; } /** * .com.intel.analytics.bigdl.serialization.Shape.ShapeType shapeType = 1; */ public Builder setShapeType(com.intel.analytics.bigdl.serialization.Bigdl.Shape.ShapeType value) { if (value == null) { throw new NullPointerException(); } shapeType_ = value.getNumber(); onChanged(); return this; } /** * .com.intel.analytics.bigdl.serialization.Shape.ShapeType shapeType = 1; */ public Builder clearShapeType() { shapeType_ = 0; onChanged(); return this; } private int ssize_ ; /** * int32 ssize = 2; */ public int getSsize() { return ssize_; } /** * int32 ssize = 2; */ public Builder setSsize(int value) { ssize_ = value; onChanged(); return this; } /** * int32 ssize = 2; */ public Builder clearSsize() { ssize_ = 0; onChanged(); return this; } private java.util.List shapeValue_ = java.util.Collections.emptyList(); private void ensureShapeValueIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { shapeValue_ = new java.util.ArrayList(shapeValue_); bitField0_ |= 0x00000004; } } /** * repeated int32 shapeValue = 3; */ public java.util.List getShapeValueList() { return java.util.Collections.unmodifiableList(shapeValue_); } /** * repeated int32 shapeValue = 3; */ public int getShapeValueCount() { return shapeValue_.size(); } /** * repeated int32 shapeValue = 3; */ public int getShapeValue(int index) { return shapeValue_.get(index); } /** * repeated int32 shapeValue = 3; */ public Builder setShapeValue( int index, int value) { ensureShapeValueIsMutable(); shapeValue_.set(index, value); onChanged(); return this; } /** * repeated int32 shapeValue = 3; */ public Builder addShapeValue(int value) { ensureShapeValueIsMutable(); shapeValue_.add(value); onChanged(); return this; } /** * repeated int32 shapeValue = 3; */ public Builder addAllShapeValue( java.lang.Iterable values) { ensureShapeValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shapeValue_); onChanged(); return this; } /** * repeated int32 shapeValue = 3; */ public Builder clearShapeValue() { shapeValue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List shape_ = java.util.Collections.emptyList(); private void ensureShapeIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { shape_ = new java.util.ArrayList(shape_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> shapeBuilder_; /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public java.util.List getShapeList() { if (shapeBuilder_ == null) { return java.util.Collections.unmodifiableList(shape_); } else { return shapeBuilder_.getMessageList(); } } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public int getShapeCount() { if (shapeBuilder_ == null) { return shape_.size(); } else { return shapeBuilder_.getCount(); } } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape(int index) { if (shapeBuilder_ == null) { return shape_.get(index); } else { return shapeBuilder_.getMessage(index); } } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public Builder setShape( int index, com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.set(index, value); onChanged(); } else { shapeBuilder_.setMessage(index, value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public Builder setShape( int index, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.set(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public Builder addShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.add(value); onChanged(); } else { shapeBuilder_.addMessage(value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public Builder addShape( int index, com.intel.analytics.bigdl.serialization.Bigdl.Shape value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.add(index, value); onChanged(); } else { shapeBuilder_.addMessage(index, value); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public Builder addShape( com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public Builder addShape( int index, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public Builder addAllShape( java.lang.Iterable values) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shape_); onChanged(); } else { shapeBuilder_.addAllMessages(values); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public Builder clearShape() { if (shapeBuilder_ == null) { shape_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { shapeBuilder_.clear(); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public Builder removeShape(int index) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.remove(index); onChanged(); } else { shapeBuilder_.remove(index); } return this; } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder getShapeBuilder( int index) { return getShapeFieldBuilder().getBuilder(index); } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder( int index) { if (shapeBuilder_ == null) { return shape_.get(index); } else { return shapeBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public java.util.List getShapeOrBuilderList() { if (shapeBuilder_ != null) { return shapeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shape_); } } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder addShapeBuilder() { return getShapeFieldBuilder().addBuilder( com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance()); } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder addShapeBuilder( int index) { return getShapeFieldBuilder().addBuilder( index, com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance()); } /** * repeated .com.intel.analytics.bigdl.serialization.Shape shape = 4; */ public java.util.List getShapeBuilderList() { return getShapeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { shapeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>( shape_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); shape_ = null; } return shapeBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.Shape) } // @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.Shape) private static final com.intel.analytics.bigdl.serialization.Bigdl.Shape DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.Shape(); } public static com.intel.analytics.bigdl.serialization.Bigdl.Shape getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Shape parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Shape(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.intel.analytics.bigdl.serialization.Bigdl.Shape getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_AttrEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_AttrEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_InitMethod_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_InitMethod_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_Regularizer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_Regularizer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_AttrValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_AttrValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_AttrEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_AttrEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_intel_analytics_bigdl_serialization_Shape_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_intel_analytics_bigdl_serialization_Shape_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\013bigdl.proto\022\'com.intel.analytics.bigdl" + ".serialization\032\031google/protobuf/any.prot" + "o\"\304\010\n\013BigDLModule\022\014\n\004name\030\001 \001(\t\022H\n\nsubMo" + "dules\030\002 \003(\01324.com.intel.analytics.bigdl." + "serialization.BigDLModule\022D\n\006weight\030\003 \001(" + "\01324.com.intel.analytics.bigdl.serializat" + "ion.BigDLTensor\022B\n\004bias\030\004 \001(\01324.com.inte" + "l.analytics.bigdl.serialization.BigDLTen" + "sor\022\022\n\npreModules\030\005 \003(\t\022\023\n\013nextModules\030\006" + " \003(\t\022\022\n\nmoduleType\030\007 \001(\t\022L\n\004attr\030\010 \003(\0132>", ".com.intel.analytics.bigdl.serialization" + ".BigDLModule.AttrEntry\022\017\n\007version\030\t \001(\t\022" + "\r\n\005train\030\n \001(\010\022\023\n\013namePostfix\030\013 \001(\t\022\n\n\002i" + "d\030\014 \001(\005\022B\n\ninputShape\030\r \001(\0132..com.intel." + "analytics.bigdl.serialization.Shape\022C\n\013o" + "utputShape\030\016 \001(\0132..com.intel.analytics.b" + "igdl.serialization.Shape\022\025\n\rhasParameter" + "s\030\017 \001(\010\022H\n\nparameters\030\020 \003(\01324.com.intel." + "analytics.bigdl.serialization.BigDLTenso" + "r\022\030\n\020isMklInt8Enabled\030\021 \001(\010\022\025\n\rinputDimM", "asks\030\022 \001(\005\022G\n\013inputScales\030\023 \003(\01322.com.in" + "tel.analytics.bigdl.serialization.AttrVa" + "lue\022\026\n\016outputDimMasks\030\024 \001(\005\022H\n\014outputSca" + "les\030\025 \003(\01322.com.intel.analytics.bigdl.se" + "rialization.AttrValue\022\026\n\016weightDimMasks\030" + "\026 \001(\005\022H\n\014weightScales\030\027 \003(\01322.com.intel." + "analytics.bigdl.serialization.AttrValue\032" + "_\n\tAttrEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\013" + "22.com.intel.analytics.bigdl.serializati" + "on.AttrValue:\0028\001\"g\n\nInitMethod\022K\n\nmethod", "Type\030\001 \001(\01627.com.intel.analytics.bigdl.s" + "erialization.InitMethodType\022\014\n\004data\030\002 \003(" + "\001\"\326\002\n\013BigDLTensor\022C\n\010datatype\030\001 \001(\01621.co" + "m.intel.analytics.bigdl.serialization.Da" + "taType\022\014\n\004size\030\002 \003(\005\022\016\n\006stride\030\003 \003(\005\022\016\n\006" + "offset\030\004 \001(\005\022\021\n\tdimension\030\005 \001(\005\022\021\n\tnElem" + "ents\030\006 \001(\005\022\020\n\010isScalar\030\007 \001(\010\022G\n\007storage\030" + "\010 \001(\01326.com.intel.analytics.bigdl.serial" + "ization.TensorStorage\022\n\n\002id\030\t \001(\005\022G\n\nten" + "sorType\030\n \001(\01623.com.intel.analytics.bigd", "l.serialization.TensorType\"\352\001\n\rTensorSto" + "rage\022C\n\010datatype\030\001 \001(\01621.com.intel.analy" + "tics.bigdl.serialization.DataType\022\022\n\nflo" + "at_data\030\002 \003(\002\022\023\n\013double_data\030\003 \003(\001\022\021\n\tbo" + "ol_data\030\004 \003(\010\022\023\n\013string_data\030\005 \003(\t\022\020\n\010in" + "t_data\030\006 \003(\005\022\021\n\tlong_data\030\007 \003(\003\022\022\n\nbytes" + "_data\030\010 \003(\014\022\n\n\002id\030\t \001(\005\"u\n\013Regularizer\022Q" + "\n\017regularizerType\030\001 \001(\01628.com.intel.anal" + "ytics.bigdl.serialization.RegularizerTyp" + "e\022\023\n\013regularData\030\002 \003(\001\"\224\016\n\tAttrValue\022C\n\010", "dataType\030\001 \001(\01621.com.intel.analytics.big" + "dl.serialization.DataType\022\017\n\007subType\030\002 \001" + "(\t\022\024\n\nint32Value\030\003 \001(\005H\000\022\024\n\nint64Value\030\004" + " \001(\003H\000\022\024\n\nfloatValue\030\005 \001(\002H\000\022\025\n\013doubleVa" + "lue\030\006 \001(\001H\000\022\025\n\013stringValue\030\007 \001(\tH\000\022\023\n\tbo" + "olValue\030\010 \001(\010H\000\022P\n\020regularizerValue\030\t \001(" + "\01324.com.intel.analytics.bigdl.serializat" + "ion.RegularizerH\000\022K\n\013tensorValue\030\n \001(\01324" + ".com.intel.analytics.bigdl.serialization" + ".BigDLTensorH\000\022Q\n\023variableFormatValue\030\013 ", "\001(\01622.com.intel.analytics.bigdl.serializ" + "ation.VarFormatH\000\022N\n\017initMethodValue\030\014 \001" + "(\01323.com.intel.analytics.bigdl.serializa" + "tion.InitMethodH\000\022P\n\020bigDLModuleValue\030\r " + "\001(\01324.com.intel.analytics.bigdl.serializ" + "ation.BigDLModuleH\000\022R\n\021nameAttrListValue" + "\030\016 \001(\01325.com.intel.analytics.bigdl.seria" + "lization.NameAttrListH\000\022S\n\narrayValue\030\017 " + "\001(\0132=.com.intel.analytics.bigdl.serializ" + "ation.AttrValue.ArrayValueH\000\022S\n\017dataForm", "atValue\030\020 \001(\01628.com.intel.analytics.bigd" + "l.serialization.InputDataFormatH\000\022+\n\013cus" + "tomValue\030\021 \001(\0132\024.google.protobuf.AnyH\000\022?" + "\n\005shape\030\022 \001(\0132..com.intel.analytics.bigd" + "l.serialization.ShapeH\000\032\242\006\n\nArrayValue\022\014" + "\n\004size\030\001 \001(\005\022C\n\010datatype\030\002 \001(\01621.com.int" + "el.analytics.bigdl.serialization.DataTyp" + "e\022\013\n\003i32\030\003 \003(\005\022\013\n\003i64\030\004 \003(\003\022\013\n\003flt\030\005 \003(\002" + "\022\013\n\003dbl\030\006 \003(\001\022\013\n\003str\030\007 \003(\t\022\017\n\007boolean\030\010 " + "\003(\010\022I\n\013Regularizer\030\t \003(\01324.com.intel.ana", "lytics.bigdl.serialization.Regularizer\022D" + "\n\006tensor\030\n \003(\01324.com.intel.analytics.big" + "dl.serialization.BigDLTensor\022J\n\016variable" + "Format\030\013 \003(\01622.com.intel.analytics.bigdl" + ".serialization.VarFormat\022G\n\ninitMethod\030\014" + " \003(\01323.com.intel.analytics.bigdl.seriali" + "zation.InitMethod\022I\n\013bigDLModule\030\r \003(\01324" + ".com.intel.analytics.bigdl.serialization" + ".BigDLModule\022K\n\014nameAttrList\030\016 \003(\01325.com" + ".intel.analytics.bigdl.serialization.Nam", "eAttrList\022L\n\ndataFormat\030\017 \003(\01628.com.inte" + "l.analytics.bigdl.serialization.InputDat" + "aFormat\022$\n\006custom\030\020 \003(\0132\024.google.protobu" + "f.Any\022=\n\005shape\030\021 \003(\0132..com.intel.analyti" + "cs.bigdl.serialization.ShapeB\007\n\005value\"\314\001" + "\n\014NameAttrList\022\014\n\004name\030\001 \001(\t\022M\n\004attr\030\002 \003" + "(\0132?.com.intel.analytics.bigdl.serializa" + "tion.NameAttrList.AttrEntry\032_\n\tAttrEntry" + "\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.com.intel" + ".analytics.bigdl.serialization.AttrValue", ":\0028\001\"\332\001\n\005Shape\022K\n\tshapeType\030\001 \001(\01628.com." + "intel.analytics.bigdl.serialization.Shap" + "e.ShapeType\022\r\n\005ssize\030\002 \001(\005\022\022\n\nshapeValue" + "\030\003 \003(\005\022=\n\005shape\030\004 \003(\0132..com.intel.analyt" + "ics.bigdl.serialization.Shape\"\"\n\tShapeTy" + "pe\022\n\n\006SINGLE\020\000\022\t\n\005MULTI\020\001*\260\001\n\tVarFormat\022" + "\020\n\014EMPTY_FORMAT\020\000\022\013\n\007DEFAULT\020\001\022\t\n\005ONE_D\020" + "\002\022\n\n\006IN_OUT\020\003\022\n\n\006OUT_IN\020\004\022\020\n\014IN_OUT_KW_K" + "H\020\005\022\020\n\014OUT_IN_KW_KH\020\006\022\023\n\017GP_OUT_IN_KW_KH" + "\020\007\022\023\n\017GP_IN_OUT_KW_KH\020\010\022\023\n\017OUT_IN_KT_KH_", "KW\020\t*\253\001\n\016InitMethodType\022\030\n\024EMPTY_INITIAL" + "IZATION\020\000\022\022\n\016RANDOM_UNIFORM\020\001\022\030\n\024RANDOM_" + "UNIFORM_PARAM\020\002\022\021\n\rRANDOM_NORMAL\020\003\022\t\n\005ZE" + "ROS\020\004\022\010\n\004ONES\020\005\022\t\n\005CONST\020\006\022\n\n\006XAVIER\020\007\022\022" + "\n\016BILINEARFILLER\020\010*L\n\017RegularizerType\022\023\n" + "\017L1L2Regularizer\020\000\022\021\n\rL1Regularizer\020\001\022\021\n" + "\rL2Regularizer\020\002*%\n\017InputDataFormat\022\010\n\004N" + "CHW\020\000\022\010\n\004NHWC\020\001*\"\n\nTensorType\022\t\n\005DENSE\020\000" + "\022\t\n\005QUANT\020\001*\210\002\n\010DataType\022\t\n\005INT32\020\000\022\t\n\005I" + "NT64\020\001\022\t\n\005FLOAT\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRING\020", "\004\022\010\n\004BOOL\020\005\022\010\n\004CHAR\020\006\022\t\n\005SHORT\020\007\022\t\n\005BYTE" + "S\020\010\022\017\n\013REGULARIZER\020\t\022\n\n\006TENSOR\020\n\022\023\n\017VARI" + "ABLE_FORMAT\020\013\022\016\n\nINITMETHOD\020\014\022\n\n\006MODULE\020" + "\r\022\022\n\016NAME_ATTR_LIST\020\016\022\017\n\013ARRAY_VALUE\020\017\022\017" + "\n\013DATA_FORMAT\020\020\022\n\n\006CUSTOM\020\021\022\t\n\005SHAPE\020\022b\006" + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), }, assigner); internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_descriptor, new java.lang.String[] { "Name", "SubModules", "Weight", "Bias", "PreModules", "NextModules", "ModuleType", "Attr", "Version", "Train", "NamePostfix", "Id", "InputShape", "OutputShape", "HasParameters", "Parameters", "IsMklInt8Enabled", "InputDimMasks", "InputScales", "OutputDimMasks", "OutputScales", "WeightDimMasks", "WeightScales", }); internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_AttrEntry_descriptor = internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_descriptor.getNestedTypes().get(0); internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_AttrEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_AttrEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_com_intel_analytics_bigdl_serialization_InitMethod_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_intel_analytics_bigdl_serialization_InitMethod_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_InitMethod_descriptor, new java.lang.String[] { "MethodType", "Data", }); internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_descriptor, new java.lang.String[] { "Datatype", "Size", "Stride", "Offset", "Dimension", "NElements", "IsScalar", "Storage", "Id", "TensorType", }); internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_descriptor, new java.lang.String[] { "Datatype", "FloatData", "DoubleData", "BoolData", "StringData", "IntData", "LongData", "BytesData", "Id", }); internal_static_com_intel_analytics_bigdl_serialization_Regularizer_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_intel_analytics_bigdl_serialization_Regularizer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_Regularizer_descriptor, new java.lang.String[] { "RegularizerType", "RegularData", }); internal_static_com_intel_analytics_bigdl_serialization_AttrValue_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_intel_analytics_bigdl_serialization_AttrValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_AttrValue_descriptor, new java.lang.String[] { "DataType", "SubType", "Int32Value", "Int64Value", "FloatValue", "DoubleValue", "StringValue", "BoolValue", "RegularizerValue", "TensorValue", "VariableFormatValue", "InitMethodValue", "BigDLModuleValue", "NameAttrListValue", "ArrayValue", "DataFormatValue", "CustomValue", "Shape", "Value", }); internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_descriptor = internal_static_com_intel_analytics_bigdl_serialization_AttrValue_descriptor.getNestedTypes().get(0); internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_descriptor, new java.lang.String[] { "Size", "Datatype", "I32", "I64", "Flt", "Dbl", "Str", "Boolean", "Regularizer", "Tensor", "VariableFormat", "InitMethod", "BigDLModule", "NameAttrList", "DataFormat", "Custom", "Shape", }); internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_descriptor, new java.lang.String[] { "Name", "Attr", }); internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_AttrEntry_descriptor = internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_descriptor.getNestedTypes().get(0); internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_AttrEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_NameAttrList_AttrEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_com_intel_analytics_bigdl_serialization_Shape_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_com_intel_analytics_bigdl_serialization_Shape_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_intel_analytics_bigdl_serialization_Shape_descriptor, new java.lang.String[] { "ShapeType", "Ssize", "ShapeValue", "Shape", }); com.google.protobuf.AnyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy