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

tensorflow.CppShapeInference Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/python/framework/cpp_shape_inference.proto

package tensorflow;

public final class CppShapeInference {
  private CppShapeInference() {}
  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 CppShapeInferenceResultOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.CppShapeInferenceResult)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .tensorflow.TensorShapeProto shape = 1;
     */
    boolean hasShape();
    /**
     * .tensorflow.TensorShapeProto shape = 1;
     */
    org.tensorflow.framework.TensorShapeProto getShape();
    /**
     * .tensorflow.TensorShapeProto shape = 1;
     */
    org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder();

    /**
     * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4;
     */
    boolean hasHandleData();
    /**
     * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4;
     */
    tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData getHandleData();
    /**
     * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4;
     */
    tensorflow.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder getHandleDataOrBuilder();
  }
  /**
   * Protobuf type {@code tensorflow.CppShapeInferenceResult}
   */
  public  static final class CppShapeInferenceResult extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.CppShapeInferenceResult)
      CppShapeInferenceResultOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CppShapeInferenceResult.newBuilder() to construct.
    private CppShapeInferenceResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private CppShapeInferenceResult() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private CppShapeInferenceResult(
        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;
            case 10: {
              org.tensorflow.framework.TensorShapeProto.Builder subBuilder = null;
              if (shape_ != null) {
                subBuilder = shape_.toBuilder();
              }
              shape_ = input.readMessage(org.tensorflow.framework.TensorShapeProto.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(shape_);
                shape_ = subBuilder.buildPartial();
              }

              break;
            }
            case 34: {
              tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.Builder subBuilder = null;
              if (handleData_ != null) {
                subBuilder = handleData_.toBuilder();
              }
              handleData_ = input.readMessage(tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(handleData_);
                handleData_ = subBuilder.buildPartial();
              }

              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              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 tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tensorflow.CppShapeInference.CppShapeInferenceResult.class, tensorflow.CppShapeInference.CppShapeInferenceResult.Builder.class);
    }

    public interface HandleShapeAndTypeOrBuilder extends
        // @@protoc_insertion_point(interface_extends:tensorflow.CppShapeInferenceResult.HandleShapeAndType)
        com.google.protobuf.MessageOrBuilder {

      /**
       * .tensorflow.TensorShapeProto shape = 1;
       */
      boolean hasShape();
      /**
       * .tensorflow.TensorShapeProto shape = 1;
       */
      org.tensorflow.framework.TensorShapeProto getShape();
      /**
       * .tensorflow.TensorShapeProto shape = 1;
       */
      org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder();

      /**
       * .tensorflow.DataType dtype = 2;
       */
      int getDtypeValue();
      /**
       * .tensorflow.DataType dtype = 2;
       */
      org.tensorflow.framework.DataType getDtype();
    }
    /**
     * Protobuf type {@code tensorflow.CppShapeInferenceResult.HandleShapeAndType}
     */
    public  static final class HandleShapeAndType extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:tensorflow.CppShapeInferenceResult.HandleShapeAndType)
        HandleShapeAndTypeOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use HandleShapeAndType.newBuilder() to construct.
      private HandleShapeAndType(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private HandleShapeAndType() {
        dtype_ = 0;
      }

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private HandleShapeAndType(
          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;
              case 10: {
                org.tensorflow.framework.TensorShapeProto.Builder subBuilder = null;
                if (shape_ != null) {
                  subBuilder = shape_.toBuilder();
                }
                shape_ = input.readMessage(org.tensorflow.framework.TensorShapeProto.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(shape_);
                  shape_ = subBuilder.buildPartial();
                }

                break;
              }
              case 16: {
                int rawValue = input.readEnum();

                dtype_ = rawValue;
                break;
              }
              default: {
                if (!parseUnknownFieldProto3(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                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 tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_HandleShapeAndType_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_HandleShapeAndType_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.class, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder.class);
      }

      public static final int SHAPE_FIELD_NUMBER = 1;
      private org.tensorflow.framework.TensorShapeProto shape_;
      /**
       * .tensorflow.TensorShapeProto shape = 1;
       */
      public boolean hasShape() {
        return shape_ != null;
      }
      /**
       * .tensorflow.TensorShapeProto shape = 1;
       */
      public org.tensorflow.framework.TensorShapeProto getShape() {
        return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_;
      }
      /**
       * .tensorflow.TensorShapeProto shape = 1;
       */
      public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() {
        return getShape();
      }

      public static final int DTYPE_FIELD_NUMBER = 2;
      private int dtype_;
      /**
       * .tensorflow.DataType dtype = 2;
       */
      public int getDtypeValue() {
        return dtype_;
      }
      /**
       * .tensorflow.DataType dtype = 2;
       */
      public org.tensorflow.framework.DataType getDtype() {
        @SuppressWarnings("deprecation")
        org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
        return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
      }

      private byte memoizedIsInitialized = -1;
      @java.lang.Override
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized == 1) return true;
        if (isInitialized == 0) return false;

        memoizedIsInitialized = 1;
        return true;
      }

      @java.lang.Override
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        if (shape_ != null) {
          output.writeMessage(1, getShape());
        }
        if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
          output.writeEnum(2, dtype_);
        }
        unknownFields.writeTo(output);
      }

      @java.lang.Override
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;

        size = 0;
        if (shape_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, getShape());
        }
        if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
          size += com.google.protobuf.CodedOutputStream
            .computeEnumSize(2, dtype_);
        }
        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 tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType)) {
          return super.equals(obj);
        }
        tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType other = (tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType) obj;

        boolean result = true;
        result = result && (hasShape() == other.hasShape());
        if (hasShape()) {
          result = result && getShape()
              .equals(other.getShape());
        }
        result = result && dtype_ == other.dtype_;
        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();
        if (hasShape()) {
          hash = (37 * hash) + SHAPE_FIELD_NUMBER;
          hash = (53 * hash) + getShape().hashCode();
        }
        hash = (37 * hash) + DTYPE_FIELD_NUMBER;
        hash = (53 * hash) + dtype_;
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType 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 tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType 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 tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input, extensionRegistry);
      }

      @java.lang.Override
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder() {
        return DEFAULT_INSTANCE.toBuilder();
      }
      public static Builder newBuilder(tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType prototype) {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
      }
      @java.lang.Override
      public Builder toBuilder() {
        return this == DEFAULT_INSTANCE
            ? new Builder() : new Builder().mergeFrom(this);
      }

      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      /**
       * Protobuf type {@code tensorflow.CppShapeInferenceResult.HandleShapeAndType}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder implements
          // @@protoc_insertion_point(builder_implements:tensorflow.CppShapeInferenceResult.HandleShapeAndType)
          tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_HandleShapeAndType_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_HandleShapeAndType_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.class, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder.class);
        }

        // Construct using tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
          }
        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          if (shapeBuilder_ == null) {
            shape_ = null;
          } else {
            shape_ = null;
            shapeBuilder_ = null;
          }
          dtype_ = 0;

          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_HandleShapeAndType_descriptor;
        }

        @java.lang.Override
        public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getDefaultInstanceForType() {
          return tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.getDefaultInstance();
        }

        @java.lang.Override
        public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType build() {
          tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType buildPartial() {
          tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType result = new tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType(this);
          if (shapeBuilder_ == null) {
            result.shape_ = shape_;
          } else {
            result.shape_ = shapeBuilder_.build();
          }
          result.dtype_ = dtype_;
          onBuilt();
          return result;
        }

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

        public Builder mergeFrom(tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType other) {
          if (other == tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.getDefaultInstance()) return this;
          if (other.hasShape()) {
            mergeShape(other.getShape());
          }
          if (other.dtype_ != 0) {
            setDtypeValue(other.getDtypeValue());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

        @java.lang.Override
        public final boolean isInitialized() {
          return true;
        }

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }

        private org.tensorflow.framework.TensorShapeProto shape_ = null;
        private com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder> shapeBuilder_;
        /**
         * .tensorflow.TensorShapeProto shape = 1;
         */
        public boolean hasShape() {
          return shapeBuilder_ != null || shape_ != null;
        }
        /**
         * .tensorflow.TensorShapeProto shape = 1;
         */
        public org.tensorflow.framework.TensorShapeProto getShape() {
          if (shapeBuilder_ == null) {
            return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_;
          } else {
            return shapeBuilder_.getMessage();
          }
        }
        /**
         * .tensorflow.TensorShapeProto shape = 1;
         */
        public Builder setShape(org.tensorflow.framework.TensorShapeProto value) {
          if (shapeBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            shape_ = value;
            onChanged();
          } else {
            shapeBuilder_.setMessage(value);
          }

          return this;
        }
        /**
         * .tensorflow.TensorShapeProto shape = 1;
         */
        public Builder setShape(
            org.tensorflow.framework.TensorShapeProto.Builder builderForValue) {
          if (shapeBuilder_ == null) {
            shape_ = builderForValue.build();
            onChanged();
          } else {
            shapeBuilder_.setMessage(builderForValue.build());
          }

          return this;
        }
        /**
         * .tensorflow.TensorShapeProto shape = 1;
         */
        public Builder mergeShape(org.tensorflow.framework.TensorShapeProto value) {
          if (shapeBuilder_ == null) {
            if (shape_ != null) {
              shape_ =
                org.tensorflow.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial();
            } else {
              shape_ = value;
            }
            onChanged();
          } else {
            shapeBuilder_.mergeFrom(value);
          }

          return this;
        }
        /**
         * .tensorflow.TensorShapeProto shape = 1;
         */
        public Builder clearShape() {
          if (shapeBuilder_ == null) {
            shape_ = null;
            onChanged();
          } else {
            shape_ = null;
            shapeBuilder_ = null;
          }

          return this;
        }
        /**
         * .tensorflow.TensorShapeProto shape = 1;
         */
        public org.tensorflow.framework.TensorShapeProto.Builder getShapeBuilder() {
          
          onChanged();
          return getShapeFieldBuilder().getBuilder();
        }
        /**
         * .tensorflow.TensorShapeProto shape = 1;
         */
        public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() {
          if (shapeBuilder_ != null) {
            return shapeBuilder_.getMessageOrBuilder();
          } else {
            return shape_ == null ?
                org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_;
          }
        }
        /**
         * .tensorflow.TensorShapeProto shape = 1;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder> 
            getShapeFieldBuilder() {
          if (shapeBuilder_ == null) {
            shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder>(
                    getShape(),
                    getParentForChildren(),
                    isClean());
            shape_ = null;
          }
          return shapeBuilder_;
        }

        private int dtype_ = 0;
        /**
         * .tensorflow.DataType dtype = 2;
         */
        public int getDtypeValue() {
          return dtype_;
        }
        /**
         * .tensorflow.DataType dtype = 2;
         */
        public Builder setDtypeValue(int value) {
          dtype_ = value;
          onChanged();
          return this;
        }
        /**
         * .tensorflow.DataType dtype = 2;
         */
        public org.tensorflow.framework.DataType getDtype() {
          @SuppressWarnings("deprecation")
          org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
          return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
        }
        /**
         * .tensorflow.DataType dtype = 2;
         */
        public Builder setDtype(org.tensorflow.framework.DataType value) {
          if (value == null) {
            throw new NullPointerException();
          }
          
          dtype_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         * .tensorflow.DataType dtype = 2;
         */
        public Builder clearDtype() {
          
          dtype_ = 0;
          onChanged();
          return this;
        }
        @java.lang.Override
        public final Builder setUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.setUnknownFieldsProto3(unknownFields);
        }

        @java.lang.Override
        public final Builder mergeUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.mergeUnknownFields(unknownFields);
        }


        // @@protoc_insertion_point(builder_scope:tensorflow.CppShapeInferenceResult.HandleShapeAndType)
      }

      // @@protoc_insertion_point(class_scope:tensorflow.CppShapeInferenceResult.HandleShapeAndType)
      private static final tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType();
      }

      public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

      private static final com.google.protobuf.Parser
          PARSER = new com.google.protobuf.AbstractParser() {
        @java.lang.Override
        public HandleShapeAndType parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new HandleShapeAndType(input, extensionRegistry);
        }
      };

      public static com.google.protobuf.Parser parser() {
        return PARSER;
      }

      @java.lang.Override
      public com.google.protobuf.Parser getParserForType() {
        return PARSER;
      }

      @java.lang.Override
      public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    public interface HandleDataOrBuilder extends
        // @@protoc_insertion_point(interface_extends:tensorflow.CppShapeInferenceResult.HandleData)
        com.google.protobuf.MessageOrBuilder {

      /**
       * bool is_set = 1;
       */
      boolean getIsSet();

      /**
       * 
       * Only valid if <is_set>.
       * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ java.util.List getShapeAndTypeList(); /** *
       * Only valid if <is_set>.
       * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getShapeAndType(int index); /** *
       * Only valid if <is_set>.
       * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ int getShapeAndTypeCount(); /** *
       * Only valid if <is_set>.
       * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ java.util.List getShapeAndTypeOrBuilderList(); /** *
       * Only valid if <is_set>.
       * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder getShapeAndTypeOrBuilder( int index); } /** * Protobuf type {@code tensorflow.CppShapeInferenceResult.HandleData} */ public static final class HandleData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CppShapeInferenceResult.HandleData) HandleDataOrBuilder { private static final long serialVersionUID = 0L; // Use HandleData.newBuilder() to construct. private HandleData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HandleData() { isSet_ = false; shapeAndType_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HandleData( 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; case 8: { isSet_ = input.readBool(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { shapeAndType_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } shapeAndType_.add( input.readMessage(tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } 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)) { shapeAndType_ = java.util.Collections.unmodifiableList(shapeAndType_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_HandleData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_HandleData_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.class, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.Builder.class); } private int bitField0_; public static final int IS_SET_FIELD_NUMBER = 1; private boolean isSet_; /** * bool is_set = 1; */ public boolean getIsSet() { return isSet_; } public static final int SHAPE_AND_TYPE_FIELD_NUMBER = 2; private java.util.List shapeAndType_; /** *
       * Only valid if <is_set>.
       * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public java.util.List getShapeAndTypeList() { return shapeAndType_; } /** *
       * Only valid if <is_set>.
       * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public java.util.List getShapeAndTypeOrBuilderList() { return shapeAndType_; } /** *
       * Only valid if <is_set>.
       * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public int getShapeAndTypeCount() { return shapeAndType_.size(); } /** *
       * Only valid if <is_set>.
       * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getShapeAndType(int index) { return shapeAndType_.get(index); } /** *
       * Only valid if <is_set>.
       * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder getShapeAndTypeOrBuilder( int index) { return shapeAndType_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (isSet_ != false) { output.writeBool(1, isSet_); } for (int i = 0; i < shapeAndType_.size(); i++) { output.writeMessage(2, shapeAndType_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (isSet_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isSet_); } for (int i = 0; i < shapeAndType_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, shapeAndType_.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 tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData)) { return super.equals(obj); } tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData other = (tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData) obj; boolean result = true; result = result && (getIsSet() == other.getIsSet()); result = result && getShapeAndTypeList() .equals(other.getShapeAndTypeList()); 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) + IS_SET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsSet()); if (getShapeAndTypeCount() > 0) { hash = (37 * hash) + SHAPE_AND_TYPE_FIELD_NUMBER; hash = (53 * hash) + getShapeAndTypeList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData 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 tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData 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 tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.CppShapeInferenceResult.HandleData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CppShapeInferenceResult.HandleData) tensorflow.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_HandleData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_HandleData_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.class, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.Builder.class); } // Construct using tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getShapeAndTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); isSet_ = false; if (shapeAndTypeBuilder_ == null) { shapeAndType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { shapeAndTypeBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_HandleData_descriptor; } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData getDefaultInstanceForType() { return tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.getDefaultInstance(); } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData build() { tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData buildPartial() { tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData result = new tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.isSet_ = isSet_; if (shapeAndTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { shapeAndType_ = java.util.Collections.unmodifiableList(shapeAndType_); bitField0_ = (bitField0_ & ~0x00000002); } result.shapeAndType_ = shapeAndType_; } else { result.shapeAndType_ = shapeAndTypeBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData) { return mergeFrom((tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData other) { if (other == tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.getDefaultInstance()) return this; if (other.getIsSet() != false) { setIsSet(other.getIsSet()); } if (shapeAndTypeBuilder_ == null) { if (!other.shapeAndType_.isEmpty()) { if (shapeAndType_.isEmpty()) { shapeAndType_ = other.shapeAndType_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureShapeAndTypeIsMutable(); shapeAndType_.addAll(other.shapeAndType_); } onChanged(); } } else { if (!other.shapeAndType_.isEmpty()) { if (shapeAndTypeBuilder_.isEmpty()) { shapeAndTypeBuilder_.dispose(); shapeAndTypeBuilder_ = null; shapeAndType_ = other.shapeAndType_; bitField0_ = (bitField0_ & ~0x00000002); shapeAndTypeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShapeAndTypeFieldBuilder() : null; } else { shapeAndTypeBuilder_.addAllMessages(other.shapeAndType_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean isSet_ ; /** * bool is_set = 1; */ public boolean getIsSet() { return isSet_; } /** * bool is_set = 1; */ public Builder setIsSet(boolean value) { isSet_ = value; onChanged(); return this; } /** * bool is_set = 1; */ public Builder clearIsSet() { isSet_ = false; onChanged(); return this; } private java.util.List shapeAndType_ = java.util.Collections.emptyList(); private void ensureShapeAndTypeIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { shapeAndType_ = new java.util.ArrayList(shapeAndType_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder> shapeAndTypeBuilder_; /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public java.util.List getShapeAndTypeList() { if (shapeAndTypeBuilder_ == null) { return java.util.Collections.unmodifiableList(shapeAndType_); } else { return shapeAndTypeBuilder_.getMessageList(); } } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public int getShapeAndTypeCount() { if (shapeAndTypeBuilder_ == null) { return shapeAndType_.size(); } else { return shapeAndTypeBuilder_.getCount(); } } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getShapeAndType(int index) { if (shapeAndTypeBuilder_ == null) { return shapeAndType_.get(index); } else { return shapeAndTypeBuilder_.getMessage(index); } } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public Builder setShapeAndType( int index, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType value) { if (shapeAndTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeAndTypeIsMutable(); shapeAndType_.set(index, value); onChanged(); } else { shapeAndTypeBuilder_.setMessage(index, value); } return this; } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public Builder setShapeAndType( int index, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder builderForValue) { if (shapeAndTypeBuilder_ == null) { ensureShapeAndTypeIsMutable(); shapeAndType_.set(index, builderForValue.build()); onChanged(); } else { shapeAndTypeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public Builder addShapeAndType(tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType value) { if (shapeAndTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeAndTypeIsMutable(); shapeAndType_.add(value); onChanged(); } else { shapeAndTypeBuilder_.addMessage(value); } return this; } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public Builder addShapeAndType( int index, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType value) { if (shapeAndTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeAndTypeIsMutable(); shapeAndType_.add(index, value); onChanged(); } else { shapeAndTypeBuilder_.addMessage(index, value); } return this; } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public Builder addShapeAndType( tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder builderForValue) { if (shapeAndTypeBuilder_ == null) { ensureShapeAndTypeIsMutable(); shapeAndType_.add(builderForValue.build()); onChanged(); } else { shapeAndTypeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public Builder addShapeAndType( int index, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder builderForValue) { if (shapeAndTypeBuilder_ == null) { ensureShapeAndTypeIsMutable(); shapeAndType_.add(index, builderForValue.build()); onChanged(); } else { shapeAndTypeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public Builder addAllShapeAndType( java.lang.Iterable values) { if (shapeAndTypeBuilder_ == null) { ensureShapeAndTypeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shapeAndType_); onChanged(); } else { shapeAndTypeBuilder_.addAllMessages(values); } return this; } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public Builder clearShapeAndType() { if (shapeAndTypeBuilder_ == null) { shapeAndType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { shapeAndTypeBuilder_.clear(); } return this; } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public Builder removeShapeAndType(int index) { if (shapeAndTypeBuilder_ == null) { ensureShapeAndTypeIsMutable(); shapeAndType_.remove(index); onChanged(); } else { shapeAndTypeBuilder_.remove(index); } return this; } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder getShapeAndTypeBuilder( int index) { return getShapeAndTypeFieldBuilder().getBuilder(index); } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder getShapeAndTypeOrBuilder( int index) { if (shapeAndTypeBuilder_ == null) { return shapeAndType_.get(index); } else { return shapeAndTypeBuilder_.getMessageOrBuilder(index); } } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public java.util.List getShapeAndTypeOrBuilderList() { if (shapeAndTypeBuilder_ != null) { return shapeAndTypeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shapeAndType_); } } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder addShapeAndTypeBuilder() { return getShapeAndTypeFieldBuilder().addBuilder( tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.getDefaultInstance()); } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder addShapeAndTypeBuilder( int index) { return getShapeAndTypeFieldBuilder().addBuilder( index, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.getDefaultInstance()); } /** *
         * Only valid if <is_set>.
         * 
* * repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; */ public java.util.List getShapeAndTypeBuilderList() { return getShapeAndTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder> getShapeAndTypeFieldBuilder() { if (shapeAndTypeBuilder_ == null) { shapeAndTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder>( shapeAndType_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); shapeAndType_ = null; } return shapeAndTypeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CppShapeInferenceResult.HandleData) } // @@protoc_insertion_point(class_scope:tensorflow.CppShapeInferenceResult.HandleData) private static final tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData(); } public static tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HandleData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HandleData(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int SHAPE_FIELD_NUMBER = 1; private org.tensorflow.framework.TensorShapeProto shape_; /** * .tensorflow.TensorShapeProto shape = 1; */ public boolean hasShape() { return shape_ != null; } /** * .tensorflow.TensorShapeProto shape = 1; */ public org.tensorflow.framework.TensorShapeProto getShape() { return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_; } /** * .tensorflow.TensorShapeProto shape = 1; */ public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { return getShape(); } public static final int HANDLE_DATA_FIELD_NUMBER = 4; private tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData handleData_; /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public boolean hasHandleData() { return handleData_ != null; } /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData getHandleData() { return handleData_ == null ? tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.getDefaultInstance() : handleData_; } /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder getHandleDataOrBuilder() { return getHandleData(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (shape_ != null) { output.writeMessage(1, getShape()); } if (handleData_ != null) { output.writeMessage(4, getHandleData()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (shape_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getShape()); } if (handleData_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getHandleData()); } 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 tensorflow.CppShapeInference.CppShapeInferenceResult)) { return super.equals(obj); } tensorflow.CppShapeInference.CppShapeInferenceResult other = (tensorflow.CppShapeInference.CppShapeInferenceResult) obj; boolean result = true; result = result && (hasShape() == other.hasShape()); if (hasShape()) { result = result && getShape() .equals(other.getShape()); } result = result && (hasHandleData() == other.hasHandleData()); if (hasHandleData()) { result = result && getHandleData() .equals(other.getHandleData()); } 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(); if (hasShape()) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShape().hashCode(); } if (hasHandleData()) { hash = (37 * hash) + HANDLE_DATA_FIELD_NUMBER; hash = (53 * hash) + getHandleData().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.CppShapeInference.CppShapeInferenceResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.CppShapeInference.CppShapeInferenceResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.CppShapeInference.CppShapeInferenceResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.CppShapeInference.CppShapeInferenceResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.CppShapeInference.CppShapeInferenceResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.CppShapeInference.CppShapeInferenceResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.CppShapeInference.CppShapeInferenceResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.CppShapeInference.CppShapeInferenceResult 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 tensorflow.CppShapeInference.CppShapeInferenceResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.CppShapeInference.CppShapeInferenceResult 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 tensorflow.CppShapeInference.CppShapeInferenceResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.CppShapeInference.CppShapeInferenceResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.CppShapeInference.CppShapeInferenceResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.CppShapeInferenceResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CppShapeInferenceResult) tensorflow.CppShapeInference.CppShapeInferenceResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.CppShapeInference.CppShapeInferenceResult.class, tensorflow.CppShapeInference.CppShapeInferenceResult.Builder.class); } // Construct using tensorflow.CppShapeInference.CppShapeInferenceResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (shapeBuilder_ == null) { shape_ = null; } else { shape_ = null; shapeBuilder_ = null; } if (handleDataBuilder_ == null) { handleData_ = null; } else { handleData_ = null; handleDataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceResult_descriptor; } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceResult getDefaultInstanceForType() { return tensorflow.CppShapeInference.CppShapeInferenceResult.getDefaultInstance(); } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceResult build() { tensorflow.CppShapeInference.CppShapeInferenceResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceResult buildPartial() { tensorflow.CppShapeInference.CppShapeInferenceResult result = new tensorflow.CppShapeInference.CppShapeInferenceResult(this); if (shapeBuilder_ == null) { result.shape_ = shape_; } else { result.shape_ = shapeBuilder_.build(); } if (handleDataBuilder_ == null) { result.handleData_ = handleData_; } else { result.handleData_ = handleDataBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tensorflow.CppShapeInference.CppShapeInferenceResult) { return mergeFrom((tensorflow.CppShapeInference.CppShapeInferenceResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.CppShapeInference.CppShapeInferenceResult other) { if (other == tensorflow.CppShapeInference.CppShapeInferenceResult.getDefaultInstance()) return this; if (other.hasShape()) { mergeShape(other.getShape()); } if (other.hasHandleData()) { mergeHandleData(other.getHandleData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.CppShapeInference.CppShapeInferenceResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.CppShapeInference.CppShapeInferenceResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tensorflow.framework.TensorShapeProto shape_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder> shapeBuilder_; /** * .tensorflow.TensorShapeProto shape = 1; */ public boolean hasShape() { return shapeBuilder_ != null || shape_ != null; } /** * .tensorflow.TensorShapeProto shape = 1; */ public org.tensorflow.framework.TensorShapeProto getShape() { if (shapeBuilder_ == null) { return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_; } else { return shapeBuilder_.getMessage(); } } /** * .tensorflow.TensorShapeProto shape = 1; */ public Builder setShape(org.tensorflow.framework.TensorShapeProto value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shape_ = value; onChanged(); } else { shapeBuilder_.setMessage(value); } return this; } /** * .tensorflow.TensorShapeProto shape = 1; */ public Builder setShape( org.tensorflow.framework.TensorShapeProto.Builder builderForValue) { if (shapeBuilder_ == null) { shape_ = builderForValue.build(); onChanged(); } else { shapeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tensorflow.TensorShapeProto shape = 1; */ public Builder mergeShape(org.tensorflow.framework.TensorShapeProto value) { if (shapeBuilder_ == null) { if (shape_ != null) { shape_ = org.tensorflow.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); } else { shape_ = value; } onChanged(); } else { shapeBuilder_.mergeFrom(value); } return this; } /** * .tensorflow.TensorShapeProto shape = 1; */ public Builder clearShape() { if (shapeBuilder_ == null) { shape_ = null; onChanged(); } else { shape_ = null; shapeBuilder_ = null; } return this; } /** * .tensorflow.TensorShapeProto shape = 1; */ public org.tensorflow.framework.TensorShapeProto.Builder getShapeBuilder() { onChanged(); return getShapeFieldBuilder().getBuilder(); } /** * .tensorflow.TensorShapeProto shape = 1; */ public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { if (shapeBuilder_ != null) { return shapeBuilder_.getMessageOrBuilder(); } else { return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_; } } /** * .tensorflow.TensorShapeProto shape = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder>( getShape(), getParentForChildren(), isClean()); shape_ = null; } return shapeBuilder_; } private tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData handleData_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.Builder, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder> handleDataBuilder_; /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public boolean hasHandleData() { return handleDataBuilder_ != null || handleData_ != null; } /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData getHandleData() { if (handleDataBuilder_ == null) { return handleData_ == null ? tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.getDefaultInstance() : handleData_; } else { return handleDataBuilder_.getMessage(); } } /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public Builder setHandleData(tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData value) { if (handleDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } handleData_ = value; onChanged(); } else { handleDataBuilder_.setMessage(value); } return this; } /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public Builder setHandleData( tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.Builder builderForValue) { if (handleDataBuilder_ == null) { handleData_ = builderForValue.build(); onChanged(); } else { handleDataBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public Builder mergeHandleData(tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData value) { if (handleDataBuilder_ == null) { if (handleData_ != null) { handleData_ = tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.newBuilder(handleData_).mergeFrom(value).buildPartial(); } else { handleData_ = value; } onChanged(); } else { handleDataBuilder_.mergeFrom(value); } return this; } /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public Builder clearHandleData() { if (handleDataBuilder_ == null) { handleData_ = null; onChanged(); } else { handleData_ = null; handleDataBuilder_ = null; } return this; } /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.Builder getHandleDataBuilder() { onChanged(); return getHandleDataFieldBuilder().getBuilder(); } /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ public tensorflow.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder getHandleDataOrBuilder() { if (handleDataBuilder_ != null) { return handleDataBuilder_.getMessageOrBuilder(); } else { return handleData_ == null ? tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.getDefaultInstance() : handleData_; } } /** * .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.Builder, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder> getHandleDataFieldBuilder() { if (handleDataBuilder_ == null) { handleDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleData.Builder, tensorflow.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder>( getHandleData(), getParentForChildren(), isClean()); handleData_ = null; } return handleDataBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CppShapeInferenceResult) } // @@protoc_insertion_point(class_scope:tensorflow.CppShapeInferenceResult) private static final tensorflow.CppShapeInference.CppShapeInferenceResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.CppShapeInference.CppShapeInferenceResult(); } public static tensorflow.CppShapeInference.CppShapeInferenceResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CppShapeInferenceResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CppShapeInferenceResult(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CppShapeInferenceInputsNeededOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.CppShapeInferenceInputsNeeded) com.google.protobuf.MessageOrBuilder { /** * repeated int32 input_tensors_needed = 1; */ java.util.List getInputTensorsNeededList(); /** * repeated int32 input_tensors_needed = 1; */ int getInputTensorsNeededCount(); /** * repeated int32 input_tensors_needed = 1; */ int getInputTensorsNeeded(int index); /** * repeated int32 input_tensors_as_shapes_needed = 2; */ java.util.List getInputTensorsAsShapesNeededList(); /** * repeated int32 input_tensors_as_shapes_needed = 2; */ int getInputTensorsAsShapesNeededCount(); /** * repeated int32 input_tensors_as_shapes_needed = 2; */ int getInputTensorsAsShapesNeeded(int index); } /** * Protobuf type {@code tensorflow.CppShapeInferenceInputsNeeded} */ public static final class CppShapeInferenceInputsNeeded extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CppShapeInferenceInputsNeeded) CppShapeInferenceInputsNeededOrBuilder { private static final long serialVersionUID = 0L; // Use CppShapeInferenceInputsNeeded.newBuilder() to construct. private CppShapeInferenceInputsNeeded(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CppShapeInferenceInputsNeeded() { inputTensorsNeeded_ = java.util.Collections.emptyList(); inputTensorsAsShapesNeeded_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CppShapeInferenceInputsNeeded( 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; case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { inputTensorsNeeded_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } inputTensorsNeeded_.add(input.readInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { inputTensorsNeeded_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { inputTensorsNeeded_.add(input.readInt32()); } input.popLimit(limit); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { inputTensorsAsShapesNeeded_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } inputTensorsAsShapesNeeded_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { inputTensorsAsShapesNeeded_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { inputTensorsAsShapesNeeded_.add(input.readInt32()); } input.popLimit(limit); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } 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_ & 0x00000001) == 0x00000001)) { inputTensorsNeeded_ = java.util.Collections.unmodifiableList(inputTensorsNeeded_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { inputTensorsAsShapesNeeded_ = java.util.Collections.unmodifiableList(inputTensorsAsShapesNeeded_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceInputsNeeded_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceInputsNeeded_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded.class, tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded.Builder.class); } public static final int INPUT_TENSORS_NEEDED_FIELD_NUMBER = 1; private java.util.List inputTensorsNeeded_; /** * repeated int32 input_tensors_needed = 1; */ public java.util.List getInputTensorsNeededList() { return inputTensorsNeeded_; } /** * repeated int32 input_tensors_needed = 1; */ public int getInputTensorsNeededCount() { return inputTensorsNeeded_.size(); } /** * repeated int32 input_tensors_needed = 1; */ public int getInputTensorsNeeded(int index) { return inputTensorsNeeded_.get(index); } private int inputTensorsNeededMemoizedSerializedSize = -1; public static final int INPUT_TENSORS_AS_SHAPES_NEEDED_FIELD_NUMBER = 2; private java.util.List inputTensorsAsShapesNeeded_; /** * repeated int32 input_tensors_as_shapes_needed = 2; */ public java.util.List getInputTensorsAsShapesNeededList() { return inputTensorsAsShapesNeeded_; } /** * repeated int32 input_tensors_as_shapes_needed = 2; */ public int getInputTensorsAsShapesNeededCount() { return inputTensorsAsShapesNeeded_.size(); } /** * repeated int32 input_tensors_as_shapes_needed = 2; */ public int getInputTensorsAsShapesNeeded(int index) { return inputTensorsAsShapesNeeded_.get(index); } private int inputTensorsAsShapesNeededMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getInputTensorsNeededList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(inputTensorsNeededMemoizedSerializedSize); } for (int i = 0; i < inputTensorsNeeded_.size(); i++) { output.writeInt32NoTag(inputTensorsNeeded_.get(i)); } if (getInputTensorsAsShapesNeededList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(inputTensorsAsShapesNeededMemoizedSerializedSize); } for (int i = 0; i < inputTensorsAsShapesNeeded_.size(); i++) { output.writeInt32NoTag(inputTensorsAsShapesNeeded_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < inputTensorsNeeded_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(inputTensorsNeeded_.get(i)); } size += dataSize; if (!getInputTensorsNeededList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } inputTensorsNeededMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < inputTensorsAsShapesNeeded_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(inputTensorsAsShapesNeeded_.get(i)); } size += dataSize; if (!getInputTensorsAsShapesNeededList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } inputTensorsAsShapesNeededMemoizedSerializedSize = 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 tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded)) { return super.equals(obj); } tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded other = (tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded) obj; boolean result = true; result = result && getInputTensorsNeededList() .equals(other.getInputTensorsNeededList()); result = result && getInputTensorsAsShapesNeededList() .equals(other.getInputTensorsAsShapesNeededList()); 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(); if (getInputTensorsNeededCount() > 0) { hash = (37 * hash) + INPUT_TENSORS_NEEDED_FIELD_NUMBER; hash = (53 * hash) + getInputTensorsNeededList().hashCode(); } if (getInputTensorsAsShapesNeededCount() > 0) { hash = (37 * hash) + INPUT_TENSORS_AS_SHAPES_NEEDED_FIELD_NUMBER; hash = (53 * hash) + getInputTensorsAsShapesNeededList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded 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 tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded 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 tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.CppShapeInferenceInputsNeeded} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CppShapeInferenceInputsNeeded) tensorflow.CppShapeInference.CppShapeInferenceInputsNeededOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceInputsNeeded_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceInputsNeeded_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded.class, tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded.Builder.class); } // Construct using tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); inputTensorsNeeded_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); inputTensorsAsShapesNeeded_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.CppShapeInference.internal_static_tensorflow_CppShapeInferenceInputsNeeded_descriptor; } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded getDefaultInstanceForType() { return tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded.getDefaultInstance(); } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded build() { tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded buildPartial() { tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded result = new tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { inputTensorsNeeded_ = java.util.Collections.unmodifiableList(inputTensorsNeeded_); bitField0_ = (bitField0_ & ~0x00000001); } result.inputTensorsNeeded_ = inputTensorsNeeded_; if (((bitField0_ & 0x00000002) == 0x00000002)) { inputTensorsAsShapesNeeded_ = java.util.Collections.unmodifiableList(inputTensorsAsShapesNeeded_); bitField0_ = (bitField0_ & ~0x00000002); } result.inputTensorsAsShapesNeeded_ = inputTensorsAsShapesNeeded_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded) { return mergeFrom((tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded other) { if (other == tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded.getDefaultInstance()) return this; if (!other.inputTensorsNeeded_.isEmpty()) { if (inputTensorsNeeded_.isEmpty()) { inputTensorsNeeded_ = other.inputTensorsNeeded_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInputTensorsNeededIsMutable(); inputTensorsNeeded_.addAll(other.inputTensorsNeeded_); } onChanged(); } if (!other.inputTensorsAsShapesNeeded_.isEmpty()) { if (inputTensorsAsShapesNeeded_.isEmpty()) { inputTensorsAsShapesNeeded_ = other.inputTensorsAsShapesNeeded_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInputTensorsAsShapesNeededIsMutable(); inputTensorsAsShapesNeeded_.addAll(other.inputTensorsAsShapesNeeded_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List inputTensorsNeeded_ = java.util.Collections.emptyList(); private void ensureInputTensorsNeededIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { inputTensorsNeeded_ = new java.util.ArrayList(inputTensorsNeeded_); bitField0_ |= 0x00000001; } } /** * repeated int32 input_tensors_needed = 1; */ public java.util.List getInputTensorsNeededList() { return java.util.Collections.unmodifiableList(inputTensorsNeeded_); } /** * repeated int32 input_tensors_needed = 1; */ public int getInputTensorsNeededCount() { return inputTensorsNeeded_.size(); } /** * repeated int32 input_tensors_needed = 1; */ public int getInputTensorsNeeded(int index) { return inputTensorsNeeded_.get(index); } /** * repeated int32 input_tensors_needed = 1; */ public Builder setInputTensorsNeeded( int index, int value) { ensureInputTensorsNeededIsMutable(); inputTensorsNeeded_.set(index, value); onChanged(); return this; } /** * repeated int32 input_tensors_needed = 1; */ public Builder addInputTensorsNeeded(int value) { ensureInputTensorsNeededIsMutable(); inputTensorsNeeded_.add(value); onChanged(); return this; } /** * repeated int32 input_tensors_needed = 1; */ public Builder addAllInputTensorsNeeded( java.lang.Iterable values) { ensureInputTensorsNeededIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, inputTensorsNeeded_); onChanged(); return this; } /** * repeated int32 input_tensors_needed = 1; */ public Builder clearInputTensorsNeeded() { inputTensorsNeeded_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.util.List inputTensorsAsShapesNeeded_ = java.util.Collections.emptyList(); private void ensureInputTensorsAsShapesNeededIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { inputTensorsAsShapesNeeded_ = new java.util.ArrayList(inputTensorsAsShapesNeeded_); bitField0_ |= 0x00000002; } } /** * repeated int32 input_tensors_as_shapes_needed = 2; */ public java.util.List getInputTensorsAsShapesNeededList() { return java.util.Collections.unmodifiableList(inputTensorsAsShapesNeeded_); } /** * repeated int32 input_tensors_as_shapes_needed = 2; */ public int getInputTensorsAsShapesNeededCount() { return inputTensorsAsShapesNeeded_.size(); } /** * repeated int32 input_tensors_as_shapes_needed = 2; */ public int getInputTensorsAsShapesNeeded(int index) { return inputTensorsAsShapesNeeded_.get(index); } /** * repeated int32 input_tensors_as_shapes_needed = 2; */ public Builder setInputTensorsAsShapesNeeded( int index, int value) { ensureInputTensorsAsShapesNeededIsMutable(); inputTensorsAsShapesNeeded_.set(index, value); onChanged(); return this; } /** * repeated int32 input_tensors_as_shapes_needed = 2; */ public Builder addInputTensorsAsShapesNeeded(int value) { ensureInputTensorsAsShapesNeededIsMutable(); inputTensorsAsShapesNeeded_.add(value); onChanged(); return this; } /** * repeated int32 input_tensors_as_shapes_needed = 2; */ public Builder addAllInputTensorsAsShapesNeeded( java.lang.Iterable values) { ensureInputTensorsAsShapesNeededIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, inputTensorsAsShapesNeeded_); onChanged(); return this; } /** * repeated int32 input_tensors_as_shapes_needed = 2; */ public Builder clearInputTensorsAsShapesNeeded() { inputTensorsAsShapesNeeded_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CppShapeInferenceInputsNeeded) } // @@protoc_insertion_point(class_scope:tensorflow.CppShapeInferenceInputsNeeded) private static final tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded(); } public static tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CppShapeInferenceInputsNeeded parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CppShapeInferenceInputsNeeded(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.CppShapeInference.CppShapeInferenceInputsNeeded getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_CppShapeInferenceResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_CppShapeInferenceResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_CppShapeInferenceResult_HandleShapeAndType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_CppShapeInferenceResult_HandleShapeAndType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_CppShapeInferenceResult_HandleData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_CppShapeInferenceResult_HandleData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_CppShapeInferenceInputsNeeded_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_CppShapeInferenceInputsNeeded_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n5tensorflow/python/framework/cpp_shape_" + "inference.proto\022\ntensorflow\032%tensorflow/" + "core/framework/types.proto\032,tensorflow/c" + "ore/framework/tensor_shape.proto\"\355\002\n\027Cpp" + "ShapeInferenceResult\022+\n\005shape\030\001 \001(\0132\034.te" + "nsorflow.TensorShapeProto\022C\n\013handle_data" + "\030\004 \001(\0132..tensorflow.CppShapeInferenceRes" + "ult.HandleData\032f\n\022HandleShapeAndType\022+\n\005" + "shape\030\001 \001(\0132\034.tensorflow.TensorShapeProt" + "o\022#\n\005dtype\030\002 \001(\0162\024.tensorflow.DataType\032l" + "\n\nHandleData\022\016\n\006is_set\030\001 \001(\010\022N\n\016shape_an" + "d_type\030\002 \003(\01326.tensorflow.CppShapeInfere" + "nceResult.HandleShapeAndTypeJ\004\010\002\020\003J\004\010\003\020\004" + "\"e\n\035CppShapeInferenceInputsNeeded\022\034\n\024inp" + "ut_tensors_needed\030\001 \003(\005\022&\n\036input_tensors" + "_as_shapes_needed\030\002 \003(\005B\003\370\001\001b\006proto3" }; 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[] { org.tensorflow.framework.TypesProtos.getDescriptor(), org.tensorflow.framework.TensorShapeProtos.getDescriptor(), }, assigner); internal_static_tensorflow_CppShapeInferenceResult_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tensorflow_CppShapeInferenceResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_CppShapeInferenceResult_descriptor, new java.lang.String[] { "Shape", "HandleData", }); internal_static_tensorflow_CppShapeInferenceResult_HandleShapeAndType_descriptor = internal_static_tensorflow_CppShapeInferenceResult_descriptor.getNestedTypes().get(0); internal_static_tensorflow_CppShapeInferenceResult_HandleShapeAndType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_CppShapeInferenceResult_HandleShapeAndType_descriptor, new java.lang.String[] { "Shape", "Dtype", }); internal_static_tensorflow_CppShapeInferenceResult_HandleData_descriptor = internal_static_tensorflow_CppShapeInferenceResult_descriptor.getNestedTypes().get(1); internal_static_tensorflow_CppShapeInferenceResult_HandleData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_CppShapeInferenceResult_HandleData_descriptor, new java.lang.String[] { "IsSet", "ShapeAndType", }); internal_static_tensorflow_CppShapeInferenceInputsNeeded_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tensorflow_CppShapeInferenceInputsNeeded_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_CppShapeInferenceInputsNeeded_descriptor, new java.lang.String[] { "InputTensorsNeeded", "InputTensorsAsShapesNeeded", }); org.tensorflow.framework.TypesProtos.getDescriptor(); org.tensorflow.framework.TensorShapeProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy