Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* 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.PredictProtos.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:ArrayDataType)
}
public interface ArrayShapeOrBuilder extends
// @@protoc_insertion_point(interface_extends: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 ArrayShape}
*/
public static final class ArrayShape extends
shade.protobuf
.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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();
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
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;
}
}
}
} 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.PredictProtos.internal_static_ArrayShape_descriptor;
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.internal_static_ArrayShape_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape.class, com.aliyun.openservices.eas.predict.proto.PredictProtos.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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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);
}
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.PredictProtos.ArrayShape)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape other = (com.aliyun.openservices.eas.predict.proto.PredictProtos.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.PredictProtos.ArrayShape parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.PredictProtos.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.PredictProtos.ArrayShape parseFrom(
shade.protobuf
.ByteString data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.PredictProtos.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.PredictProtos.ArrayShape parseFrom(byte[] data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.PredictProtos.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.PredictProtos.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.PredictProtos.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.PredictProtos.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.PredictProtos.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.PredictProtos.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.PredictProtos.ArrayShape parseFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Dimensions of an array
*
*
* Protobuf type {@code ArrayShape}
*/
public static final class Builder extends
shade.protobuf
.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ArrayShape)
com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShapeOrBuilder {
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.internal_static_ArrayShape_descriptor;
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.internal_static_ArrayShape_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape.class, com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf
.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
dim_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public shade.protobuf
.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.internal_static_ArrayShape_descriptor;
}
public com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape.getDefaultInstance();
}
public com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape build() {
com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape buildPartial() {
com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape result = new com.aliyun.openservices.eas.predict.proto.PredictProtos.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;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
shade.protobuf
.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
shade.protobuf
.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
shade.protobuf
.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(shade.protobuf
.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape other) {
if (other == com.aliyun.openservices.eas.predict.proto.PredictProtos.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;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf
.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.PredictProtos.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 extends java.lang.Long> 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;
}
public final Builder setUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ArrayShape)
}
// @@protoc_insertion_point(class_scope:ArrayShape)
private static final com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape();
}
public static com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf
.Parser
PARSER = new shade.protobuf
.AbstractParser() {
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;
}
public com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayShape getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ArrayProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:ArrayProto)
shade.protobuf
.MessageOrBuilder {
/**
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* PredictRequest specifies which TensorFlow model to run, as well as
* how inputs are mapped to tensors and how outputs are filtered before
* returning to user.
*
*
* Protobuf type {@code PredictRequest}
*/
public static final class PredictRequest extends
shade.protobuf
.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:PredictRequest)
PredictRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PredictRequest.newBuilder() to construct.
private PredictRequest(shade.protobuf
.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PredictRequest() {
signatureName_ = "";
outputFilter_ = shade.protobuf
.LazyStringArrayList.EMPTY;
}
@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();
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
signatureName_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
inputs_ = shade.protobuf
.MapField.newMapField(
InputsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
shade.protobuf
.MapEntry
inputs__ = input.readMessage(
InputsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
inputs_.getMutableMap().put(
inputs__.getKey(), inputs__.getValue());
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
outputFilter_ = new shade.protobuf
.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
outputFilter_.add(s);
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)) {
outputFilter_ = outputFilter_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.internal_static_PredictRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf
.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetInputs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.internal_static_PredictRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest.class, com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest.Builder.class);
}
private int bitField0_;
public static final int SIGNATURE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object signatureName_;
/**
*
* A named signature to evaluate. If unspecified, the default signature
* will be used
*
* A named signature to evaluate. If unspecified, the default signature
* will be used
*
*
* string signature_name = 1;
*/
public shade.protobuf
.ByteString
getSignatureNameBytes() {
java.lang.Object ref = signatureName_;
if (ref instanceof java.lang.String) {
shade.protobuf
.ByteString b =
shade.protobuf
.ByteString.copyFromUtf8(
(java.lang.String) ref);
signatureName_ = b;
return b;
} else {
return (shade.protobuf
.ByteString) ref;
}
}
public static final int INPUTS_FIELD_NUMBER = 2;
private static final class InputsDefaultEntryHolder {
static final shade.protobuf
.MapEntry<
java.lang.String, com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayProto> defaultEntry =
shade.protobuf
.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.PredictProtos.internal_static_PredictRequest_InputsEntry_descriptor,
shade.protobuf
.WireFormat.FieldType.STRING,
"",
shade.protobuf
.WireFormat.FieldType.MESSAGE,
com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayProto.getDefaultInstance());
}
private shade.protobuf
.MapField<
java.lang.String, com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayProto> inputs_;
private shade.protobuf
.MapField
internalGetInputs() {
if (inputs_ == null) {
return shade.protobuf
.MapField.emptyMapField(
InputsDefaultEntryHolder.defaultEntry);
}
return inputs_;
}
public int getInputsCount() {
return internalGetInputs().getMap().size();
}
/**
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
*
* map<string, .ArrayProto> inputs = 2;
*/
public boolean containsInputs(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetInputs().getMap().containsKey(key);
}
/**
* Use {@link #getInputsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getInputs() {
return getInputsMap();
}
/**
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
*
* map<string, .ArrayProto> inputs = 2;
*/
public com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayProto getInputsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetInputs().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int OUTPUT_FILTER_FIELD_NUMBER = 3;
private shade.protobuf
.LazyStringList outputFilter_;
/**
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
*
* repeated string output_filter = 3;
*/
public int getOutputFilterCount() {
return outputFilter_.size();
}
/**
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
*
* repeated string output_filter = 3;
*/
public shade.protobuf
.ByteString
getOutputFilterBytes(int index) {
return outputFilter_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(shade.protobuf
.CodedOutputStream output)
throws java.io.IOException {
if (!getSignatureNameBytes().isEmpty()) {
shade.protobuf
.GeneratedMessageV3.writeString(output, 1, signatureName_);
}
shade.protobuf
.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetInputs(),
InputsDefaultEntryHolder.defaultEntry,
2);
for (int i = 0; i < outputFilter_.size(); i++) {
shade.protobuf
.GeneratedMessageV3.writeString(output, 3, outputFilter_.getRaw(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSignatureNameBytes().isEmpty()) {
size += shade.protobuf
.GeneratedMessageV3.computeStringSize(1, signatureName_);
}
for (java.util.Map.Entry entry
: internalGetInputs().getMap().entrySet()) {
shade.protobuf
.MapEntry
inputs__ = InputsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf
.CodedOutputStream
.computeMessageSize(2, inputs__);
}
{
int dataSize = 0;
for (int i = 0; i < outputFilter_.size(); i++) {
dataSize += computeStringSizeNoTag(outputFilter_.getRaw(i));
}
size += dataSize;
size += 1 * getOutputFilterList().size();
}
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.PredictProtos.PredictRequest)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest other = (com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest) obj;
boolean result = true;
result = result && getSignatureName()
.equals(other.getSignatureName());
result = result && internalGetInputs().equals(
other.internalGetInputs());
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();
hash = (37 * hash) + SIGNATURE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSignatureName().hashCode();
if (!internalGetInputs().getMap().isEmpty()) {
hash = (37 * hash) + INPUTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetInputs().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.PredictProtos.PredictRequest parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.PredictProtos.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.PredictProtos.PredictRequest parseFrom(
shade.protobuf
.ByteString data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.PredictProtos.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.PredictProtos.PredictRequest parseFrom(byte[] data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.PredictProtos.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.PredictProtos.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.PredictProtos.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.PredictProtos.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.PredictProtos.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.PredictProtos.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.PredictProtos.PredictRequest parseFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* PredictRequest specifies which TensorFlow model to run, as well as
* how inputs are mapped to tensors and how outputs are filtered before
* returning to user.
*
*
* Protobuf type {@code PredictRequest}
*/
public static final class Builder extends
shade.protobuf
.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:PredictRequest)
com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequestOrBuilder {
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.internal_static_PredictRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf
.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetInputs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf
.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableInputs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.internal_static_PredictRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest.class, com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf
.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
signatureName_ = "";
internalGetMutableInputs().clear();
outputFilter_ = shade.protobuf
.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public shade.protobuf
.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.internal_static_PredictRequest_descriptor;
}
public com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest.getDefaultInstance();
}
public com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest build() {
com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest buildPartial() {
com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest result = new com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.signatureName_ = signatureName_;
result.inputs_ = internalGetInputs();
result.inputs_.makeImmutable();
if (((bitField0_ & 0x00000004) == 0x00000004)) {
outputFilter_ = outputFilter_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.outputFilter_ = outputFilter_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
shade.protobuf
.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
shade.protobuf
.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
shade.protobuf
.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(shade.protobuf
.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest other) {
if (other == com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest.getDefaultInstance()) return this;
if (!other.getSignatureName().isEmpty()) {
signatureName_ = other.signatureName_;
onChanged();
}
internalGetMutableInputs().mergeFrom(
other.internalGetInputs());
if (!other.outputFilter_.isEmpty()) {
if (outputFilter_.isEmpty()) {
outputFilter_ = other.outputFilter_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureOutputFilterIsMutable();
outputFilter_.addAll(other.outputFilter_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf
.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object signatureName_ = "";
/**
*
* A named signature to evaluate. If unspecified, the default signature
* will be used
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
*
* map<string, .ArrayProto> inputs = 2;
*/
public boolean containsInputs(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetInputs().getMap().containsKey(key);
}
/**
* Use {@link #getInputsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getInputs() {
return getInputsMap();
}
/**
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
*
* map<string, .ArrayProto> inputs = 2;
*/
public com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayProto getInputsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetInputs().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearInputs() {
internalGetMutableInputs().getMutableMap()
.clear();
return this;
}
/**
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
*
* map<string, .ArrayProto> inputs = 2;
*/
public Builder removeInputs(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableInputs().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableInputs() {
return internalGetMutableInputs().getMutableMap();
}
/**
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
*
* map<string, .ArrayProto> inputs = 2;
*/
public Builder putInputs(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.PredictProtos.ArrayProto value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableInputs().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Input tensors.
* Names of input tensor are alias names. The mapping from aliases to real
* input tensor names is expected to be stored as named generic signature
* under the key "inputs" in the model export.
* Each alias listed in a generic signature named "inputs" should be provided
* exactly once in order to run the prediction.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
*
* repeated string output_filter = 3;
*/
public int getOutputFilterCount() {
return outputFilter_.size();
}
/**
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
*
* repeated string output_filter = 3;
*/
public Builder setOutputFilter(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputFilterIsMutable();
outputFilter_.set(index, value);
onChanged();
return this;
}
/**
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
* Output filter.
* Names specified are alias names. The mapping from aliases to real output
* tensor names is expected to be stored as named generic signature under
* the key "outputs" in the model export.
* Only tensors specified here will be run/fetched and returned, with the
* exception that when none is specified, all tensors specified in the
* named signature will be run/fetched and returned.
*
*
* repeated string output_filter = 3;
*/
public Builder addOutputFilterBytes(
shade.protobuf
.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureOutputFilterIsMutable();
outputFilter_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:PredictRequest)
}
// @@protoc_insertion_point(class_scope:PredictRequest)
private static final com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest();
}
public static com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf
.Parser
PARSER = new shade.protobuf
.AbstractParser() {
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;
}
public com.aliyun.openservices.eas.predict.proto.PredictProtos.PredictRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PredictResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:PredictResponse)
shade.protobuf
.MessageOrBuilder {
/**
*