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

com.aliyun.openservices.eas.predict.proto.TorchPredictProtos Maven / Gradle / Ivy

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

package com.aliyun.openservices.eas.predict.proto;

public final class TorchPredictProtos {
  private TorchPredictProtos() {}
  public static void registerAllExtensions(
      shade.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      shade.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (shade.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code pytorch.eas.ArrayDataType}
   */
  public enum ArrayDataType
      implements shade.protobuf.ProtocolMessageEnum {
    /**
     * 
     * Not a legal value for DataType. Used to indicate a DataType field
     * has not been set.
     * 
* * DT_INVALID = 0; */ DT_INVALID(0), /** *
     * Data types that all computation devices are expected to be
     * capable to support.
     * 
* * DT_FLOAT = 1; */ DT_FLOAT(1), /** * DT_DOUBLE = 2; */ DT_DOUBLE(2), /** * DT_INT32 = 3; */ DT_INT32(3), /** * DT_UINT8 = 4; */ DT_UINT8(4), /** * DT_INT16 = 5; */ DT_INT16(5), /** * DT_INT8 = 6; */ DT_INT8(6), /** * DT_STRING = 7; */ DT_STRING(7), /** *
     * Single-precision complex
     * 
* * DT_COMPLEX64 = 8; */ DT_COMPLEX64(8), /** * DT_INT64 = 9; */ DT_INT64(9), /** * DT_BOOL = 10; */ DT_BOOL(10), /** *
     * Quantized int8
     * 
* * DT_QINT8 = 11; */ DT_QINT8(11), /** *
     * Quantized uint8
     * 
* * DT_QUINT8 = 12; */ DT_QUINT8(12), /** *
     * Quantized int32
     * 
* * DT_QINT32 = 13; */ DT_QINT32(13), /** *
     * Float32 truncated to 16 bits.  Only for cast ops.
     * 
* * DT_BFLOAT16 = 14; */ DT_BFLOAT16(14), /** *
     * Quantized int16
     * 
* * DT_QINT16 = 15; */ DT_QINT16(15), /** *
     * Quantized uint16
     * 
* * DT_QUINT16 = 16; */ DT_QUINT16(16), /** * DT_UINT16 = 17; */ DT_UINT16(17), /** *
     * Double-precision complex
     * 
* * DT_COMPLEX128 = 18; */ DT_COMPLEX128(18), /** * DT_HALF = 19; */ DT_HALF(19), /** * DT_RESOURCE = 20; */ DT_RESOURCE(20), /** *
     * Arbitrary C++ data types
     * 
* * DT_VARIANT = 21; */ DT_VARIANT(21), UNRECOGNIZED(-1), ; /** *
     * Not a legal value for DataType. Used to indicate a DataType field
     * has not been set.
     * 
* * DT_INVALID = 0; */ public static final int DT_INVALID_VALUE = 0; /** *
     * Data types that all computation devices are expected to be
     * capable to support.
     * 
* * DT_FLOAT = 1; */ public static final int DT_FLOAT_VALUE = 1; /** * DT_DOUBLE = 2; */ public static final int DT_DOUBLE_VALUE = 2; /** * DT_INT32 = 3; */ public static final int DT_INT32_VALUE = 3; /** * DT_UINT8 = 4; */ public static final int DT_UINT8_VALUE = 4; /** * DT_INT16 = 5; */ public static final int DT_INT16_VALUE = 5; /** * DT_INT8 = 6; */ public static final int DT_INT8_VALUE = 6; /** * DT_STRING = 7; */ public static final int DT_STRING_VALUE = 7; /** *
     * Single-precision complex
     * 
* * DT_COMPLEX64 = 8; */ public static final int DT_COMPLEX64_VALUE = 8; /** * DT_INT64 = 9; */ public static final int DT_INT64_VALUE = 9; /** * DT_BOOL = 10; */ public static final int DT_BOOL_VALUE = 10; /** *
     * Quantized int8
     * 
* * DT_QINT8 = 11; */ public static final int DT_QINT8_VALUE = 11; /** *
     * Quantized uint8
     * 
* * DT_QUINT8 = 12; */ public static final int DT_QUINT8_VALUE = 12; /** *
     * Quantized int32
     * 
* * DT_QINT32 = 13; */ public static final int DT_QINT32_VALUE = 13; /** *
     * Float32 truncated to 16 bits.  Only for cast ops.
     * 
* * DT_BFLOAT16 = 14; */ public static final int DT_BFLOAT16_VALUE = 14; /** *
     * Quantized int16
     * 
* * DT_QINT16 = 15; */ public static final int DT_QINT16_VALUE = 15; /** *
     * Quantized uint16
     * 
* * DT_QUINT16 = 16; */ public static final int DT_QUINT16_VALUE = 16; /** * DT_UINT16 = 17; */ public static final int DT_UINT16_VALUE = 17; /** *
     * Double-precision complex
     * 
* * DT_COMPLEX128 = 18; */ public static final int DT_COMPLEX128_VALUE = 18; /** * DT_HALF = 19; */ public static final int DT_HALF_VALUE = 19; /** * DT_RESOURCE = 20; */ public static final int DT_RESOURCE_VALUE = 20; /** *
     * Arbitrary C++ data types
     * 
* * DT_VARIANT = 21; */ public static final int DT_VARIANT_VALUE = 21; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ArrayDataType valueOf(int value) { return forNumber(value); } public static ArrayDataType forNumber(int value) { switch (value) { case 0: return DT_INVALID; case 1: return DT_FLOAT; case 2: return DT_DOUBLE; case 3: return DT_INT32; case 4: return DT_UINT8; case 5: return DT_INT16; case 6: return DT_INT8; case 7: return DT_STRING; case 8: return DT_COMPLEX64; case 9: return DT_INT64; case 10: return DT_BOOL; case 11: return DT_QINT8; case 12: return DT_QUINT8; case 13: return DT_QINT32; case 14: return DT_BFLOAT16; case 15: return DT_QINT16; case 16: return DT_QUINT16; case 17: return DT_UINT16; case 18: return DT_COMPLEX128; case 19: return DT_HALF; case 20: return DT_RESOURCE; case 21: return DT_VARIANT; default: return null; } } public static shade.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final shade.protobuf.Internal.EnumLiteMap< ArrayDataType> internalValueMap = new shade.protobuf.Internal.EnumLiteMap() { public ArrayDataType findValueByNumber(int number) { return ArrayDataType.forNumber(number); } }; public final shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final shade.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.getDescriptor().getEnumTypes().get(0); } private static final ArrayDataType[] VALUES = values(); public static ArrayDataType valueOf( shade.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ArrayDataType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:pytorch.eas.ArrayDataType) } public interface ArrayShapeOrBuilder extends // @@protoc_insertion_point(interface_extends:pytorch.eas.ArrayShape) shade.protobuf.MessageOrBuilder { /** * repeated int64 dim = 1 [packed = true]; */ java.util.List getDimList(); /** * repeated int64 dim = 1 [packed = true]; */ int getDimCount(); /** * repeated int64 dim = 1 [packed = true]; */ long getDim(int index); } /** *
   * Dimensions of an array
   * 
* * Protobuf type {@code pytorch.eas.ArrayShape} */ public static final class ArrayShape extends shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pytorch.eas.ArrayShape) ArrayShapeOrBuilder { private static final long serialVersionUID = 0L; // Use ArrayShape.newBuilder() to construct. private ArrayShape(shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ArrayShape() { dim_ = java.util.Collections.emptyList(); } @java.lang.Override public final shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ArrayShape( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; shade.protobuf.UnknownFieldSet.Builder unknownFields = shade.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)) { dim_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dim_.add(input.readInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { dim_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { dim_.add(input.readInt64()); } input.popLimit(limit); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { dim_ = java.util.Collections.unmodifiableList(dim_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final shade.protobuf.Descriptors.Descriptor getDescriptor() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_ArrayShape_descriptor; } @java.lang.Override protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_ArrayShape_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.class, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.Builder.class); } public static final int DIM_FIELD_NUMBER = 1; private java.util.List dim_; /** * repeated int64 dim = 1 [packed = true]; */ public java.util.List getDimList() { return dim_; } /** * repeated int64 dim = 1 [packed = true]; */ public int getDimCount() { return dim_.size(); } /** * repeated int64 dim = 1 [packed = true]; */ public long getDim(int index) { return dim_.get(index); } private int dimMemoizedSerializedSize = -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(shade.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getDimList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(dimMemoizedSerializedSize); } for (int i = 0; i < dim_.size(); i++) { output.writeInt64NoTag(dim_.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 < dim_.size(); i++) { dataSize += shade.protobuf.CodedOutputStream .computeInt64SizeNoTag(dim_.get(i)); } size += dataSize; if (!getDimList().isEmpty()) { size += 1; size += shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } dimMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape)) { return super.equals(obj); } com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape other = (com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape) obj; boolean result = true; result = result && getDimList() .equals(other.getDimList()); 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 (getDimCount() > 0) { hash = (37 * hash) + DIM_FIELD_NUMBER; hash = (53 * hash) + getDimList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseFrom( java.nio.ByteBuffer data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseFrom( java.nio.ByteBuffer data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseFrom( shade.protobuf.ByteString data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseFrom( shade.protobuf.ByteString data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseFrom(byte[] data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseFrom( byte[] data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseFrom(java.io.InputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseFrom( java.io.InputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseDelimitedFrom( java.io.InputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseFrom( shade.protobuf.CodedInputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parseFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape 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( shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Dimensions of an array
     * 
* * Protobuf type {@code pytorch.eas.ArrayShape} */ public static final class Builder extends shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pytorch.eas.ArrayShape) com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShapeOrBuilder { public static final shade.protobuf.Descriptors.Descriptor getDescriptor() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_ArrayShape_descriptor; } @java.lang.Override protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_ArrayShape_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.class, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.Builder.class); } // Construct using com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); dim_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_ArrayShape_descriptor; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape getDefaultInstanceForType() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.getDefaultInstance(); } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape build() { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape buildPartial() { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape result = new com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { dim_ = java.util.Collections.unmodifiableList(dim_); bitField0_ = (bitField0_ & ~0x00000001); } result.dim_ = dim_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(shade.protobuf.Message other) { if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape) { return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape other) { if (other == com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.getDefaultInstance()) return this; if (!other.dim_.isEmpty()) { if (dim_.isEmpty()) { dim_ = other.dim_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDimIsMutable(); dim_.addAll(other.dim_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List dim_ = java.util.Collections.emptyList(); private void ensureDimIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { dim_ = new java.util.ArrayList(dim_); bitField0_ |= 0x00000001; } } /** * repeated int64 dim = 1 [packed = true]; */ public java.util.List getDimList() { return java.util.Collections.unmodifiableList(dim_); } /** * repeated int64 dim = 1 [packed = true]; */ public int getDimCount() { return dim_.size(); } /** * repeated int64 dim = 1 [packed = true]; */ public long getDim(int index) { return dim_.get(index); } /** * repeated int64 dim = 1 [packed = true]; */ public Builder setDim( int index, long value) { ensureDimIsMutable(); dim_.set(index, value); onChanged(); return this; } /** * repeated int64 dim = 1 [packed = true]; */ public Builder addDim(long value) { ensureDimIsMutable(); dim_.add(value); onChanged(); return this; } /** * repeated int64 dim = 1 [packed = true]; */ public Builder addAllDim( java.lang.Iterable values) { ensureDimIsMutable(); shade.protobuf.AbstractMessageLite.Builder.addAll( values, dim_); onChanged(); return this; } /** * repeated int64 dim = 1 [packed = true]; */ public Builder clearDim() { dim_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pytorch.eas.ArrayShape) } // @@protoc_insertion_point(class_scope:pytorch.eas.ArrayShape) private static final com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape(); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape getDefaultInstance() { return DEFAULT_INSTANCE; } private static final shade.protobuf.Parser PARSER = new shade.protobuf.AbstractParser() { @java.lang.Override public ArrayShape parsePartialFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return new ArrayShape(input, extensionRegistry); } }; public static shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public shade.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ArrayProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:pytorch.eas.ArrayProto) shade.protobuf.MessageOrBuilder { /** *
     * Data Type.
     * 
