content: /*
   * Tencent is pleased to support the open source community by making Angel available.
   *
   * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
   * compliance with the License. You may obtain a copy of the License at
   *
   * https://opensource.org/licenses/Apache-2.0
   *
   * Unless required by applicable law or agreed to in writing, software distributed under the License
   * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
   * or implied. See the License for the specific language governing permissions and limitations under
   * the License.
   *
   */
  // Generated by the protocol buffer compiler.  DO NOT EDIT!
  // source: core/stats/tensor_description.proto
  
  package com.tencent.angel.core.stats;
  
  public final class TensorDescriptionProtos {
    private TensorDescriptionProtos() {}
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistryLite registry) {
    }
  
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistry registry) {
      registerAllExtensions(
          (com.google.protobuf.ExtensionRegistryLite) registry);
    }
    public interface TensorDescriptionOrBuilder extends
        // @@protoc_insertion_point(interface_extends:angel.TensorDescription)
        com.google.protobuf.MessageOrBuilder {
  
      /**
       * <pre>
       * Data type of tensor elements
       * </pre>
       *
       * <code>.angel.DataType dtype = 1;</code>
       */
      int getDtypeValue();
      /**
       * <pre>
       * Data type of tensor elements
       * </pre>
       *
       * <code>.angel.DataType dtype = 1;</code>
       */
      com.tencent.angel.serving.apis.common.TypesProtos.DataType getDtype();
  
      /**
       * <pre>
       * Shape of the tensor.
       * </pre>
       *
       * <code>.angel.TensorShapeProto shape = 2;</code>
       */
      boolean hasShape();
      /**
       * <pre>
       * Shape of the tensor.
       * </pre>
       *
       * <code>.angel.TensorShapeProto shape = 2;</code>
       */
      com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto getShape();
      /**
       * <pre>
       * Shape of the tensor.
       * </pre>
       *
       * <code>.angel.TensorShapeProto shape = 2;</code>
       */
      com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProtoOrBuilder getShapeOrBuilder();
  
      /**
       * <pre>
       * Information about the size and allocator used for the data
       * </pre>
       *
       * <code>.angel.AllocationDescription allocation_description = 4;</code>
       */
      boolean hasAllocationDescription();
      /**
       * <pre>
       * Information about the size and allocator used for the data
       * </pre>
       *
       * <code>.angel.AllocationDescription allocation_description = 4;</code>
       */
      com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription getAllocationDescription();
      /**
       * <pre>
       * Information about the size and allocator used for the data
       * </pre>
       *
       * <code>.angel.AllocationDescription allocation_description = 4;</code>
       */
      com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder();
    }
    /**
     * Protobuf type {@code angel.TensorDescription}
     */
    public  static final class TensorDescription extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:angel.TensorDescription)
        TensorDescriptionOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use TensorDescription.newBuilder() to construct.
      private TensorDescription(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private TensorDescription() {
        dtype_ = 0;
      }
  
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private TensorDescription(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        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();
  
                dtype_ = rawValue;
                break;
              }
              case 18: {
                com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.Builder subBuilder = null;
                if (shape_ != null) {
                  subBuilder = shape_.toBuilder();
                }
                shape_ = input.readMessage(com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(shape_);
                  shape_ = subBuilder.buildPartial();
                }
  
                break;
              }
              case 34: {
                com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.Builder subBuilder = null;
                if (allocationDescription_ != null) {
                  subBuilder = allocationDescription_.toBuilder();
                }
                allocationDescription_ = input.readMessage(com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(allocationDescription_);
                  allocationDescription_ = subBuilder.buildPartial();
                }
  
                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.tencent.angel.core.stats.TensorDescriptionProtos.internal_static_angel_TensorDescription_descriptor;
      }
  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.angel.core.stats.TensorDescriptionProtos.internal_static_angel_TensorDescription_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription.class, com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription.Builder.class);
      }
  
      public static final int DTYPE_FIELD_NUMBER = 1;
      private int dtype_;
      /**
       * <pre>
       * Data type of tensor elements
       * </pre>
       *
       * <code>.angel.DataType dtype = 1;</code>
       */
      public int getDtypeValue() {
        return dtype_;
      }
      /**
       * <pre>
       * Data type of tensor elements
       * </pre>
       *
       * <code>.angel.DataType dtype = 1;</code>
       */
      public com.tencent.angel.serving.apis.common.TypesProtos.DataType getDtype() {
        com.tencent.angel.serving.apis.common.TypesProtos.DataType result = com.tencent.angel.serving.apis.common.TypesProtos.DataType.valueOf(dtype_);
        return result == null ? com.tencent.angel.serving.apis.common.TypesProtos.DataType.UNRECOGNIZED : result;
      }
  
      public static final int SHAPE_FIELD_NUMBER = 2;
      private com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto shape_;
      /**
       * <pre>
       * Shape of the tensor.
       * </pre>
       *
       * <code>.angel.TensorShapeProto shape = 2;</code>
       */
      public boolean hasShape() {
        return shape_ != null;
      }
      /**
       * <pre>
       * Shape of the tensor.
       * </pre>
       *
       * <code>.angel.TensorShapeProto shape = 2;</code>
       */
      public com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto getShape() {
        return shape_ == null ? com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.getDefaultInstance() : shape_;
      }
      /**
       * <pre>
       * Shape of the tensor.
       * </pre>
       *
       * <code>.angel.TensorShapeProto shape = 2;</code>
       */
      public com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProtoOrBuilder getShapeOrBuilder() {
        return getShape();
      }
  
      public static final int ALLOCATION_DESCRIPTION_FIELD_NUMBER = 4;
      private com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription allocationDescription_;
      /**
       * <pre>
       * Information about the size and allocator used for the data
       * </pre>
       *
       * <code>.angel.AllocationDescription allocation_description = 4;</code>
       */
      public boolean hasAllocationDescription() {
        return allocationDescription_ != null;
      }
      /**
       * <pre>
       * Information about the size and allocator used for the data
       * </pre>
       *
       * <code>.angel.AllocationDescription allocation_description = 4;</code>
       */
      public com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription getAllocationDescription() {
        return allocationDescription_ == null ? com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.getDefaultInstance() : allocationDescription_;
      }
      /**
       * <pre>
       * Information about the size and allocator used for the data
       * </pre>
       *
       * <code>.angel.AllocationDescription allocation_description = 4;</code>
       */
      public com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder() {
        return getAllocationDescription();
      }
  
      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 (dtype_ != com.tencent.angel.serving.apis.common.TypesProtos.DataType.DT_INVALID.getNumber()) {
          output.writeEnum(1, dtype_);
        }
        if (shape_ != null) {
          output.writeMessage(2, getShape());
        }
        if (allocationDescription_ != null) {
          output.writeMessage(4, getAllocationDescription());
        }
        unknownFields.writeTo(output);
      }
  
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;
  
        size = 0;
        if (dtype_ != com.tencent.angel.serving.apis.common.TypesProtos.DataType.DT_INVALID.getNumber()) {
          size += com.google.protobuf.CodedOutputStream
            .computeEnumSize(1, dtype_);
        }
        if (shape_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, getShape());
        }
        if (allocationDescription_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(4, getAllocationDescription());
        }
        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.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription)) {
          return super.equals(obj);
        }
        com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription other = (com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription) obj;
  
        boolean result = true;
        result = result && dtype_ == other.dtype_;
        result = result && (hasShape() == other.hasShape());
        if (hasShape()) {
          result = result && getShape()
              .equals(other.getShape());
        }
        result = result && (hasAllocationDescription() == other.hasAllocationDescription());
        if (hasAllocationDescription()) {
          result = result && getAllocationDescription()
              .equals(other.getAllocationDescription());
        }
        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) + DTYPE_FIELD_NUMBER;
        hash = (53 * hash) + dtype_;
        if (hasShape()) {
          hash = (37 * hash) + SHAPE_FIELD_NUMBER;
          hash = (53 * hash) + getShape().hashCode();
        }
        if (hasAllocationDescription()) {
          hash = (37 * hash) + ALLOCATION_DESCRIPTION_FIELD_NUMBER;
          hash = (53 * hash) + getAllocationDescription().hashCode();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }
  
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription 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.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription 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.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription 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.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription 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 angel.TensorDescription}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:angel.TensorDescription)
          com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescriptionOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.tencent.angel.core.stats.TensorDescriptionProtos.internal_static_angel_TensorDescription_descriptor;
        }
  
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.tencent.angel.core.stats.TensorDescriptionProtos.internal_static_angel_TensorDescription_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription.class, com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription.Builder.class);
        }
  
        // Construct using com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription.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();
          dtype_ = 0;
  
          if (shapeBuilder_ == null) {
            shape_ = null;
          } else {
            shape_ = null;
            shapeBuilder_ = null;
          }
          if (allocationDescriptionBuilder_ == null) {
            allocationDescription_ = null;
          } else {
            allocationDescription_ = null;
            allocationDescriptionBuilder_ = null;
          }
          return this;
        }
  
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.tencent.angel.core.stats.TensorDescriptionProtos.internal_static_angel_TensorDescription_descriptor;
        }
  
        public com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription getDefaultInstanceForType() {
          return com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription.getDefaultInstance();
        }
  
        public com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription build() {
          com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
  
        public com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription buildPartial() {
          com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription result = new com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription(this);
          result.dtype_ = dtype_;
          if (shapeBuilder_ == null) {
            result.shape_ = shape_;
          } else {
            result.shape_ = shapeBuilder_.build();
          }
          if (allocationDescriptionBuilder_ == null) {
            result.allocationDescription_ = allocationDescription_;
          } else {
            result.allocationDescription_ = allocationDescriptionBuilder_.build();
          }
          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.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription) {
            return mergeFrom((com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
  
        public Builder mergeFrom(com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription other) {
          if (other == com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription.getDefaultInstance()) return this;
          if (other.dtype_ != 0) {
            setDtypeValue(other.getDtypeValue());
          }
          if (other.hasShape()) {
            mergeShape(other.getShape());
          }
          if (other.hasAllocationDescription()) {
            mergeAllocationDescription(other.getAllocationDescription());
          }
          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.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
  
        private int dtype_ = 0;
        /**
         * <pre>
         * Data type of tensor elements
         * </pre>
         *
         * <code>.angel.DataType dtype = 1;</code>
         */
        public int getDtypeValue() {
          return dtype_;
        }
        /**
         * <pre>
         * Data type of tensor elements
         * </pre>
         *
         * <code>.angel.DataType dtype = 1;</code>
         */
        public Builder setDtypeValue(int value) {
          dtype_ = value;
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Data type of tensor elements
         * </pre>
         *
         * <code>.angel.DataType dtype = 1;</code>
         */
        public com.tencent.angel.serving.apis.common.TypesProtos.DataType getDtype() {
          com.tencent.angel.serving.apis.common.TypesProtos.DataType result = com.tencent.angel.serving.apis.common.TypesProtos.DataType.valueOf(dtype_);
          return result == null ? com.tencent.angel.serving.apis.common.TypesProtos.DataType.UNRECOGNIZED : result;
        }
        /**
         * <pre>
         * Data type of tensor elements
         * </pre>
         *
         * <code>.angel.DataType dtype = 1;</code>
         */
        public Builder setDtype(com.tencent.angel.serving.apis.common.TypesProtos.DataType value) {
          if (value == null) {
            throw new NullPointerException();
          }
          
          dtype_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         * <pre>
         * Data type of tensor elements
         * </pre>
         *
         * <code>.angel.DataType dtype = 1;</code>
         */
        public Builder clearDtype() {
          
          dtype_ = 0;
          onChanged();
          return this;
        }
  
        private com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto shape_ = null;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto, com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.Builder, com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProtoOrBuilder> shapeBuilder_;
        /**
         * <pre>
         * Shape of the tensor.
         * </pre>
         *
         * <code>.angel.TensorShapeProto shape = 2;</code>
         */
        public boolean hasShape() {
          return shapeBuilder_ != null || shape_ != null;
        }
        /**
         * <pre>
         * Shape of the tensor.
         * </pre>
         *
         * <code>.angel.TensorShapeProto shape = 2;</code>
         */
        public com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto getShape() {
          if (shapeBuilder_ == null) {
            return shape_ == null ? com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.getDefaultInstance() : shape_;
          } else {
            return shapeBuilder_.getMessage();
          }
        }
        /**
         * <pre>
         * Shape of the tensor.
         * </pre>
         *
         * <code>.angel.TensorShapeProto shape = 2;</code>
         */
        public Builder setShape(com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto value) {
          if (shapeBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            shape_ = value;
            onChanged();
          } else {
            shapeBuilder_.setMessage(value);
          }
  
          return this;
        }
        /**
         * <pre>
         * Shape of the tensor.
         * </pre>
         *
         * <code>.angel.TensorShapeProto shape = 2;</code>
         */
        public Builder setShape(
            com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.Builder builderForValue) {
          if (shapeBuilder_ == null) {
            shape_ = builderForValue.build();
            onChanged();
          } else {
            shapeBuilder_.setMessage(builderForValue.build());
          }
  
          return this;
        }
        /**
         * <pre>
         * Shape of the tensor.
         * </pre>
         *
         * <code>.angel.TensorShapeProto shape = 2;</code>
         */
        public Builder mergeShape(com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto value) {
          if (shapeBuilder_ == null) {
            if (shape_ != null) {
              shape_ =
                com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial();
            } else {
              shape_ = value;
            }
            onChanged();
          } else {
            shapeBuilder_.mergeFrom(value);
          }
  
          return this;
        }
        /**
         * <pre>
         * Shape of the tensor.
         * </pre>
         *
         * <code>.angel.TensorShapeProto shape = 2;</code>
         */
        public Builder clearShape() {
          if (shapeBuilder_ == null) {
            shape_ = null;
            onChanged();
          } else {
            shape_ = null;
            shapeBuilder_ = null;
          }
  
          return this;
        }
        /**
         * <pre>
         * Shape of the tensor.
         * </pre>
         *
         * <code>.angel.TensorShapeProto shape = 2;</code>
         */
        public com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.Builder getShapeBuilder() {
          
          onChanged();
          return getShapeFieldBuilder().getBuilder();
        }
        /**
         * <pre>
         * Shape of the tensor.
         * </pre>
         *
         * <code>.angel.TensorShapeProto shape = 2;</code>
         */
        public com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProtoOrBuilder getShapeOrBuilder() {
          if (shapeBuilder_ != null) {
            return shapeBuilder_.getMessageOrBuilder();
          } else {
            return shape_ == null ?
                com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.getDefaultInstance() : shape_;
          }
        }
        /**
         * <pre>
         * Shape of the tensor.
         * </pre>
         *
         * <code>.angel.TensorShapeProto shape = 2;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto, com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.Builder, com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProtoOrBuilder> 
            getShapeFieldBuilder() {
          if (shapeBuilder_ == null) {
            shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto, com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProto.Builder, com.tencent.angel.serving.apis.common.TensorShapeProtos.TensorShapeProtoOrBuilder>(
                    getShape(),
                    getParentForChildren(),
                    isClean());
            shape_ = null;
          }
          return shapeBuilder_;
        }
  
        private com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription allocationDescription_ = null;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription, com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.Builder, com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescriptionOrBuilder> allocationDescriptionBuilder_;
        /**
         * <pre>
         * Information about the size and allocator used for the data
         * </pre>
         *
         * <code>.angel.AllocationDescription allocation_description = 4;</code>
         */
        public boolean hasAllocationDescription() {
          return allocationDescriptionBuilder_ != null || allocationDescription_ != null;
        }
        /**
         * <pre>
         * Information about the size and allocator used for the data
         * </pre>
         *
         * <code>.angel.AllocationDescription allocation_description = 4;</code>
         */
        public com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription getAllocationDescription() {
          if (allocationDescriptionBuilder_ == null) {
            return allocationDescription_ == null ? com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.getDefaultInstance() : allocationDescription_;
          } else {
            return allocationDescriptionBuilder_.getMessage();
          }
        }
        /**
         * <pre>
         * Information about the size and allocator used for the data
         * </pre>
         *
         * <code>.angel.AllocationDescription allocation_description = 4;</code>
         */
        public Builder setAllocationDescription(com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription value) {
          if (allocationDescriptionBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            allocationDescription_ = value;
            onChanged();
          } else {
            allocationDescriptionBuilder_.setMessage(value);
          }
  
          return this;
        }
        /**
         * <pre>
         * Information about the size and allocator used for the data
         * </pre>
         *
         * <code>.angel.AllocationDescription allocation_description = 4;</code>
         */
        public Builder setAllocationDescription(
            com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.Builder builderForValue) {
          if (allocationDescriptionBuilder_ == null) {
            allocationDescription_ = builderForValue.build();
            onChanged();
          } else {
            allocationDescriptionBuilder_.setMessage(builderForValue.build());
          }
  
          return this;
        }
        /**
         * <pre>
         * Information about the size and allocator used for the data
         * </pre>
         *
         * <code>.angel.AllocationDescription allocation_description = 4;</code>
         */
        public Builder mergeAllocationDescription(com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription value) {
          if (allocationDescriptionBuilder_ == null) {
            if (allocationDescription_ != null) {
              allocationDescription_ =
                com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.newBuilder(allocationDescription_).mergeFrom(value).buildPartial();
            } else {
              allocationDescription_ = value;
            }
            onChanged();
          } else {
            allocationDescriptionBuilder_.mergeFrom(value);
          }
  
          return this;
        }
        /**
         * <pre>
         * Information about the size and allocator used for the data
         * </pre>
         *
         * <code>.angel.AllocationDescription allocation_description = 4;</code>
         */
        public Builder clearAllocationDescription() {
          if (allocationDescriptionBuilder_ == null) {
            allocationDescription_ = null;
            onChanged();
          } else {
            allocationDescription_ = null;
            allocationDescriptionBuilder_ = null;
          }
  
          return this;
        }
        /**
         * <pre>
         * Information about the size and allocator used for the data
         * </pre>
         *
         * <code>.angel.AllocationDescription allocation_description = 4;</code>
         */
        public com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.Builder getAllocationDescriptionBuilder() {
          
          onChanged();
          return getAllocationDescriptionFieldBuilder().getBuilder();
        }
        /**
         * <pre>
         * Information about the size and allocator used for the data
         * </pre>
         *
         * <code>.angel.AllocationDescription allocation_description = 4;</code>
         */
        public com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder() {
          if (allocationDescriptionBuilder_ != null) {
            return allocationDescriptionBuilder_.getMessageOrBuilder();
          } else {
            return allocationDescription_ == null ?
                com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.getDefaultInstance() : allocationDescription_;
          }
        }
        /**
         * <pre>
         * Information about the size and allocator used for the data
         * </pre>
         *
         * <code>.angel.AllocationDescription allocation_description = 4;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription, com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.Builder, com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescriptionOrBuilder> 
            getAllocationDescriptionFieldBuilder() {
          if (allocationDescriptionBuilder_ == null) {
            allocationDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription, com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescription.Builder, com.tencent.angel.core.stats.AllocationDescriptionProtos.AllocationDescriptionOrBuilder>(
                    getAllocationDescription(),
                    getParentForChildren(),
                    isClean());
            allocationDescription_ = null;
          }
          return allocationDescriptionBuilder_;
        }
        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:angel.TensorDescription)
      }
  
      // @@protoc_insertion_point(class_scope:angel.TensorDescription)
      private static final com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription();
      }
  
      public static com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }
  
      private static final com.google.protobuf.Parser<TensorDescription>
          PARSER = new com.google.protobuf.AbstractParser<TensorDescription>() {
        public TensorDescription parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new TensorDescription(input, extensionRegistry);
        }
      };
  
      public static com.google.protobuf.Parser<TensorDescription> parser() {
        return PARSER;
      }
  
      @java.lang.Override
      public com.google.protobuf.Parser<TensorDescription> getParserForType() {
        return PARSER;
      }
  
      public com.tencent.angel.core.stats.TensorDescriptionProtos.TensorDescription getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
  
    }
  
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_angel_TensorDescription_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_angel_TensorDescription_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#core/stats/tensor_description.proto\022\005a" +
        "ngel\032\027apis/common/types.proto\032\036apis/comm" +
        "on/tensor_shape.proto\032\'core/stats/alloca" +
        "tion_description.proto\"\231\001\n\021TensorDescrip" +
        "tion\022\036\n\005dtype\030\001 \001(\0162\017.angel.DataType\022&\n\005" +
        "shape\030\002 \001(\0132\027.angel.TensorShapeProto\022<\n\026" +
        "allocation_description\030\004 \001(\0132\034.angel.All" +
        "ocationDescriptionB9\n\034com.tencent.angel." +
        "core.statsB\027TensorDescriptionProtosP\000b\006p" +
        "roto3"
      };
      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.tencent.angel.serving.apis.common.TypesProtos.getDescriptor(),
            com.tencent.angel.serving.apis.common.TensorShapeProtos.getDescriptor(),
            com.tencent.angel.core.stats.AllocationDescriptionProtos.getDescriptor(),
          }, assigner);
      internal_static_angel_TensorDescription_descriptor =
        getDescriptor().getMessageTypes().get(0);
      internal_static_angel_TensorDescription_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_angel_TensorDescription_descriptor,
          new java.lang.String[] { "Dtype", "Shape", "AllocationDescription", });
      com.tencent.angel.serving.apis.common.TypesProtos.getDescriptor();
      com.tencent.angel.serving.apis.common.TensorShapeProtos.getDescriptor();
      com.tencent.angel.core.stats.AllocationDescriptionProtos.getDescriptor();
    }
  
    // @@protoc_insertion_point(outer_class_scope)
  }
  