Please wait. This can take some minutes ...
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.
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: easyrec_predict.proto
package com.aliyun.openservices.eas.predict.proto;
public final class EasyRecPredictProtos {
private EasyRecPredictProtos() {}
public static void registerAllExtensions(
shade.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
shade.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(shade.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code 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.EasyRecPredictProtos.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)
}
/**
* Protobuf enum {@code StatusCode}
*/
public enum StatusCode
implements shade.protobuf.ProtocolMessageEnum {
/**
* OK = 0;
*/
OK(0),
/**
* INPUT_EMPTY = 1;
*/
INPUT_EMPTY(1),
/**
* EXCEPTION = 2;
*/
EXCEPTION(2),
UNRECOGNIZED(-1),
;
/**
* OK = 0;
*/
public static final int OK_VALUE = 0;
/**
* INPUT_EMPTY = 1;
*/
public static final int INPUT_EMPTY_VALUE = 1;
/**
* EXCEPTION = 2;
*/
public static final int EXCEPTION_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatusCode valueOf(int value) {
return forNumber(value);
}
public static StatusCode forNumber(int value) {
switch (value) {
case 0: return OK;
case 1: return INPUT_EMPTY;
case 2: return EXCEPTION;
default: return null;
}
}
public static shade.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final shade.protobuf.Internal.EnumLiteMap<
StatusCode> internalValueMap =
new shade.protobuf.Internal.EnumLiteMap() {
public StatusCode findValueByNumber(int number) {
return StatusCode.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.EasyRecPredictProtos.getDescriptor().getEnumTypes().get(1);
}
private static final StatusCode[] VALUES = values();
public static StatusCode 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 StatusCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:StatusCode)
}
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();
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.EasyRecPredictProtos.internal_static_ArrayShape_descriptor;
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ArrayShape_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.ArrayShape)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape other = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.ArrayShape parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.ArrayShape parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.ArrayShape parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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 ArrayShape}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ArrayShape)
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShapeOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ArrayShape_descriptor;
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ArrayShape_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.internal_static_ArrayShape_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape build() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape buildPartial() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape result = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.ArrayShape) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape other) {
if (other == com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.ArrayShape parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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;
}
@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:ArrayShape)
}
// @@protoc_insertion_point(class_scope:ArrayShape)
private static final com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape();
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.ArrayShape getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ArrayProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:ArrayProto)
shade.protobuf.MessageOrBuilder {
/**
*
* Data Type.
*
*
* .ArrayDataType dtype = 1;
*/
int getDtypeValue();
/**
*
* Data Type.
*
*
* .ArrayDataType dtype = 1;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayDataType getDtype();
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
boolean hasArrayShape();
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape getArrayShape();
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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);
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
java.util.List getBoolValList();
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
int getBoolValCount();
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
boolean getBoolVal(int index);
}
/**
*
* Protocol buffer representing an array
*
*
* Protobuf type {@code ArrayProto}
*/
public static final class ArrayProto extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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();
boolVal_ = 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.EasyRecPredictProtos.ArrayShape.Builder subBuilder = null;
if (arrayShape_ != null) {
subBuilder = arrayShape_.toBuilder();
}
arrayShape_ = input.readMessage(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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;
}
case 64: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
boolVal_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
boolVal_.add(input.readBool());
break;
}
case 66: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) {
boolVal_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
while (input.getBytesUntilLimit() > 0) {
boolVal_.add(input.readBool());
}
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_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
boolVal_ = java.util.Collections.unmodifiableList(boolVal_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ArrayProto_descriptor;
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ArrayProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto.Builder.class);
}
private int bitField0_;
public static final int DTYPE_FIELD_NUMBER = 1;
private int dtype_;
/**
*
* Data Type.
*
*
* .ArrayDataType dtype = 1;
*/
public int getDtypeValue() {
return dtype_;
}
/**
*
* Data Type.
*
*
* .ArrayDataType dtype = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayDataType getDtype() {
@SuppressWarnings("deprecation")
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayDataType result = com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayDataType.valueOf(dtype_);
return result == null ? com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayDataType.UNRECOGNIZED : result;
}
public static final int ARRAY_SHAPE_FIELD_NUMBER = 2;
private com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape arrayShape_;
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public boolean hasArrayShape() {
return arrayShape_ != null;
}
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape getArrayShape() {
return arrayShape_ == null ? com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.getDefaultInstance() : arrayShape_;
}
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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;
public static final int BOOL_VAL_FIELD_NUMBER = 8;
private java.util.List boolVal_;
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
public java.util.List
getBoolValList() {
return boolVal_;
}
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
public int getBoolValCount() {
return boolVal_.size();
}
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
public boolean getBoolVal(int index) {
return boolVal_.get(index);
}
private int boolValMemoizedSerializedSize = -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.EasyRecPredictProtos.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));
}
if (getBoolValList().size() > 0) {
output.writeUInt32NoTag(66);
output.writeUInt32NoTag(boolValMemoizedSerializedSize);
}
for (int i = 0; i < boolVal_.size(); i++) {
output.writeBoolNoTag(boolVal_.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.EasyRecPredictProtos.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;
}
{
int dataSize = 0;
dataSize = 1 * getBoolValList().size();
size += dataSize;
if (!getBoolValList().isEmpty()) {
size += 1;
size += shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
boolValMemoizedSerializedSize = 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.EasyRecPredictProtos.ArrayProto)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto other = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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 && getBoolValList()
.equals(other.getBoolValList());
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();
}
if (getBoolValCount() > 0) {
hash = (37 * hash) + BOOL_VAL_FIELD_NUMBER;
hash = (53 * hash) + getBoolValList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.ArrayProto parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.ArrayProto parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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.EasyRecPredictProtos.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 ArrayProto}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ArrayProto)
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProtoOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ArrayProto_descriptor;
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ArrayProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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);
boolVal_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ArrayProto_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto build() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto buildPartial() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto result = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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_;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
boolVal_ = java.util.Collections.unmodifiableList(boolVal_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.boolVal_ = boolVal_;
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.EasyRecPredictProtos.ArrayProto) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto other) {
if (other == com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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();
}
if (!other.boolVal_.isEmpty()) {
if (boolVal_.isEmpty()) {
boolVal_ = other.boolVal_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureBoolValIsMutable();
boolVal_.addAll(other.boolVal_);
}
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.EasyRecPredictProtos.ArrayProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int dtype_ = 0;
/**
*
* Data Type.
*
*
* .ArrayDataType dtype = 1;
*/
public int getDtypeValue() {
return dtype_;
}
/**
*
* Data Type.
*
*
* .ArrayDataType dtype = 1;
*/
public Builder setDtypeValue(int value) {
dtype_ = value;
onChanged();
return this;
}
/**
*
* Data Type.
*
*
* .ArrayDataType dtype = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayDataType getDtype() {
@SuppressWarnings("deprecation")
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayDataType result = com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayDataType.valueOf(dtype_);
return result == null ? com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayDataType.UNRECOGNIZED : result;
}
/**
*
* Data Type.
*
*
* .ArrayDataType dtype = 1;
*/
public Builder setDtype(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayDataType value) {
if (value == null) {
throw new NullPointerException();
}
dtype_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Data Type.
*
*
* .ArrayDataType dtype = 1;
*/
public Builder clearDtype() {
dtype_ = 0;
onChanged();
return this;
}
private com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape arrayShape_ = null;
private shade.protobuf.SingleFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.Builder, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShapeOrBuilder> arrayShapeBuilder_;
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public boolean hasArrayShape() {
return arrayShapeBuilder_ != null || arrayShape_ != null;
}
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape getArrayShape() {
if (arrayShapeBuilder_ == null) {
return arrayShape_ == null ? com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.getDefaultInstance() : arrayShape_;
} else {
return arrayShapeBuilder_.getMessage();
}
}
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public Builder setArrayShape(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape value) {
if (arrayShapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
arrayShape_ = value;
onChanged();
} else {
arrayShapeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public Builder setArrayShape(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.Builder builderForValue) {
if (arrayShapeBuilder_ == null) {
arrayShape_ = builderForValue.build();
onChanged();
} else {
arrayShapeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public Builder mergeArrayShape(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape value) {
if (arrayShapeBuilder_ == null) {
if (arrayShape_ != null) {
arrayShape_ =
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.newBuilder(arrayShape_).mergeFrom(value).buildPartial();
} else {
arrayShape_ = value;
}
onChanged();
} else {
arrayShapeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public Builder clearArrayShape() {
if (arrayShapeBuilder_ == null) {
arrayShape_ = null;
onChanged();
} else {
arrayShape_ = null;
arrayShapeBuilder_ = null;
}
return this;
}
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.Builder getArrayShapeBuilder() {
onChanged();
return getArrayShapeFieldBuilder().getBuilder();
}
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShapeOrBuilder getArrayShapeOrBuilder() {
if (arrayShapeBuilder_ != null) {
return arrayShapeBuilder_.getMessageOrBuilder();
} else {
return arrayShape_ == null ?
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.getDefaultInstance() : arrayShape_;
}
}
/**
*
* Shape of the array.
*
*
* .ArrayShape array_shape = 2;
*/
private shade.protobuf.SingleFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.Builder, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShapeOrBuilder>
getArrayShapeFieldBuilder() {
if (arrayShapeBuilder_ == null) {
arrayShapeBuilder_ = new shade.protobuf.SingleFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayShape.Builder, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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 extends java.lang.Float> 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 extends java.lang.Double> 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 extends java.lang.Integer> 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 extends shade.protobuf.ByteString> 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 extends java.lang.Long> 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;
}
private java.util.List boolVal_ = java.util.Collections.emptyList();
private void ensureBoolValIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
boolVal_ = new java.util.ArrayList(boolVal_);
bitField0_ |= 0x00000080;
}
}
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
public java.util.List
getBoolValList() {
return java.util.Collections.unmodifiableList(boolVal_);
}
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
public int getBoolValCount() {
return boolVal_.size();
}
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
public boolean getBoolVal(int index) {
return boolVal_.get(index);
}
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
public Builder setBoolVal(
int index, boolean value) {
ensureBoolValIsMutable();
boolVal_.set(index, value);
onChanged();
return this;
}
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
public Builder addBoolVal(boolean value) {
ensureBoolValIsMutable();
boolVal_.add(value);
onChanged();
return this;
}
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
public Builder addAllBoolVal(
java.lang.Iterable extends java.lang.Boolean> values) {
ensureBoolValIsMutable();
shade.protobuf.AbstractMessageLite.Builder.addAll(
values, boolVal_);
onChanged();
return this;
}
/**
*
* DT_BOOL.
*
*
* repeated bool bool_val = 8 [packed = true];
*/
public Builder clearBoolVal() {
boolVal_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
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:ArrayProto)
}
// @@protoc_insertion_point(class_scope:ArrayProto)
private static final com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto();
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.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.EasyRecPredictProtos.ArrayProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContextFeaturesOrBuilder extends
// @@protoc_insertion_point(interface_extends:ContextFeatures)
shade.protobuf.MessageOrBuilder {
/**
* repeated .PBFeature features = 1;
*/
java.util.List
getFeaturesList();
/**
* repeated .PBFeature features = 1;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getFeatures(int index);
/**
* repeated .PBFeature features = 1;
*/
int getFeaturesCount();
/**
* repeated .PBFeature features = 1;
*/
java.util.List extends com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeatureOrBuilder>
getFeaturesOrBuilderList();
/**
* repeated .PBFeature features = 1;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeatureOrBuilder getFeaturesOrBuilder(
int index);
}
/**
*
* context features
*
*
* Protobuf type {@code ContextFeatures}
*/
public static final class ContextFeatures extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ContextFeatures)
ContextFeaturesOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContextFeatures.newBuilder() to construct.
private ContextFeatures(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContextFeatures() {
features_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContextFeatures(
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)) {
features_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
features_.add(
input.readMessage(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.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)) {
features_ = java.util.Collections.unmodifiableList(features_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ContextFeatures_descriptor;
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ContextFeatures_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures.Builder.class);
}
public static final int FEATURES_FIELD_NUMBER = 1;
private java.util.List features_;
/**
* repeated .PBFeature features = 1;
*/
public java.util.List getFeaturesList() {
return features_;
}
/**
* repeated .PBFeature features = 1;
*/
public java.util.List extends com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeatureOrBuilder>
getFeaturesOrBuilderList() {
return features_;
}
/**
* repeated .PBFeature features = 1;
*/
public int getFeaturesCount() {
return features_.size();
}
/**
* repeated .PBFeature features = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getFeatures(int index) {
return features_.get(index);
}
/**
* repeated .PBFeature features = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeatureOrBuilder getFeaturesOrBuilder(
int index) {
return features_.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 < features_.size(); i++) {
output.writeMessage(1, features_.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 < features_.size(); i++) {
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, features_.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.EasyRecPredictProtos.ContextFeatures)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures other = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures) obj;
boolean result = true;
result = result && getFeaturesList()
.equals(other.getFeaturesList());
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 (getFeaturesCount() > 0) {
hash = (37 * hash) + FEATURES_FIELD_NUMBER;
hash = (53 * hash) + getFeaturesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures 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.EasyRecPredictProtos.ContextFeatures parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures 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.EasyRecPredictProtos.ContextFeatures parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures 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.EasyRecPredictProtos.ContextFeatures parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures 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.EasyRecPredictProtos.ContextFeatures parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures 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.EasyRecPredictProtos.ContextFeatures 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;
}
/**
*
* context features
*
*
* Protobuf type {@code ContextFeatures}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ContextFeatures)
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeaturesOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ContextFeatures_descriptor;
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ContextFeatures_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFeaturesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (featuresBuilder_ == null) {
features_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
featuresBuilder_.clear();
}
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_ContextFeatures_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures build() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures buildPartial() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures result = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures(this);
int from_bitField0_ = bitField0_;
if (featuresBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
features_ = java.util.Collections.unmodifiableList(features_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.features_ = features_;
} else {
result.features_ = featuresBuilder_.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.EasyRecPredictProtos.ContextFeatures) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures other) {
if (other == com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures.getDefaultInstance()) return this;
if (featuresBuilder_ == null) {
if (!other.features_.isEmpty()) {
if (features_.isEmpty()) {
features_ = other.features_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFeaturesIsMutable();
features_.addAll(other.features_);
}
onChanged();
}
} else {
if (!other.features_.isEmpty()) {
if (featuresBuilder_.isEmpty()) {
featuresBuilder_.dispose();
featuresBuilder_ = null;
features_ = other.features_;
bitField0_ = (bitField0_ & ~0x00000001);
featuresBuilder_ =
shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFeaturesFieldBuilder() : null;
} else {
featuresBuilder_.addAllMessages(other.features_);
}
}
}
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.EasyRecPredictProtos.ContextFeatures parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List features_ =
java.util.Collections.emptyList();
private void ensureFeaturesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
features_ = new java.util.ArrayList(features_);
bitField0_ |= 0x00000001;
}
}
private shade.protobuf.RepeatedFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeatureOrBuilder> featuresBuilder_;
/**
* repeated .PBFeature features = 1;
*/
public java.util.List getFeaturesList() {
if (featuresBuilder_ == null) {
return java.util.Collections.unmodifiableList(features_);
} else {
return featuresBuilder_.getMessageList();
}
}
/**
* repeated .PBFeature features = 1;
*/
public int getFeaturesCount() {
if (featuresBuilder_ == null) {
return features_.size();
} else {
return featuresBuilder_.getCount();
}
}
/**
* repeated .PBFeature features = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getFeatures(int index) {
if (featuresBuilder_ == null) {
return features_.get(index);
} else {
return featuresBuilder_.getMessage(index);
}
}
/**
* repeated .PBFeature features = 1;
*/
public Builder setFeatures(
int index, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature value) {
if (featuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeaturesIsMutable();
features_.set(index, value);
onChanged();
} else {
featuresBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .PBFeature features = 1;
*/
public Builder setFeatures(
int index, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder builderForValue) {
if (featuresBuilder_ == null) {
ensureFeaturesIsMutable();
features_.set(index, builderForValue.build());
onChanged();
} else {
featuresBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .PBFeature features = 1;
*/
public Builder addFeatures(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature value) {
if (featuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeaturesIsMutable();
features_.add(value);
onChanged();
} else {
featuresBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .PBFeature features = 1;
*/
public Builder addFeatures(
int index, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature value) {
if (featuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeaturesIsMutable();
features_.add(index, value);
onChanged();
} else {
featuresBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .PBFeature features = 1;
*/
public Builder addFeatures(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder builderForValue) {
if (featuresBuilder_ == null) {
ensureFeaturesIsMutable();
features_.add(builderForValue.build());
onChanged();
} else {
featuresBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .PBFeature features = 1;
*/
public Builder addFeatures(
int index, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder builderForValue) {
if (featuresBuilder_ == null) {
ensureFeaturesIsMutable();
features_.add(index, builderForValue.build());
onChanged();
} else {
featuresBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .PBFeature features = 1;
*/
public Builder addAllFeatures(
java.lang.Iterable extends com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature> values) {
if (featuresBuilder_ == null) {
ensureFeaturesIsMutable();
shade.protobuf.AbstractMessageLite.Builder.addAll(
values, features_);
onChanged();
} else {
featuresBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .PBFeature features = 1;
*/
public Builder clearFeatures() {
if (featuresBuilder_ == null) {
features_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
featuresBuilder_.clear();
}
return this;
}
/**
* repeated .PBFeature features = 1;
*/
public Builder removeFeatures(int index) {
if (featuresBuilder_ == null) {
ensureFeaturesIsMutable();
features_.remove(index);
onChanged();
} else {
featuresBuilder_.remove(index);
}
return this;
}
/**
* repeated .PBFeature features = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder getFeaturesBuilder(
int index) {
return getFeaturesFieldBuilder().getBuilder(index);
}
/**
* repeated .PBFeature features = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeatureOrBuilder getFeaturesOrBuilder(
int index) {
if (featuresBuilder_ == null) {
return features_.get(index); } else {
return featuresBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .PBFeature features = 1;
*/
public java.util.List extends com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeatureOrBuilder>
getFeaturesOrBuilderList() {
if (featuresBuilder_ != null) {
return featuresBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(features_);
}
}
/**
* repeated .PBFeature features = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder addFeaturesBuilder() {
return getFeaturesFieldBuilder().addBuilder(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.getDefaultInstance());
}
/**
* repeated .PBFeature features = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder addFeaturesBuilder(
int index) {
return getFeaturesFieldBuilder().addBuilder(
index, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.getDefaultInstance());
}
/**
* repeated .PBFeature features = 1;
*/
public java.util.List
getFeaturesBuilderList() {
return getFeaturesFieldBuilder().getBuilderList();
}
private shade.protobuf.RepeatedFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeatureOrBuilder>
getFeaturesFieldBuilder() {
if (featuresBuilder_ == null) {
featuresBuilder_ = new shade.protobuf.RepeatedFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeatureOrBuilder>(
features_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
features_ = null;
}
return featuresBuilder_;
}
@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:ContextFeatures)
}
// @@protoc_insertion_point(class_scope:ContextFeatures)
private static final com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures();
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public ContextFeatures parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new ContextFeatures(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.EasyRecPredictProtos.ContextFeatures getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PBFeatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:PBFeature)
shade.protobuf.MessageOrBuilder {
/**
* int32 int_feature = 1;
*/
int getIntFeature();
/**
* int64 long_feature = 2;
*/
long getLongFeature();
/**
* string string_feature = 3;
*/
java.lang.String getStringFeature();
/**
* string string_feature = 3;
*/
shade.protobuf.ByteString
getStringFeatureBytes();
/**
* float float_feature = 4;
*/
float getFloatFeature();
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.ValueCase getValueCase();
}
/**
* Protobuf type {@code PBFeature}
*/
public static final class PBFeature extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:PBFeature)
PBFeatureOrBuilder {
private static final long serialVersionUID = 0L;
// Use PBFeature.newBuilder() to construct.
private PBFeature(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PBFeature() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PBFeature(
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: {
valueCase_ = 1;
value_ = input.readInt32();
break;
}
case 16: {
valueCase_ = 2;
value_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
valueCase_ = 3;
value_ = s;
break;
}
case 37: {
valueCase_ = 4;
value_ = input.readFloat();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBFeature_descriptor;
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBFeature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements shade.protobuf.Internal.EnumLite {
INT_FEATURE(1),
LONG_FEATURE(2),
STRING_FEATURE(3),
FLOAT_FEATURE(4),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 1: return INT_FEATURE;
case 2: return LONG_FEATURE;
case 3: return STRING_FEATURE;
case 4: return FLOAT_FEATURE;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int INT_FEATURE_FIELD_NUMBER = 1;
/**
* int32 int_feature = 1;
*/
public int getIntFeature() {
if (valueCase_ == 1) {
return (java.lang.Integer) value_;
}
return 0;
}
public static final int LONG_FEATURE_FIELD_NUMBER = 2;
/**
* int64 long_feature = 2;
*/
public long getLongFeature() {
if (valueCase_ == 2) {
return (java.lang.Long) value_;
}
return 0L;
}
public static final int STRING_FEATURE_FIELD_NUMBER = 3;
/**
* string string_feature = 3;
*/
public java.lang.String getStringFeature() {
java.lang.Object ref = "";
if (valueCase_ == 3) {
ref = value_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
shade.protobuf.ByteString bs =
(shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 3) {
value_ = s;
}
return s;
}
}
/**
* string string_feature = 3;
*/
public shade.protobuf.ByteString
getStringFeatureBytes() {
java.lang.Object ref = "";
if (valueCase_ == 3) {
ref = value_;
}
if (ref instanceof java.lang.String) {
shade.protobuf.ByteString b =
shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 3) {
value_ = b;
}
return b;
} else {
return (shade.protobuf.ByteString) ref;
}
}
public static final int FLOAT_FEATURE_FIELD_NUMBER = 4;
/**
* float float_feature = 4;
*/
public float getFloatFeature() {
if (valueCase_ == 4) {
return (java.lang.Float) value_;
}
return 0F;
}
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 {
if (valueCase_ == 1) {
output.writeInt32(
1, (int)((java.lang.Integer) value_));
}
if (valueCase_ == 2) {
output.writeInt64(
2, (long)((java.lang.Long) value_));
}
if (valueCase_ == 3) {
shade.protobuf.GeneratedMessageV3.writeString(output, 3, value_);
}
if (valueCase_ == 4) {
output.writeFloat(
4, (float)((java.lang.Float) value_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += shade.protobuf.CodedOutputStream
.computeInt32Size(
1, (int)((java.lang.Integer) value_));
}
if (valueCase_ == 2) {
size += shade.protobuf.CodedOutputStream
.computeInt64Size(
2, (long)((java.lang.Long) value_));
}
if (valueCase_ == 3) {
size += shade.protobuf.GeneratedMessageV3.computeStringSize(3, value_);
}
if (valueCase_ == 4) {
size += shade.protobuf.CodedOutputStream
.computeFloatSize(
4, (float)((java.lang.Float) value_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature other = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature) obj;
boolean result = true;
result = result && getValueCase().equals(
other.getValueCase());
if (!result) return false;
switch (valueCase_) {
case 1:
result = result && (getIntFeature()
== other.getIntFeature());
break;
case 2:
result = result && (getLongFeature()
== other.getLongFeature());
break;
case 3:
result = result && getStringFeature()
.equals(other.getStringFeature());
break;
case 4:
result = result && (
java.lang.Float.floatToIntBits(getFloatFeature())
== java.lang.Float.floatToIntBits(
other.getFloatFeature()));
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (valueCase_) {
case 1:
hash = (37 * hash) + INT_FEATURE_FIELD_NUMBER;
hash = (53 * hash) + getIntFeature();
break;
case 2:
hash = (37 * hash) + LONG_FEATURE_FIELD_NUMBER;
hash = (53 * hash) + shade.protobuf.Internal.hashLong(
getLongFeature());
break;
case 3:
hash = (37 * hash) + STRING_FEATURE_FIELD_NUMBER;
hash = (53 * hash) + getStringFeature().hashCode();
break;
case 4:
hash = (37 * hash) + FLOAT_FEATURE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getFloatFeature());
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature 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.EasyRecPredictProtos.PBFeature parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature 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.EasyRecPredictProtos.PBFeature parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature 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.EasyRecPredictProtos.PBFeature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature 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.EasyRecPredictProtos.PBFeature parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature 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.EasyRecPredictProtos.PBFeature 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 PBFeature}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:PBFeature)
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeatureOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBFeature_descriptor;
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBFeature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.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();
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBFeature_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature build() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature buildPartial() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature result = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature(this);
if (valueCase_ == 1) {
result.value_ = value_;
}
if (valueCase_ == 2) {
result.value_ = value_;
}
if (valueCase_ == 3) {
result.value_ = value_;
}
if (valueCase_ == 4) {
result.value_ = value_;
}
result.valueCase_ = valueCase_;
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.EasyRecPredictProtos.PBFeature) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature other) {
if (other == com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case INT_FEATURE: {
setIntFeature(other.getIntFeature());
break;
}
case LONG_FEATURE: {
setLongFeature(other.getLongFeature());
break;
}
case STRING_FEATURE: {
valueCase_ = 3;
value_ = other.value_;
onChanged();
break;
}
case FLOAT_FEATURE: {
setFloatFeature(other.getFloatFeature());
break;
}
case VALUE_NOT_SET: {
break;
}
}
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.EasyRecPredictProtos.PBFeature parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
/**
* int32 int_feature = 1;
*/
public int getIntFeature() {
if (valueCase_ == 1) {
return (java.lang.Integer) value_;
}
return 0;
}
/**
* int32 int_feature = 1;
*/
public Builder setIntFeature(int value) {
valueCase_ = 1;
value_ = value;
onChanged();
return this;
}
/**
* int32 int_feature = 1;
*/
public Builder clearIntFeature() {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* int64 long_feature = 2;
*/
public long getLongFeature() {
if (valueCase_ == 2) {
return (java.lang.Long) value_;
}
return 0L;
}
/**
* int64 long_feature = 2;
*/
public Builder setLongFeature(long value) {
valueCase_ = 2;
value_ = value;
onChanged();
return this;
}
/**
* int64 long_feature = 2;
*/
public Builder clearLongFeature() {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* string string_feature = 3;
*/
public java.lang.String getStringFeature() {
java.lang.Object ref = "";
if (valueCase_ == 3) {
ref = value_;
}
if (!(ref instanceof java.lang.String)) {
shade.protobuf.ByteString bs =
(shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 3) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string string_feature = 3;
*/
public shade.protobuf.ByteString
getStringFeatureBytes() {
java.lang.Object ref = "";
if (valueCase_ == 3) {
ref = value_;
}
if (ref instanceof String) {
shade.protobuf.ByteString b =
shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 3) {
value_ = b;
}
return b;
} else {
return (shade.protobuf.ByteString) ref;
}
}
/**
* string string_feature = 3;
*/
public Builder setStringFeature(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
valueCase_ = 3;
value_ = value;
onChanged();
return this;
}
/**
* string string_feature = 3;
*/
public Builder clearStringFeature() {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* string string_feature = 3;
*/
public Builder setStringFeatureBytes(
shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
valueCase_ = 3;
value_ = value;
onChanged();
return this;
}
/**
* float float_feature = 4;
*/
public float getFloatFeature() {
if (valueCase_ == 4) {
return (java.lang.Float) value_;
}
return 0F;
}
/**
* float float_feature = 4;
*/
public Builder setFloatFeature(float value) {
valueCase_ = 4;
value_ = value;
onChanged();
return this;
}
/**
* float float_feature = 4;
*/
public Builder clearFloatFeature() {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
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:PBFeature)
}
// @@protoc_insertion_point(class_scope:PBFeature)
private static final com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature();
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public PBFeature parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new PBFeature(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.EasyRecPredictProtos.PBFeature getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PBRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:PBRequest)
shade.protobuf.MessageOrBuilder {
/**
*
* debug mode
*
*
* int32 debug_level = 1;
*/
int getDebugLevel();
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
int getUserFeaturesCount();
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
boolean containsUserFeatures(
java.lang.String key);
/**
* Use {@link #getUserFeaturesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getUserFeatures();
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
java.util.Map
getUserFeaturesMap();
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getUserFeaturesOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature defaultValue);
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getUserFeaturesOrThrow(
java.lang.String key);
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
java.util.List
getItemIdsList();
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
int getItemIdsCount();
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
java.lang.String getItemIds(int index);
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
shade.protobuf.ByteString
getItemIdsBytes(int index);
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
int getContextFeaturesCount();
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
boolean containsContextFeatures(
java.lang.String key);
/**
* Use {@link #getContextFeaturesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getContextFeatures();
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
java.util.Map
getContextFeaturesMap();
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures defaultValue);
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrThrow(
java.lang.String key);
}
/**
*
* PBRequest specifies the request for aggregator
*
*
* Protobuf type {@code PBRequest}
*/
public static final class PBRequest extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:PBRequest)
PBRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PBRequest.newBuilder() to construct.
private PBRequest(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PBRequest() {
debugLevel_ = 0;
itemIds_ = shade.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PBRequest(
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: {
debugLevel_ = input.readInt32();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
userFeatures_ = shade.protobuf.MapField.newMapField(
UserFeaturesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
shade.protobuf.MapEntry
userFeatures__ = input.readMessage(
UserFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
userFeatures_.getMutableMap().put(
userFeatures__.getKey(), userFeatures__.getValue());
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
itemIds_ = new shade.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
itemIds_.add(s);
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
contextFeatures_ = shade.protobuf.MapField.newMapField(
ContextFeaturesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000008;
}
shade.protobuf.MapEntry
contextFeatures__ = input.readMessage(
ContextFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
contextFeatures_.getMutableMap().put(
contextFeatures__.getKey(), contextFeatures__.getValue());
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)) {
itemIds_ = itemIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetUserFeatures();
case 4:
return internalGetContextFeatures();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest.Builder.class);
}
private int bitField0_;
public static final int DEBUG_LEVEL_FIELD_NUMBER = 1;
private int debugLevel_;
/**
*
* debug mode
*
*
* int32 debug_level = 1;
*/
public int getDebugLevel() {
return debugLevel_;
}
public static final int USER_FEATURES_FIELD_NUMBER = 2;
private static final class UserFeaturesDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBRequest_UserFeaturesEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.MESSAGE,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature.getDefaultInstance());
}
private shade.protobuf.MapField<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature> userFeatures_;
private shade.protobuf.MapField
internalGetUserFeatures() {
if (userFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
UserFeaturesDefaultEntryHolder.defaultEntry);
}
return userFeatures_;
}
public int getUserFeaturesCount() {
return internalGetUserFeatures().getMap().size();
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public boolean containsUserFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetUserFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getUserFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getUserFeatures() {
return getUserFeaturesMap();
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public java.util.Map getUserFeaturesMap() {
return internalGetUserFeatures().getMap();
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getUserFeaturesOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetUserFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getUserFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetUserFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ITEM_IDS_FIELD_NUMBER = 3;
private shade.protobuf.LazyStringList itemIds_;
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public shade.protobuf.ProtocolStringList
getItemIdsList() {
return itemIds_;
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public int getItemIdsCount() {
return itemIds_.size();
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public java.lang.String getItemIds(int index) {
return itemIds_.get(index);
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public shade.protobuf.ByteString
getItemIdsBytes(int index) {
return itemIds_.getByteString(index);
}
public static final int CONTEXT_FEATURES_FIELD_NUMBER = 4;
private static final class ContextFeaturesDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBRequest_ContextFeaturesEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.MESSAGE,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures.getDefaultInstance());
}
private shade.protobuf.MapField<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures> contextFeatures_;
private shade.protobuf.MapField
internalGetContextFeatures() {
if (contextFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
ContextFeaturesDefaultEntryHolder.defaultEntry);
}
return contextFeatures_;
}
public int getContextFeaturesCount() {
return internalGetContextFeatures().getMap().size();
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public boolean containsContextFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetContextFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getContextFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getContextFeatures() {
return getContextFeaturesMap();
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public java.util.Map getContextFeaturesMap() {
return internalGetContextFeatures().getMap();
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetContextFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetContextFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
if (debugLevel_ != 0) {
output.writeInt32(1, debugLevel_);
}
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetUserFeatures(),
UserFeaturesDefaultEntryHolder.defaultEntry,
2);
for (int i = 0; i < itemIds_.size(); i++) {
shade.protobuf.GeneratedMessageV3.writeString(output, 3, itemIds_.getRaw(i));
}
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetContextFeatures(),
ContextFeaturesDefaultEntryHolder.defaultEntry,
4);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (debugLevel_ != 0) {
size += shade.protobuf.CodedOutputStream
.computeInt32Size(1, debugLevel_);
}
for (java.util.Map.Entry entry
: internalGetUserFeatures().getMap().entrySet()) {
shade.protobuf.MapEntry
userFeatures__ = UserFeaturesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(2, userFeatures__);
}
{
int dataSize = 0;
for (int i = 0; i < itemIds_.size(); i++) {
dataSize += computeStringSizeNoTag(itemIds_.getRaw(i));
}
size += dataSize;
size += 1 * getItemIdsList().size();
}
for (java.util.Map.Entry entry
: internalGetContextFeatures().getMap().entrySet()) {
shade.protobuf.MapEntry
contextFeatures__ = ContextFeaturesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(4, contextFeatures__);
}
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.EasyRecPredictProtos.PBRequest)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest other = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest) obj;
boolean result = true;
result = result && (getDebugLevel()
== other.getDebugLevel());
result = result && internalGetUserFeatures().equals(
other.internalGetUserFeatures());
result = result && getItemIdsList()
.equals(other.getItemIdsList());
result = result && internalGetContextFeatures().equals(
other.internalGetContextFeatures());
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) + DEBUG_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getDebugLevel();
if (!internalGetUserFeatures().getMap().isEmpty()) {
hash = (37 * hash) + USER_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + internalGetUserFeatures().hashCode();
}
if (getItemIdsCount() > 0) {
hash = (37 * hash) + ITEM_IDS_FIELD_NUMBER;
hash = (53 * hash) + getItemIdsList().hashCode();
}
if (!internalGetContextFeatures().getMap().isEmpty()) {
hash = (37 * hash) + CONTEXT_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + internalGetContextFeatures().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest 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.EasyRecPredictProtos.PBRequest parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest 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.EasyRecPredictProtos.PBRequest parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest 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.EasyRecPredictProtos.PBRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest 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.EasyRecPredictProtos.PBRequest parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest 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.EasyRecPredictProtos.PBRequest 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;
}
/**
*
* PBRequest specifies the request for aggregator
*
*
* Protobuf type {@code PBRequest}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:PBRequest)
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequestOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetUserFeatures();
case 4:
return internalGetContextFeatures();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableUserFeatures();
case 4:
return internalGetMutableContextFeatures();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest.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();
debugLevel_ = 0;
internalGetMutableUserFeatures().clear();
itemIds_ = shade.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
internalGetMutableContextFeatures().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBRequest_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest build() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest buildPartial() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest result = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.debugLevel_ = debugLevel_;
result.userFeatures_ = internalGetUserFeatures();
result.userFeatures_.makeImmutable();
if (((bitField0_ & 0x00000004) == 0x00000004)) {
itemIds_ = itemIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.itemIds_ = itemIds_;
result.contextFeatures_ = internalGetContextFeatures();
result.contextFeatures_.makeImmutable();
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.EasyRecPredictProtos.PBRequest) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest other) {
if (other == com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest.getDefaultInstance()) return this;
if (other.getDebugLevel() != 0) {
setDebugLevel(other.getDebugLevel());
}
internalGetMutableUserFeatures().mergeFrom(
other.internalGetUserFeatures());
if (!other.itemIds_.isEmpty()) {
if (itemIds_.isEmpty()) {
itemIds_ = other.itemIds_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureItemIdsIsMutable();
itemIds_.addAll(other.itemIds_);
}
onChanged();
}
internalGetMutableContextFeatures().mergeFrom(
other.internalGetContextFeatures());
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.EasyRecPredictProtos.PBRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int debugLevel_ ;
/**
*
* debug mode
*
*
* int32 debug_level = 1;
*/
public int getDebugLevel() {
return debugLevel_;
}
/**
*
* debug mode
*
*
* int32 debug_level = 1;
*/
public Builder setDebugLevel(int value) {
debugLevel_ = value;
onChanged();
return this;
}
/**
*
* debug mode
*
*
* int32 debug_level = 1;
*/
public Builder clearDebugLevel() {
debugLevel_ = 0;
onChanged();
return this;
}
private shade.protobuf.MapField<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature> userFeatures_;
private shade.protobuf.MapField
internalGetUserFeatures() {
if (userFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
UserFeaturesDefaultEntryHolder.defaultEntry);
}
return userFeatures_;
}
private shade.protobuf.MapField
internalGetMutableUserFeatures() {
onChanged();;
if (userFeatures_ == null) {
userFeatures_ = shade.protobuf.MapField.newMapField(
UserFeaturesDefaultEntryHolder.defaultEntry);
}
if (!userFeatures_.isMutable()) {
userFeatures_ = userFeatures_.copy();
}
return userFeatures_;
}
public int getUserFeaturesCount() {
return internalGetUserFeatures().getMap().size();
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public boolean containsUserFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetUserFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getUserFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getUserFeatures() {
return getUserFeaturesMap();
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public java.util.Map getUserFeaturesMap() {
return internalGetUserFeatures().getMap();
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getUserFeaturesOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetUserFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature getUserFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetUserFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearUserFeatures() {
internalGetMutableUserFeatures().getMutableMap()
.clear();
return this;
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public Builder removeUserFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableUserFeatures().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableUserFeatures() {
return internalGetMutableUserFeatures().getMutableMap();
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public Builder putUserFeatures(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBFeature value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableUserFeatures().getMutableMap()
.put(key, value);
return this;
}
/**
*
* user features
*
*
* map<string, .PBFeature> user_features = 2;
*/
public Builder putAllUserFeatures(
java.util.Map values) {
internalGetMutableUserFeatures().getMutableMap()
.putAll(values);
return this;
}
private shade.protobuf.LazyStringList itemIds_ = shade.protobuf.LazyStringArrayList.EMPTY;
private void ensureItemIdsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
itemIds_ = new shade.protobuf.LazyStringArrayList(itemIds_);
bitField0_ |= 0x00000004;
}
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public shade.protobuf.ProtocolStringList
getItemIdsList() {
return itemIds_.getUnmodifiableView();
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public int getItemIdsCount() {
return itemIds_.size();
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public java.lang.String getItemIds(int index) {
return itemIds_.get(index);
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public shade.protobuf.ByteString
getItemIdsBytes(int index) {
return itemIds_.getByteString(index);
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public Builder setItemIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureItemIdsIsMutable();
itemIds_.set(index, value);
onChanged();
return this;
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public Builder addItemIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureItemIdsIsMutable();
itemIds_.add(value);
onChanged();
return this;
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public Builder addAllItemIds(
java.lang.Iterable values) {
ensureItemIdsIsMutable();
shade.protobuf.AbstractMessageLite.Builder.addAll(
values, itemIds_);
onChanged();
return this;
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public Builder clearItemIds() {
itemIds_ = shade.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* item ids
*
*
* repeated string item_ids = 3;
*/
public Builder addItemIdsBytes(
shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureItemIdsIsMutable();
itemIds_.add(value);
onChanged();
return this;
}
private shade.protobuf.MapField<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures> contextFeatures_;
private shade.protobuf.MapField
internalGetContextFeatures() {
if (contextFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
ContextFeaturesDefaultEntryHolder.defaultEntry);
}
return contextFeatures_;
}
private shade.protobuf.MapField
internalGetMutableContextFeatures() {
onChanged();;
if (contextFeatures_ == null) {
contextFeatures_ = shade.protobuf.MapField.newMapField(
ContextFeaturesDefaultEntryHolder.defaultEntry);
}
if (!contextFeatures_.isMutable()) {
contextFeatures_ = contextFeatures_.copy();
}
return contextFeatures_;
}
public int getContextFeaturesCount() {
return internalGetContextFeatures().getMap().size();
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public boolean containsContextFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetContextFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getContextFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getContextFeatures() {
return getContextFeaturesMap();
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public java.util.Map getContextFeaturesMap() {
return internalGetContextFeatures().getMap();
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetContextFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetContextFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearContextFeatures() {
internalGetMutableContextFeatures().getMutableMap()
.clear();
return this;
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public Builder removeContextFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableContextFeatures().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableContextFeatures() {
return internalGetMutableContextFeatures().getMutableMap();
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public Builder putContextFeatures(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableContextFeatures().getMutableMap()
.put(key, value);
return this;
}
/**
*
* context features for each item
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public Builder putAllContextFeatures(
java.util.Map values) {
internalGetMutableContextFeatures().getMutableMap()
.putAll(values);
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:PBRequest)
}
// @@protoc_insertion_point(class_scope:PBRequest)
private static final com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest();
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public PBRequest parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new PBRequest(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.EasyRecPredictProtos.PBRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResultsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Results)
shade.protobuf.MessageOrBuilder {
/**
* repeated double scores = 1 [packed = true];
*/
java.util.List getScoresList();
/**
* repeated double scores = 1 [packed = true];
*/
int getScoresCount();
/**
* repeated double scores = 1 [packed = true];
*/
double getScores(int index);
}
/**
*
* return results
*
*
* Protobuf type {@code Results}
*/
public static final class Results extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Results)
ResultsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Results.newBuilder() to construct.
private Results(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Results() {
scores_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Results(
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 9: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
scores_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
scores_.add(input.readDouble());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
scores_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
scores_.add(input.readDouble());
}
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)) {
scores_ = java.util.Collections.unmodifiableList(scores_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_Results_descriptor;
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_Results_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results.Builder.class);
}
public static final int SCORES_FIELD_NUMBER = 1;
private java.util.List scores_;
/**
* repeated double scores = 1 [packed = true];
*/
public java.util.List
getScoresList() {
return scores_;
}
/**
* repeated double scores = 1 [packed = true];
*/
public int getScoresCount() {
return scores_.size();
}
/**
* repeated double scores = 1 [packed = true];
*/
public double getScores(int index) {
return scores_.get(index);
}
private int scoresMemoizedSerializedSize = -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 (getScoresList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(scoresMemoizedSerializedSize);
}
for (int i = 0; i < scores_.size(); i++) {
output.writeDoubleNoTag(scores_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 8 * getScoresList().size();
size += dataSize;
if (!getScoresList().isEmpty()) {
size += 1;
size += shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
scoresMemoizedSerializedSize = 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.EasyRecPredictProtos.Results)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results other = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results) obj;
boolean result = true;
result = result && getScoresList()
.equals(other.getScoresList());
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 (getScoresCount() > 0) {
hash = (37 * hash) + SCORES_FIELD_NUMBER;
hash = (53 * hash) + getScoresList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results 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.EasyRecPredictProtos.Results parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results 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.EasyRecPredictProtos.Results parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results 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.EasyRecPredictProtos.Results parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results 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.EasyRecPredictProtos.Results parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results 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.EasyRecPredictProtos.Results 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;
}
/**
*
* return results
*
*
* Protobuf type {@code Results}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Results)
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ResultsOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_Results_descriptor;
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_Results_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results.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();
scores_ = 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.EasyRecPredictProtos.internal_static_Results_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results build() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results buildPartial() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results result = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
scores_ = java.util.Collections.unmodifiableList(scores_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.scores_ = scores_;
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.EasyRecPredictProtos.Results) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results other) {
if (other == com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results.getDefaultInstance()) return this;
if (!other.scores_.isEmpty()) {
if (scores_.isEmpty()) {
scores_ = other.scores_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureScoresIsMutable();
scores_.addAll(other.scores_);
}
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.EasyRecPredictProtos.Results parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List scores_ = java.util.Collections.emptyList();
private void ensureScoresIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
scores_ = new java.util.ArrayList(scores_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated double scores = 1 [packed = true];
*/
public java.util.List
getScoresList() {
return java.util.Collections.unmodifiableList(scores_);
}
/**
* repeated double scores = 1 [packed = true];
*/
public int getScoresCount() {
return scores_.size();
}
/**
* repeated double scores = 1 [packed = true];
*/
public double getScores(int index) {
return scores_.get(index);
}
/**
* repeated double scores = 1 [packed = true];
*/
public Builder setScores(
int index, double value) {
ensureScoresIsMutable();
scores_.set(index, value);
onChanged();
return this;
}
/**
* repeated double scores = 1 [packed = true];
*/
public Builder addScores(double value) {
ensureScoresIsMutable();
scores_.add(value);
onChanged();
return this;
}
/**
* repeated double scores = 1 [packed = true];
*/
public Builder addAllScores(
java.lang.Iterable extends java.lang.Double> values) {
ensureScoresIsMutable();
shade.protobuf.AbstractMessageLite.Builder.addAll(
values, scores_);
onChanged();
return this;
}
/**
* repeated double scores = 1 [packed = true];
*/
public Builder clearScores() {
scores_ = 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:Results)
}
// @@protoc_insertion_point(class_scope:Results)
private static final com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results();
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public Results parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new Results(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.EasyRecPredictProtos.Results getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PBResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:PBResponse)
shade.protobuf.MessageOrBuilder {
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
int getResultsCount();
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
boolean containsResults(
java.lang.String key);
/**
* Use {@link #getResultsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getResults();
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
java.util.Map
getResultsMap();
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results getResultsOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results defaultValue);
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results getResultsOrThrow(
java.lang.String key);
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
int getItemFeaturesCount();
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
boolean containsItemFeatures(
java.lang.String key);
/**
* Use {@link #getItemFeaturesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getItemFeatures();
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
java.util.Map
getItemFeaturesMap();
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
java.lang.String getItemFeaturesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
java.lang.String getItemFeaturesOrThrow(
java.lang.String key);
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
int getGenerateFeaturesCount();
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
boolean containsGenerateFeatures(
java.lang.String key);
/**
* Use {@link #getGenerateFeaturesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getGenerateFeatures();
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
java.util.Map
getGenerateFeaturesMap();
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
java.lang.String getGenerateFeaturesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
java.lang.String getGenerateFeaturesOrThrow(
java.lang.String key);
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
int getContextFeaturesCount();
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
boolean containsContextFeatures(
java.lang.String key);
/**
* Use {@link #getContextFeaturesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getContextFeatures();
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
java.util.Map
getContextFeaturesMap();
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures defaultValue);
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrThrow(
java.lang.String key);
/**
* string error_msg = 5;
*/
java.lang.String getErrorMsg();
/**
* string error_msg = 5;
*/
shade.protobuf.ByteString
getErrorMsgBytes();
/**
* .StatusCode status_code = 6;
*/
int getStatusCodeValue();
/**
* .StatusCode status_code = 6;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode getStatusCode();
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
java.util.List
getItemIdsList();
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
int getItemIdsCount();
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
java.lang.String getItemIds(int index);
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
shade.protobuf.ByteString
getItemIdsBytes(int index);
/**
* repeated string outputs = 8;
*/
java.util.List
getOutputsList();
/**
* repeated string outputs = 8;
*/
int getOutputsCount();
/**
* repeated string outputs = 8;
*/
java.lang.String getOutputs(int index);
/**
* repeated string outputs = 8;
*/
shade.protobuf.ByteString
getOutputsBytes(int index);
/**
*
* all fg input features
*
*
* map<string, string> raw_features = 9;
*/
int getRawFeaturesCount();
/**
*
* all fg input features
*
*
* map<string, string> raw_features = 9;
*/
boolean containsRawFeatures(
java.lang.String key);
/**
* Use {@link #getRawFeaturesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getRawFeatures();
/**
*
* all fg input features
*
*
* map<string, string> raw_features = 9;
*/
java.util.Map
getRawFeaturesMap();
/**
*
* all fg input features
*
*
* map<string, string> raw_features = 9;
*/
java.lang.String getRawFeaturesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* all fg input features
*
*
* map<string, string> raw_features = 9;
*/
java.lang.String getRawFeaturesOrThrow(
java.lang.String key);
/**
* map<string, .ArrayProto> tf_outputs = 10;
*/
int getTfOutputsCount();
/**
* map<string, .ArrayProto> tf_outputs = 10;
*/
boolean containsTfOutputs(
java.lang.String key);
/**
* Use {@link #getTfOutputsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getTfOutputs();
/**
* map<string, .ArrayProto> tf_outputs = 10;
*/
java.util.Map
getTfOutputsMap();
/**
* map<string, .ArrayProto> tf_outputs = 10;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto getTfOutputsOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto defaultValue);
/**
* map<string, .ArrayProto> tf_outputs = 10;
*/
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto getTfOutputsOrThrow(
java.lang.String key);
}
/**
*
* PBResponse specifies the response for aggregator
*
*
* Protobuf type {@code PBResponse}
*/
public static final class PBResponse extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:PBResponse)
PBResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use PBResponse.newBuilder() to construct.
private PBResponse(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PBResponse() {
errorMsg_ = "";
statusCode_ = 0;
itemIds_ = shade.protobuf.LazyStringArrayList.EMPTY;
outputs_ = shade.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PBResponse(
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)) {
results_ = shade.protobuf.MapField.newMapField(
ResultsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
results__ = input.readMessage(
ResultsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
results_.getMutableMap().put(
results__.getKey(), results__.getValue());
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
itemFeatures_ = shade.protobuf.MapField.newMapField(
ItemFeaturesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
shade.protobuf.MapEntry
itemFeatures__ = input.readMessage(
ItemFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
itemFeatures_.getMutableMap().put(
itemFeatures__.getKey(), itemFeatures__.getValue());
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
generateFeatures_ = shade.protobuf.MapField.newMapField(
GenerateFeaturesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
shade.protobuf.MapEntry
generateFeatures__ = input.readMessage(
GenerateFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
generateFeatures_.getMutableMap().put(
generateFeatures__.getKey(), generateFeatures__.getValue());
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
contextFeatures_ = shade.protobuf.MapField.newMapField(
ContextFeaturesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000008;
}
shade.protobuf.MapEntry
contextFeatures__ = input.readMessage(
ContextFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
contextFeatures_.getMutableMap().put(
contextFeatures__.getKey(), contextFeatures__.getValue());
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
errorMsg_ = s;
break;
}
case 48: {
int rawValue = input.readEnum();
statusCode_ = rawValue;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
itemIds_ = new shade.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000040;
}
itemIds_.add(s);
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
outputs_ = new shade.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000080;
}
outputs_.add(s);
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
rawFeatures_ = shade.protobuf.MapField.newMapField(
RawFeaturesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000100;
}
shade.protobuf.MapEntry
rawFeatures__ = input.readMessage(
RawFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
rawFeatures_.getMutableMap().put(
rawFeatures__.getKey(), rawFeatures__.getValue());
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
tfOutputs_ = shade.protobuf.MapField.newMapField(
TfOutputsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000200;
}
shade.protobuf.MapEntry
tfOutputs__ = input.readMessage(
TfOutputsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
tfOutputs_.getMutableMap().put(
tfOutputs__.getKey(), tfOutputs__.getValue());
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_ & 0x00000040) == 0x00000040)) {
itemIds_ = itemIds_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
outputs_ = outputs_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetResults();
case 2:
return internalGetItemFeatures();
case 3:
return internalGetGenerateFeatures();
case 4:
return internalGetContextFeatures();
case 9:
return internalGetRawFeatures();
case 10:
return internalGetTfOutputs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse.Builder.class);
}
private int bitField0_;
public static final int RESULTS_FIELD_NUMBER = 1;
private static final class ResultsDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_ResultsEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.MESSAGE,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results.getDefaultInstance());
}
private shade.protobuf.MapField<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results> results_;
private shade.protobuf.MapField
internalGetResults() {
if (results_ == null) {
return shade.protobuf.MapField.emptyMapField(
ResultsDefaultEntryHolder.defaultEntry);
}
return results_;
}
public int getResultsCount() {
return internalGetResults().getMap().size();
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public boolean containsResults(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetResults().getMap().containsKey(key);
}
/**
* Use {@link #getResultsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getResults() {
return getResultsMap();
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public java.util.Map getResultsMap() {
return internalGetResults().getMap();
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results getResultsOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetResults().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results getResultsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetResults().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ITEM_FEATURES_FIELD_NUMBER = 2;
private static final class ItemFeaturesDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_ItemFeaturesEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.STRING,
"");
}
private shade.protobuf.MapField<
java.lang.String, java.lang.String> itemFeatures_;
private shade.protobuf.MapField
internalGetItemFeatures() {
if (itemFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
ItemFeaturesDefaultEntryHolder.defaultEntry);
}
return itemFeatures_;
}
public int getItemFeaturesCount() {
return internalGetItemFeatures().getMap().size();
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public boolean containsItemFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetItemFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getItemFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getItemFeatures() {
return getItemFeaturesMap();
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public java.util.Map getItemFeaturesMap() {
return internalGetItemFeatures().getMap();
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public java.lang.String getItemFeaturesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetItemFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public java.lang.String getItemFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetItemFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int GENERATE_FEATURES_FIELD_NUMBER = 3;
private static final class GenerateFeaturesDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_GenerateFeaturesEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.STRING,
"");
}
private shade.protobuf.MapField<
java.lang.String, java.lang.String> generateFeatures_;
private shade.protobuf.MapField
internalGetGenerateFeatures() {
if (generateFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
GenerateFeaturesDefaultEntryHolder.defaultEntry);
}
return generateFeatures_;
}
public int getGenerateFeaturesCount() {
return internalGetGenerateFeatures().getMap().size();
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public boolean containsGenerateFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetGenerateFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getGenerateFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getGenerateFeatures() {
return getGenerateFeaturesMap();
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public java.util.Map getGenerateFeaturesMap() {
return internalGetGenerateFeatures().getMap();
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public java.lang.String getGenerateFeaturesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGenerateFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public java.lang.String getGenerateFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGenerateFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int CONTEXT_FEATURES_FIELD_NUMBER = 4;
private static final class ContextFeaturesDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_ContextFeaturesEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.MESSAGE,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures.getDefaultInstance());
}
private shade.protobuf.MapField<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures> contextFeatures_;
private shade.protobuf.MapField
internalGetContextFeatures() {
if (contextFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
ContextFeaturesDefaultEntryHolder.defaultEntry);
}
return contextFeatures_;
}
public int getContextFeaturesCount() {
return internalGetContextFeatures().getMap().size();
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public boolean containsContextFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetContextFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getContextFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getContextFeatures() {
return getContextFeaturesMap();
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public java.util.Map getContextFeaturesMap() {
return internalGetContextFeatures().getMap();
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetContextFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetContextFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ERROR_MSG_FIELD_NUMBER = 5;
private volatile java.lang.Object errorMsg_;
/**
* string error_msg = 5;
*/
public java.lang.String getErrorMsg() {
java.lang.Object ref = errorMsg_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
shade.protobuf.ByteString bs =
(shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMsg_ = s;
return s;
}
}
/**
* string error_msg = 5;
*/
public shade.protobuf.ByteString
getErrorMsgBytes() {
java.lang.Object ref = errorMsg_;
if (ref instanceof java.lang.String) {
shade.protobuf.ByteString b =
shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMsg_ = b;
return b;
} else {
return (shade.protobuf.ByteString) ref;
}
}
public static final int STATUS_CODE_FIELD_NUMBER = 6;
private int statusCode_;
/**
* .StatusCode status_code = 6;
*/
public int getStatusCodeValue() {
return statusCode_;
}
/**
* .StatusCode status_code = 6;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode getStatusCode() {
@SuppressWarnings("deprecation")
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode result = com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode.valueOf(statusCode_);
return result == null ? com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode.UNRECOGNIZED : result;
}
public static final int ITEM_IDS_FIELD_NUMBER = 7;
private shade.protobuf.LazyStringList itemIds_;
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public shade.protobuf.ProtocolStringList
getItemIdsList() {
return itemIds_;
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public int getItemIdsCount() {
return itemIds_.size();
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public java.lang.String getItemIds(int index) {
return itemIds_.get(index);
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public shade.protobuf.ByteString
getItemIdsBytes(int index) {
return itemIds_.getByteString(index);
}
public static final int OUTPUTS_FIELD_NUMBER = 8;
private shade.protobuf.LazyStringList outputs_;
/**
* repeated string outputs = 8;
*/
public shade.protobuf.ProtocolStringList
getOutputsList() {
return outputs_;
}
/**
* repeated string outputs = 8;
*/
public int getOutputsCount() {
return outputs_.size();
}
/**
* repeated string outputs = 8;
*/
public java.lang.String getOutputs(int index) {
return outputs_.get(index);
}
/**
* repeated string outputs = 8;
*/
public shade.protobuf.ByteString
getOutputsBytes(int index) {
return outputs_.getByteString(index);
}
public static final int RAW_FEATURES_FIELD_NUMBER = 9;
private static final class RawFeaturesDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_RawFeaturesEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.STRING,
"");
}
private shade.protobuf.MapField<
java.lang.String, java.lang.String> rawFeatures_;
private shade.protobuf.MapField
internalGetRawFeatures() {
if (rawFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
RawFeaturesDefaultEntryHolder.defaultEntry);
}
return rawFeatures_;
}
public int getRawFeaturesCount() {
return internalGetRawFeatures().getMap().size();
}
/**
*
* all fg input features
*
*
* map<string, string> raw_features = 9;
*/
public boolean containsRawFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetRawFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getRawFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getRawFeatures() {
return getRawFeaturesMap();
}
/**
*
* all fg input features
*
*
* map<string, string> raw_features = 9;
*/
public java.util.Map getRawFeaturesMap() {
return internalGetRawFeatures().getMap();
}
/**
*
* all fg input features
*
*
* map<string, string> raw_features = 9;
*/
public java.lang.String getRawFeaturesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetRawFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* all fg input features
*
*
* map<string, string> raw_features = 9;
*/
public java.lang.String getRawFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetRawFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int TF_OUTPUTS_FIELD_NUMBER = 10;
private static final class TfOutputsDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_TfOutputsEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.MESSAGE,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto.getDefaultInstance());
}
private shade.protobuf.MapField<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto> tfOutputs_;
private shade.protobuf.MapField
internalGetTfOutputs() {
if (tfOutputs_ == null) {
return shade.protobuf.MapField.emptyMapField(
TfOutputsDefaultEntryHolder.defaultEntry);
}
return tfOutputs_;
}
public int getTfOutputsCount() {
return internalGetTfOutputs().getMap().size();
}
/**
* map<string, .ArrayProto> tf_outputs = 10;
*/
public boolean containsTfOutputs(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetTfOutputs().getMap().containsKey(key);
}
/**
* Use {@link #getTfOutputsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getTfOutputs() {
return getTfOutputsMap();
}
/**
* map<string, .ArrayProto> tf_outputs = 10;
*/
public java.util.Map getTfOutputsMap() {
return internalGetTfOutputs().getMap();
}
/**
* map<string, .ArrayProto> tf_outputs = 10;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto getTfOutputsOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetTfOutputs().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .ArrayProto> tf_outputs = 10;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ArrayProto getTfOutputsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetTfOutputs().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetResults(),
ResultsDefaultEntryHolder.defaultEntry,
1);
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetItemFeatures(),
ItemFeaturesDefaultEntryHolder.defaultEntry,
2);
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetGenerateFeatures(),
GenerateFeaturesDefaultEntryHolder.defaultEntry,
3);
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetContextFeatures(),
ContextFeaturesDefaultEntryHolder.defaultEntry,
4);
if (!getErrorMsgBytes().isEmpty()) {
shade.protobuf.GeneratedMessageV3.writeString(output, 5, errorMsg_);
}
if (statusCode_ != com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode.OK.getNumber()) {
output.writeEnum(6, statusCode_);
}
for (int i = 0; i < itemIds_.size(); i++) {
shade.protobuf.GeneratedMessageV3.writeString(output, 7, itemIds_.getRaw(i));
}
for (int i = 0; i < outputs_.size(); i++) {
shade.protobuf.GeneratedMessageV3.writeString(output, 8, outputs_.getRaw(i));
}
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetRawFeatures(),
RawFeaturesDefaultEntryHolder.defaultEntry,
9);
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetTfOutputs(),
TfOutputsDefaultEntryHolder.defaultEntry,
10);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetResults().getMap().entrySet()) {
shade.protobuf.MapEntry
results__ = ResultsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, results__);
}
for (java.util.Map.Entry entry
: internalGetItemFeatures().getMap().entrySet()) {
shade.protobuf.MapEntry
itemFeatures__ = ItemFeaturesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(2, itemFeatures__);
}
for (java.util.Map.Entry entry
: internalGetGenerateFeatures().getMap().entrySet()) {
shade.protobuf.MapEntry
generateFeatures__ = GenerateFeaturesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(3, generateFeatures__);
}
for (java.util.Map.Entry entry
: internalGetContextFeatures().getMap().entrySet()) {
shade.protobuf.MapEntry
contextFeatures__ = ContextFeaturesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(4, contextFeatures__);
}
if (!getErrorMsgBytes().isEmpty()) {
size += shade.protobuf.GeneratedMessageV3.computeStringSize(5, errorMsg_);
}
if (statusCode_ != com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode.OK.getNumber()) {
size += shade.protobuf.CodedOutputStream
.computeEnumSize(6, statusCode_);
}
{
int dataSize = 0;
for (int i = 0; i < itemIds_.size(); i++) {
dataSize += computeStringSizeNoTag(itemIds_.getRaw(i));
}
size += dataSize;
size += 1 * getItemIdsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < outputs_.size(); i++) {
dataSize += computeStringSizeNoTag(outputs_.getRaw(i));
}
size += dataSize;
size += 1 * getOutputsList().size();
}
for (java.util.Map.Entry entry
: internalGetRawFeatures().getMap().entrySet()) {
shade.protobuf.MapEntry
rawFeatures__ = RawFeaturesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(9, rawFeatures__);
}
for (java.util.Map.Entry entry
: internalGetTfOutputs().getMap().entrySet()) {
shade.protobuf.MapEntry
tfOutputs__ = TfOutputsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(10, tfOutputs__);
}
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.EasyRecPredictProtos.PBResponse)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse other = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse) obj;
boolean result = true;
result = result && internalGetResults().equals(
other.internalGetResults());
result = result && internalGetItemFeatures().equals(
other.internalGetItemFeatures());
result = result && internalGetGenerateFeatures().equals(
other.internalGetGenerateFeatures());
result = result && internalGetContextFeatures().equals(
other.internalGetContextFeatures());
result = result && getErrorMsg()
.equals(other.getErrorMsg());
result = result && statusCode_ == other.statusCode_;
result = result && getItemIdsList()
.equals(other.getItemIdsList());
result = result && getOutputsList()
.equals(other.getOutputsList());
result = result && internalGetRawFeatures().equals(
other.internalGetRawFeatures());
result = result && internalGetTfOutputs().equals(
other.internalGetTfOutputs());
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 (!internalGetResults().getMap().isEmpty()) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetResults().hashCode();
}
if (!internalGetItemFeatures().getMap().isEmpty()) {
hash = (37 * hash) + ITEM_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + internalGetItemFeatures().hashCode();
}
if (!internalGetGenerateFeatures().getMap().isEmpty()) {
hash = (37 * hash) + GENERATE_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + internalGetGenerateFeatures().hashCode();
}
if (!internalGetContextFeatures().getMap().isEmpty()) {
hash = (37 * hash) + CONTEXT_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + internalGetContextFeatures().hashCode();
}
hash = (37 * hash) + ERROR_MSG_FIELD_NUMBER;
hash = (53 * hash) + getErrorMsg().hashCode();
hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER;
hash = (53 * hash) + statusCode_;
if (getItemIdsCount() > 0) {
hash = (37 * hash) + ITEM_IDS_FIELD_NUMBER;
hash = (53 * hash) + getItemIdsList().hashCode();
}
if (getOutputsCount() > 0) {
hash = (37 * hash) + OUTPUTS_FIELD_NUMBER;
hash = (53 * hash) + getOutputsList().hashCode();
}
if (!internalGetRawFeatures().getMap().isEmpty()) {
hash = (37 * hash) + RAW_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + internalGetRawFeatures().hashCode();
}
if (!internalGetTfOutputs().getMap().isEmpty()) {
hash = (37 * hash) + TF_OUTPUTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetTfOutputs().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse 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.EasyRecPredictProtos.PBResponse parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse 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.EasyRecPredictProtos.PBResponse parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse 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.EasyRecPredictProtos.PBResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse 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.EasyRecPredictProtos.PBResponse parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse 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.EasyRecPredictProtos.PBResponse 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;
}
/**
*
* PBResponse specifies the response for aggregator
*
*
* Protobuf type {@code PBResponse}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:PBResponse)
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponseOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetResults();
case 2:
return internalGetItemFeatures();
case 3:
return internalGetGenerateFeatures();
case 4:
return internalGetContextFeatures();
case 9:
return internalGetRawFeatures();
case 10:
return internalGetTfOutputs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableResults();
case 2:
return internalGetMutableItemFeatures();
case 3:
return internalGetMutableGenerateFeatures();
case 4:
return internalGetMutableContextFeatures();
case 9:
return internalGetMutableRawFeatures();
case 10:
return internalGetMutableTfOutputs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse.class, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse.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();
internalGetMutableResults().clear();
internalGetMutableItemFeatures().clear();
internalGetMutableGenerateFeatures().clear();
internalGetMutableContextFeatures().clear();
errorMsg_ = "";
statusCode_ = 0;
itemIds_ = shade.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
outputs_ = shade.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000080);
internalGetMutableRawFeatures().clear();
internalGetMutableTfOutputs().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.internal_static_PBResponse_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse build() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse buildPartial() {
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse result = new com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.results_ = internalGetResults();
result.results_.makeImmutable();
result.itemFeatures_ = internalGetItemFeatures();
result.itemFeatures_.makeImmutable();
result.generateFeatures_ = internalGetGenerateFeatures();
result.generateFeatures_.makeImmutable();
result.contextFeatures_ = internalGetContextFeatures();
result.contextFeatures_.makeImmutable();
result.errorMsg_ = errorMsg_;
result.statusCode_ = statusCode_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
itemIds_ = itemIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.itemIds_ = itemIds_;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
outputs_ = outputs_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000080);
}
result.outputs_ = outputs_;
result.rawFeatures_ = internalGetRawFeatures();
result.rawFeatures_.makeImmutable();
result.tfOutputs_ = internalGetTfOutputs();
result.tfOutputs_.makeImmutable();
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.EasyRecPredictProtos.PBResponse) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse other) {
if (other == com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse.getDefaultInstance()) return this;
internalGetMutableResults().mergeFrom(
other.internalGetResults());
internalGetMutableItemFeatures().mergeFrom(
other.internalGetItemFeatures());
internalGetMutableGenerateFeatures().mergeFrom(
other.internalGetGenerateFeatures());
internalGetMutableContextFeatures().mergeFrom(
other.internalGetContextFeatures());
if (!other.getErrorMsg().isEmpty()) {
errorMsg_ = other.errorMsg_;
onChanged();
}
if (other.statusCode_ != 0) {
setStatusCodeValue(other.getStatusCodeValue());
}
if (!other.itemIds_.isEmpty()) {
if (itemIds_.isEmpty()) {
itemIds_ = other.itemIds_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureItemIdsIsMutable();
itemIds_.addAll(other.itemIds_);
}
onChanged();
}
if (!other.outputs_.isEmpty()) {
if (outputs_.isEmpty()) {
outputs_ = other.outputs_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureOutputsIsMutable();
outputs_.addAll(other.outputs_);
}
onChanged();
}
internalGetMutableRawFeatures().mergeFrom(
other.internalGetRawFeatures());
internalGetMutableTfOutputs().mergeFrom(
other.internalGetTfOutputs());
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.EasyRecPredictProtos.PBResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.PBResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results> results_;
private shade.protobuf.MapField
internalGetResults() {
if (results_ == null) {
return shade.protobuf.MapField.emptyMapField(
ResultsDefaultEntryHolder.defaultEntry);
}
return results_;
}
private shade.protobuf.MapField
internalGetMutableResults() {
onChanged();;
if (results_ == null) {
results_ = shade.protobuf.MapField.newMapField(
ResultsDefaultEntryHolder.defaultEntry);
}
if (!results_.isMutable()) {
results_ = results_.copy();
}
return results_;
}
public int getResultsCount() {
return internalGetResults().getMap().size();
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public boolean containsResults(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetResults().getMap().containsKey(key);
}
/**
* Use {@link #getResultsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getResults() {
return getResultsMap();
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public java.util.Map getResultsMap() {
return internalGetResults().getMap();
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results getResultsOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetResults().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results getResultsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetResults().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearResults() {
internalGetMutableResults().getMutableMap()
.clear();
return this;
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public Builder removeResults(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableResults().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableResults() {
return internalGetMutableResults().getMutableMap();
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public Builder putResults(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.Results value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableResults().getMutableMap()
.put(key, value);
return this;
}
/**
*
* results
*
*
* map<string, .Results> results = 1;
*/
public Builder putAllResults(
java.util.Map values) {
internalGetMutableResults().getMutableMap()
.putAll(values);
return this;
}
private shade.protobuf.MapField<
java.lang.String, java.lang.String> itemFeatures_;
private shade.protobuf.MapField
internalGetItemFeatures() {
if (itemFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
ItemFeaturesDefaultEntryHolder.defaultEntry);
}
return itemFeatures_;
}
private shade.protobuf.MapField
internalGetMutableItemFeatures() {
onChanged();;
if (itemFeatures_ == null) {
itemFeatures_ = shade.protobuf.MapField.newMapField(
ItemFeaturesDefaultEntryHolder.defaultEntry);
}
if (!itemFeatures_.isMutable()) {
itemFeatures_ = itemFeatures_.copy();
}
return itemFeatures_;
}
public int getItemFeaturesCount() {
return internalGetItemFeatures().getMap().size();
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public boolean containsItemFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetItemFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getItemFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getItemFeatures() {
return getItemFeaturesMap();
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public java.util.Map getItemFeaturesMap() {
return internalGetItemFeatures().getMap();
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public java.lang.String getItemFeaturesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetItemFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public java.lang.String getItemFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetItemFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearItemFeatures() {
internalGetMutableItemFeatures().getMutableMap()
.clear();
return this;
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public Builder removeItemFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableItemFeatures().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableItemFeatures() {
return internalGetMutableItemFeatures().getMutableMap();
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public Builder putItemFeatures(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableItemFeatures().getMutableMap()
.put(key, value);
return this;
}
/**
*
* item features
*
*
* map<string, string> item_features = 2;
*/
public Builder putAllItemFeatures(
java.util.Map values) {
internalGetMutableItemFeatures().getMutableMap()
.putAll(values);
return this;
}
private shade.protobuf.MapField<
java.lang.String, java.lang.String> generateFeatures_;
private shade.protobuf.MapField
internalGetGenerateFeatures() {
if (generateFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
GenerateFeaturesDefaultEntryHolder.defaultEntry);
}
return generateFeatures_;
}
private shade.protobuf.MapField
internalGetMutableGenerateFeatures() {
onChanged();;
if (generateFeatures_ == null) {
generateFeatures_ = shade.protobuf.MapField.newMapField(
GenerateFeaturesDefaultEntryHolder.defaultEntry);
}
if (!generateFeatures_.isMutable()) {
generateFeatures_ = generateFeatures_.copy();
}
return generateFeatures_;
}
public int getGenerateFeaturesCount() {
return internalGetGenerateFeatures().getMap().size();
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public boolean containsGenerateFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetGenerateFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getGenerateFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getGenerateFeatures() {
return getGenerateFeaturesMap();
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public java.util.Map getGenerateFeaturesMap() {
return internalGetGenerateFeatures().getMap();
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public java.lang.String getGenerateFeaturesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGenerateFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public java.lang.String getGenerateFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetGenerateFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearGenerateFeatures() {
internalGetMutableGenerateFeatures().getMutableMap()
.clear();
return this;
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public Builder removeGenerateFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableGenerateFeatures().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableGenerateFeatures() {
return internalGetMutableGenerateFeatures().getMutableMap();
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public Builder putGenerateFeatures(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableGenerateFeatures().getMutableMap()
.put(key, value);
return this;
}
/**
*
* generate features
*
*
* map<string, string> generate_features = 3;
*/
public Builder putAllGenerateFeatures(
java.util.Map values) {
internalGetMutableGenerateFeatures().getMutableMap()
.putAll(values);
return this;
}
private shade.protobuf.MapField<
java.lang.String, com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures> contextFeatures_;
private shade.protobuf.MapField
internalGetContextFeatures() {
if (contextFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
ContextFeaturesDefaultEntryHolder.defaultEntry);
}
return contextFeatures_;
}
private shade.protobuf.MapField
internalGetMutableContextFeatures() {
onChanged();;
if (contextFeatures_ == null) {
contextFeatures_ = shade.protobuf.MapField.newMapField(
ContextFeaturesDefaultEntryHolder.defaultEntry);
}
if (!contextFeatures_.isMutable()) {
contextFeatures_ = contextFeatures_.copy();
}
return contextFeatures_;
}
public int getContextFeaturesCount() {
return internalGetContextFeatures().getMap().size();
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public boolean containsContextFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetContextFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getContextFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getContextFeatures() {
return getContextFeaturesMap();
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public java.util.Map getContextFeaturesMap() {
return internalGetContextFeatures().getMap();
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrDefault(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetContextFeatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures getContextFeaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetContextFeatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearContextFeatures() {
internalGetMutableContextFeatures().getMutableMap()
.clear();
return this;
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public Builder removeContextFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableContextFeatures().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableContextFeatures() {
return internalGetMutableContextFeatures().getMutableMap();
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public Builder putContextFeatures(
java.lang.String key,
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.ContextFeatures value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableContextFeatures().getMutableMap()
.put(key, value);
return this;
}
/**
*
* context features
*
*
* map<string, .ContextFeatures> context_features = 4;
*/
public Builder putAllContextFeatures(
java.util.Map values) {
internalGetMutableContextFeatures().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object errorMsg_ = "";
/**
* string error_msg = 5;
*/
public java.lang.String getErrorMsg() {
java.lang.Object ref = errorMsg_;
if (!(ref instanceof java.lang.String)) {
shade.protobuf.ByteString bs =
(shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error_msg = 5;
*/
public shade.protobuf.ByteString
getErrorMsgBytes() {
java.lang.Object ref = errorMsg_;
if (ref instanceof String) {
shade.protobuf.ByteString b =
shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMsg_ = b;
return b;
} else {
return (shade.protobuf.ByteString) ref;
}
}
/**
* string error_msg = 5;
*/
public Builder setErrorMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMsg_ = value;
onChanged();
return this;
}
/**
* string error_msg = 5;
*/
public Builder clearErrorMsg() {
errorMsg_ = getDefaultInstance().getErrorMsg();
onChanged();
return this;
}
/**
* string error_msg = 5;
*/
public Builder setErrorMsgBytes(
shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMsg_ = value;
onChanged();
return this;
}
private int statusCode_ = 0;
/**
* .StatusCode status_code = 6;
*/
public int getStatusCodeValue() {
return statusCode_;
}
/**
* .StatusCode status_code = 6;
*/
public Builder setStatusCodeValue(int value) {
statusCode_ = value;
onChanged();
return this;
}
/**
* .StatusCode status_code = 6;
*/
public com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode getStatusCode() {
@SuppressWarnings("deprecation")
com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode result = com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode.valueOf(statusCode_);
return result == null ? com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode.UNRECOGNIZED : result;
}
/**
* .StatusCode status_code = 6;
*/
public Builder setStatusCode(com.aliyun.openservices.eas.predict.proto.EasyRecPredictProtos.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
statusCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .StatusCode status_code = 6;
*/
public Builder clearStatusCode() {
statusCode_ = 0;
onChanged();
return this;
}
private shade.protobuf.LazyStringList itemIds_ = shade.protobuf.LazyStringArrayList.EMPTY;
private void ensureItemIdsIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
itemIds_ = new shade.protobuf.LazyStringArrayList(itemIds_);
bitField0_ |= 0x00000040;
}
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public shade.protobuf.ProtocolStringList
getItemIdsList() {
return itemIds_.getUnmodifiableView();
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public int getItemIdsCount() {
return itemIds_.size();
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public java.lang.String getItemIds(int index) {
return itemIds_.get(index);
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public shade.protobuf.ByteString
getItemIdsBytes(int index) {
return itemIds_.getByteString(index);
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public Builder setItemIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureItemIdsIsMutable();
itemIds_.set(index, value);
onChanged();
return this;
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public Builder addItemIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureItemIdsIsMutable();
itemIds_.add(value);
onChanged();
return this;
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public Builder addAllItemIds(
java.lang.Iterable values) {
ensureItemIdsIsMutable();
shade.protobuf.AbstractMessageLite.Builder.addAll(
values, itemIds_);
onChanged();
return this;
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public Builder clearItemIds() {
itemIds_ = shade.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* item ids
*
*
* repeated string item_ids = 7;
*/
public Builder addItemIdsBytes(
shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureItemIdsIsMutable();
itemIds_.add(value);
onChanged();
return this;
}
private shade.protobuf.LazyStringList outputs_ = shade.protobuf.LazyStringArrayList.EMPTY;
private void ensureOutputsIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
outputs_ = new shade.protobuf.LazyStringArrayList(outputs_);
bitField0_ |= 0x00000080;
}
}
/**
* repeated string outputs = 8;
*/
public shade.protobuf.ProtocolStringList
getOutputsList() {
return outputs_.getUnmodifiableView();
}
/**
* repeated string outputs = 8;
*/
public int getOutputsCount() {
return outputs_.size();
}
/**
* repeated string outputs = 8;
*/
public java.lang.String getOutputs(int index) {
return outputs_.get(index);
}
/**
* repeated string outputs = 8;
*/
public shade.protobuf.ByteString
getOutputsBytes(int index) {
return outputs_.getByteString(index);
}
/**
* repeated string outputs = 8;
*/
public Builder setOutputs(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.set(index, value);
onChanged();
return this;
}
/**
* repeated string outputs = 8;
*/
public Builder addOutputs(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.add(value);
onChanged();
return this;
}
/**
* repeated string outputs = 8;
*/
public Builder addAllOutputs(
java.lang.Iterable values) {
ensureOutputsIsMutable();
shade.protobuf.AbstractMessageLite.Builder.addAll(
values, outputs_);
onChanged();
return this;
}
/**
* repeated string outputs = 8;
*/
public Builder clearOutputs() {
outputs_ = shade.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* repeated string outputs = 8;
*/
public Builder addOutputsBytes(
shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureOutputsIsMutable();
outputs_.add(value);
onChanged();
return this;
}
private shade.protobuf.MapField<
java.lang.String, java.lang.String> rawFeatures_;
private shade.protobuf.MapField
internalGetRawFeatures() {
if (rawFeatures_ == null) {
return shade.protobuf.MapField.emptyMapField(
RawFeaturesDefaultEntryHolder.defaultEntry);
}
return rawFeatures_;
}
private shade.protobuf.MapField
internalGetMutableRawFeatures() {
onChanged();;
if (rawFeatures_ == null) {
rawFeatures_ = shade.protobuf.MapField.newMapField(
RawFeaturesDefaultEntryHolder.defaultEntry);
}
if (!rawFeatures_.isMutable()) {
rawFeatures_ = rawFeatures_.copy();
}
return rawFeatures_;
}
public int getRawFeaturesCount() {
return internalGetRawFeatures().getMap().size();
}
/**
*
* all fg input features
*
*
* map<string, string> raw_features = 9;
*/
public boolean containsRawFeatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetRawFeatures().getMap().containsKey(key);
}
/**
* Use {@link #getRawFeaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getRawFeatures() {
return getRawFeaturesMap();
}
/**
*