* * .pytorch.eas.ArrayDataType dtype = 1; */ int getDtypeValue(); /** *
     * Data Type.
     * 
* * .pytorch.eas.ArrayDataType dtype = 1; */ com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType getDtype(); /** *
     * Shape of the array.
     * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ boolean hasArrayShape(); /** *
     * Shape of the array.
     * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape getArrayShape(); /** *
     * Shape of the array.
     * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShapeOrBuilder getArrayShapeOrBuilder(); /** *
     * DT_FLOAT.
     * 
* * repeated float float_val = 3 [packed = true]; */ java.util.List getFloatValList(); /** *
     * DT_FLOAT.
     * 
* * repeated float float_val = 3 [packed = true]; */ int getFloatValCount(); /** *
     * DT_FLOAT.
     * 
* * repeated float float_val = 3 [packed = true]; */ float getFloatVal(int index); /** *
     * DT_DOUBLE.
     * 
* * repeated double double_val = 4 [packed = true]; */ java.util.List getDoubleValList(); /** *
     * DT_DOUBLE.
     * 
* * repeated double double_val = 4 [packed = true]; */ int getDoubleValCount(); /** *
     * DT_DOUBLE.
     * 
* * repeated double double_val = 4 [packed = true]; */ double getDoubleVal(int index); /** *
     * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
     * 
* * repeated int32 int_val = 5 [packed = true]; */ java.util.List getIntValList(); /** *
     * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
     * 
* * repeated int32 int_val = 5 [packed = true]; */ int getIntValCount(); /** *
     * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
     * 
* * repeated int32 int_val = 5 [packed = true]; */ int getIntVal(int index); /** *
     * DT_STRING.
     * 
* * repeated bytes string_val = 6; */ java.util.List getStringValList(); /** *
     * DT_STRING.
     * 
* * repeated bytes string_val = 6; */ int getStringValCount(); /** *
     * DT_STRING.
     * 
* * repeated bytes string_val = 6; */ shade.protobuf.ByteString getStringVal(int index); /** *
     * DT_INT64.
     * 
* * repeated int64 int64_val = 7 [packed = true]; */ java.util.List getInt64ValList(); /** *
     * DT_INT64.
     * 
* * repeated int64 int64_val = 7 [packed = true]; */ int getInt64ValCount(); /** *
     * DT_INT64.
     * 
* * repeated int64 int64_val = 7 [packed = true]; */ long getInt64Val(int index); } /** *
   * Protocol buffer representing an array
   * 
* * Protobuf type {@code pytorch.eas.ArrayProto} */ public static final class ArrayProto extends shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pytorch.eas.ArrayProto) ArrayProtoOrBuilder { private static final long serialVersionUID = 0L; // Use ArrayProto.newBuilder() to construct. private ArrayProto(shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ArrayProto() { dtype_ = 0; floatVal_ = java.util.Collections.emptyList(); doubleVal_ = java.util.Collections.emptyList(); intVal_ = java.util.Collections.emptyList(); stringVal_ = java.util.Collections.emptyList(); int64Val_ = java.util.Collections.emptyList(); } @java.lang.Override public final shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ArrayProto( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; shade.protobuf.UnknownFieldSet.Builder unknownFields = shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); dtype_ = rawValue; break; } case 18: { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.Builder subBuilder = null; if (arrayShape_ != null) { subBuilder = arrayShape_.toBuilder(); } arrayShape_ = input.readMessage(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(arrayShape_); arrayShape_ = subBuilder.buildPartial(); } break; } case 29: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { floatVal_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } floatVal_.add(input.readFloat()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { floatVal_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { floatVal_.add(input.readFloat()); } input.popLimit(limit); break; } case 33: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { doubleVal_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } doubleVal_.add(input.readDouble()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { doubleVal_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { doubleVal_.add(input.readDouble()); } input.popLimit(limit); break; } case 40: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { intVal_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } intVal_.add(input.readInt32()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { intVal_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { intVal_.add(input.readInt32()); } input.popLimit(limit); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { stringVal_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } stringVal_.add(input.readBytes()); break; } case 56: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { int64Val_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } int64Val_.add(input.readInt64()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { int64Val_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { int64Val_.add(input.readInt64()); } input.popLimit(limit); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { floatVal_ = java.util.Collections.unmodifiableList(floatVal_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { doubleVal_ = java.util.Collections.unmodifiableList(doubleVal_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { intVal_ = java.util.Collections.unmodifiableList(intVal_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { stringVal_ = java.util.Collections.unmodifiableList(stringVal_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { int64Val_ = java.util.Collections.unmodifiableList(int64Val_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final shade.protobuf.Descriptors.Descriptor getDescriptor() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_ArrayProto_descriptor; } @java.lang.Override protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_ArrayProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.class, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder.class); } private int bitField0_; public static final int DTYPE_FIELD_NUMBER = 1; private int dtype_; /** *
     * Data Type.
     * 
* * .pytorch.eas.ArrayDataType dtype = 1; */ public int getDtypeValue() { return dtype_; } /** *
     * Data Type.
     * 
* * .pytorch.eas.ArrayDataType dtype = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType getDtype() { @SuppressWarnings("deprecation") com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType result = com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType.valueOf(dtype_); return result == null ? com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType.UNRECOGNIZED : result; } public static final int ARRAY_SHAPE_FIELD_NUMBER = 2; private com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape arrayShape_; /** *
     * Shape of the array.
     * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public boolean hasArrayShape() { return arrayShape_ != null; } /** *
     * Shape of the array.
     * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape getArrayShape() { return arrayShape_ == null ? com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.getDefaultInstance() : arrayShape_; } /** *
     * Shape of the array.
     * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShapeOrBuilder getArrayShapeOrBuilder() { return getArrayShape(); } public static final int FLOAT_VAL_FIELD_NUMBER = 3; private java.util.List floatVal_; /** *
     * DT_FLOAT.
     * 
* * repeated float float_val = 3 [packed = true]; */ public java.util.List getFloatValList() { return floatVal_; } /** *
     * DT_FLOAT.
     * 
* * repeated float float_val = 3 [packed = true]; */ public int getFloatValCount() { return floatVal_.size(); } /** *
     * DT_FLOAT.
     * 
* * repeated float float_val = 3 [packed = true]; */ public float getFloatVal(int index) { return floatVal_.get(index); } private int floatValMemoizedSerializedSize = -1; public static final int DOUBLE_VAL_FIELD_NUMBER = 4; private java.util.List doubleVal_; /** *
     * DT_DOUBLE.
     * 
* * repeated double double_val = 4 [packed = true]; */ public java.util.List getDoubleValList() { return doubleVal_; } /** *
     * DT_DOUBLE.
     * 
* * repeated double double_val = 4 [packed = true]; */ public int getDoubleValCount() { return doubleVal_.size(); } /** *
     * DT_DOUBLE.
     * 
* * repeated double double_val = 4 [packed = true]; */ public double getDoubleVal(int index) { return doubleVal_.get(index); } private int doubleValMemoizedSerializedSize = -1; public static final int INT_VAL_FIELD_NUMBER = 5; private java.util.List intVal_; /** *
     * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
     * 
* * repeated int32 int_val = 5 [packed = true]; */ public java.util.List getIntValList() { return intVal_; } /** *
     * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
     * 
* * repeated int32 int_val = 5 [packed = true]; */ public int getIntValCount() { return intVal_.size(); } /** *
     * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
     * 
* * repeated int32 int_val = 5 [packed = true]; */ public int getIntVal(int index) { return intVal_.get(index); } private int intValMemoizedSerializedSize = -1; public static final int STRING_VAL_FIELD_NUMBER = 6; private java.util.List stringVal_; /** *
     * DT_STRING.
     * 
* * repeated bytes string_val = 6; */ public java.util.List getStringValList() { return stringVal_; } /** *
     * DT_STRING.
     * 
* * repeated bytes string_val = 6; */ public int getStringValCount() { return stringVal_.size(); } /** *
     * DT_STRING.
     * 
* * repeated bytes string_val = 6; */ public shade.protobuf.ByteString getStringVal(int index) { return stringVal_.get(index); } public static final int INT64_VAL_FIELD_NUMBER = 7; private java.util.List int64Val_; /** *
     * DT_INT64.
     * 
* * repeated int64 int64_val = 7 [packed = true]; */ public java.util.List getInt64ValList() { return int64Val_; } /** *
     * DT_INT64.
     * 
* * repeated int64 int64_val = 7 [packed = true]; */ public int getInt64ValCount() { return int64Val_.size(); } /** *
     * DT_INT64.
     * 
* * repeated int64 int64_val = 7 [packed = true]; */ public long getInt64Val(int index) { return int64Val_.get(index); } private int int64ValMemoizedSerializedSize = -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(shade.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (dtype_ != com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType.DT_INVALID.getNumber()) { output.writeEnum(1, dtype_); } if (arrayShape_ != null) { output.writeMessage(2, getArrayShape()); } if (getFloatValList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(floatValMemoizedSerializedSize); } for (int i = 0; i < floatVal_.size(); i++) { output.writeFloatNoTag(floatVal_.get(i)); } if (getDoubleValList().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(doubleValMemoizedSerializedSize); } for (int i = 0; i < doubleVal_.size(); i++) { output.writeDoubleNoTag(doubleVal_.get(i)); } if (getIntValList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(intValMemoizedSerializedSize); } for (int i = 0; i < intVal_.size(); i++) { output.writeInt32NoTag(intVal_.get(i)); } for (int i = 0; i < stringVal_.size(); i++) { output.writeBytes(6, stringVal_.get(i)); } if (getInt64ValList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(int64ValMemoizedSerializedSize); } for (int i = 0; i < int64Val_.size(); i++) { output.writeInt64NoTag(int64Val_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dtype_ != com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType.DT_INVALID.getNumber()) { size += shade.protobuf.CodedOutputStream .computeEnumSize(1, dtype_); } if (arrayShape_ != null) { size += shade.protobuf.CodedOutputStream .computeMessageSize(2, getArrayShape()); } { int dataSize = 0; dataSize = 4 * getFloatValList().size(); size += dataSize; if (!getFloatValList().isEmpty()) { size += 1; size += shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } floatValMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 8 * getDoubleValList().size(); size += dataSize; if (!getDoubleValList().isEmpty()) { size += 1; size += shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } doubleValMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < intVal_.size(); i++) { dataSize += shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(intVal_.get(i)); } size += dataSize; if (!getIntValList().isEmpty()) { size += 1; size += shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } intValMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < stringVal_.size(); i++) { dataSize += shade.protobuf.CodedOutputStream .computeBytesSizeNoTag(stringVal_.get(i)); } size += dataSize; size += 1 * getStringValList().size(); } { int dataSize = 0; for (int i = 0; i < int64Val_.size(); i++) { dataSize += shade.protobuf.CodedOutputStream .computeInt64SizeNoTag(int64Val_.get(i)); } size += dataSize; if (!getInt64ValList().isEmpty()) { size += 1; size += shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } int64ValMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto)) { return super.equals(obj); } com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto other = (com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto) obj; boolean result = true; result = result && dtype_ == other.dtype_; result = result && (hasArrayShape() == other.hasArrayShape()); if (hasArrayShape()) { result = result && getArrayShape() .equals(other.getArrayShape()); } result = result && getFloatValList() .equals(other.getFloatValList()); result = result && getDoubleValList() .equals(other.getDoubleValList()); result = result && getIntValList() .equals(other.getIntValList()); result = result && getStringValList() .equals(other.getStringValList()); result = result && getInt64ValList() .equals(other.getInt64ValList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DTYPE_FIELD_NUMBER; hash = (53 * hash) + dtype_; if (hasArrayShape()) { hash = (37 * hash) + ARRAY_SHAPE_FIELD_NUMBER; hash = (53 * hash) + getArrayShape().hashCode(); } if (getFloatValCount() > 0) { hash = (37 * hash) + FLOAT_VAL_FIELD_NUMBER; hash = (53 * hash) + getFloatValList().hashCode(); } if (getDoubleValCount() > 0) { hash = (37 * hash) + DOUBLE_VAL_FIELD_NUMBER; hash = (53 * hash) + getDoubleValList().hashCode(); } if (getIntValCount() > 0) { hash = (37 * hash) + INT_VAL_FIELD_NUMBER; hash = (53 * hash) + getIntValList().hashCode(); } if (getStringValCount() > 0) { hash = (37 * hash) + STRING_VAL_FIELD_NUMBER; hash = (53 * hash) + getStringValList().hashCode(); } if (getInt64ValCount() > 0) { hash = (37 * hash) + INT64_VAL_FIELD_NUMBER; hash = (53 * hash) + getInt64ValList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseFrom( java.nio.ByteBuffer data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseFrom( java.nio.ByteBuffer data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseFrom( shade.protobuf.ByteString data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseFrom( shade.protobuf.ByteString data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseFrom(byte[] data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseFrom( byte[] data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseFrom(java.io.InputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseFrom( java.io.InputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseDelimitedFrom( java.io.InputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseFrom( shade.protobuf.CodedInputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parseFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto 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( shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Protocol buffer representing an array
     * 
* * Protobuf type {@code pytorch.eas.ArrayProto} */ public static final class Builder extends shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pytorch.eas.ArrayProto) com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder { public static final shade.protobuf.Descriptors.Descriptor getDescriptor() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_ArrayProto_descriptor; } @java.lang.Override protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_ArrayProto_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.class, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder.class); } // Construct using com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); dtype_ = 0; if (arrayShapeBuilder_ == null) { arrayShape_ = null; } else { arrayShape_ = null; arrayShapeBuilder_ = null; } floatVal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); doubleVal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); intVal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); stringVal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); int64Val_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_ArrayProto_descriptor; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto getDefaultInstanceForType() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.getDefaultInstance(); } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto build() { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto buildPartial() { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto result = new com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.dtype_ = dtype_; if (arrayShapeBuilder_ == null) { result.arrayShape_ = arrayShape_; } else { result.arrayShape_ = arrayShapeBuilder_.build(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { floatVal_ = java.util.Collections.unmodifiableList(floatVal_); bitField0_ = (bitField0_ & ~0x00000004); } result.floatVal_ = floatVal_; if (((bitField0_ & 0x00000008) == 0x00000008)) { doubleVal_ = java.util.Collections.unmodifiableList(doubleVal_); bitField0_ = (bitField0_ & ~0x00000008); } result.doubleVal_ = doubleVal_; if (((bitField0_ & 0x00000010) == 0x00000010)) { intVal_ = java.util.Collections.unmodifiableList(intVal_); bitField0_ = (bitField0_ & ~0x00000010); } result.intVal_ = intVal_; if (((bitField0_ & 0x00000020) == 0x00000020)) { stringVal_ = java.util.Collections.unmodifiableList(stringVal_); bitField0_ = (bitField0_ & ~0x00000020); } result.stringVal_ = stringVal_; if (((bitField0_ & 0x00000040) == 0x00000040)) { int64Val_ = java.util.Collections.unmodifiableList(int64Val_); bitField0_ = (bitField0_ & ~0x00000040); } result.int64Val_ = int64Val_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(shade.protobuf.Message other) { if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto) { return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto other) { if (other == com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.getDefaultInstance()) return this; if (other.dtype_ != 0) { setDtypeValue(other.getDtypeValue()); } if (other.hasArrayShape()) { mergeArrayShape(other.getArrayShape()); } if (!other.floatVal_.isEmpty()) { if (floatVal_.isEmpty()) { floatVal_ = other.floatVal_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFloatValIsMutable(); floatVal_.addAll(other.floatVal_); } onChanged(); } if (!other.doubleVal_.isEmpty()) { if (doubleVal_.isEmpty()) { doubleVal_ = other.doubleVal_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDoubleValIsMutable(); doubleVal_.addAll(other.doubleVal_); } onChanged(); } if (!other.intVal_.isEmpty()) { if (intVal_.isEmpty()) { intVal_ = other.intVal_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureIntValIsMutable(); intVal_.addAll(other.intVal_); } onChanged(); } if (!other.stringVal_.isEmpty()) { if (stringVal_.isEmpty()) { stringVal_ = other.stringVal_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureStringValIsMutable(); stringVal_.addAll(other.stringVal_); } onChanged(); } if (!other.int64Val_.isEmpty()) { if (int64Val_.isEmpty()) { int64Val_ = other.int64Val_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureInt64ValIsMutable(); int64Val_.addAll(other.int64Val_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int dtype_ = 0; /** *
       * Data Type.
       * 
* * .pytorch.eas.ArrayDataType dtype = 1; */ public int getDtypeValue() { return dtype_; } /** *
       * Data Type.
       * 
* * .pytorch.eas.ArrayDataType dtype = 1; */ public Builder setDtypeValue(int value) { dtype_ = value; onChanged(); return this; } /** *
       * Data Type.
       * 
* * .pytorch.eas.ArrayDataType dtype = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType getDtype() { @SuppressWarnings("deprecation") com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType result = com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType.valueOf(dtype_); return result == null ? com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType.UNRECOGNIZED : result; } /** *
       * Data Type.
       * 
* * .pytorch.eas.ArrayDataType dtype = 1; */ public Builder setDtype(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayDataType value) { if (value == null) { throw new NullPointerException(); } dtype_ = value.getNumber(); onChanged(); return this; } /** *
       * Data Type.
       * 
* * .pytorch.eas.ArrayDataType dtype = 1; */ public Builder clearDtype() { dtype_ = 0; onChanged(); return this; } private com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape arrayShape_ = null; private shade.protobuf.SingleFieldBuilderV3< com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.Builder, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShapeOrBuilder> arrayShapeBuilder_; /** *
       * Shape of the array.
       * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public boolean hasArrayShape() { return arrayShapeBuilder_ != null || arrayShape_ != null; } /** *
       * Shape of the array.
       * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape getArrayShape() { if (arrayShapeBuilder_ == null) { return arrayShape_ == null ? com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.getDefaultInstance() : arrayShape_; } else { return arrayShapeBuilder_.getMessage(); } } /** *
       * Shape of the array.
       * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public Builder setArrayShape(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape value) { if (arrayShapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrayShape_ = value; onChanged(); } else { arrayShapeBuilder_.setMessage(value); } return this; } /** *
       * Shape of the array.
       * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public Builder setArrayShape( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.Builder builderForValue) { if (arrayShapeBuilder_ == null) { arrayShape_ = builderForValue.build(); onChanged(); } else { arrayShapeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Shape of the array.
       * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public Builder mergeArrayShape(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape value) { if (arrayShapeBuilder_ == null) { if (arrayShape_ != null) { arrayShape_ = com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.newBuilder(arrayShape_).mergeFrom(value).buildPartial(); } else { arrayShape_ = value; } onChanged(); } else { arrayShapeBuilder_.mergeFrom(value); } return this; } /** *
       * Shape of the array.
       * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public Builder clearArrayShape() { if (arrayShapeBuilder_ == null) { arrayShape_ = null; onChanged(); } else { arrayShape_ = null; arrayShapeBuilder_ = null; } return this; } /** *
       * Shape of the array.
       * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.Builder getArrayShapeBuilder() { onChanged(); return getArrayShapeFieldBuilder().getBuilder(); } /** *
       * Shape of the array.
       * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShapeOrBuilder getArrayShapeOrBuilder() { if (arrayShapeBuilder_ != null) { return arrayShapeBuilder_.getMessageOrBuilder(); } else { return arrayShape_ == null ? com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.getDefaultInstance() : arrayShape_; } } /** *
       * Shape of the array.
       * 
* * .pytorch.eas.ArrayShape array_shape = 2; */ private shade.protobuf.SingleFieldBuilderV3< com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.Builder, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShapeOrBuilder> getArrayShapeFieldBuilder() { if (arrayShapeBuilder_ == null) { arrayShapeBuilder_ = new shade.protobuf.SingleFieldBuilderV3< com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShape.Builder, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayShapeOrBuilder>( getArrayShape(), getParentForChildren(), isClean()); arrayShape_ = null; } return arrayShapeBuilder_; } private java.util.List floatVal_ = java.util.Collections.emptyList(); private void ensureFloatValIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { floatVal_ = new java.util.ArrayList(floatVal_); bitField0_ |= 0x00000004; } } /** *
       * DT_FLOAT.
       * 
* * repeated float float_val = 3 [packed = true]; */ public java.util.List getFloatValList() { return java.util.Collections.unmodifiableList(floatVal_); } /** *
       * DT_FLOAT.
       * 
* * repeated float float_val = 3 [packed = true]; */ public int getFloatValCount() { return floatVal_.size(); } /** *
       * DT_FLOAT.
       * 
* * repeated float float_val = 3 [packed = true]; */ public float getFloatVal(int index) { return floatVal_.get(index); } /** *
       * DT_FLOAT.
       * 
* * repeated float float_val = 3 [packed = true]; */ public Builder setFloatVal( int index, float value) { ensureFloatValIsMutable(); floatVal_.set(index, value); onChanged(); return this; } /** *
       * DT_FLOAT.
       * 
* * repeated float float_val = 3 [packed = true]; */ public Builder addFloatVal(float value) { ensureFloatValIsMutable(); floatVal_.add(value); onChanged(); return this; } /** *
       * DT_FLOAT.
       * 
* * repeated float float_val = 3 [packed = true]; */ public Builder addAllFloatVal( java.lang.Iterable values) { ensureFloatValIsMutable(); shade.protobuf.AbstractMessageLite.Builder.addAll( values, floatVal_); onChanged(); return this; } /** *
       * DT_FLOAT.
       * 
* * repeated float float_val = 3 [packed = true]; */ public Builder clearFloatVal() { floatVal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List doubleVal_ = java.util.Collections.emptyList(); private void ensureDoubleValIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { doubleVal_ = new java.util.ArrayList(doubleVal_); bitField0_ |= 0x00000008; } } /** *
       * DT_DOUBLE.
       * 
* * repeated double double_val = 4 [packed = true]; */ public java.util.List getDoubleValList() { return java.util.Collections.unmodifiableList(doubleVal_); } /** *
       * DT_DOUBLE.
       * 
* * repeated double double_val = 4 [packed = true]; */ public int getDoubleValCount() { return doubleVal_.size(); } /** *
       * DT_DOUBLE.
       * 
* * repeated double double_val = 4 [packed = true]; */ public double getDoubleVal(int index) { return doubleVal_.get(index); } /** *
       * DT_DOUBLE.
       * 
* * repeated double double_val = 4 [packed = true]; */ public Builder setDoubleVal( int index, double value) { ensureDoubleValIsMutable(); doubleVal_.set(index, value); onChanged(); return this; } /** *
       * DT_DOUBLE.
       * 
* * repeated double double_val = 4 [packed = true]; */ public Builder addDoubleVal(double value) { ensureDoubleValIsMutable(); doubleVal_.add(value); onChanged(); return this; } /** *
       * DT_DOUBLE.
       * 
* * repeated double double_val = 4 [packed = true]; */ public Builder addAllDoubleVal( java.lang.Iterable values) { ensureDoubleValIsMutable(); shade.protobuf.AbstractMessageLite.Builder.addAll( values, doubleVal_); onChanged(); return this; } /** *
       * DT_DOUBLE.
       * 
* * repeated double double_val = 4 [packed = true]; */ public Builder clearDoubleVal() { doubleVal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private java.util.List intVal_ = java.util.Collections.emptyList(); private void ensureIntValIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { intVal_ = new java.util.ArrayList(intVal_); bitField0_ |= 0x00000010; } } /** *
       * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
       * 
* * repeated int32 int_val = 5 [packed = true]; */ public java.util.List getIntValList() { return java.util.Collections.unmodifiableList(intVal_); } /** *
       * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
       * 
* * repeated int32 int_val = 5 [packed = true]; */ public int getIntValCount() { return intVal_.size(); } /** *
       * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
       * 
* * repeated int32 int_val = 5 [packed = true]; */ public int getIntVal(int index) { return intVal_.get(index); } /** *
       * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
       * 
* * repeated int32 int_val = 5 [packed = true]; */ public Builder setIntVal( int index, int value) { ensureIntValIsMutable(); intVal_.set(index, value); onChanged(); return this; } /** *
       * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
       * 
* * repeated int32 int_val = 5 [packed = true]; */ public Builder addIntVal(int value) { ensureIntValIsMutable(); intVal_.add(value); onChanged(); return this; } /** *
       * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
       * 
* * repeated int32 int_val = 5 [packed = true]; */ public Builder addAllIntVal( java.lang.Iterable values) { ensureIntValIsMutable(); shade.protobuf.AbstractMessageLite.Builder.addAll( values, intVal_); onChanged(); return this; } /** *
       * DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
       * 
* * repeated int32 int_val = 5 [packed = true]; */ public Builder clearIntVal() { intVal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List stringVal_ = java.util.Collections.emptyList(); private void ensureStringValIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { stringVal_ = new java.util.ArrayList(stringVal_); bitField0_ |= 0x00000020; } } /** *
       * DT_STRING.
       * 
* * repeated bytes string_val = 6; */ public java.util.List getStringValList() { return java.util.Collections.unmodifiableList(stringVal_); } /** *
       * DT_STRING.
       * 
* * repeated bytes string_val = 6; */ public int getStringValCount() { return stringVal_.size(); } /** *
       * DT_STRING.
       * 
* * repeated bytes string_val = 6; */ public shade.protobuf.ByteString getStringVal(int index) { return stringVal_.get(index); } /** *
       * DT_STRING.
       * 
* * repeated bytes string_val = 6; */ public Builder setStringVal( int index, shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStringValIsMutable(); stringVal_.set(index, value); onChanged(); return this; } /** *
       * DT_STRING.
       * 
* * repeated bytes string_val = 6; */ public Builder addStringVal(shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStringValIsMutable(); stringVal_.add(value); onChanged(); return this; } /** *
       * DT_STRING.
       * 
* * repeated bytes string_val = 6; */ public Builder addAllStringVal( java.lang.Iterable values) { ensureStringValIsMutable(); shade.protobuf.AbstractMessageLite.Builder.addAll( values, stringVal_); onChanged(); return this; } /** *
       * DT_STRING.
       * 
* * repeated bytes string_val = 6; */ public Builder clearStringVal() { stringVal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private java.util.List int64Val_ = java.util.Collections.emptyList(); private void ensureInt64ValIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { int64Val_ = new java.util.ArrayList(int64Val_); bitField0_ |= 0x00000040; } } /** *
       * DT_INT64.
       * 
* * repeated int64 int64_val = 7 [packed = true]; */ public java.util.List getInt64ValList() { return java.util.Collections.unmodifiableList(int64Val_); } /** *
       * DT_INT64.
       * 
* * repeated int64 int64_val = 7 [packed = true]; */ public int getInt64ValCount() { return int64Val_.size(); } /** *
       * DT_INT64.
       * 
* * repeated int64 int64_val = 7 [packed = true]; */ public long getInt64Val(int index) { return int64Val_.get(index); } /** *
       * DT_INT64.
       * 
* * repeated int64 int64_val = 7 [packed = true]; */ public Builder setInt64Val( int index, long value) { ensureInt64ValIsMutable(); int64Val_.set(index, value); onChanged(); return this; } /** *
       * DT_INT64.
       * 
* * repeated int64 int64_val = 7 [packed = true]; */ public Builder addInt64Val(long value) { ensureInt64ValIsMutable(); int64Val_.add(value); onChanged(); return this; } /** *
       * DT_INT64.
       * 
* * repeated int64 int64_val = 7 [packed = true]; */ public Builder addAllInt64Val( java.lang.Iterable values) { ensureInt64ValIsMutable(); shade.protobuf.AbstractMessageLite.Builder.addAll( values, int64Val_); onChanged(); return this; } /** *
       * DT_INT64.
       * 
* * repeated int64 int64_val = 7 [packed = true]; */ public Builder clearInt64Val() { int64Val_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pytorch.eas.ArrayProto) } // @@protoc_insertion_point(class_scope:pytorch.eas.ArrayProto) private static final com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto(); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final shade.protobuf.Parser PARSER = new shade.protobuf.AbstractParser() { @java.lang.Override public ArrayProto parsePartialFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return new ArrayProto(input, extensionRegistry); } }; public static shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public shade.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PredictRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pytorch.eas.PredictRequest) shade.protobuf.MessageOrBuilder { /** *
     * Input tensors.
     * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ java.util.List getInputsList(); /** *
     * Input tensors.
     * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto getInputs(int index); /** *
     * Input tensors.
     * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ int getInputsCount(); /** *
     * Input tensors.
     * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ java.util.List getInputsOrBuilderList(); /** *
     * Input tensors.
     * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder getInputsOrBuilder( int index); /** *
     * Output filter.
     * 
* * repeated int32 output_filter = 2; */ java.util.List getOutputFilterList(); /** *
     * Output filter.
     * 
* * repeated int32 output_filter = 2; */ int getOutputFilterCount(); /** *
     * Output filter.
     * 
* * repeated int32 output_filter = 2; */ int getOutputFilter(int index); } /** * Protobuf type {@code pytorch.eas.PredictRequest} */ public static final class PredictRequest extends shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pytorch.eas.PredictRequest) PredictRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PredictRequest.newBuilder() to construct. private PredictRequest(shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PredictRequest() { inputs_ = java.util.Collections.emptyList(); outputFilter_ = java.util.Collections.emptyList(); } @java.lang.Override public final shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PredictRequest( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; shade.protobuf.UnknownFieldSet.Builder unknownFields = shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { inputs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } inputs_.add( input.readMessage(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.parser(), extensionRegistry)); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { outputFilter_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } outputFilter_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { outputFilter_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { outputFilter_.add(input.readInt32()); } input.popLimit(limit); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { outputFilter_ = java.util.Collections.unmodifiableList(outputFilter_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final shade.protobuf.Descriptors.Descriptor getDescriptor() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_PredictRequest_descriptor; } @java.lang.Override protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest.class, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest.Builder.class); } public static final int INPUTS_FIELD_NUMBER = 1; private java.util.List inputs_; /** *
     * Input tensors.
     * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public java.util.List getInputsList() { return inputs_; } /** *
     * Input tensors.
     * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public java.util.List getInputsOrBuilderList() { return inputs_; } /** *
     * Input tensors.
     * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public int getInputsCount() { return inputs_.size(); } /** *
     * Input tensors.
     * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto getInputs(int index) { return inputs_.get(index); } /** *
     * Input tensors.
     * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder getInputsOrBuilder( int index) { return inputs_.get(index); } public static final int OUTPUT_FILTER_FIELD_NUMBER = 2; private java.util.List outputFilter_; /** *
     * Output filter.
     * 
* * repeated int32 output_filter = 2; */ public java.util.List getOutputFilterList() { return outputFilter_; } /** *
     * Output filter.
     * 
* * repeated int32 output_filter = 2; */ public int getOutputFilterCount() { return outputFilter_.size(); } /** *
     * Output filter.
     * 
* * repeated int32 output_filter = 2; */ public int getOutputFilter(int index) { return outputFilter_.get(index); } private int outputFilterMemoizedSerializedSize = -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(shade.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < inputs_.size(); i++) { output.writeMessage(1, inputs_.get(i)); } if (getOutputFilterList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(outputFilterMemoizedSerializedSize); } for (int i = 0; i < outputFilter_.size(); i++) { output.writeInt32NoTag(outputFilter_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < inputs_.size(); i++) { size += shade.protobuf.CodedOutputStream .computeMessageSize(1, inputs_.get(i)); } { int dataSize = 0; for (int i = 0; i < outputFilter_.size(); i++) { dataSize += shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(outputFilter_.get(i)); } size += dataSize; if (!getOutputFilterList().isEmpty()) { size += 1; size += shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } outputFilterMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest)) { return super.equals(obj); } com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest other = (com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest) obj; boolean result = true; result = result && getInputsList() .equals(other.getInputsList()); result = result && getOutputFilterList() .equals(other.getOutputFilterList()); 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 (getInputsCount() > 0) { hash = (37 * hash) + INPUTS_FIELD_NUMBER; hash = (53 * hash) + getInputsList().hashCode(); } if (getOutputFilterCount() > 0) { hash = (37 * hash) + OUTPUT_FILTER_FIELD_NUMBER; hash = (53 * hash) + getOutputFilterList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseFrom( java.nio.ByteBuffer data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseFrom( java.nio.ByteBuffer data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseFrom( shade.protobuf.ByteString data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseFrom( shade.protobuf.ByteString data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseFrom(byte[] data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseFrom( byte[] data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseFrom( java.io.InputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseDelimitedFrom( java.io.InputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseFrom( shade.protobuf.CodedInputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parseFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest 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( shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code pytorch.eas.PredictRequest} */ public static final class Builder extends shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pytorch.eas.PredictRequest) com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequestOrBuilder { public static final shade.protobuf.Descriptors.Descriptor getDescriptor() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_PredictRequest_descriptor; } @java.lang.Override protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest.class, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest.Builder.class); } // Construct using com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInputsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { inputsBuilder_.clear(); } outputFilter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_PredictRequest_descriptor; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest getDefaultInstanceForType() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest.getDefaultInstance(); } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest build() { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest buildPartial() { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest result = new com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest(this); int from_bitField0_ = bitField0_; if (inputsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); bitField0_ = (bitField0_ & ~0x00000001); } result.inputs_ = inputs_; } else { result.inputs_ = inputsBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { outputFilter_ = java.util.Collections.unmodifiableList(outputFilter_); bitField0_ = (bitField0_ & ~0x00000002); } result.outputFilter_ = outputFilter_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(shade.protobuf.Message other) { if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest) { return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest other) { if (other == com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest.getDefaultInstance()) return this; if (inputsBuilder_ == null) { if (!other.inputs_.isEmpty()) { if (inputs_.isEmpty()) { inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInputsIsMutable(); inputs_.addAll(other.inputs_); } onChanged(); } } else { if (!other.inputs_.isEmpty()) { if (inputsBuilder_.isEmpty()) { inputsBuilder_.dispose(); inputsBuilder_ = null; inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000001); inputsBuilder_ = shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInputsFieldBuilder() : null; } else { inputsBuilder_.addAllMessages(other.inputs_); } } } if (!other.outputFilter_.isEmpty()) { if (outputFilter_.isEmpty()) { outputFilter_ = other.outputFilter_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOutputFilterIsMutable(); outputFilter_.addAll(other.outputFilter_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List inputs_ = java.util.Collections.emptyList(); private void ensureInputsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { inputs_ = new java.util.ArrayList(inputs_); bitField0_ |= 0x00000001; } } private shade.protobuf.RepeatedFieldBuilderV3< com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder> inputsBuilder_; /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public java.util.List getInputsList() { if (inputsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputs_); } else { return inputsBuilder_.getMessageList(); } } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public int getInputsCount() { if (inputsBuilder_ == null) { return inputs_.size(); } else { return inputsBuilder_.getCount(); } } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto getInputs(int index) { if (inputsBuilder_ == null) { return inputs_.get(index); } else { return inputsBuilder_.getMessage(index); } } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public Builder setInputs( int index, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.set(index, value); onChanged(); } else { inputsBuilder_.setMessage(index, value); } return this; } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public Builder setInputs( int index, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.set(index, builderForValue.build()); onChanged(); } else { inputsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public Builder addInputs(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.add(value); onChanged(); } else { inputsBuilder_.addMessage(value); } return this; } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public Builder addInputs( int index, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.add(index, value); onChanged(); } else { inputsBuilder_.addMessage(index, value); } return this; } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public Builder addInputs( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(builderForValue.build()); onChanged(); } else { inputsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public Builder addInputs( int index, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(index, builderForValue.build()); onChanged(); } else { inputsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public Builder addAllInputs( java.lang.Iterable values) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); shade.protobuf.AbstractMessageLite.Builder.addAll( values, inputs_); onChanged(); } else { inputsBuilder_.addAllMessages(values); } return this; } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public Builder clearInputs() { if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { inputsBuilder_.clear(); } return this; } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public Builder removeInputs(int index) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.remove(index); onChanged(); } else { inputsBuilder_.remove(index); } return this; } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder getInputsBuilder( int index) { return getInputsFieldBuilder().getBuilder(index); } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder getInputsOrBuilder( int index) { if (inputsBuilder_ == null) { return inputs_.get(index); } else { return inputsBuilder_.getMessageOrBuilder(index); } } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public java.util.List getInputsOrBuilderList() { if (inputsBuilder_ != null) { return inputsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inputs_); } } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder addInputsBuilder() { return getInputsFieldBuilder().addBuilder( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.getDefaultInstance()); } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder addInputsBuilder( int index) { return getInputsFieldBuilder().addBuilder( index, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.getDefaultInstance()); } /** *
       * Input tensors.
       * 
* * repeated .pytorch.eas.ArrayProto inputs = 1; */ public java.util.List getInputsBuilderList() { return getInputsFieldBuilder().getBuilderList(); } private shade.protobuf.RepeatedFieldBuilderV3< com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder> getInputsFieldBuilder() { if (inputsBuilder_ == null) { inputsBuilder_ = new shade.protobuf.RepeatedFieldBuilderV3< com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder>( inputs_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); inputs_ = null; } return inputsBuilder_; } private java.util.List outputFilter_ = java.util.Collections.emptyList(); private void ensureOutputFilterIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { outputFilter_ = new java.util.ArrayList(outputFilter_); bitField0_ |= 0x00000002; } } /** *
       * Output filter.
       * 
* * repeated int32 output_filter = 2; */ public java.util.List getOutputFilterList() { return java.util.Collections.unmodifiableList(outputFilter_); } /** *
       * Output filter.
       * 
* * repeated int32 output_filter = 2; */ public int getOutputFilterCount() { return outputFilter_.size(); } /** *
       * Output filter.
       * 
* * repeated int32 output_filter = 2; */ public int getOutputFilter(int index) { return outputFilter_.get(index); } /** *
       * Output filter.
       * 
* * repeated int32 output_filter = 2; */ public Builder setOutputFilter( int index, int value) { ensureOutputFilterIsMutable(); outputFilter_.set(index, value); onChanged(); return this; } /** *
       * Output filter.
       * 
* * repeated int32 output_filter = 2; */ public Builder addOutputFilter(int value) { ensureOutputFilterIsMutable(); outputFilter_.add(value); onChanged(); return this; } /** *
       * Output filter.
       * 
* * repeated int32 output_filter = 2; */ public Builder addAllOutputFilter( java.lang.Iterable values) { ensureOutputFilterIsMutable(); shade.protobuf.AbstractMessageLite.Builder.addAll( values, outputFilter_); onChanged(); return this; } /** *
       * Output filter.
       * 
* * repeated int32 output_filter = 2; */ public Builder clearOutputFilter() { outputFilter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pytorch.eas.PredictRequest) } // @@protoc_insertion_point(class_scope:pytorch.eas.PredictRequest) private static final com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest(); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final shade.protobuf.Parser PARSER = new shade.protobuf.AbstractParser() { @java.lang.Override public PredictRequest parsePartialFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return new PredictRequest(input, extensionRegistry); } }; public static shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public shade.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PredictResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pytorch.eas.PredictResponse) shade.protobuf.MessageOrBuilder { /** *
     * Output tensors.
     * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ java.util.List getOutputsList(); /** *
     * Output tensors.
     * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto getOutputs(int index); /** *
     * Output tensors.
     * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ int getOutputsCount(); /** *
     * Output tensors.
     * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ java.util.List getOutputsOrBuilderList(); /** *
     * Output tensors.
     * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder getOutputsOrBuilder( int index); } /** *
   * Response for PredictRequest on successful run.
   * 
* * Protobuf type {@code pytorch.eas.PredictResponse} */ public static final class PredictResponse extends shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pytorch.eas.PredictResponse) PredictResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PredictResponse.newBuilder() to construct. private PredictResponse(shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PredictResponse() { outputs_ = java.util.Collections.emptyList(); } @java.lang.Override public final shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PredictResponse( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; shade.protobuf.UnknownFieldSet.Builder unknownFields = shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { outputs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } outputs_.add( input.readMessage(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { outputs_ = java.util.Collections.unmodifiableList(outputs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final shade.protobuf.Descriptors.Descriptor getDescriptor() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_PredictResponse_descriptor; } @java.lang.Override protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse.class, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse.Builder.class); } public static final int OUTPUTS_FIELD_NUMBER = 1; private java.util.List outputs_; /** *
     * Output tensors.
     * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public java.util.List getOutputsList() { return outputs_; } /** *
     * Output tensors.
     * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public java.util.List getOutputsOrBuilderList() { return outputs_; } /** *
     * Output tensors.
     * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public int getOutputsCount() { return outputs_.size(); } /** *
     * Output tensors.
     * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto getOutputs(int index) { return outputs_.get(index); } /** *
     * Output tensors.
     * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder getOutputsOrBuilder( int index) { return outputs_.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(shade.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < outputs_.size(); i++) { output.writeMessage(1, outputs_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < outputs_.size(); i++) { size += shade.protobuf.CodedOutputStream .computeMessageSize(1, outputs_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse)) { return super.equals(obj); } com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse other = (com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse) obj; boolean result = true; result = result && getOutputsList() .equals(other.getOutputsList()); 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 (getOutputsCount() > 0) { hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; hash = (53 * hash) + getOutputsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseFrom( java.nio.ByteBuffer data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseFrom( java.nio.ByteBuffer data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseFrom( shade.protobuf.ByteString data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseFrom( shade.protobuf.ByteString data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseFrom(byte[] data) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseFrom( byte[] data, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseFrom( java.io.InputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseDelimitedFrom( java.io.InputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseFrom( shade.protobuf.CodedInputStream input) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parseFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse 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( shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Response for PredictRequest on successful run.
     * 
* * Protobuf type {@code pytorch.eas.PredictResponse} */ public static final class Builder extends shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pytorch.eas.PredictResponse) com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponseOrBuilder { public static final shade.protobuf.Descriptors.Descriptor getDescriptor() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_PredictResponse_descriptor; } @java.lang.Override protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse.class, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse.Builder.class); } // Construct using com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOutputsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (outputsBuilder_ == null) { outputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { outputsBuilder_.clear(); } return this; } @java.lang.Override public shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.internal_static_pytorch_eas_PredictResponse_descriptor; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse getDefaultInstanceForType() { return com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse.getDefaultInstance(); } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse build() { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse buildPartial() { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse result = new com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse(this); int from_bitField0_ = bitField0_; if (outputsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { outputs_ = java.util.Collections.unmodifiableList(outputs_); bitField0_ = (bitField0_ & ~0x00000001); } result.outputs_ = outputs_; } else { result.outputs_ = outputsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(shade.protobuf.Message other) { if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse) { return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse other) { if (other == com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse.getDefaultInstance()) return this; if (outputsBuilder_ == null) { if (!other.outputs_.isEmpty()) { if (outputs_.isEmpty()) { outputs_ = other.outputs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOutputsIsMutable(); outputs_.addAll(other.outputs_); } onChanged(); } } else { if (!other.outputs_.isEmpty()) { if (outputsBuilder_.isEmpty()) { outputsBuilder_.dispose(); outputsBuilder_ = null; outputs_ = other.outputs_; bitField0_ = (bitField0_ & ~0x00000001); outputsBuilder_ = shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOutputsFieldBuilder() : null; } else { outputsBuilder_.addAllMessages(other.outputs_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List outputs_ = java.util.Collections.emptyList(); private void ensureOutputsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { outputs_ = new java.util.ArrayList(outputs_); bitField0_ |= 0x00000001; } } private shade.protobuf.RepeatedFieldBuilderV3< com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder> outputsBuilder_; /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public java.util.List getOutputsList() { if (outputsBuilder_ == null) { return java.util.Collections.unmodifiableList(outputs_); } else { return outputsBuilder_.getMessageList(); } } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public int getOutputsCount() { if (outputsBuilder_ == null) { return outputs_.size(); } else { return outputsBuilder_.getCount(); } } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto getOutputs(int index) { if (outputsBuilder_ == null) { return outputs_.get(index); } else { return outputsBuilder_.getMessage(index); } } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public Builder setOutputs( int index, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto value) { if (outputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputsIsMutable(); outputs_.set(index, value); onChanged(); } else { outputsBuilder_.setMessage(index, value); } return this; } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public Builder setOutputs( int index, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder builderForValue) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.set(index, builderForValue.build()); onChanged(); } else { outputsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public Builder addOutputs(com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto value) { if (outputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputsIsMutable(); outputs_.add(value); onChanged(); } else { outputsBuilder_.addMessage(value); } return this; } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public Builder addOutputs( int index, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto value) { if (outputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputsIsMutable(); outputs_.add(index, value); onChanged(); } else { outputsBuilder_.addMessage(index, value); } return this; } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public Builder addOutputs( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder builderForValue) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.add(builderForValue.build()); onChanged(); } else { outputsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public Builder addOutputs( int index, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder builderForValue) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.add(index, builderForValue.build()); onChanged(); } else { outputsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public Builder addAllOutputs( java.lang.Iterable values) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); shade.protobuf.AbstractMessageLite.Builder.addAll( values, outputs_); onChanged(); } else { outputsBuilder_.addAllMessages(values); } return this; } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public Builder clearOutputs() { if (outputsBuilder_ == null) { outputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { outputsBuilder_.clear(); } return this; } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public Builder removeOutputs(int index) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.remove(index); onChanged(); } else { outputsBuilder_.remove(index); } return this; } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder getOutputsBuilder( int index) { return getOutputsFieldBuilder().getBuilder(index); } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder getOutputsOrBuilder( int index) { if (outputsBuilder_ == null) { return outputs_.get(index); } else { return outputsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public java.util.List getOutputsOrBuilderList() { if (outputsBuilder_ != null) { return outputsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(outputs_); } } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder addOutputsBuilder() { return getOutputsFieldBuilder().addBuilder( com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.getDefaultInstance()); } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder addOutputsBuilder( int index) { return getOutputsFieldBuilder().addBuilder( index, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.getDefaultInstance()); } /** *
       * Output tensors.
       * 
* * repeated .pytorch.eas.ArrayProto outputs = 1; */ public java.util.List getOutputsBuilderList() { return getOutputsFieldBuilder().getBuilderList(); } private shade.protobuf.RepeatedFieldBuilderV3< com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder> getOutputsFieldBuilder() { if (outputsBuilder_ == null) { outputsBuilder_ = new shade.protobuf.RepeatedFieldBuilderV3< com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.ArrayProtoOrBuilder>( outputs_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); outputs_ = null; } return outputsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pytorch.eas.PredictResponse) } // @@protoc_insertion_point(class_scope:pytorch.eas.PredictResponse) private static final com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse(); } public static com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final shade.protobuf.Parser PARSER = new shade.protobuf.AbstractParser() { @java.lang.Override public PredictResponse parsePartialFrom( shade.protobuf.CodedInputStream input, shade.protobuf.ExtensionRegistryLite extensionRegistry) throws shade.protobuf.InvalidProtocolBufferException { return new PredictResponse(input, extensionRegistry); } }; public static shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public shade.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.aliyun.openservices.eas.predict.proto.TorchPredictProtos.PredictResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final shade.protobuf.Descriptors.Descriptor internal_static_pytorch_eas_ArrayShape_descriptor; private static final shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pytorch_eas_ArrayShape_fieldAccessorTable; private static final shade.protobuf.Descriptors.Descriptor internal_static_pytorch_eas_ArrayProto_descriptor; private static final shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pytorch_eas_ArrayProto_fieldAccessorTable; private static final shade.protobuf.Descriptors.Descriptor internal_static_pytorch_eas_PredictRequest_descriptor; private static final shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pytorch_eas_PredictRequest_fieldAccessorTable; private static final shade.protobuf.Descriptors.Descriptor internal_static_pytorch_eas_PredictResponse_descriptor; private static final shade.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pytorch_eas_PredictResponse_fieldAccessorTable; public static shade.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static shade.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\032pytorch_predict_java.proto\022\013pytorch.ea" + "s\"\035\n\nArrayShape\022\017\n\003dim\030\001 \003(\003B\002\020\001\"\324\001\n\nArr" + "ayProto\022)\n\005dtype\030\001 \001(\0162\032.pytorch.eas.Arr" + "ayDataType\022,\n\013array_shape\030\002 \001(\0132\027.pytorc" + "h.eas.ArrayShape\022\025\n\tfloat_val\030\003 \003(\002B\002\020\001\022" + "\026\n\ndouble_val\030\004 \003(\001B\002\020\001\022\023\n\007int_val\030\005 \003(\005" + "B\002\020\001\022\022\n\nstring_val\030\006 \003(\014\022\025\n\tint64_val\030\007 " + "\003(\003B\002\020\001\"P\n\016PredictRequest\022\'\n\006inputs\030\001 \003(" + "\0132\027.pytorch.eas.ArrayProto\022\025\n\routput_fil" + "ter\030\002 \003(\005\";\n\017PredictResponse\022(\n\007outputs\030" + "\001 \003(\0132\027.pytorch.eas.ArrayProto*\333\002\n\rArray" + "DataType\022\016\n\nDT_INVALID\020\000\022\014\n\010DT_FLOAT\020\001\022\r" + "\n\tDT_DOUBLE\020\002\022\014\n\010DT_INT32\020\003\022\014\n\010DT_UINT8\020" + "\004\022\014\n\010DT_INT16\020\005\022\013\n\007DT_INT8\020\006\022\r\n\tDT_STRIN" + "G\020\007\022\020\n\014DT_COMPLEX64\020\010\022\014\n\010DT_INT64\020\t\022\013\n\007D" + "T_BOOL\020\n\022\014\n\010DT_QINT8\020\013\022\r\n\tDT_QUINT8\020\014\022\r\n" + "\tDT_QINT32\020\r\022\017\n\013DT_BFLOAT16\020\016\022\r\n\tDT_QINT" + "16\020\017\022\016\n\nDT_QUINT16\020\020\022\r\n\tDT_UINT16\020\021\022\021\n\rD" + "T_COMPLEX128\020\022\022\013\n\007DT_HALF\020\023\022\017\n\013DT_RESOUR" + "CE\020\024\022\016\n\nDT_VARIANT\020\025BB\n)com.aliyun.opens" + "ervices.eas.predict.protoB\022TorchPredictP" + "rotos\370\001\001b\006proto3" }; shade.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new shade.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public shade.protobuf.ExtensionRegistry assignDescriptors( shade.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; shade.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new shade.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_pytorch_eas_ArrayShape_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_pytorch_eas_ArrayShape_fieldAccessorTable = new shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pytorch_eas_ArrayShape_descriptor, new java.lang.String[] { "Dim", }); internal_static_pytorch_eas_ArrayProto_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_pytorch_eas_ArrayProto_fieldAccessorTable = new shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pytorch_eas_ArrayProto_descriptor, new java.lang.String[] { "Dtype", "ArrayShape", "FloatVal", "DoubleVal", "IntVal", "StringVal", "Int64Val", }); internal_static_pytorch_eas_PredictRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_pytorch_eas_PredictRequest_fieldAccessorTable = new shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pytorch_eas_PredictRequest_descriptor, new java.lang.String[] { "Inputs", "OutputFilter", }); internal_static_pytorch_eas_PredictResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_pytorch_eas_PredictResponse_fieldAccessorTable = new shade.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pytorch_eas_PredictResponse_descriptor, new java.lang.String[] { "Outputs", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy