com.aliyun.openservices.eas.predict.proto.CaffePredictProtos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eas-sdk Show documentation
Show all versions of eas-sdk Show documentation
SDK for PAI-EAS online inference services
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: caffe_predict.proto
package com.aliyun.openservices.eas.predict.proto;
public final class CaffePredictProtos {
private CaffePredictProtos() {}
public static void registerAllExtensions(
shade.protobuf
.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
shade.protobuf
.ExtensionRegistry registry) {
registerAllExtensions(
(shade.protobuf
.ExtensionRegistryLite) registry);
}
public interface ArrayShapeOrBuilder extends
// @@protoc_insertion_point(interface_extends:caffe.eas.ArrayShape)
shade.protobuf
.MessageOrBuilder {
/**
* repeated int64 dim = 1 [packed = true];
*/
java.util.List getDimList();
/**
* repeated int64 dim = 1 [packed = true];
*/
int getDimCount();
/**
* repeated int64 dim = 1 [packed = true];
*/
long getDim(int index);
}
/**
* Protobuf type {@code caffe.eas.ArrayShape}
*/
public static final class ArrayShape extends
shade.protobuf
.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:caffe.eas.ArrayShape)
ArrayShapeOrBuilder {
// Use ArrayShape.newBuilder() to construct.
private ArrayShape(shade.protobuf
.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ArrayShape() {
dim_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final shade.protobuf
.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ArrayShape(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf
.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
shade.protobuf
.UnknownFieldSet.Builder unknownFields =
shade.protobuf
.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
dim_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
dim_.add(input.readInt64());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
dim_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
dim_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
}
}
} catch (shade.protobuf
.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf
.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
dim_ = java.util.Collections.unmodifiableList(dim_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_ArrayShape_descriptor;
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_ArrayShape_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.class, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.Builder.class);
}
public static final int DIM_FIELD_NUMBER = 1;
private java.util.List dim_;
/**
* repeated int64 dim = 1 [packed = true];
*/
public java.util.List
getDimList() {
return dim_;
}
/**
* repeated int64 dim = 1 [packed = true];
*/
public int getDimCount() {
return dim_.size();
}
/**
* repeated int64 dim = 1 [packed = true];
*/
public long getDim(int index) {
return dim_.get(index);
}
private int dimMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(shade.protobuf
.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getDimList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(dimMemoizedSerializedSize);
}
for (int i = 0; i < dim_.size(); i++) {
output.writeInt64NoTag(dim_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < dim_.size(); i++) {
dataSize += shade.protobuf
.CodedOutputStream
.computeInt64SizeNoTag(dim_.get(i));
}
size += dataSize;
if (!getDimList().isEmpty()) {
size += 1;
size += shade.protobuf
.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
dimMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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.CaffePredictProtos.ArrayShape)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape other = (com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.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) + getDescriptorForType().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.CaffePredictProtos.ArrayShape parseFrom(
shade.protobuf
.ByteString data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.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.CaffePredictProtos.ArrayShape parseFrom(byte[] data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.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.CaffePredictProtos.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.CaffePredictProtos.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.CaffePredictProtos.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.CaffePredictProtos.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.CaffePredictProtos.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.CaffePredictProtos.ArrayShape parseFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code caffe.eas.ArrayShape}
*/
public static final class Builder extends
shade.protobuf
.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:caffe.eas.ArrayShape)
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShapeOrBuilder {
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_ArrayShape_descriptor;
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_ArrayShape_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.class, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf
.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
dim_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public shade.protobuf
.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_ArrayShape_descriptor;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.getDefaultInstance();
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape build() {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape buildPartial() {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape result = new com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
dim_ = java.util.Collections.unmodifiableList(dim_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.dim_ = dim_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
shade.protobuf
.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
shade.protobuf
.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
shade.protobuf
.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(shade.protobuf
.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape other) {
if (other == com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.getDefaultInstance()) return this;
if (!other.dim_.isEmpty()) {
if (dim_.isEmpty()) {
dim_ = other.dim_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDimIsMutable();
dim_.addAll(other.dim_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf
.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List dim_ = java.util.Collections.emptyList();
private void ensureDimIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
dim_ = new java.util.ArrayList(dim_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int64 dim = 1 [packed = true];
*/
public java.util.List
getDimList() {
return java.util.Collections.unmodifiableList(dim_);
}
/**
* repeated int64 dim = 1 [packed = true];
*/
public int getDimCount() {
return dim_.size();
}
/**
* repeated int64 dim = 1 [packed = true];
*/
public long getDim(int index) {
return dim_.get(index);
}
/**
* repeated int64 dim = 1 [packed = true];
*/
public Builder setDim(
int index, long value) {
ensureDimIsMutable();
dim_.set(index, value);
onChanged();
return this;
}
/**
* repeated int64 dim = 1 [packed = true];
*/
public Builder addDim(long value) {
ensureDimIsMutable();
dim_.add(value);
onChanged();
return this;
}
/**
* repeated int64 dim = 1 [packed = true];
*/
public Builder addAllDim(
java.lang.Iterable extends java.lang.Long> values) {
ensureDimIsMutable();
shade.protobuf
.AbstractMessageLite.Builder.addAll(
values, dim_);
onChanged();
return this;
}
/**
* repeated int64 dim = 1 [packed = true];
*/
public Builder clearDim() {
dim_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
public final Builder setUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:caffe.eas.ArrayShape)
}
// @@protoc_insertion_point(class_scope:caffe.eas.ArrayShape)
private static final com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape();
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final shade.protobuf
.Parser
PARSER = new shade.protobuf
.AbstractParser() {
public ArrayShape parsePartialFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf
.InvalidProtocolBufferException {
return new ArrayShape(input, extensionRegistry);
}
};
public static shade.protobuf
.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf
.Parser getParserForType() {
return PARSER;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ArrayProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:caffe.eas.ArrayProto)
shade.protobuf
.MessageOrBuilder {
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
boolean hasShape();
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape getShape();
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShapeOrBuilder getShapeOrBuilder();
/**
* repeated float data = 2 [packed = true];
*/
java.util.List getDataList();
/**
* repeated float data = 2 [packed = true];
*/
int getDataCount();
/**
* repeated float data = 2 [packed = true];
*/
float getData(int index);
}
/**
* Protobuf type {@code caffe.eas.ArrayProto}
*/
public static final class ArrayProto extends
shade.protobuf
.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:caffe.eas.ArrayProto)
ArrayProtoOrBuilder {
// Use ArrayProto.newBuilder() to construct.
private ArrayProto(shade.protobuf
.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ArrayProto() {
data_ = 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();
int mutable_bitField0_ = 0;
shade.protobuf
.UnknownFieldSet.Builder unknownFields =
shade.protobuf
.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = shape_.toBuilder();
}
shape_ = input.readMessage(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shape_);
shape_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 21: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
data_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
data_.add(input.readFloat());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
data_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
data_.add(input.readFloat());
}
input.popLimit(limit);
break;
}
}
}
} catch (shade.protobuf
.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf
.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
data_ = java.util.Collections.unmodifiableList(data_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_ArrayProto_descriptor;
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_ArrayProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.class, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder.class);
}
private int bitField0_;
public static final int SHAPE_FIELD_NUMBER = 1;
private com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape shape_;
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public boolean hasShape() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape getShape() {
return shape_ == null ? com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.getDefaultInstance() : shape_;
}
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShapeOrBuilder getShapeOrBuilder() {
return shape_ == null ? com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.getDefaultInstance() : shape_;
}
public static final int DATA_FIELD_NUMBER = 2;
private java.util.List data_;
/**
* repeated float data = 2 [packed = true];
*/
public java.util.List
getDataList() {
return data_;
}
/**
* repeated float data = 2 [packed = true];
*/
public int getDataCount() {
return data_.size();
}
/**
* repeated float data = 2 [packed = true];
*/
public float getData(int index) {
return data_.get(index);
}
private int dataMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(shade.protobuf
.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getShape());
}
if (getDataList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(dataMemoizedSerializedSize);
}
for (int i = 0; i < data_.size(); i++) {
output.writeFloatNoTag(data_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += shade.protobuf
.CodedOutputStream
.computeMessageSize(1, getShape());
}
{
int dataSize = 0;
dataSize = 4 * getDataList().size();
size += dataSize;
if (!getDataList().isEmpty()) {
size += 1;
size += shade.protobuf
.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
dataMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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.CaffePredictProtos.ArrayProto)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto other = (com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto) obj;
boolean result = true;
result = result && (hasShape() == other.hasShape());
if (hasShape()) {
result = result && getShape()
.equals(other.getShape());
}
result = result && getDataList()
.equals(other.getDataList());
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) + getDescriptorForType().hashCode();
if (hasShape()) {
hash = (37 * hash) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShape().hashCode();
}
if (getDataCount() > 0) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getDataList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto parseFrom(
shade.protobuf
.ByteString data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.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.CaffePredictProtos.ArrayProto parseFrom(byte[] data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.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.CaffePredictProtos.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.CaffePredictProtos.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.CaffePredictProtos.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.CaffePredictProtos.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.CaffePredictProtos.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.CaffePredictProtos.ArrayProto parseFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code caffe.eas.ArrayProto}
*/
public static final class Builder extends
shade.protobuf
.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:caffe.eas.ArrayProto)
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder {
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_ArrayProto_descriptor;
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_ArrayProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.class, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf
.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getShapeFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (shapeBuilder_ == null) {
shape_ = null;
} else {
shapeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
data_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public shade.protobuf
.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_ArrayProto_descriptor;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.getDefaultInstance();
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto build() {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto buildPartial() {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto result = new com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (shapeBuilder_ == null) {
result.shape_ = shape_;
} else {
result.shape_ = shapeBuilder_.build();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
data_ = java.util.Collections.unmodifiableList(data_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
shade.protobuf
.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
shade.protobuf
.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
shade.protobuf
.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(shade.protobuf
.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto other) {
if (other == com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.getDefaultInstance()) return this;
if (other.hasShape()) {
mergeShape(other.getShape());
}
if (!other.data_.isEmpty()) {
if (data_.isEmpty()) {
data_ = other.data_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDataIsMutable();
data_.addAll(other.data_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf
.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape shape_ = null;
private shade.protobuf
.SingleFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.Builder, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShapeOrBuilder> shapeBuilder_;
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public boolean hasShape() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape getShape() {
if (shapeBuilder_ == null) {
return shape_ == null ? com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.getDefaultInstance() : shape_;
} else {
return shapeBuilder_.getMessage();
}
}
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public Builder setShape(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape value) {
if (shapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shape_ = value;
onChanged();
} else {
shapeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public Builder setShape(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.Builder builderForValue) {
if (shapeBuilder_ == null) {
shape_ = builderForValue.build();
onChanged();
} else {
shapeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public Builder mergeShape(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape value) {
if (shapeBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
shape_ != null &&
shape_ != com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.getDefaultInstance()) {
shape_ =
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.newBuilder(shape_).mergeFrom(value).buildPartial();
} else {
shape_ = value;
}
onChanged();
} else {
shapeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public Builder clearShape() {
if (shapeBuilder_ == null) {
shape_ = null;
onChanged();
} else {
shapeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.Builder getShapeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getShapeFieldBuilder().getBuilder();
}
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShapeOrBuilder getShapeOrBuilder() {
if (shapeBuilder_ != null) {
return shapeBuilder_.getMessageOrBuilder();
} else {
return shape_ == null ?
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.getDefaultInstance() : shape_;
}
}
/**
* optional .caffe.eas.ArrayShape shape = 1;
*/
private shade.protobuf
.SingleFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.Builder, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShapeOrBuilder>
getShapeFieldBuilder() {
if (shapeBuilder_ == null) {
shapeBuilder_ = new shade.protobuf
.SingleFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShape.Builder, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayShapeOrBuilder>(
getShape(),
getParentForChildren(),
isClean());
shape_ = null;
}
return shapeBuilder_;
}
private java.util.List data_ = java.util.Collections.emptyList();
private void ensureDataIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
data_ = new java.util.ArrayList(data_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated float data = 2 [packed = true];
*/
public java.util.List
getDataList() {
return java.util.Collections.unmodifiableList(data_);
}
/**
* repeated float data = 2 [packed = true];
*/
public int getDataCount() {
return data_.size();
}
/**
* repeated float data = 2 [packed = true];
*/
public float getData(int index) {
return data_.get(index);
}
/**
* repeated float data = 2 [packed = true];
*/
public Builder setData(
int index, float value) {
ensureDataIsMutable();
data_.set(index, value);
onChanged();
return this;
}
/**
* repeated float data = 2 [packed = true];
*/
public Builder addData(float value) {
ensureDataIsMutable();
data_.add(value);
onChanged();
return this;
}
/**
* repeated float data = 2 [packed = true];
*/
public Builder addAllData(
java.lang.Iterable extends java.lang.Float> values) {
ensureDataIsMutable();
shade.protobuf
.AbstractMessageLite.Builder.addAll(
values, data_);
onChanged();
return this;
}
/**
* repeated float data = 2 [packed = true];
*/
public Builder clearData() {
data_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
public final Builder setUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:caffe.eas.ArrayProto)
}
// @@protoc_insertion_point(class_scope:caffe.eas.ArrayProto)
private static final com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto();
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final shade.protobuf
.Parser
PARSER = new shade.protobuf
.AbstractParser() {
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;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PredictRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:caffe.eas.PredictRequest)
shade.protobuf
.MessageOrBuilder {
/**
* repeated string input_name = 1;
*/
java.util.List
getInputNameList();
/**
* repeated string input_name = 1;
*/
int getInputNameCount();
/**
* repeated string input_name = 1;
*/
java.lang.String getInputName(int index);
/**
* repeated string input_name = 1;
*/
shade.protobuf
.ByteString
getInputNameBytes(int index);
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
java.util.List
getInputDataList();
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto getInputData(int index);
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
int getInputDataCount();
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
java.util.List extends com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder>
getInputDataOrBuilderList();
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder getInputDataOrBuilder(
int index);
/**
* repeated string output_filter = 3;
*/
java.util.List
getOutputFilterList();
/**
* repeated string output_filter = 3;
*/
int getOutputFilterCount();
/**
* repeated string output_filter = 3;
*/
java.lang.String getOutputFilter(int index);
/**
* repeated string output_filter = 3;
*/
shade.protobuf
.ByteString
getOutputFilterBytes(int index);
}
/**
* Protobuf type {@code caffe.eas.PredictRequest}
*/
public static final class PredictRequest extends
shade.protobuf
.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:caffe.eas.PredictRequest)
PredictRequestOrBuilder {
// Use PredictRequest.newBuilder() to construct.
private PredictRequest(shade.protobuf
.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PredictRequest() {
inputName_ = shade.protobuf
.LazyStringArrayList.EMPTY;
inputData_ = java.util.Collections.emptyList();
outputFilter_ = shade.protobuf
.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final shade.protobuf
.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PredictRequest(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf
.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
shade.protobuf
.UnknownFieldSet.Builder unknownFields =
shade.protobuf
.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
shade.protobuf
.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
inputName_ = new shade.protobuf
.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
inputName_.add(bs);
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
inputData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
inputData_.add(
input.readMessage(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.PARSER, extensionRegistry));
break;
}
case 26: {
shade.protobuf
.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
outputFilter_ = new shade.protobuf
.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
outputFilter_.add(bs);
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)) {
inputName_ = inputName_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
inputData_ = java.util.Collections.unmodifiableList(inputData_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
outputFilter_ = outputFilter_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_PredictRequest_descriptor;
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_PredictRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest.class, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest.Builder.class);
}
public static final int INPUT_NAME_FIELD_NUMBER = 1;
private shade.protobuf
.LazyStringList inputName_;
/**
* repeated string input_name = 1;
*/
public shade.protobuf
.ProtocolStringList
getInputNameList() {
return inputName_;
}
/**
* repeated string input_name = 1;
*/
public int getInputNameCount() {
return inputName_.size();
}
/**
* repeated string input_name = 1;
*/
public java.lang.String getInputName(int index) {
return inputName_.get(index);
}
/**
* repeated string input_name = 1;
*/
public shade.protobuf
.ByteString
getInputNameBytes(int index) {
return inputName_.getByteString(index);
}
public static final int INPUT_DATA_FIELD_NUMBER = 2;
private java.util.List inputData_;
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public java.util.List getInputDataList() {
return inputData_;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public java.util.List extends com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder>
getInputDataOrBuilderList() {
return inputData_;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public int getInputDataCount() {
return inputData_.size();
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto getInputData(int index) {
return inputData_.get(index);
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder getInputDataOrBuilder(
int index) {
return inputData_.get(index);
}
public static final int OUTPUT_FILTER_FIELD_NUMBER = 3;
private shade.protobuf
.LazyStringList outputFilter_;
/**
* repeated string output_filter = 3;
*/
public shade.protobuf
.ProtocolStringList
getOutputFilterList() {
return outputFilter_;
}
/**
* repeated string output_filter = 3;
*/
public int getOutputFilterCount() {
return outputFilter_.size();
}
/**
* repeated string output_filter = 3;
*/
public java.lang.String getOutputFilter(int index) {
return outputFilter_.get(index);
}
/**
* repeated string output_filter = 3;
*/
public shade.protobuf
.ByteString
getOutputFilterBytes(int index) {
return outputFilter_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(shade.protobuf
.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < inputName_.size(); i++) {
shade.protobuf
.GeneratedMessageV3.writeString(output, 1, inputName_.getRaw(i));
}
for (int i = 0; i < inputData_.size(); i++) {
output.writeMessage(2, inputData_.get(i));
}
for (int i = 0; i < outputFilter_.size(); i++) {
shade.protobuf
.GeneratedMessageV3.writeString(output, 3, outputFilter_.getRaw(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < inputName_.size(); i++) {
dataSize += computeStringSizeNoTag(inputName_.getRaw(i));
}
size += dataSize;
size += 1 * getInputNameList().size();
}
for (int i = 0; i < inputData_.size(); i++) {
size += shade.protobuf
.CodedOutputStream
.computeMessageSize(2, inputData_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < outputFilter_.size(); i++) {
dataSize += computeStringSizeNoTag(outputFilter_.getRaw(i));
}
size += dataSize;
size += 1 * getOutputFilterList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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.CaffePredictProtos.PredictRequest)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest other = (com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest) obj;
boolean result = true;
result = result && getInputNameList()
.equals(other.getInputNameList());
result = result && getInputDataList()
.equals(other.getInputDataList());
result = result && getOutputFilterList()
.equals(other.getOutputFilterList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getInputNameCount() > 0) {
hash = (37 * hash) + INPUT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getInputNameList().hashCode();
}
if (getInputDataCount() > 0) {
hash = (37 * hash) + INPUT_DATA_FIELD_NUMBER;
hash = (53 * hash) + getInputDataList().hashCode();
}
if (getOutputFilterCount() > 0) {
hash = (37 * hash) + OUTPUT_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getOutputFilterList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parseFrom(
shade.protobuf
.ByteString data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parseFrom(
shade.protobuf
.ByteString data,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parseFrom(byte[] data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parseFrom(
byte[] data,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parseFrom(
java.io.InputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parseFrom(
shade.protobuf
.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parseFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code caffe.eas.PredictRequest}
*/
public static final class Builder extends
shade.protobuf
.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:caffe.eas.PredictRequest)
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequestOrBuilder {
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_PredictRequest_descriptor;
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_PredictRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest.class, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf
.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getInputDataFieldBuilder();
}
}
public Builder clear() {
super.clear();
inputName_ = shade.protobuf
.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (inputDataBuilder_ == null) {
inputData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
inputDataBuilder_.clear();
}
outputFilter_ = shade.protobuf
.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public shade.protobuf
.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_PredictRequest_descriptor;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest.getDefaultInstance();
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest build() {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest buildPartial() {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest result = new com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
inputName_ = inputName_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.inputName_ = inputName_;
if (inputDataBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
inputData_ = java.util.Collections.unmodifiableList(inputData_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.inputData_ = inputData_;
} else {
result.inputData_ = inputDataBuilder_.build();
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
outputFilter_ = outputFilter_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.outputFilter_ = outputFilter_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
shade.protobuf
.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
shade.protobuf
.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
shade.protobuf
.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(shade.protobuf
.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest other) {
if (other == com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest.getDefaultInstance()) return this;
if (!other.inputName_.isEmpty()) {
if (inputName_.isEmpty()) {
inputName_ = other.inputName_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInputNameIsMutable();
inputName_.addAll(other.inputName_);
}
onChanged();
}
if (inputDataBuilder_ == null) {
if (!other.inputData_.isEmpty()) {
if (inputData_.isEmpty()) {
inputData_ = other.inputData_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureInputDataIsMutable();
inputData_.addAll(other.inputData_);
}
onChanged();
}
} else {
if (!other.inputData_.isEmpty()) {
if (inputDataBuilder_.isEmpty()) {
inputDataBuilder_.dispose();
inputDataBuilder_ = null;
inputData_ = other.inputData_;
bitField0_ = (bitField0_ & ~0x00000002);
inputDataBuilder_ =
shade.protobuf
.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInputDataFieldBuilder() : null;
} else {
inputDataBuilder_.addAllMessages(other.inputData_);
}
}
}
if (!other.outputFilter_.isEmpty()) {
if (outputFilter_.isEmpty()) {
outputFilter_ = other.outputFilter_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureOutputFilterIsMutable();
outputFilter_.addAll(other.outputFilter_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf
.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf
.LazyStringList inputName_ = shade.protobuf
.LazyStringArrayList.EMPTY;
private void ensureInputNameIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
inputName_ = new shade.protobuf
.LazyStringArrayList(inputName_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string input_name = 1;
*/
public shade.protobuf
.ProtocolStringList
getInputNameList() {
return inputName_.getUnmodifiableView();
}
/**
* repeated string input_name = 1;
*/
public int getInputNameCount() {
return inputName_.size();
}
/**
* repeated string input_name = 1;
*/
public java.lang.String getInputName(int index) {
return inputName_.get(index);
}
/**
* repeated string input_name = 1;
*/
public shade.protobuf
.ByteString
getInputNameBytes(int index) {
return inputName_.getByteString(index);
}
/**
* repeated string input_name = 1;
*/
public Builder setInputName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInputNameIsMutable();
inputName_.set(index, value);
onChanged();
return this;
}
/**
* repeated string input_name = 1;
*/
public Builder addInputName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInputNameIsMutable();
inputName_.add(value);
onChanged();
return this;
}
/**
* repeated string input_name = 1;
*/
public Builder addAllInputName(
java.lang.Iterable values) {
ensureInputNameIsMutable();
shade.protobuf
.AbstractMessageLite.Builder.addAll(
values, inputName_);
onChanged();
return this;
}
/**
* repeated string input_name = 1;
*/
public Builder clearInputName() {
inputName_ = shade.protobuf
.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string input_name = 1;
*/
public Builder addInputNameBytes(
shade.protobuf
.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureInputNameIsMutable();
inputName_.add(value);
onChanged();
return this;
}
private java.util.List inputData_ =
java.util.Collections.emptyList();
private void ensureInputDataIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
inputData_ = new java.util.ArrayList(inputData_);
bitField0_ |= 0x00000002;
}
}
private shade.protobuf
.RepeatedFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder> inputDataBuilder_;
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public java.util.List getInputDataList() {
if (inputDataBuilder_ == null) {
return java.util.Collections.unmodifiableList(inputData_);
} else {
return inputDataBuilder_.getMessageList();
}
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public int getInputDataCount() {
if (inputDataBuilder_ == null) {
return inputData_.size();
} else {
return inputDataBuilder_.getCount();
}
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto getInputData(int index) {
if (inputDataBuilder_ == null) {
return inputData_.get(index);
} else {
return inputDataBuilder_.getMessage(index);
}
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public Builder setInputData(
int index, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto value) {
if (inputDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputDataIsMutable();
inputData_.set(index, value);
onChanged();
} else {
inputDataBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public Builder setInputData(
int index, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder builderForValue) {
if (inputDataBuilder_ == null) {
ensureInputDataIsMutable();
inputData_.set(index, builderForValue.build());
onChanged();
} else {
inputDataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public Builder addInputData(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto value) {
if (inputDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputDataIsMutable();
inputData_.add(value);
onChanged();
} else {
inputDataBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public Builder addInputData(
int index, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto value) {
if (inputDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputDataIsMutable();
inputData_.add(index, value);
onChanged();
} else {
inputDataBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public Builder addInputData(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder builderForValue) {
if (inputDataBuilder_ == null) {
ensureInputDataIsMutable();
inputData_.add(builderForValue.build());
onChanged();
} else {
inputDataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public Builder addInputData(
int index, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder builderForValue) {
if (inputDataBuilder_ == null) {
ensureInputDataIsMutable();
inputData_.add(index, builderForValue.build());
onChanged();
} else {
inputDataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public Builder addAllInputData(
java.lang.Iterable extends com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto> values) {
if (inputDataBuilder_ == null) {
ensureInputDataIsMutable();
shade.protobuf
.AbstractMessageLite.Builder.addAll(
values, inputData_);
onChanged();
} else {
inputDataBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public Builder clearInputData() {
if (inputDataBuilder_ == null) {
inputData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
inputDataBuilder_.clear();
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public Builder removeInputData(int index) {
if (inputDataBuilder_ == null) {
ensureInputDataIsMutable();
inputData_.remove(index);
onChanged();
} else {
inputDataBuilder_.remove(index);
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder getInputDataBuilder(
int index) {
return getInputDataFieldBuilder().getBuilder(index);
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder getInputDataOrBuilder(
int index) {
if (inputDataBuilder_ == null) {
return inputData_.get(index); } else {
return inputDataBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public java.util.List extends com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder>
getInputDataOrBuilderList() {
if (inputDataBuilder_ != null) {
return inputDataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inputData_);
}
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder addInputDataBuilder() {
return getInputDataFieldBuilder().addBuilder(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.getDefaultInstance());
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder addInputDataBuilder(
int index) {
return getInputDataFieldBuilder().addBuilder(
index, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.getDefaultInstance());
}
/**
* repeated .caffe.eas.ArrayProto input_data = 2;
*/
public java.util.List
getInputDataBuilderList() {
return getInputDataFieldBuilder().getBuilderList();
}
private shade.protobuf
.RepeatedFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder>
getInputDataFieldBuilder() {
if (inputDataBuilder_ == null) {
inputDataBuilder_ = new shade.protobuf
.RepeatedFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder>(
inputData_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
inputData_ = null;
}
return inputDataBuilder_;
}
private shade.protobuf
.LazyStringList outputFilter_ = shade.protobuf
.LazyStringArrayList.EMPTY;
private void ensureOutputFilterIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
outputFilter_ = new shade.protobuf
.LazyStringArrayList(outputFilter_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string output_filter = 3;
*/
public shade.protobuf
.ProtocolStringList
getOutputFilterList() {
return outputFilter_.getUnmodifiableView();
}
/**
* repeated string output_filter = 3;
*/
public int getOutputFilterCount() {
return outputFilter_.size();
}
/**
* repeated string output_filter = 3;
*/
public java.lang.String getOutputFilter(int index) {
return outputFilter_.get(index);
}
/**
* repeated string output_filter = 3;
*/
public shade.protobuf
.ByteString
getOutputFilterBytes(int index) {
return outputFilter_.getByteString(index);
}
/**
* repeated string output_filter = 3;
*/
public Builder setOutputFilter(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputFilterIsMutable();
outputFilter_.set(index, value);
onChanged();
return this;
}
/**
* repeated string output_filter = 3;
*/
public Builder addOutputFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputFilterIsMutable();
outputFilter_.add(value);
onChanged();
return this;
}
/**
* repeated string output_filter = 3;
*/
public Builder addAllOutputFilter(
java.lang.Iterable values) {
ensureOutputFilterIsMutable();
shade.protobuf
.AbstractMessageLite.Builder.addAll(
values, outputFilter_);
onChanged();
return this;
}
/**
* repeated string output_filter = 3;
*/
public Builder clearOutputFilter() {
outputFilter_ = shade.protobuf
.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string output_filter = 3;
*/
public Builder addOutputFilterBytes(
shade.protobuf
.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputFilterIsMutable();
outputFilter_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:caffe.eas.PredictRequest)
}
// @@protoc_insertion_point(class_scope:caffe.eas.PredictRequest)
private static final com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest();
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final shade.protobuf
.Parser
PARSER = new shade.protobuf
.AbstractParser() {
public PredictRequest parsePartialFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf
.InvalidProtocolBufferException {
return new PredictRequest(input, extensionRegistry);
}
};
public static shade.protobuf
.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf
.Parser getParserForType() {
return PARSER;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PredictResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:caffe.eas.PredictResponse)
shade.protobuf
.MessageOrBuilder {
/**
* repeated string output_name = 1;
*/
java.util.List
getOutputNameList();
/**
* repeated string output_name = 1;
*/
int getOutputNameCount();
/**
* repeated string output_name = 1;
*/
java.lang.String getOutputName(int index);
/**
* repeated string output_name = 1;
*/
shade.protobuf
.ByteString
getOutputNameBytes(int index);
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
java.util.List
getOutputDataList();
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto getOutputData(int index);
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
int getOutputDataCount();
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
java.util.List extends com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder>
getOutputDataOrBuilderList();
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder getOutputDataOrBuilder(
int index);
}
/**
* Protobuf type {@code caffe.eas.PredictResponse}
*/
public static final class PredictResponse extends
shade.protobuf
.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:caffe.eas.PredictResponse)
PredictResponseOrBuilder {
// Use PredictResponse.newBuilder() to construct.
private PredictResponse(shade.protobuf
.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PredictResponse() {
outputName_ = shade.protobuf
.LazyStringArrayList.EMPTY;
outputData_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final shade.protobuf
.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PredictResponse(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf
.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
shade.protobuf
.UnknownFieldSet.Builder unknownFields =
shade.protobuf
.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
shade.protobuf
.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
outputName_ = new shade.protobuf
.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
outputName_.add(bs);
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
outputData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
outputData_.add(
input.readMessage(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.PARSER, extensionRegistry));
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)) {
outputName_ = outputName_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
outputData_ = java.util.Collections.unmodifiableList(outputData_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_PredictResponse_descriptor;
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_PredictResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse.class, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse.Builder.class);
}
public static final int OUTPUT_NAME_FIELD_NUMBER = 1;
private shade.protobuf
.LazyStringList outputName_;
/**
* repeated string output_name = 1;
*/
public shade.protobuf
.ProtocolStringList
getOutputNameList() {
return outputName_;
}
/**
* repeated string output_name = 1;
*/
public int getOutputNameCount() {
return outputName_.size();
}
/**
* repeated string output_name = 1;
*/
public java.lang.String getOutputName(int index) {
return outputName_.get(index);
}
/**
* repeated string output_name = 1;
*/
public shade.protobuf
.ByteString
getOutputNameBytes(int index) {
return outputName_.getByteString(index);
}
public static final int OUTPUT_DATA_FIELD_NUMBER = 2;
private java.util.List outputData_;
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public java.util.List getOutputDataList() {
return outputData_;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public java.util.List extends com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder>
getOutputDataOrBuilderList() {
return outputData_;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public int getOutputDataCount() {
return outputData_.size();
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto getOutputData(int index) {
return outputData_.get(index);
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder getOutputDataOrBuilder(
int index) {
return outputData_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(shade.protobuf
.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < outputName_.size(); i++) {
shade.protobuf
.GeneratedMessageV3.writeString(output, 1, outputName_.getRaw(i));
}
for (int i = 0; i < outputData_.size(); i++) {
output.writeMessage(2, outputData_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < outputName_.size(); i++) {
dataSize += computeStringSizeNoTag(outputName_.getRaw(i));
}
size += dataSize;
size += 1 * getOutputNameList().size();
}
for (int i = 0; i < outputData_.size(); i++) {
size += shade.protobuf
.CodedOutputStream
.computeMessageSize(2, outputData_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@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.CaffePredictProtos.PredictResponse)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse other = (com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse) obj;
boolean result = true;
result = result && getOutputNameList()
.equals(other.getOutputNameList());
result = result && getOutputDataList()
.equals(other.getOutputDataList());
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) + getDescriptorForType().hashCode();
if (getOutputNameCount() > 0) {
hash = (37 * hash) + OUTPUT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getOutputNameList().hashCode();
}
if (getOutputDataCount() > 0) {
hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER;
hash = (53 * hash) + getOutputDataList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parseFrom(
shade.protobuf
.ByteString data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parseFrom(
shade.protobuf
.ByteString data,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parseFrom(byte[] data)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parseFrom(
byte[] data,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf
.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parseFrom(
java.io.InputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parseFrom(
shade.protobuf
.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parseFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf
.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code caffe.eas.PredictResponse}
*/
public static final class Builder extends
shade.protobuf
.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:caffe.eas.PredictResponse)
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponseOrBuilder {
public static final shade.protobuf
.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_PredictResponse_descriptor;
}
protected shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_PredictResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse.class, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf
.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf
.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOutputDataFieldBuilder();
}
}
public Builder clear() {
super.clear();
outputName_ = shade.protobuf
.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (outputDataBuilder_ == null) {
outputData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
outputDataBuilder_.clear();
}
return this;
}
public shade.protobuf
.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.internal_static_caffe_eas_PredictResponse_descriptor;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse.getDefaultInstance();
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse build() {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse buildPartial() {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse result = new com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
outputName_ = outputName_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.outputName_ = outputName_;
if (outputDataBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
outputData_ = java.util.Collections.unmodifiableList(outputData_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.outputData_ = outputData_;
} else {
result.outputData_ = outputDataBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
shade.protobuf
.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
shade.protobuf
.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
shade.protobuf
.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
shade.protobuf
.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(shade.protobuf
.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse other) {
if (other == com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse.getDefaultInstance()) return this;
if (!other.outputName_.isEmpty()) {
if (outputName_.isEmpty()) {
outputName_ = other.outputName_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOutputNameIsMutable();
outputName_.addAll(other.outputName_);
}
onChanged();
}
if (outputDataBuilder_ == null) {
if (!other.outputData_.isEmpty()) {
if (outputData_.isEmpty()) {
outputData_ = other.outputData_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureOutputDataIsMutable();
outputData_.addAll(other.outputData_);
}
onChanged();
}
} else {
if (!other.outputData_.isEmpty()) {
if (outputDataBuilder_.isEmpty()) {
outputDataBuilder_.dispose();
outputDataBuilder_ = null;
outputData_ = other.outputData_;
bitField0_ = (bitField0_ & ~0x00000002);
outputDataBuilder_ =
shade.protobuf
.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOutputDataFieldBuilder() : null;
} else {
outputDataBuilder_.addAllMessages(other.outputData_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf
.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf
.LazyStringList outputName_ = shade.protobuf
.LazyStringArrayList.EMPTY;
private void ensureOutputNameIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
outputName_ = new shade.protobuf
.LazyStringArrayList(outputName_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string output_name = 1;
*/
public shade.protobuf
.ProtocolStringList
getOutputNameList() {
return outputName_.getUnmodifiableView();
}
/**
* repeated string output_name = 1;
*/
public int getOutputNameCount() {
return outputName_.size();
}
/**
* repeated string output_name = 1;
*/
public java.lang.String getOutputName(int index) {
return outputName_.get(index);
}
/**
* repeated string output_name = 1;
*/
public shade.protobuf
.ByteString
getOutputNameBytes(int index) {
return outputName_.getByteString(index);
}
/**
* repeated string output_name = 1;
*/
public Builder setOutputName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputNameIsMutable();
outputName_.set(index, value);
onChanged();
return this;
}
/**
* repeated string output_name = 1;
*/
public Builder addOutputName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputNameIsMutable();
outputName_.add(value);
onChanged();
return this;
}
/**
* repeated string output_name = 1;
*/
public Builder addAllOutputName(
java.lang.Iterable values) {
ensureOutputNameIsMutable();
shade.protobuf
.AbstractMessageLite.Builder.addAll(
values, outputName_);
onChanged();
return this;
}
/**
* repeated string output_name = 1;
*/
public Builder clearOutputName() {
outputName_ = shade.protobuf
.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string output_name = 1;
*/
public Builder addOutputNameBytes(
shade.protobuf
.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputNameIsMutable();
outputName_.add(value);
onChanged();
return this;
}
private java.util.List outputData_ =
java.util.Collections.emptyList();
private void ensureOutputDataIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
outputData_ = new java.util.ArrayList(outputData_);
bitField0_ |= 0x00000002;
}
}
private shade.protobuf
.RepeatedFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder> outputDataBuilder_;
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public java.util.List getOutputDataList() {
if (outputDataBuilder_ == null) {
return java.util.Collections.unmodifiableList(outputData_);
} else {
return outputDataBuilder_.getMessageList();
}
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public int getOutputDataCount() {
if (outputDataBuilder_ == null) {
return outputData_.size();
} else {
return outputDataBuilder_.getCount();
}
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto getOutputData(int index) {
if (outputDataBuilder_ == null) {
return outputData_.get(index);
} else {
return outputDataBuilder_.getMessage(index);
}
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public Builder setOutputData(
int index, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto value) {
if (outputDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputDataIsMutable();
outputData_.set(index, value);
onChanged();
} else {
outputDataBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public Builder setOutputData(
int index, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder builderForValue) {
if (outputDataBuilder_ == null) {
ensureOutputDataIsMutable();
outputData_.set(index, builderForValue.build());
onChanged();
} else {
outputDataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public Builder addOutputData(com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto value) {
if (outputDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputDataIsMutable();
outputData_.add(value);
onChanged();
} else {
outputDataBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public Builder addOutputData(
int index, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto value) {
if (outputDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputDataIsMutable();
outputData_.add(index, value);
onChanged();
} else {
outputDataBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public Builder addOutputData(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder builderForValue) {
if (outputDataBuilder_ == null) {
ensureOutputDataIsMutable();
outputData_.add(builderForValue.build());
onChanged();
} else {
outputDataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public Builder addOutputData(
int index, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder builderForValue) {
if (outputDataBuilder_ == null) {
ensureOutputDataIsMutable();
outputData_.add(index, builderForValue.build());
onChanged();
} else {
outputDataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public Builder addAllOutputData(
java.lang.Iterable extends com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto> values) {
if (outputDataBuilder_ == null) {
ensureOutputDataIsMutable();
shade.protobuf
.AbstractMessageLite.Builder.addAll(
values, outputData_);
onChanged();
} else {
outputDataBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public Builder clearOutputData() {
if (outputDataBuilder_ == null) {
outputData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
outputDataBuilder_.clear();
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public Builder removeOutputData(int index) {
if (outputDataBuilder_ == null) {
ensureOutputDataIsMutable();
outputData_.remove(index);
onChanged();
} else {
outputDataBuilder_.remove(index);
}
return this;
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder getOutputDataBuilder(
int index) {
return getOutputDataFieldBuilder().getBuilder(index);
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder getOutputDataOrBuilder(
int index) {
if (outputDataBuilder_ == null) {
return outputData_.get(index); } else {
return outputDataBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public java.util.List extends com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder>
getOutputDataOrBuilderList() {
if (outputDataBuilder_ != null) {
return outputDataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(outputData_);
}
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder addOutputDataBuilder() {
return getOutputDataFieldBuilder().addBuilder(
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.getDefaultInstance());
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder addOutputDataBuilder(
int index) {
return getOutputDataFieldBuilder().addBuilder(
index, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.getDefaultInstance());
}
/**
* repeated .caffe.eas.ArrayProto output_data = 2;
*/
public java.util.List
getOutputDataBuilderList() {
return getOutputDataFieldBuilder().getBuilderList();
}
private shade.protobuf
.RepeatedFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder>
getOutputDataFieldBuilder() {
if (outputDataBuilder_ == null) {
outputDataBuilder_ = new shade.protobuf
.RepeatedFieldBuilderV3<
com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProto.Builder, com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.ArrayProtoOrBuilder>(
outputData_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
outputData_ = null;
}
return outputDataBuilder_;
}
public final Builder setUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final shade.protobuf
.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:caffe.eas.PredictResponse)
}
// @@protoc_insertion_point(class_scope:caffe.eas.PredictResponse)
private static final com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse();
}
public static com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final shade.protobuf
.Parser
PARSER = new shade.protobuf
.AbstractParser() {
public PredictResponse parsePartialFrom(
shade.protobuf
.CodedInputStream input,
shade.protobuf
.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf
.InvalidProtocolBufferException {
return new PredictResponse(input, extensionRegistry);
}
};
public static shade.protobuf
.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf
.Parser getParserForType() {
return PARSER;
}
public com.aliyun.openservices.eas.predict.proto.CaffePredictProtos.PredictResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final shade.protobuf
.Descriptors.Descriptor
internal_static_caffe_eas_ArrayShape_descriptor;
private static final
shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internal_static_caffe_eas_ArrayShape_fieldAccessorTable;
private static final shade.protobuf
.Descriptors.Descriptor
internal_static_caffe_eas_ArrayProto_descriptor;
private static final
shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internal_static_caffe_eas_ArrayProto_fieldAccessorTable;
private static final shade.protobuf
.Descriptors.Descriptor
internal_static_caffe_eas_PredictRequest_descriptor;
private static final
shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internal_static_caffe_eas_PredictRequest_fieldAccessorTable;
private static final shade.protobuf
.Descriptors.Descriptor
internal_static_caffe_eas_PredictResponse_descriptor;
private static final
shade.protobuf
.GeneratedMessageV3.FieldAccessorTable
internal_static_caffe_eas_PredictResponse_fieldAccessorTable;
public static shade.protobuf
.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static shade.protobuf
.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\023caffe_predict.proto\022\tcaffe.eas\"\035\n\nArra" +
"yShape\022\017\n\003dim\030\001 \003(\003B\002\020\001\"D\n\nArrayProto\022$\n" +
"\005shape\030\001 \001(\0132\025.caffe.eas.ArrayShape\022\020\n\004d" +
"ata\030\002 \003(\002B\002\020\001\"f\n\016PredictRequest\022\022\n\ninput" +
"_name\030\001 \003(\t\022)\n\ninput_data\030\002 \003(\0132\025.caffe." +
"eas.ArrayProto\022\025\n\routput_filter\030\003 \003(\t\"R\n" +
"\017PredictResponse\022\023\n\013output_name\030\001 \003(\t\022*\n" +
"\013output_data\030\002 \003(\0132\025.caffe.eas.ArrayProt" +
"oB?\n)com.aliyun.openservices.eas.predict" +
".protoB\022CaffePredictProtos"
};
shade.protobuf
.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new shade.protobuf
.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public shade.protobuf
.ExtensionRegistry assignDescriptors(
shade.protobuf
.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
shade.protobuf
.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new shade.protobuf
.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_caffe_eas_ArrayShape_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_caffe_eas_ArrayShape_fieldAccessorTable = new
shade.protobuf
.GeneratedMessageV3.FieldAccessorTable(
internal_static_caffe_eas_ArrayShape_descriptor,
new java.lang.String[] { "Dim", });
internal_static_caffe_eas_ArrayProto_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_caffe_eas_ArrayProto_fieldAccessorTable = new
shade.protobuf
.GeneratedMessageV3.FieldAccessorTable(
internal_static_caffe_eas_ArrayProto_descriptor,
new java.lang.String[] { "Shape", "Data", });
internal_static_caffe_eas_PredictRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_caffe_eas_PredictRequest_fieldAccessorTable = new
shade.protobuf
.GeneratedMessageV3.FieldAccessorTable(
internal_static_caffe_eas_PredictRequest_descriptor,
new java.lang.String[] { "InputName", "InputData", "OutputFilter", });
internal_static_caffe_eas_PredictResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_caffe_eas_PredictResponse_fieldAccessorTable = new
shade.protobuf
.GeneratedMessageV3.FieldAccessorTable(
internal_static_caffe_eas_PredictResponse_descriptor,
new java.lang.String[] { "OutputName", "OutputData", });
}
// @@protoc_insertion_point(outer_class_scope)
}