io.seldon.protos.PredictionProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: prediction.proto
package io.seldon.protos;
public final class PredictionProtos {
private PredictionProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface SeldonMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:seldon.protos.SeldonMessage)
com.google.protobuf.MessageOrBuilder {
/**
* optional .seldon.protos.Status status = 1;
*/
boolean hasStatus();
/**
* optional .seldon.protos.Status status = 1;
*/
io.seldon.protos.PredictionProtos.Status getStatus();
/**
* optional .seldon.protos.Status status = 1;
*/
io.seldon.protos.PredictionProtos.StatusOrBuilder getStatusOrBuilder();
/**
* optional .seldon.protos.Meta meta = 2;
*/
boolean hasMeta();
/**
* optional .seldon.protos.Meta meta = 2;
*/
io.seldon.protos.PredictionProtos.Meta getMeta();
/**
* optional .seldon.protos.Meta meta = 2;
*/
io.seldon.protos.PredictionProtos.MetaOrBuilder getMetaOrBuilder();
/**
* optional .seldon.protos.DefaultData data = 3;
*/
io.seldon.protos.PredictionProtos.DefaultData getData();
/**
* optional .seldon.protos.DefaultData data = 3;
*/
io.seldon.protos.PredictionProtos.DefaultDataOrBuilder getDataOrBuilder();
/**
* optional bytes binData = 4;
*/
com.google.protobuf.ByteString getBinData();
/**
* optional string strData = 5;
*/
java.lang.String getStrData();
/**
* optional string strData = 5;
*/
com.google.protobuf.ByteString
getStrDataBytes();
public io.seldon.protos.PredictionProtos.SeldonMessage.DataOneofCase getDataOneofCase();
}
/**
* Protobuf type {@code seldon.protos.SeldonMessage}
*/
public static final class SeldonMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:seldon.protos.SeldonMessage)
SeldonMessageOrBuilder {
// Use SeldonMessage.newBuilder() to construct.
private SeldonMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SeldonMessage() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private SeldonMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
io.seldon.protos.PredictionProtos.Status.Builder subBuilder = null;
if (status_ != null) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(io.seldon.protos.PredictionProtos.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.seldon.protos.PredictionProtos.Meta.Builder subBuilder = null;
if (meta_ != null) {
subBuilder = meta_.toBuilder();
}
meta_ = input.readMessage(io.seldon.protos.PredictionProtos.Meta.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(meta_);
meta_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.seldon.protos.PredictionProtos.DefaultData.Builder subBuilder = null;
if (dataOneofCase_ == 3) {
subBuilder = ((io.seldon.protos.PredictionProtos.DefaultData) dataOneof_).toBuilder();
}
dataOneof_ =
input.readMessage(io.seldon.protos.PredictionProtos.DefaultData.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.seldon.protos.PredictionProtos.DefaultData) dataOneof_);
dataOneof_ = subBuilder.buildPartial();
}
dataOneofCase_ = 3;
break;
}
case 34: {
dataOneofCase_ = 4;
dataOneof_ = input.readBytes();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
dataOneofCase_ = 5;
dataOneof_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_SeldonMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_SeldonMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.SeldonMessage.class, io.seldon.protos.PredictionProtos.SeldonMessage.Builder.class);
}
private int dataOneofCase_ = 0;
private java.lang.Object dataOneof_;
public enum DataOneofCase
implements com.google.protobuf.Internal.EnumLite {
DATA(3),
BINDATA(4),
STRDATA(5),
DATAONEOF_NOT_SET(0);
private final int value;
private DataOneofCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataOneofCase valueOf(int value) {
return forNumber(value);
}
public static DataOneofCase forNumber(int value) {
switch (value) {
case 3: return DATA;
case 4: return BINDATA;
case 5: return STRDATA;
case 0: return DATAONEOF_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DataOneofCase
getDataOneofCase() {
return DataOneofCase.forNumber(
dataOneofCase_);
}
public static final int STATUS_FIELD_NUMBER = 1;
private io.seldon.protos.PredictionProtos.Status status_;
/**
* optional .seldon.protos.Status status = 1;
*/
public boolean hasStatus() {
return status_ != null;
}
/**
* optional .seldon.protos.Status status = 1;
*/
public io.seldon.protos.PredictionProtos.Status getStatus() {
return status_ == null ? io.seldon.protos.PredictionProtos.Status.getDefaultInstance() : status_;
}
/**
* optional .seldon.protos.Status status = 1;
*/
public io.seldon.protos.PredictionProtos.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
public static final int META_FIELD_NUMBER = 2;
private io.seldon.protos.PredictionProtos.Meta meta_;
/**
* optional .seldon.protos.Meta meta = 2;
*/
public boolean hasMeta() {
return meta_ != null;
}
/**
* optional .seldon.protos.Meta meta = 2;
*/
public io.seldon.protos.PredictionProtos.Meta getMeta() {
return meta_ == null ? io.seldon.protos.PredictionProtos.Meta.getDefaultInstance() : meta_;
}
/**
* optional .seldon.protos.Meta meta = 2;
*/
public io.seldon.protos.PredictionProtos.MetaOrBuilder getMetaOrBuilder() {
return getMeta();
}
public static final int DATA_FIELD_NUMBER = 3;
/**
* optional .seldon.protos.DefaultData data = 3;
*/
public io.seldon.protos.PredictionProtos.DefaultData getData() {
if (dataOneofCase_ == 3) {
return (io.seldon.protos.PredictionProtos.DefaultData) dataOneof_;
}
return io.seldon.protos.PredictionProtos.DefaultData.getDefaultInstance();
}
/**
* optional .seldon.protos.DefaultData data = 3;
*/
public io.seldon.protos.PredictionProtos.DefaultDataOrBuilder getDataOrBuilder() {
if (dataOneofCase_ == 3) {
return (io.seldon.protos.PredictionProtos.DefaultData) dataOneof_;
}
return io.seldon.protos.PredictionProtos.DefaultData.getDefaultInstance();
}
public static final int BINDATA_FIELD_NUMBER = 4;
/**
* optional bytes binData = 4;
*/
public com.google.protobuf.ByteString getBinData() {
if (dataOneofCase_ == 4) {
return (com.google.protobuf.ByteString) dataOneof_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int STRDATA_FIELD_NUMBER = 5;
/**
* optional string strData = 5;
*/
public java.lang.String getStrData() {
java.lang.Object ref = "";
if (dataOneofCase_ == 5) {
ref = dataOneof_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (dataOneofCase_ == 5) {
dataOneof_ = s;
}
return s;
}
}
/**
* optional string strData = 5;
*/
public com.google.protobuf.ByteString
getStrDataBytes() {
java.lang.Object ref = "";
if (dataOneofCase_ == 5) {
ref = dataOneof_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (dataOneofCase_ == 5) {
dataOneof_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != null) {
output.writeMessage(1, getStatus());
}
if (meta_ != null) {
output.writeMessage(2, getMeta());
}
if (dataOneofCase_ == 3) {
output.writeMessage(3, (io.seldon.protos.PredictionProtos.DefaultData) dataOneof_);
}
if (dataOneofCase_ == 4) {
output.writeBytes(
4, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) dataOneof_));
}
if (dataOneofCase_ == 5) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dataOneof_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatus());
}
if (meta_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMeta());
}
if (dataOneofCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.seldon.protos.PredictionProtos.DefaultData) dataOneof_);
}
if (dataOneofCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
4, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) dataOneof_));
}
if (dataOneofCase_ == 5) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dataOneof_);
}
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 io.seldon.protos.PredictionProtos.SeldonMessage)) {
return super.equals(obj);
}
io.seldon.protos.PredictionProtos.SeldonMessage other = (io.seldon.protos.PredictionProtos.SeldonMessage) obj;
boolean result = true;
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus()
.equals(other.getStatus());
}
result = result && (hasMeta() == other.hasMeta());
if (hasMeta()) {
result = result && getMeta()
.equals(other.getMeta());
}
result = result && getDataOneofCase().equals(
other.getDataOneofCase());
if (!result) return false;
switch (dataOneofCase_) {
case 3:
result = result && getData()
.equals(other.getData());
break;
case 4:
result = result && getBinData()
.equals(other.getBinData());
break;
case 5:
result = result && getStrData()
.equals(other.getStrData());
break;
case 0:
default:
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasMeta()) {
hash = (37 * hash) + META_FIELD_NUMBER;
hash = (53 * hash) + getMeta().hashCode();
}
switch (dataOneofCase_) {
case 3:
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
break;
case 4:
hash = (37 * hash) + BINDATA_FIELD_NUMBER;
hash = (53 * hash) + getBinData().hashCode();
break;
case 5:
hash = (37 * hash) + STRDATA_FIELD_NUMBER;
hash = (53 * hash) + getStrData().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.seldon.protos.PredictionProtos.SeldonMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.SeldonMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.SeldonMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.SeldonMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.SeldonMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.SeldonMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.SeldonMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.SeldonMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.SeldonMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.SeldonMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.seldon.protos.PredictionProtos.SeldonMessage 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code seldon.protos.SeldonMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:seldon.protos.SeldonMessage)
io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_SeldonMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_SeldonMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.SeldonMessage.class, io.seldon.protos.PredictionProtos.SeldonMessage.Builder.class);
}
// Construct using io.seldon.protos.PredictionProtos.SeldonMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
if (metaBuilder_ == null) {
meta_ = null;
} else {
meta_ = null;
metaBuilder_ = null;
}
dataOneofCase_ = 0;
dataOneof_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_SeldonMessage_descriptor;
}
public io.seldon.protos.PredictionProtos.SeldonMessage getDefaultInstanceForType() {
return io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance();
}
public io.seldon.protos.PredictionProtos.SeldonMessage build() {
io.seldon.protos.PredictionProtos.SeldonMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.seldon.protos.PredictionProtos.SeldonMessage buildPartial() {
io.seldon.protos.PredictionProtos.SeldonMessage result = new io.seldon.protos.PredictionProtos.SeldonMessage(this);
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
if (metaBuilder_ == null) {
result.meta_ = meta_;
} else {
result.meta_ = metaBuilder_.build();
}
if (dataOneofCase_ == 3) {
if (dataBuilder_ == null) {
result.dataOneof_ = dataOneof_;
} else {
result.dataOneof_ = dataBuilder_.build();
}
}
if (dataOneofCase_ == 4) {
result.dataOneof_ = dataOneof_;
}
if (dataOneofCase_ == 5) {
result.dataOneof_ = dataOneof_;
}
result.dataOneofCase_ = dataOneofCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.seldon.protos.PredictionProtos.SeldonMessage) {
return mergeFrom((io.seldon.protos.PredictionProtos.SeldonMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.seldon.protos.PredictionProtos.SeldonMessage other) {
if (other == io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (other.hasMeta()) {
mergeMeta(other.getMeta());
}
switch (other.getDataOneofCase()) {
case DATA: {
mergeData(other.getData());
break;
}
case BINDATA: {
setBinData(other.getBinData());
break;
}
case STRDATA: {
dataOneofCase_ = 5;
dataOneof_ = other.dataOneof_;
onChanged();
break;
}
case DATAONEOF_NOT_SET: {
break;
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.seldon.protos.PredictionProtos.SeldonMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.seldon.protos.PredictionProtos.SeldonMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int dataOneofCase_ = 0;
private java.lang.Object dataOneof_;
public DataOneofCase
getDataOneofCase() {
return DataOneofCase.forNumber(
dataOneofCase_);
}
public Builder clearDataOneof() {
dataOneofCase_ = 0;
dataOneof_ = null;
onChanged();
return this;
}
private io.seldon.protos.PredictionProtos.Status status_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.Status, io.seldon.protos.PredictionProtos.Status.Builder, io.seldon.protos.PredictionProtos.StatusOrBuilder> statusBuilder_;
/**
* optional .seldon.protos.Status status = 1;
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
* optional .seldon.protos.Status status = 1;
*/
public io.seldon.protos.PredictionProtos.Status getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? io.seldon.protos.PredictionProtos.Status.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
* optional .seldon.protos.Status status = 1;
*/
public Builder setStatus(io.seldon.protos.PredictionProtos.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
return this;
}
/**
* optional .seldon.protos.Status status = 1;
*/
public Builder setStatus(
io.seldon.protos.PredictionProtos.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .seldon.protos.Status status = 1;
*/
public Builder mergeStatus(io.seldon.protos.PredictionProtos.Status value) {
if (statusBuilder_ == null) {
if (status_ != null) {
status_ =
io.seldon.protos.PredictionProtos.Status.newBuilder(status_).mergeFrom(value).buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .seldon.protos.Status status = 1;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
* optional .seldon.protos.Status status = 1;
*/
public io.seldon.protos.PredictionProtos.Status.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* optional .seldon.protos.Status status = 1;
*/
public io.seldon.protos.PredictionProtos.StatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
io.seldon.protos.PredictionProtos.Status.getDefaultInstance() : status_;
}
}
/**
* optional .seldon.protos.Status status = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.Status, io.seldon.protos.PredictionProtos.Status.Builder, io.seldon.protos.PredictionProtos.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.Status, io.seldon.protos.PredictionProtos.Status.Builder, io.seldon.protos.PredictionProtos.StatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
private io.seldon.protos.PredictionProtos.Meta meta_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.Meta, io.seldon.protos.PredictionProtos.Meta.Builder, io.seldon.protos.PredictionProtos.MetaOrBuilder> metaBuilder_;
/**
* optional .seldon.protos.Meta meta = 2;
*/
public boolean hasMeta() {
return metaBuilder_ != null || meta_ != null;
}
/**
* optional .seldon.protos.Meta meta = 2;
*/
public io.seldon.protos.PredictionProtos.Meta getMeta() {
if (metaBuilder_ == null) {
return meta_ == null ? io.seldon.protos.PredictionProtos.Meta.getDefaultInstance() : meta_;
} else {
return metaBuilder_.getMessage();
}
}
/**
* optional .seldon.protos.Meta meta = 2;
*/
public Builder setMeta(io.seldon.protos.PredictionProtos.Meta value) {
if (metaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
meta_ = value;
onChanged();
} else {
metaBuilder_.setMessage(value);
}
return this;
}
/**
* optional .seldon.protos.Meta meta = 2;
*/
public Builder setMeta(
io.seldon.protos.PredictionProtos.Meta.Builder builderForValue) {
if (metaBuilder_ == null) {
meta_ = builderForValue.build();
onChanged();
} else {
metaBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .seldon.protos.Meta meta = 2;
*/
public Builder mergeMeta(io.seldon.protos.PredictionProtos.Meta value) {
if (metaBuilder_ == null) {
if (meta_ != null) {
meta_ =
io.seldon.protos.PredictionProtos.Meta.newBuilder(meta_).mergeFrom(value).buildPartial();
} else {
meta_ = value;
}
onChanged();
} else {
metaBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .seldon.protos.Meta meta = 2;
*/
public Builder clearMeta() {
if (metaBuilder_ == null) {
meta_ = null;
onChanged();
} else {
meta_ = null;
metaBuilder_ = null;
}
return this;
}
/**
* optional .seldon.protos.Meta meta = 2;
*/
public io.seldon.protos.PredictionProtos.Meta.Builder getMetaBuilder() {
onChanged();
return getMetaFieldBuilder().getBuilder();
}
/**
* optional .seldon.protos.Meta meta = 2;
*/
public io.seldon.protos.PredictionProtos.MetaOrBuilder getMetaOrBuilder() {
if (metaBuilder_ != null) {
return metaBuilder_.getMessageOrBuilder();
} else {
return meta_ == null ?
io.seldon.protos.PredictionProtos.Meta.getDefaultInstance() : meta_;
}
}
/**
* optional .seldon.protos.Meta meta = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.Meta, io.seldon.protos.PredictionProtos.Meta.Builder, io.seldon.protos.PredictionProtos.MetaOrBuilder>
getMetaFieldBuilder() {
if (metaBuilder_ == null) {
metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.Meta, io.seldon.protos.PredictionProtos.Meta.Builder, io.seldon.protos.PredictionProtos.MetaOrBuilder>(
getMeta(),
getParentForChildren(),
isClean());
meta_ = null;
}
return metaBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.DefaultData, io.seldon.protos.PredictionProtos.DefaultData.Builder, io.seldon.protos.PredictionProtos.DefaultDataOrBuilder> dataBuilder_;
/**
* optional .seldon.protos.DefaultData data = 3;
*/
public io.seldon.protos.PredictionProtos.DefaultData getData() {
if (dataBuilder_ == null) {
if (dataOneofCase_ == 3) {
return (io.seldon.protos.PredictionProtos.DefaultData) dataOneof_;
}
return io.seldon.protos.PredictionProtos.DefaultData.getDefaultInstance();
} else {
if (dataOneofCase_ == 3) {
return dataBuilder_.getMessage();
}
return io.seldon.protos.PredictionProtos.DefaultData.getDefaultInstance();
}
}
/**
* optional .seldon.protos.DefaultData data = 3;
*/
public Builder setData(io.seldon.protos.PredictionProtos.DefaultData value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataOneof_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
dataOneofCase_ = 3;
return this;
}
/**
* optional .seldon.protos.DefaultData data = 3;
*/
public Builder setData(
io.seldon.protos.PredictionProtos.DefaultData.Builder builderForValue) {
if (dataBuilder_ == null) {
dataOneof_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
dataOneofCase_ = 3;
return this;
}
/**
* optional .seldon.protos.DefaultData data = 3;
*/
public Builder mergeData(io.seldon.protos.PredictionProtos.DefaultData value) {
if (dataBuilder_ == null) {
if (dataOneofCase_ == 3 &&
dataOneof_ != io.seldon.protos.PredictionProtos.DefaultData.getDefaultInstance()) {
dataOneof_ = io.seldon.protos.PredictionProtos.DefaultData.newBuilder((io.seldon.protos.PredictionProtos.DefaultData) dataOneof_)
.mergeFrom(value).buildPartial();
} else {
dataOneof_ = value;
}
onChanged();
} else {
if (dataOneofCase_ == 3) {
dataBuilder_.mergeFrom(value);
}
dataBuilder_.setMessage(value);
}
dataOneofCase_ = 3;
return this;
}
/**
* optional .seldon.protos.DefaultData data = 3;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
if (dataOneofCase_ == 3) {
dataOneofCase_ = 0;
dataOneof_ = null;
onChanged();
}
} else {
if (dataOneofCase_ == 3) {
dataOneofCase_ = 0;
dataOneof_ = null;
}
dataBuilder_.clear();
}
return this;
}
/**
* optional .seldon.protos.DefaultData data = 3;
*/
public io.seldon.protos.PredictionProtos.DefaultData.Builder getDataBuilder() {
return getDataFieldBuilder().getBuilder();
}
/**
* optional .seldon.protos.DefaultData data = 3;
*/
public io.seldon.protos.PredictionProtos.DefaultDataOrBuilder getDataOrBuilder() {
if ((dataOneofCase_ == 3) && (dataBuilder_ != null)) {
return dataBuilder_.getMessageOrBuilder();
} else {
if (dataOneofCase_ == 3) {
return (io.seldon.protos.PredictionProtos.DefaultData) dataOneof_;
}
return io.seldon.protos.PredictionProtos.DefaultData.getDefaultInstance();
}
}
/**
* optional .seldon.protos.DefaultData data = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.DefaultData, io.seldon.protos.PredictionProtos.DefaultData.Builder, io.seldon.protos.PredictionProtos.DefaultDataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
if (!(dataOneofCase_ == 3)) {
dataOneof_ = io.seldon.protos.PredictionProtos.DefaultData.getDefaultInstance();
}
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.DefaultData, io.seldon.protos.PredictionProtos.DefaultData.Builder, io.seldon.protos.PredictionProtos.DefaultDataOrBuilder>(
(io.seldon.protos.PredictionProtos.DefaultData) dataOneof_,
getParentForChildren(),
isClean());
dataOneof_ = null;
}
dataOneofCase_ = 3;
onChanged();;
return dataBuilder_;
}
/**
* optional bytes binData = 4;
*/
public com.google.protobuf.ByteString getBinData() {
if (dataOneofCase_ == 4) {
return (com.google.protobuf.ByteString) dataOneof_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* optional bytes binData = 4;
*/
public Builder setBinData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
dataOneofCase_ = 4;
dataOneof_ = value;
onChanged();
return this;
}
/**
* optional bytes binData = 4;
*/
public Builder clearBinData() {
if (dataOneofCase_ == 4) {
dataOneofCase_ = 0;
dataOneof_ = null;
onChanged();
}
return this;
}
/**
* optional string strData = 5;
*/
public java.lang.String getStrData() {
java.lang.Object ref = "";
if (dataOneofCase_ == 5) {
ref = dataOneof_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (dataOneofCase_ == 5) {
dataOneof_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string strData = 5;
*/
public com.google.protobuf.ByteString
getStrDataBytes() {
java.lang.Object ref = "";
if (dataOneofCase_ == 5) {
ref = dataOneof_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (dataOneofCase_ == 5) {
dataOneof_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string strData = 5;
*/
public Builder setStrData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataOneofCase_ = 5;
dataOneof_ = value;
onChanged();
return this;
}
/**
* optional string strData = 5;
*/
public Builder clearStrData() {
if (dataOneofCase_ == 5) {
dataOneofCase_ = 0;
dataOneof_ = null;
onChanged();
}
return this;
}
/**
* optional string strData = 5;
*/
public Builder setStrDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataOneofCase_ = 5;
dataOneof_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:seldon.protos.SeldonMessage)
}
// @@protoc_insertion_point(class_scope:seldon.protos.SeldonMessage)
private static final io.seldon.protos.PredictionProtos.SeldonMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.seldon.protos.PredictionProtos.SeldonMessage();
}
public static io.seldon.protos.PredictionProtos.SeldonMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SeldonMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SeldonMessage(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.seldon.protos.PredictionProtos.SeldonMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DefaultDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:seldon.protos.DefaultData)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string names = 1;
*/
java.util.List
getNamesList();
/**
* repeated string names = 1;
*/
int getNamesCount();
/**
* repeated string names = 1;
*/
java.lang.String getNames(int index);
/**
* repeated string names = 1;
*/
com.google.protobuf.ByteString
getNamesBytes(int index);
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
io.seldon.protos.PredictionProtos.Tensor getTensor();
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
io.seldon.protos.PredictionProtos.TensorOrBuilder getTensorOrBuilder();
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
com.google.protobuf.ListValue getNdarray();
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
com.google.protobuf.ListValueOrBuilder getNdarrayOrBuilder();
public io.seldon.protos.PredictionProtos.DefaultData.DataOneofCase getDataOneofCase();
}
/**
* Protobuf type {@code seldon.protos.DefaultData}
*/
public static final class DefaultData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:seldon.protos.DefaultData)
DefaultDataOrBuilder {
// Use DefaultData.newBuilder() to construct.
private DefaultData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DefaultData() {
names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private DefaultData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
names_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
names_.add(s);
break;
}
case 18: {
io.seldon.protos.PredictionProtos.Tensor.Builder subBuilder = null;
if (dataOneofCase_ == 2) {
subBuilder = ((io.seldon.protos.PredictionProtos.Tensor) dataOneof_).toBuilder();
}
dataOneof_ =
input.readMessage(io.seldon.protos.PredictionProtos.Tensor.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.seldon.protos.PredictionProtos.Tensor) dataOneof_);
dataOneof_ = subBuilder.buildPartial();
}
dataOneofCase_ = 2;
break;
}
case 26: {
com.google.protobuf.ListValue.Builder subBuilder = null;
if (dataOneofCase_ == 3) {
subBuilder = ((com.google.protobuf.ListValue) dataOneof_).toBuilder();
}
dataOneof_ =
input.readMessage(com.google.protobuf.ListValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.ListValue) dataOneof_);
dataOneof_ = subBuilder.buildPartial();
}
dataOneofCase_ = 3;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
names_ = names_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_DefaultData_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_DefaultData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.DefaultData.class, io.seldon.protos.PredictionProtos.DefaultData.Builder.class);
}
private int bitField0_;
private int dataOneofCase_ = 0;
private java.lang.Object dataOneof_;
public enum DataOneofCase
implements com.google.protobuf.Internal.EnumLite {
TENSOR(2),
NDARRAY(3),
DATAONEOF_NOT_SET(0);
private final int value;
private DataOneofCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataOneofCase valueOf(int value) {
return forNumber(value);
}
public static DataOneofCase forNumber(int value) {
switch (value) {
case 2: return TENSOR;
case 3: return NDARRAY;
case 0: return DATAONEOF_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DataOneofCase
getDataOneofCase() {
return DataOneofCase.forNumber(
dataOneofCase_);
}
public static final int NAMES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList names_;
/**
* repeated string names = 1;
*/
public com.google.protobuf.ProtocolStringList
getNamesList() {
return names_;
}
/**
* repeated string names = 1;
*/
public int getNamesCount() {
return names_.size();
}
/**
* repeated string names = 1;
*/
public java.lang.String getNames(int index) {
return names_.get(index);
}
/**
* repeated string names = 1;
*/
public com.google.protobuf.ByteString
getNamesBytes(int index) {
return names_.getByteString(index);
}
public static final int TENSOR_FIELD_NUMBER = 2;
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
public io.seldon.protos.PredictionProtos.Tensor getTensor() {
if (dataOneofCase_ == 2) {
return (io.seldon.protos.PredictionProtos.Tensor) dataOneof_;
}
return io.seldon.protos.PredictionProtos.Tensor.getDefaultInstance();
}
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
public io.seldon.protos.PredictionProtos.TensorOrBuilder getTensorOrBuilder() {
if (dataOneofCase_ == 2) {
return (io.seldon.protos.PredictionProtos.Tensor) dataOneof_;
}
return io.seldon.protos.PredictionProtos.Tensor.getDefaultInstance();
}
public static final int NDARRAY_FIELD_NUMBER = 3;
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
public com.google.protobuf.ListValue getNdarray() {
if (dataOneofCase_ == 3) {
return (com.google.protobuf.ListValue) dataOneof_;
}
return com.google.protobuf.ListValue.getDefaultInstance();
}
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
public com.google.protobuf.ListValueOrBuilder getNdarrayOrBuilder() {
if (dataOneofCase_ == 3) {
return (com.google.protobuf.ListValue) dataOneof_;
}
return com.google.protobuf.ListValue.getDefaultInstance();
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < names_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i));
}
if (dataOneofCase_ == 2) {
output.writeMessage(2, (io.seldon.protos.PredictionProtos.Tensor) dataOneof_);
}
if (dataOneofCase_ == 3) {
output.writeMessage(3, (com.google.protobuf.ListValue) dataOneof_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < names_.size(); i++) {
dataSize += computeStringSizeNoTag(names_.getRaw(i));
}
size += dataSize;
size += 1 * getNamesList().size();
}
if (dataOneofCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.seldon.protos.PredictionProtos.Tensor) dataOneof_);
}
if (dataOneofCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.google.protobuf.ListValue) dataOneof_);
}
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 io.seldon.protos.PredictionProtos.DefaultData)) {
return super.equals(obj);
}
io.seldon.protos.PredictionProtos.DefaultData other = (io.seldon.protos.PredictionProtos.DefaultData) obj;
boolean result = true;
result = result && getNamesList()
.equals(other.getNamesList());
result = result && getDataOneofCase().equals(
other.getDataOneofCase());
if (!result) return false;
switch (dataOneofCase_) {
case 2:
result = result && getTensor()
.equals(other.getTensor());
break;
case 3:
result = result && getNdarray()
.equals(other.getNdarray());
break;
case 0:
default:
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getNamesCount() > 0) {
hash = (37 * hash) + NAMES_FIELD_NUMBER;
hash = (53 * hash) + getNamesList().hashCode();
}
switch (dataOneofCase_) {
case 2:
hash = (37 * hash) + TENSOR_FIELD_NUMBER;
hash = (53 * hash) + getTensor().hashCode();
break;
case 3:
hash = (37 * hash) + NDARRAY_FIELD_NUMBER;
hash = (53 * hash) + getNdarray().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.seldon.protos.PredictionProtos.DefaultData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.DefaultData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.DefaultData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.DefaultData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.DefaultData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.DefaultData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.DefaultData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.DefaultData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.DefaultData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.DefaultData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.seldon.protos.PredictionProtos.DefaultData 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code seldon.protos.DefaultData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:seldon.protos.DefaultData)
io.seldon.protos.PredictionProtos.DefaultDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_DefaultData_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_DefaultData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.DefaultData.class, io.seldon.protos.PredictionProtos.DefaultData.Builder.class);
}
// Construct using io.seldon.protos.PredictionProtos.DefaultData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
dataOneofCase_ = 0;
dataOneof_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_DefaultData_descriptor;
}
public io.seldon.protos.PredictionProtos.DefaultData getDefaultInstanceForType() {
return io.seldon.protos.PredictionProtos.DefaultData.getDefaultInstance();
}
public io.seldon.protos.PredictionProtos.DefaultData build() {
io.seldon.protos.PredictionProtos.DefaultData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.seldon.protos.PredictionProtos.DefaultData buildPartial() {
io.seldon.protos.PredictionProtos.DefaultData result = new io.seldon.protos.PredictionProtos.DefaultData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
names_ = names_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.names_ = names_;
if (dataOneofCase_ == 2) {
if (tensorBuilder_ == null) {
result.dataOneof_ = dataOneof_;
} else {
result.dataOneof_ = tensorBuilder_.build();
}
}
if (dataOneofCase_ == 3) {
if (ndarrayBuilder_ == null) {
result.dataOneof_ = dataOneof_;
} else {
result.dataOneof_ = ndarrayBuilder_.build();
}
}
result.bitField0_ = to_bitField0_;
result.dataOneofCase_ = dataOneofCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.seldon.protos.PredictionProtos.DefaultData) {
return mergeFrom((io.seldon.protos.PredictionProtos.DefaultData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.seldon.protos.PredictionProtos.DefaultData other) {
if (other == io.seldon.protos.PredictionProtos.DefaultData.getDefaultInstance()) return this;
if (!other.names_.isEmpty()) {
if (names_.isEmpty()) {
names_ = other.names_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNamesIsMutable();
names_.addAll(other.names_);
}
onChanged();
}
switch (other.getDataOneofCase()) {
case TENSOR: {
mergeTensor(other.getTensor());
break;
}
case NDARRAY: {
mergeNdarray(other.getNdarray());
break;
}
case DATAONEOF_NOT_SET: {
break;
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.seldon.protos.PredictionProtos.DefaultData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.seldon.protos.PredictionProtos.DefaultData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int dataOneofCase_ = 0;
private java.lang.Object dataOneof_;
public DataOneofCase
getDataOneofCase() {
return DataOneofCase.forNumber(
dataOneofCase_);
}
public Builder clearDataOneof() {
dataOneofCase_ = 0;
dataOneof_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureNamesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
names_ = new com.google.protobuf.LazyStringArrayList(names_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string names = 1;
*/
public com.google.protobuf.ProtocolStringList
getNamesList() {
return names_.getUnmodifiableView();
}
/**
* repeated string names = 1;
*/
public int getNamesCount() {
return names_.size();
}
/**
* repeated string names = 1;
*/
public java.lang.String getNames(int index) {
return names_.get(index);
}
/**
* repeated string names = 1;
*/
public com.google.protobuf.ByteString
getNamesBytes(int index) {
return names_.getByteString(index);
}
/**
* repeated string names = 1;
*/
public Builder setNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNamesIsMutable();
names_.set(index, value);
onChanged();
return this;
}
/**
* repeated string names = 1;
*/
public Builder addNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNamesIsMutable();
names_.add(value);
onChanged();
return this;
}
/**
* repeated string names = 1;
*/
public Builder addAllNames(
java.lang.Iterable values) {
ensureNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, names_);
onChanged();
return this;
}
/**
* repeated string names = 1;
*/
public Builder clearNames() {
names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string names = 1;
*/
public Builder addNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureNamesIsMutable();
names_.add(value);
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.Tensor, io.seldon.protos.PredictionProtos.Tensor.Builder, io.seldon.protos.PredictionProtos.TensorOrBuilder> tensorBuilder_;
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
public io.seldon.protos.PredictionProtos.Tensor getTensor() {
if (tensorBuilder_ == null) {
if (dataOneofCase_ == 2) {
return (io.seldon.protos.PredictionProtos.Tensor) dataOneof_;
}
return io.seldon.protos.PredictionProtos.Tensor.getDefaultInstance();
} else {
if (dataOneofCase_ == 2) {
return tensorBuilder_.getMessage();
}
return io.seldon.protos.PredictionProtos.Tensor.getDefaultInstance();
}
}
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
public Builder setTensor(io.seldon.protos.PredictionProtos.Tensor value) {
if (tensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataOneof_ = value;
onChanged();
} else {
tensorBuilder_.setMessage(value);
}
dataOneofCase_ = 2;
return this;
}
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
public Builder setTensor(
io.seldon.protos.PredictionProtos.Tensor.Builder builderForValue) {
if (tensorBuilder_ == null) {
dataOneof_ = builderForValue.build();
onChanged();
} else {
tensorBuilder_.setMessage(builderForValue.build());
}
dataOneofCase_ = 2;
return this;
}
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
public Builder mergeTensor(io.seldon.protos.PredictionProtos.Tensor value) {
if (tensorBuilder_ == null) {
if (dataOneofCase_ == 2 &&
dataOneof_ != io.seldon.protos.PredictionProtos.Tensor.getDefaultInstance()) {
dataOneof_ = io.seldon.protos.PredictionProtos.Tensor.newBuilder((io.seldon.protos.PredictionProtos.Tensor) dataOneof_)
.mergeFrom(value).buildPartial();
} else {
dataOneof_ = value;
}
onChanged();
} else {
if (dataOneofCase_ == 2) {
tensorBuilder_.mergeFrom(value);
}
tensorBuilder_.setMessage(value);
}
dataOneofCase_ = 2;
return this;
}
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
public Builder clearTensor() {
if (tensorBuilder_ == null) {
if (dataOneofCase_ == 2) {
dataOneofCase_ = 0;
dataOneof_ = null;
onChanged();
}
} else {
if (dataOneofCase_ == 2) {
dataOneofCase_ = 0;
dataOneof_ = null;
}
tensorBuilder_.clear();
}
return this;
}
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
public io.seldon.protos.PredictionProtos.Tensor.Builder getTensorBuilder() {
return getTensorFieldBuilder().getBuilder();
}
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
public io.seldon.protos.PredictionProtos.TensorOrBuilder getTensorOrBuilder() {
if ((dataOneofCase_ == 2) && (tensorBuilder_ != null)) {
return tensorBuilder_.getMessageOrBuilder();
} else {
if (dataOneofCase_ == 2) {
return (io.seldon.protos.PredictionProtos.Tensor) dataOneof_;
}
return io.seldon.protos.PredictionProtos.Tensor.getDefaultInstance();
}
}
/**
* optional .seldon.protos.Tensor tensor = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.Tensor, io.seldon.protos.PredictionProtos.Tensor.Builder, io.seldon.protos.PredictionProtos.TensorOrBuilder>
getTensorFieldBuilder() {
if (tensorBuilder_ == null) {
if (!(dataOneofCase_ == 2)) {
dataOneof_ = io.seldon.protos.PredictionProtos.Tensor.getDefaultInstance();
}
tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.Tensor, io.seldon.protos.PredictionProtos.Tensor.Builder, io.seldon.protos.PredictionProtos.TensorOrBuilder>(
(io.seldon.protos.PredictionProtos.Tensor) dataOneof_,
getParentForChildren(),
isClean());
dataOneof_ = null;
}
dataOneofCase_ = 2;
onChanged();;
return tensorBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> ndarrayBuilder_;
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
public com.google.protobuf.ListValue getNdarray() {
if (ndarrayBuilder_ == null) {
if (dataOneofCase_ == 3) {
return (com.google.protobuf.ListValue) dataOneof_;
}
return com.google.protobuf.ListValue.getDefaultInstance();
} else {
if (dataOneofCase_ == 3) {
return ndarrayBuilder_.getMessage();
}
return com.google.protobuf.ListValue.getDefaultInstance();
}
}
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
public Builder setNdarray(com.google.protobuf.ListValue value) {
if (ndarrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataOneof_ = value;
onChanged();
} else {
ndarrayBuilder_.setMessage(value);
}
dataOneofCase_ = 3;
return this;
}
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
public Builder setNdarray(
com.google.protobuf.ListValue.Builder builderForValue) {
if (ndarrayBuilder_ == null) {
dataOneof_ = builderForValue.build();
onChanged();
} else {
ndarrayBuilder_.setMessage(builderForValue.build());
}
dataOneofCase_ = 3;
return this;
}
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
public Builder mergeNdarray(com.google.protobuf.ListValue value) {
if (ndarrayBuilder_ == null) {
if (dataOneofCase_ == 3 &&
dataOneof_ != com.google.protobuf.ListValue.getDefaultInstance()) {
dataOneof_ = com.google.protobuf.ListValue.newBuilder((com.google.protobuf.ListValue) dataOneof_)
.mergeFrom(value).buildPartial();
} else {
dataOneof_ = value;
}
onChanged();
} else {
if (dataOneofCase_ == 3) {
ndarrayBuilder_.mergeFrom(value);
}
ndarrayBuilder_.setMessage(value);
}
dataOneofCase_ = 3;
return this;
}
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
public Builder clearNdarray() {
if (ndarrayBuilder_ == null) {
if (dataOneofCase_ == 3) {
dataOneofCase_ = 0;
dataOneof_ = null;
onChanged();
}
} else {
if (dataOneofCase_ == 3) {
dataOneofCase_ = 0;
dataOneof_ = null;
}
ndarrayBuilder_.clear();
}
return this;
}
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
public com.google.protobuf.ListValue.Builder getNdarrayBuilder() {
return getNdarrayFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
public com.google.protobuf.ListValueOrBuilder getNdarrayOrBuilder() {
if ((dataOneofCase_ == 3) && (ndarrayBuilder_ != null)) {
return ndarrayBuilder_.getMessageOrBuilder();
} else {
if (dataOneofCase_ == 3) {
return (com.google.protobuf.ListValue) dataOneof_;
}
return com.google.protobuf.ListValue.getDefaultInstance();
}
}
/**
* optional .google.protobuf.ListValue ndarray = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>
getNdarrayFieldBuilder() {
if (ndarrayBuilder_ == null) {
if (!(dataOneofCase_ == 3)) {
dataOneof_ = com.google.protobuf.ListValue.getDefaultInstance();
}
ndarrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>(
(com.google.protobuf.ListValue) dataOneof_,
getParentForChildren(),
isClean());
dataOneof_ = null;
}
dataOneofCase_ = 3;
onChanged();;
return ndarrayBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:seldon.protos.DefaultData)
}
// @@protoc_insertion_point(class_scope:seldon.protos.DefaultData)
private static final io.seldon.protos.PredictionProtos.DefaultData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.seldon.protos.PredictionProtos.DefaultData();
}
public static io.seldon.protos.PredictionProtos.DefaultData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DefaultData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DefaultData(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.seldon.protos.PredictionProtos.DefaultData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TensorOrBuilder extends
// @@protoc_insertion_point(interface_extends:seldon.protos.Tensor)
com.google.protobuf.MessageOrBuilder {
/**
* repeated int32 shape = 1 [packed = true];
*/
java.util.List getShapeList();
/**
* repeated int32 shape = 1 [packed = true];
*/
int getShapeCount();
/**
* repeated int32 shape = 1 [packed = true];
*/
int getShape(int index);
/**
* repeated double values = 2 [packed = true];
*/
java.util.List getValuesList();
/**
* repeated double values = 2 [packed = true];
*/
int getValuesCount();
/**
* repeated double values = 2 [packed = true];
*/
double getValues(int index);
}
/**
* Protobuf type {@code seldon.protos.Tensor}
*/
public static final class Tensor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:seldon.protos.Tensor)
TensorOrBuilder {
// Use Tensor.newBuilder() to construct.
private Tensor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Tensor() {
shape_ = java.util.Collections.emptyList();
values_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Tensor(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
shape_.add(input.readInt32());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
shape_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 17: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
values_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
values_.add(input.readDouble());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
values_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
values_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
values_ = java.util.Collections.unmodifiableList(values_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Tensor_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Tensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.Tensor.class, io.seldon.protos.PredictionProtos.Tensor.Builder.class);
}
public static final int SHAPE_FIELD_NUMBER = 1;
private java.util.List shape_;
/**
* repeated int32 shape = 1 [packed = true];
*/
public java.util.List
getShapeList() {
return shape_;
}
/**
* repeated int32 shape = 1 [packed = true];
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated int32 shape = 1 [packed = true];
*/
public int getShape(int index) {
return shape_.get(index);
}
private int shapeMemoizedSerializedSize = -1;
public static final int VALUES_FIELD_NUMBER = 2;
private java.util.List values_;
/**
* repeated double values = 2 [packed = true];
*/
public java.util.List
getValuesList() {
return values_;
}
/**
* repeated double values = 2 [packed = true];
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated double values = 2 [packed = true];
*/
public double getValues(int index) {
return values_.get(index);
}
private int valuesMemoizedSerializedSize = -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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getShapeList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(shapeMemoizedSerializedSize);
}
for (int i = 0; i < shape_.size(); i++) {
output.writeInt32NoTag(shape_.get(i));
}
if (getValuesList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(valuesMemoizedSerializedSize);
}
for (int i = 0; i < values_.size(); i++) {
output.writeDoubleNoTag(values_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < shape_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(shape_.get(i));
}
size += dataSize;
if (!getShapeList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
shapeMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getValuesList().size();
size += dataSize;
if (!getValuesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
valuesMemoizedSerializedSize = dataSize;
}
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 io.seldon.protos.PredictionProtos.Tensor)) {
return super.equals(obj);
}
io.seldon.protos.PredictionProtos.Tensor other = (io.seldon.protos.PredictionProtos.Tensor) obj;
boolean result = true;
result = result && getShapeList()
.equals(other.getShapeList());
result = result && getValuesList()
.equals(other.getValuesList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getShapeCount() > 0) {
hash = (37 * hash) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShapeList().hashCode();
}
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.seldon.protos.PredictionProtos.Tensor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.Tensor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Tensor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.Tensor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Tensor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Tensor parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Tensor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Tensor parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Tensor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Tensor parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.seldon.protos.PredictionProtos.Tensor 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code seldon.protos.Tensor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:seldon.protos.Tensor)
io.seldon.protos.PredictionProtos.TensorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Tensor_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Tensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.Tensor.class, io.seldon.protos.PredictionProtos.Tensor.Builder.class);
}
// Construct using io.seldon.protos.PredictionProtos.Tensor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Tensor_descriptor;
}
public io.seldon.protos.PredictionProtos.Tensor getDefaultInstanceForType() {
return io.seldon.protos.PredictionProtos.Tensor.getDefaultInstance();
}
public io.seldon.protos.PredictionProtos.Tensor build() {
io.seldon.protos.PredictionProtos.Tensor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.seldon.protos.PredictionProtos.Tensor buildPartial() {
io.seldon.protos.PredictionProtos.Tensor result = new io.seldon.protos.PredictionProtos.Tensor(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.shape_ = shape_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.values_ = values_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.seldon.protos.PredictionProtos.Tensor) {
return mergeFrom((io.seldon.protos.PredictionProtos.Tensor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.seldon.protos.PredictionProtos.Tensor other) {
if (other == io.seldon.protos.PredictionProtos.Tensor.getDefaultInstance()) return this;
if (!other.shape_.isEmpty()) {
if (shape_.isEmpty()) {
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureShapeIsMutable();
shape_.addAll(other.shape_);
}
onChanged();
}
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.seldon.protos.PredictionProtos.Tensor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.seldon.protos.PredictionProtos.Tensor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List shape_ = java.util.Collections.emptyList();
private void ensureShapeIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
shape_ = new java.util.ArrayList(shape_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int32 shape = 1 [packed = true];
*/
public java.util.List
getShapeList() {
return java.util.Collections.unmodifiableList(shape_);
}
/**
* repeated int32 shape = 1 [packed = true];
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated int32 shape = 1 [packed = true];
*/
public int getShape(int index) {
return shape_.get(index);
}
/**
* repeated int32 shape = 1 [packed = true];
*/
public Builder setShape(
int index, int value) {
ensureShapeIsMutable();
shape_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 shape = 1 [packed = true];
*/
public Builder addShape(int value) {
ensureShapeIsMutable();
shape_.add(value);
onChanged();
return this;
}
/**
* repeated int32 shape = 1 [packed = true];
*/
public Builder addAllShape(
java.lang.Iterable extends java.lang.Integer> values) {
ensureShapeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shape_);
onChanged();
return this;
}
/**
* repeated int32 shape = 1 [packed = true];
*/
public Builder clearShape() {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List values_ = java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated double values = 2 [packed = true];
*/
public java.util.List
getValuesList() {
return java.util.Collections.unmodifiableList(values_);
}
/**
* repeated double values = 2 [packed = true];
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated double values = 2 [packed = true];
*/
public double getValues(int index) {
return values_.get(index);
}
/**
* repeated double values = 2 [packed = true];
*/
public Builder setValues(
int index, double value) {
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
return this;
}
/**
* repeated double values = 2 [packed = true];
*/
public Builder addValues(double value) {
ensureValuesIsMutable();
values_.add(value);
onChanged();
return this;
}
/**
* repeated double values = 2 [packed = true];
*/
public Builder addAllValues(
java.lang.Iterable extends java.lang.Double> values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
* repeated double values = 2 [packed = true];
*/
public Builder clearValues() {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:seldon.protos.Tensor)
}
// @@protoc_insertion_point(class_scope:seldon.protos.Tensor)
private static final io.seldon.protos.PredictionProtos.Tensor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.seldon.protos.PredictionProtos.Tensor();
}
public static io.seldon.protos.PredictionProtos.Tensor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Tensor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Tensor(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.seldon.protos.PredictionProtos.Tensor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MetaOrBuilder extends
// @@protoc_insertion_point(interface_extends:seldon.protos.Meta)
com.google.protobuf.MessageOrBuilder {
/**
* optional string puid = 1;
*/
java.lang.String getPuid();
/**
* optional string puid = 1;
*/
com.google.protobuf.ByteString
getPuidBytes();
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
int getTagsCount();
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
boolean containsTags(
java.lang.String key);
/**
* Use {@link #getTagsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getTags();
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
java.util.Map
getTagsMap();
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
com.google.protobuf.Value getTagsOrDefault(
java.lang.String key,
com.google.protobuf.Value defaultValue);
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
com.google.protobuf.Value getTagsOrThrow(
java.lang.String key);
/**
* map<string, int32> routing = 3;
*/
int getRoutingCount();
/**
* map<string, int32> routing = 3;
*/
boolean containsRouting(
java.lang.String key);
/**
* Use {@link #getRoutingMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getRouting();
/**
* map<string, int32> routing = 3;
*/
java.util.Map
getRoutingMap();
/**
* map<string, int32> routing = 3;
*/
int getRoutingOrDefault(
java.lang.String key,
int defaultValue);
/**
* map<string, int32> routing = 3;
*/
int getRoutingOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code seldon.protos.Meta}
*/
public static final class Meta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:seldon.protos.Meta)
MetaOrBuilder {
// Use Meta.newBuilder() to construct.
private Meta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Meta() {
puid_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Meta(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
puid_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
tags_ = com.google.protobuf.MapField.newMapField(
TagsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
tags__ = input.readMessage(
TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
tags_.getMutableMap().put(
tags__.getKey(), tags__.getValue());
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
routing_ = com.google.protobuf.MapField.newMapField(
RoutingDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
routing__ = input.readMessage(
RoutingDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
routing_.getMutableMap().put(
routing__.getKey(), routing__.getValue());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Meta_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetTags();
case 3:
return internalGetRouting();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Meta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.Meta.class, io.seldon.protos.PredictionProtos.Meta.Builder.class);
}
private int bitField0_;
public static final int PUID_FIELD_NUMBER = 1;
private volatile java.lang.Object puid_;
/**
* optional string puid = 1;
*/
public java.lang.String getPuid() {
java.lang.Object ref = puid_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
puid_ = s;
return s;
}
}
/**
* optional string puid = 1;
*/
public com.google.protobuf.ByteString
getPuidBytes() {
java.lang.Object ref = puid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
puid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TAGS_FIELD_NUMBER = 2;
private static final class TagsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.protobuf.Value> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Meta_TagsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.protobuf.Value.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, com.google.protobuf.Value> tags_;
private com.google.protobuf.MapField
internalGetTags() {
if (tags_ == null) {
return com.google.protobuf.MapField.emptyMapField(
TagsDefaultEntryHolder.defaultEntry);
}
return tags_;
}
public int getTagsCount() {
return internalGetTags().getMap().size();
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public boolean containsTags(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetTags().getMap().containsKey(key);
}
/**
* Use {@link #getTagsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getTags() {
return getTagsMap();
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public java.util.Map getTagsMap() {
return internalGetTags().getMap();
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public com.google.protobuf.Value getTagsOrDefault(
java.lang.String key,
com.google.protobuf.Value defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetTags().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public com.google.protobuf.Value getTagsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetTags().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ROUTING_FIELD_NUMBER = 3;
private static final class RoutingDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Meta_RoutingEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.INT32,
0);
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Integer> routing_;
private com.google.protobuf.MapField
internalGetRouting() {
if (routing_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RoutingDefaultEntryHolder.defaultEntry);
}
return routing_;
}
public int getRoutingCount() {
return internalGetRouting().getMap().size();
}
/**
* map<string, int32> routing = 3;
*/
public boolean containsRouting(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetRouting().getMap().containsKey(key);
}
/**
* Use {@link #getRoutingMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getRouting() {
return getRoutingMap();
}
/**
* map<string, int32> routing = 3;
*/
public java.util.Map getRoutingMap() {
return internalGetRouting().getMap();
}
/**
* map<string, int32> routing = 3;
*/
public int getRoutingOrDefault(
java.lang.String key,
int defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetRouting().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, int32> routing = 3;
*/
public int getRoutingOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetRouting().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getPuidBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, puid_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetTags(),
TagsDefaultEntryHolder.defaultEntry,
2);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetRouting(),
RoutingDefaultEntryHolder.defaultEntry,
3);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPuidBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, puid_);
}
for (java.util.Map.Entry entry
: internalGetTags().getMap().entrySet()) {
com.google.protobuf.MapEntry
tags__ = TagsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, tags__);
}
for (java.util.Map.Entry entry
: internalGetRouting().getMap().entrySet()) {
com.google.protobuf.MapEntry
routing__ = RoutingDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, routing__);
}
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 io.seldon.protos.PredictionProtos.Meta)) {
return super.equals(obj);
}
io.seldon.protos.PredictionProtos.Meta other = (io.seldon.protos.PredictionProtos.Meta) obj;
boolean result = true;
result = result && getPuid()
.equals(other.getPuid());
result = result && internalGetTags().equals(
other.internalGetTags());
result = result && internalGetRouting().equals(
other.internalGetRouting());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + PUID_FIELD_NUMBER;
hash = (53 * hash) + getPuid().hashCode();
if (!internalGetTags().getMap().isEmpty()) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + internalGetTags().hashCode();
}
if (!internalGetRouting().getMap().isEmpty()) {
hash = (37 * hash) + ROUTING_FIELD_NUMBER;
hash = (53 * hash) + internalGetRouting().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.seldon.protos.PredictionProtos.Meta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.Meta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Meta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.Meta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Meta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Meta parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Meta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Meta parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Meta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Meta parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.seldon.protos.PredictionProtos.Meta 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code seldon.protos.Meta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:seldon.protos.Meta)
io.seldon.protos.PredictionProtos.MetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Meta_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetTags();
case 3:
return internalGetRouting();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableTags();
case 3:
return internalGetMutableRouting();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Meta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.Meta.class, io.seldon.protos.PredictionProtos.Meta.Builder.class);
}
// Construct using io.seldon.protos.PredictionProtos.Meta.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
puid_ = "";
internalGetMutableTags().clear();
internalGetMutableRouting().clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Meta_descriptor;
}
public io.seldon.protos.PredictionProtos.Meta getDefaultInstanceForType() {
return io.seldon.protos.PredictionProtos.Meta.getDefaultInstance();
}
public io.seldon.protos.PredictionProtos.Meta build() {
io.seldon.protos.PredictionProtos.Meta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.seldon.protos.PredictionProtos.Meta buildPartial() {
io.seldon.protos.PredictionProtos.Meta result = new io.seldon.protos.PredictionProtos.Meta(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.puid_ = puid_;
result.tags_ = internalGetTags();
result.tags_.makeImmutable();
result.routing_ = internalGetRouting();
result.routing_.makeImmutable();
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.seldon.protos.PredictionProtos.Meta) {
return mergeFrom((io.seldon.protos.PredictionProtos.Meta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.seldon.protos.PredictionProtos.Meta other) {
if (other == io.seldon.protos.PredictionProtos.Meta.getDefaultInstance()) return this;
if (!other.getPuid().isEmpty()) {
puid_ = other.puid_;
onChanged();
}
internalGetMutableTags().mergeFrom(
other.internalGetTags());
internalGetMutableRouting().mergeFrom(
other.internalGetRouting());
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.seldon.protos.PredictionProtos.Meta parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.seldon.protos.PredictionProtos.Meta) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object puid_ = "";
/**
* optional string puid = 1;
*/
public java.lang.String getPuid() {
java.lang.Object ref = puid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
puid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string puid = 1;
*/
public com.google.protobuf.ByteString
getPuidBytes() {
java.lang.Object ref = puid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
puid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string puid = 1;
*/
public Builder setPuid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
puid_ = value;
onChanged();
return this;
}
/**
* optional string puid = 1;
*/
public Builder clearPuid() {
puid_ = getDefaultInstance().getPuid();
onChanged();
return this;
}
/**
* optional string puid = 1;
*/
public Builder setPuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
puid_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, com.google.protobuf.Value> tags_;
private com.google.protobuf.MapField
internalGetTags() {
if (tags_ == null) {
return com.google.protobuf.MapField.emptyMapField(
TagsDefaultEntryHolder.defaultEntry);
}
return tags_;
}
private com.google.protobuf.MapField
internalGetMutableTags() {
onChanged();;
if (tags_ == null) {
tags_ = com.google.protobuf.MapField.newMapField(
TagsDefaultEntryHolder.defaultEntry);
}
if (!tags_.isMutable()) {
tags_ = tags_.copy();
}
return tags_;
}
public int getTagsCount() {
return internalGetTags().getMap().size();
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public boolean containsTags(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetTags().getMap().containsKey(key);
}
/**
* Use {@link #getTagsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getTags() {
return getTagsMap();
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public java.util.Map getTagsMap() {
return internalGetTags().getMap();
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public com.google.protobuf.Value getTagsOrDefault(
java.lang.String key,
com.google.protobuf.Value defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetTags().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public com.google.protobuf.Value getTagsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetTags().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearTags() {
getMutableTags().clear();
return this;
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public Builder removeTags(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
getMutableTags().remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableTags() {
return internalGetMutableTags().getMutableMap();
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public Builder putTags(
java.lang.String key,
com.google.protobuf.Value value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
getMutableTags().put(key, value);
return this;
}
/**
* map<string, .google.protobuf.Value> tags = 2;
*/
public Builder putAllTags(
java.util.Map values) {
getMutableTags().putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Integer> routing_;
private com.google.protobuf.MapField
internalGetRouting() {
if (routing_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RoutingDefaultEntryHolder.defaultEntry);
}
return routing_;
}
private com.google.protobuf.MapField
internalGetMutableRouting() {
onChanged();;
if (routing_ == null) {
routing_ = com.google.protobuf.MapField.newMapField(
RoutingDefaultEntryHolder.defaultEntry);
}
if (!routing_.isMutable()) {
routing_ = routing_.copy();
}
return routing_;
}
public int getRoutingCount() {
return internalGetRouting().getMap().size();
}
/**
* map<string, int32> routing = 3;
*/
public boolean containsRouting(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetRouting().getMap().containsKey(key);
}
/**
* Use {@link #getRoutingMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getRouting() {
return getRoutingMap();
}
/**
* map<string, int32> routing = 3;
*/
public java.util.Map getRoutingMap() {
return internalGetRouting().getMap();
}
/**
* map<string, int32> routing = 3;
*/
public int getRoutingOrDefault(
java.lang.String key,
int defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetRouting().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, int32> routing = 3;
*/
public int getRoutingOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetRouting().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearRouting() {
getMutableRouting().clear();
return this;
}
/**
* map<string, int32> routing = 3;
*/
public Builder removeRouting(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
getMutableRouting().remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableRouting() {
return internalGetMutableRouting().getMutableMap();
}
/**
* map<string, int32> routing = 3;
*/
public Builder putRouting(
java.lang.String key,
int value) {
if (key == null) { throw new java.lang.NullPointerException(); }
getMutableRouting().put(key, value);
return this;
}
/**
* map<string, int32> routing = 3;
*/
public Builder putAllRouting(
java.util.Map values) {
getMutableRouting().putAll(values);
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:seldon.protos.Meta)
}
// @@protoc_insertion_point(class_scope:seldon.protos.Meta)
private static final io.seldon.protos.PredictionProtos.Meta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.seldon.protos.PredictionProtos.Meta();
}
public static io.seldon.protos.PredictionProtos.Meta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Meta parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Meta(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.seldon.protos.PredictionProtos.Meta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SeldonMessageListOrBuilder extends
// @@protoc_insertion_point(interface_extends:seldon.protos.SeldonMessageList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
java.util.List
getSeldonMessagesList();
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
io.seldon.protos.PredictionProtos.SeldonMessage getSeldonMessages(int index);
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
int getSeldonMessagesCount();
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
java.util.List extends io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>
getSeldonMessagesOrBuilderList();
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getSeldonMessagesOrBuilder(
int index);
}
/**
* Protobuf type {@code seldon.protos.SeldonMessageList}
*/
public static final class SeldonMessageList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:seldon.protos.SeldonMessageList)
SeldonMessageListOrBuilder {
// Use SeldonMessageList.newBuilder() to construct.
private SeldonMessageList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SeldonMessageList() {
seldonMessages_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private SeldonMessageList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
seldonMessages_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
seldonMessages_.add(
input.readMessage(io.seldon.protos.PredictionProtos.SeldonMessage.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
seldonMessages_ = java.util.Collections.unmodifiableList(seldonMessages_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_SeldonMessageList_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_SeldonMessageList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.SeldonMessageList.class, io.seldon.protos.PredictionProtos.SeldonMessageList.Builder.class);
}
public static final int SELDONMESSAGES_FIELD_NUMBER = 1;
private java.util.List seldonMessages_;
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public java.util.List getSeldonMessagesList() {
return seldonMessages_;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public java.util.List extends io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>
getSeldonMessagesOrBuilderList() {
return seldonMessages_;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public int getSeldonMessagesCount() {
return seldonMessages_.size();
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getSeldonMessages(int index) {
return seldonMessages_.get(index);
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getSeldonMessagesOrBuilder(
int index) {
return seldonMessages_.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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < seldonMessages_.size(); i++) {
output.writeMessage(1, seldonMessages_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < seldonMessages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, seldonMessages_.get(i));
}
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 io.seldon.protos.PredictionProtos.SeldonMessageList)) {
return super.equals(obj);
}
io.seldon.protos.PredictionProtos.SeldonMessageList other = (io.seldon.protos.PredictionProtos.SeldonMessageList) obj;
boolean result = true;
result = result && getSeldonMessagesList()
.equals(other.getSeldonMessagesList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getSeldonMessagesCount() > 0) {
hash = (37 * hash) + SELDONMESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getSeldonMessagesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.seldon.protos.PredictionProtos.SeldonMessageList 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code seldon.protos.SeldonMessageList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:seldon.protos.SeldonMessageList)
io.seldon.protos.PredictionProtos.SeldonMessageListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_SeldonMessageList_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_SeldonMessageList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.SeldonMessageList.class, io.seldon.protos.PredictionProtos.SeldonMessageList.Builder.class);
}
// Construct using io.seldon.protos.PredictionProtos.SeldonMessageList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSeldonMessagesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (seldonMessagesBuilder_ == null) {
seldonMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
seldonMessagesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_SeldonMessageList_descriptor;
}
public io.seldon.protos.PredictionProtos.SeldonMessageList getDefaultInstanceForType() {
return io.seldon.protos.PredictionProtos.SeldonMessageList.getDefaultInstance();
}
public io.seldon.protos.PredictionProtos.SeldonMessageList build() {
io.seldon.protos.PredictionProtos.SeldonMessageList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.seldon.protos.PredictionProtos.SeldonMessageList buildPartial() {
io.seldon.protos.PredictionProtos.SeldonMessageList result = new io.seldon.protos.PredictionProtos.SeldonMessageList(this);
int from_bitField0_ = bitField0_;
if (seldonMessagesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
seldonMessages_ = java.util.Collections.unmodifiableList(seldonMessages_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.seldonMessages_ = seldonMessages_;
} else {
result.seldonMessages_ = seldonMessagesBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.seldon.protos.PredictionProtos.SeldonMessageList) {
return mergeFrom((io.seldon.protos.PredictionProtos.SeldonMessageList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.seldon.protos.PredictionProtos.SeldonMessageList other) {
if (other == io.seldon.protos.PredictionProtos.SeldonMessageList.getDefaultInstance()) return this;
if (seldonMessagesBuilder_ == null) {
if (!other.seldonMessages_.isEmpty()) {
if (seldonMessages_.isEmpty()) {
seldonMessages_ = other.seldonMessages_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSeldonMessagesIsMutable();
seldonMessages_.addAll(other.seldonMessages_);
}
onChanged();
}
} else {
if (!other.seldonMessages_.isEmpty()) {
if (seldonMessagesBuilder_.isEmpty()) {
seldonMessagesBuilder_.dispose();
seldonMessagesBuilder_ = null;
seldonMessages_ = other.seldonMessages_;
bitField0_ = (bitField0_ & ~0x00000001);
seldonMessagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSeldonMessagesFieldBuilder() : null;
} else {
seldonMessagesBuilder_.addAllMessages(other.seldonMessages_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.seldon.protos.PredictionProtos.SeldonMessageList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.seldon.protos.PredictionProtos.SeldonMessageList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List seldonMessages_ =
java.util.Collections.emptyList();
private void ensureSeldonMessagesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
seldonMessages_ = new java.util.ArrayList(seldonMessages_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder> seldonMessagesBuilder_;
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public java.util.List getSeldonMessagesList() {
if (seldonMessagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(seldonMessages_);
} else {
return seldonMessagesBuilder_.getMessageList();
}
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public int getSeldonMessagesCount() {
if (seldonMessagesBuilder_ == null) {
return seldonMessages_.size();
} else {
return seldonMessagesBuilder_.getCount();
}
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getSeldonMessages(int index) {
if (seldonMessagesBuilder_ == null) {
return seldonMessages_.get(index);
} else {
return seldonMessagesBuilder_.getMessage(index);
}
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public Builder setSeldonMessages(
int index, io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (seldonMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSeldonMessagesIsMutable();
seldonMessages_.set(index, value);
onChanged();
} else {
seldonMessagesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public Builder setSeldonMessages(
int index, io.seldon.protos.PredictionProtos.SeldonMessage.Builder builderForValue) {
if (seldonMessagesBuilder_ == null) {
ensureSeldonMessagesIsMutable();
seldonMessages_.set(index, builderForValue.build());
onChanged();
} else {
seldonMessagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public Builder addSeldonMessages(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (seldonMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSeldonMessagesIsMutable();
seldonMessages_.add(value);
onChanged();
} else {
seldonMessagesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public Builder addSeldonMessages(
int index, io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (seldonMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSeldonMessagesIsMutable();
seldonMessages_.add(index, value);
onChanged();
} else {
seldonMessagesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public Builder addSeldonMessages(
io.seldon.protos.PredictionProtos.SeldonMessage.Builder builderForValue) {
if (seldonMessagesBuilder_ == null) {
ensureSeldonMessagesIsMutable();
seldonMessages_.add(builderForValue.build());
onChanged();
} else {
seldonMessagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public Builder addSeldonMessages(
int index, io.seldon.protos.PredictionProtos.SeldonMessage.Builder builderForValue) {
if (seldonMessagesBuilder_ == null) {
ensureSeldonMessagesIsMutable();
seldonMessages_.add(index, builderForValue.build());
onChanged();
} else {
seldonMessagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public Builder addAllSeldonMessages(
java.lang.Iterable extends io.seldon.protos.PredictionProtos.SeldonMessage> values) {
if (seldonMessagesBuilder_ == null) {
ensureSeldonMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, seldonMessages_);
onChanged();
} else {
seldonMessagesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public Builder clearSeldonMessages() {
if (seldonMessagesBuilder_ == null) {
seldonMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
seldonMessagesBuilder_.clear();
}
return this;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public Builder removeSeldonMessages(int index) {
if (seldonMessagesBuilder_ == null) {
ensureSeldonMessagesIsMutable();
seldonMessages_.remove(index);
onChanged();
} else {
seldonMessagesBuilder_.remove(index);
}
return this;
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage.Builder getSeldonMessagesBuilder(
int index) {
return getSeldonMessagesFieldBuilder().getBuilder(index);
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getSeldonMessagesOrBuilder(
int index) {
if (seldonMessagesBuilder_ == null) {
return seldonMessages_.get(index); } else {
return seldonMessagesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public java.util.List extends io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>
getSeldonMessagesOrBuilderList() {
if (seldonMessagesBuilder_ != null) {
return seldonMessagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(seldonMessages_);
}
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage.Builder addSeldonMessagesBuilder() {
return getSeldonMessagesFieldBuilder().addBuilder(
io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance());
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage.Builder addSeldonMessagesBuilder(
int index) {
return getSeldonMessagesFieldBuilder().addBuilder(
index, io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance());
}
/**
* repeated .seldon.protos.SeldonMessage seldonMessages = 1;
*/
public java.util.List
getSeldonMessagesBuilderList() {
return getSeldonMessagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>
getSeldonMessagesFieldBuilder() {
if (seldonMessagesBuilder_ == null) {
seldonMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>(
seldonMessages_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
seldonMessages_ = null;
}
return seldonMessagesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:seldon.protos.SeldonMessageList)
}
// @@protoc_insertion_point(class_scope:seldon.protos.SeldonMessageList)
private static final io.seldon.protos.PredictionProtos.SeldonMessageList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.seldon.protos.PredictionProtos.SeldonMessageList();
}
public static io.seldon.protos.PredictionProtos.SeldonMessageList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SeldonMessageList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SeldonMessageList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.seldon.protos.PredictionProtos.SeldonMessageList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:seldon.protos.Status)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 code = 1;
*/
int getCode();
/**
* optional string info = 2;
*/
java.lang.String getInfo();
/**
* optional string info = 2;
*/
com.google.protobuf.ByteString
getInfoBytes();
/**
* optional string reason = 3;
*/
java.lang.String getReason();
/**
* optional string reason = 3;
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
* optional .seldon.protos.Status.StatusFlag status = 4;
*/
int getStatusValue();
/**
* optional .seldon.protos.Status.StatusFlag status = 4;
*/
io.seldon.protos.PredictionProtos.Status.StatusFlag getStatus();
}
/**
* Protobuf type {@code seldon.protos.Status}
*/
public static final class Status extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:seldon.protos.Status)
StatusOrBuilder {
// Use Status.newBuilder() to construct.
private Status(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Status() {
code_ = 0;
info_ = "";
reason_ = "";
status_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Status(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
code_ = input.readInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
info_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
reason_ = s;
break;
}
case 32: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Status_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Status_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.Status.class, io.seldon.protos.PredictionProtos.Status.Builder.class);
}
/**
* Protobuf enum {@code seldon.protos.Status.StatusFlag}
*/
public enum StatusFlag
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SUCCESS = 0;
*/
SUCCESS(0),
/**
* FAILURE = 1;
*/
FAILURE(1),
UNRECOGNIZED(-1),
;
/**
* SUCCESS = 0;
*/
public static final int SUCCESS_VALUE = 0;
/**
* FAILURE = 1;
*/
public static final int FAILURE_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatusFlag valueOf(int value) {
return forNumber(value);
}
public static StatusFlag forNumber(int value) {
switch (value) {
case 0: return SUCCESS;
case 1: return FAILURE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StatusFlag> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StatusFlag findValueByNumber(int number) {
return StatusFlag.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.Status.getDescriptor().getEnumTypes().get(0);
}
private static final StatusFlag[] VALUES = values();
public static StatusFlag valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private StatusFlag(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:seldon.protos.Status.StatusFlag)
}
public static final int CODE_FIELD_NUMBER = 1;
private int code_;
/**
* optional int32 code = 1;
*/
public int getCode() {
return code_;
}
public static final int INFO_FIELD_NUMBER = 2;
private volatile java.lang.Object info_;
/**
* optional string info = 2;
*/
public java.lang.String getInfo() {
java.lang.Object ref = info_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
info_ = s;
return s;
}
}
/**
* optional string info = 2;
*/
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REASON_FIELD_NUMBER = 3;
private volatile java.lang.Object reason_;
/**
* optional string reason = 3;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
}
}
/**
* optional string reason = 3;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 4;
private int status_;
/**
* optional .seldon.protos.Status.StatusFlag status = 4;
*/
public int getStatusValue() {
return status_;
}
/**
* optional .seldon.protos.Status.StatusFlag status = 4;
*/
public io.seldon.protos.PredictionProtos.Status.StatusFlag getStatus() {
io.seldon.protos.PredictionProtos.Status.StatusFlag result = io.seldon.protos.PredictionProtos.Status.StatusFlag.valueOf(status_);
return result == null ? io.seldon.protos.PredictionProtos.Status.StatusFlag.UNRECOGNIZED : result;
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (code_ != 0) {
output.writeInt32(1, code_);
}
if (!getInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, info_);
}
if (!getReasonBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reason_);
}
if (status_ != io.seldon.protos.PredictionProtos.Status.StatusFlag.SUCCESS.getNumber()) {
output.writeEnum(4, status_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, code_);
}
if (!getInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, info_);
}
if (!getReasonBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reason_);
}
if (status_ != io.seldon.protos.PredictionProtos.Status.StatusFlag.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, status_);
}
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 io.seldon.protos.PredictionProtos.Status)) {
return super.equals(obj);
}
io.seldon.protos.PredictionProtos.Status other = (io.seldon.protos.PredictionProtos.Status) obj;
boolean result = true;
result = result && (getCode()
== other.getCode());
result = result && getInfo()
.equals(other.getInfo());
result = result && getReason()
.equals(other.getReason());
result = result && status_ == other.status_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.seldon.protos.PredictionProtos.Status parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.Status parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Status parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.Status parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Status parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Status parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Status parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Status parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Status parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Status parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.seldon.protos.PredictionProtos.Status 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code seldon.protos.Status}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:seldon.protos.Status)
io.seldon.protos.PredictionProtos.StatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Status_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Status_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.Status.class, io.seldon.protos.PredictionProtos.Status.Builder.class);
}
// Construct using io.seldon.protos.PredictionProtos.Status.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
code_ = 0;
info_ = "";
reason_ = "";
status_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Status_descriptor;
}
public io.seldon.protos.PredictionProtos.Status getDefaultInstanceForType() {
return io.seldon.protos.PredictionProtos.Status.getDefaultInstance();
}
public io.seldon.protos.PredictionProtos.Status build() {
io.seldon.protos.PredictionProtos.Status result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.seldon.protos.PredictionProtos.Status buildPartial() {
io.seldon.protos.PredictionProtos.Status result = new io.seldon.protos.PredictionProtos.Status(this);
result.code_ = code_;
result.info_ = info_;
result.reason_ = reason_;
result.status_ = status_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.seldon.protos.PredictionProtos.Status) {
return mergeFrom((io.seldon.protos.PredictionProtos.Status)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.seldon.protos.PredictionProtos.Status other) {
if (other == io.seldon.protos.PredictionProtos.Status.getDefaultInstance()) return this;
if (other.getCode() != 0) {
setCode(other.getCode());
}
if (!other.getInfo().isEmpty()) {
info_ = other.info_;
onChanged();
}
if (!other.getReason().isEmpty()) {
reason_ = other.reason_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.seldon.protos.PredictionProtos.Status parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.seldon.protos.PredictionProtos.Status) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int code_ ;
/**
* optional int32 code = 1;
*/
public int getCode() {
return code_;
}
/**
* optional int32 code = 1;
*/
public Builder setCode(int value) {
code_ = value;
onChanged();
return this;
}
/**
* optional int32 code = 1;
*/
public Builder clearCode() {
code_ = 0;
onChanged();
return this;
}
private java.lang.Object info_ = "";
/**
* optional string info = 2;
*/
public java.lang.String getInfo() {
java.lang.Object ref = info_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
info_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string info = 2;
*/
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string info = 2;
*/
public Builder setInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
return this;
}
/**
* optional string info = 2;
*/
public Builder clearInfo() {
info_ = getDefaultInstance().getInfo();
onChanged();
return this;
}
/**
* optional string info = 2;
*/
public Builder setInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
info_ = value;
onChanged();
return this;
}
private java.lang.Object reason_ = "";
/**
* optional string reason = 3;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string reason = 3;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string reason = 3;
*/
public Builder setReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
reason_ = value;
onChanged();
return this;
}
/**
* optional string reason = 3;
*/
public Builder clearReason() {
reason_ = getDefaultInstance().getReason();
onChanged();
return this;
}
/**
* optional string reason = 3;
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
reason_ = value;
onChanged();
return this;
}
private int status_ = 0;
/**
* optional .seldon.protos.Status.StatusFlag status = 4;
*/
public int getStatusValue() {
return status_;
}
/**
* optional .seldon.protos.Status.StatusFlag status = 4;
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* optional .seldon.protos.Status.StatusFlag status = 4;
*/
public io.seldon.protos.PredictionProtos.Status.StatusFlag getStatus() {
io.seldon.protos.PredictionProtos.Status.StatusFlag result = io.seldon.protos.PredictionProtos.Status.StatusFlag.valueOf(status_);
return result == null ? io.seldon.protos.PredictionProtos.Status.StatusFlag.UNRECOGNIZED : result;
}
/**
* optional .seldon.protos.Status.StatusFlag status = 4;
*/
public Builder setStatus(io.seldon.protos.PredictionProtos.Status.StatusFlag value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .seldon.protos.Status.StatusFlag status = 4;
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:seldon.protos.Status)
}
// @@protoc_insertion_point(class_scope:seldon.protos.Status)
private static final io.seldon.protos.PredictionProtos.Status DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.seldon.protos.PredictionProtos.Status();
}
public static io.seldon.protos.PredictionProtos.Status getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Status parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Status(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.seldon.protos.PredictionProtos.Status getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FeedbackOrBuilder extends
// @@protoc_insertion_point(interface_extends:seldon.protos.Feedback)
com.google.protobuf.MessageOrBuilder {
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
boolean hasRequest();
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
io.seldon.protos.PredictionProtos.SeldonMessage getRequest();
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getRequestOrBuilder();
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
boolean hasResponse();
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
io.seldon.protos.PredictionProtos.SeldonMessage getResponse();
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getResponseOrBuilder();
/**
* optional float reward = 3;
*/
float getReward();
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
boolean hasTruth();
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
io.seldon.protos.PredictionProtos.SeldonMessage getTruth();
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getTruthOrBuilder();
}
/**
* Protobuf type {@code seldon.protos.Feedback}
*/
public static final class Feedback extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:seldon.protos.Feedback)
FeedbackOrBuilder {
// Use Feedback.newBuilder() to construct.
private Feedback(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Feedback() {
reward_ = 0F;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Feedback(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
io.seldon.protos.PredictionProtos.SeldonMessage.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(io.seldon.protos.PredictionProtos.SeldonMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.seldon.protos.PredictionProtos.SeldonMessage.Builder subBuilder = null;
if (response_ != null) {
subBuilder = response_.toBuilder();
}
response_ = input.readMessage(io.seldon.protos.PredictionProtos.SeldonMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(response_);
response_ = subBuilder.buildPartial();
}
break;
}
case 29: {
reward_ = input.readFloat();
break;
}
case 34: {
io.seldon.protos.PredictionProtos.SeldonMessage.Builder subBuilder = null;
if (truth_ != null) {
subBuilder = truth_.toBuilder();
}
truth_ = input.readMessage(io.seldon.protos.PredictionProtos.SeldonMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(truth_);
truth_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Feedback_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Feedback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.Feedback.class, io.seldon.protos.PredictionProtos.Feedback.Builder.class);
}
public static final int REQUEST_FIELD_NUMBER = 1;
private io.seldon.protos.PredictionProtos.SeldonMessage request_;
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public boolean hasRequest() {
return request_ != null;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getRequest() {
return request_ == null ? io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : request_;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getRequestOrBuilder() {
return getRequest();
}
public static final int RESPONSE_FIELD_NUMBER = 2;
private io.seldon.protos.PredictionProtos.SeldonMessage response_;
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public boolean hasResponse() {
return response_ != null;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getResponse() {
return response_ == null ? io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : response_;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getResponseOrBuilder() {
return getResponse();
}
public static final int REWARD_FIELD_NUMBER = 3;
private float reward_;
/**
* optional float reward = 3;
*/
public float getReward() {
return reward_;
}
public static final int TRUTH_FIELD_NUMBER = 4;
private io.seldon.protos.PredictionProtos.SeldonMessage truth_;
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public boolean hasTruth() {
return truth_ != null;
}
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getTruth() {
return truth_ == null ? io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : truth_;
}
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getTruthOrBuilder() {
return getTruth();
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (request_ != null) {
output.writeMessage(1, getRequest());
}
if (response_ != null) {
output.writeMessage(2, getResponse());
}
if (reward_ != 0F) {
output.writeFloat(3, reward_);
}
if (truth_ != null) {
output.writeMessage(4, getTruth());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequest());
}
if (response_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResponse());
}
if (reward_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, reward_);
}
if (truth_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTruth());
}
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 io.seldon.protos.PredictionProtos.Feedback)) {
return super.equals(obj);
}
io.seldon.protos.PredictionProtos.Feedback other = (io.seldon.protos.PredictionProtos.Feedback) obj;
boolean result = true;
result = result && (hasRequest() == other.hasRequest());
if (hasRequest()) {
result = result && getRequest()
.equals(other.getRequest());
}
result = result && (hasResponse() == other.hasResponse());
if (hasResponse()) {
result = result && getResponse()
.equals(other.getResponse());
}
result = result && (
java.lang.Float.floatToIntBits(getReward())
== java.lang.Float.floatToIntBits(
other.getReward()));
result = result && (hasTruth() == other.hasTruth());
if (hasTruth()) {
result = result && getTruth()
.equals(other.getTruth());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
if (hasResponse()) {
hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getResponse().hashCode();
}
hash = (37 * hash) + REWARD_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getReward());
if (hasTruth()) {
hash = (37 * hash) + TRUTH_FIELD_NUMBER;
hash = (53 * hash) + getTruth().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.seldon.protos.PredictionProtos.Feedback parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.Feedback parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Feedback parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.Feedback parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Feedback parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Feedback parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Feedback parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Feedback parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.Feedback parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.Feedback parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.seldon.protos.PredictionProtos.Feedback 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code seldon.protos.Feedback}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:seldon.protos.Feedback)
io.seldon.protos.PredictionProtos.FeedbackOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Feedback_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Feedback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.Feedback.class, io.seldon.protos.PredictionProtos.Feedback.Builder.class);
}
// Construct using io.seldon.protos.PredictionProtos.Feedback.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (requestBuilder_ == null) {
request_ = null;
} else {
request_ = null;
requestBuilder_ = null;
}
if (responseBuilder_ == null) {
response_ = null;
} else {
response_ = null;
responseBuilder_ = null;
}
reward_ = 0F;
if (truthBuilder_ == null) {
truth_ = null;
} else {
truth_ = null;
truthBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_Feedback_descriptor;
}
public io.seldon.protos.PredictionProtos.Feedback getDefaultInstanceForType() {
return io.seldon.protos.PredictionProtos.Feedback.getDefaultInstance();
}
public io.seldon.protos.PredictionProtos.Feedback build() {
io.seldon.protos.PredictionProtos.Feedback result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.seldon.protos.PredictionProtos.Feedback buildPartial() {
io.seldon.protos.PredictionProtos.Feedback result = new io.seldon.protos.PredictionProtos.Feedback(this);
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.build();
}
if (responseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = responseBuilder_.build();
}
result.reward_ = reward_;
if (truthBuilder_ == null) {
result.truth_ = truth_;
} else {
result.truth_ = truthBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.seldon.protos.PredictionProtos.Feedback) {
return mergeFrom((io.seldon.protos.PredictionProtos.Feedback)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.seldon.protos.PredictionProtos.Feedback other) {
if (other == io.seldon.protos.PredictionProtos.Feedback.getDefaultInstance()) return this;
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (other.hasResponse()) {
mergeResponse(other.getResponse());
}
if (other.getReward() != 0F) {
setReward(other.getReward());
}
if (other.hasTruth()) {
mergeTruth(other.getTruth());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.seldon.protos.PredictionProtos.Feedback parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.seldon.protos.PredictionProtos.Feedback) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.seldon.protos.PredictionProtos.SeldonMessage request_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder> requestBuilder_;
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public Builder setRequest(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public Builder setRequest(
io.seldon.protos.PredictionProtos.SeldonMessage.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public Builder mergeRequest(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
io.seldon.protos.PredictionProtos.SeldonMessage.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : request_;
}
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private io.seldon.protos.PredictionProtos.SeldonMessage response_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder> responseBuilder_;
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public boolean hasResponse() {
return responseBuilder_ != null || response_ != null;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getResponse() {
if (responseBuilder_ == null) {
return response_ == null ? io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : response_;
} else {
return responseBuilder_.getMessage();
}
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public Builder setResponse(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
responseBuilder_.setMessage(value);
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public Builder setResponse(
io.seldon.protos.PredictionProtos.SeldonMessage.Builder builderForValue) {
if (responseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public Builder mergeResponse(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (responseBuilder_ == null) {
if (response_ != null) {
response_ =
io.seldon.protos.PredictionProtos.SeldonMessage.newBuilder(response_).mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
responseBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public Builder clearResponse() {
if (responseBuilder_ == null) {
response_ = null;
onChanged();
} else {
response_ = null;
responseBuilder_ = null;
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage.Builder getResponseBuilder() {
onChanged();
return getResponseFieldBuilder().getBuilder();
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getResponseOrBuilder() {
if (responseBuilder_ != null) {
return responseBuilder_.getMessageOrBuilder();
} else {
return response_ == null ?
io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : response_;
}
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>
getResponseFieldBuilder() {
if (responseBuilder_ == null) {
responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>(
getResponse(),
getParentForChildren(),
isClean());
response_ = null;
}
return responseBuilder_;
}
private float reward_ ;
/**
* optional float reward = 3;
*/
public float getReward() {
return reward_;
}
/**
* optional float reward = 3;
*/
public Builder setReward(float value) {
reward_ = value;
onChanged();
return this;
}
/**
* optional float reward = 3;
*/
public Builder clearReward() {
reward_ = 0F;
onChanged();
return this;
}
private io.seldon.protos.PredictionProtos.SeldonMessage truth_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder> truthBuilder_;
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public boolean hasTruth() {
return truthBuilder_ != null || truth_ != null;
}
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getTruth() {
if (truthBuilder_ == null) {
return truth_ == null ? io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : truth_;
} else {
return truthBuilder_.getMessage();
}
}
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public Builder setTruth(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (truthBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
truth_ = value;
onChanged();
} else {
truthBuilder_.setMessage(value);
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public Builder setTruth(
io.seldon.protos.PredictionProtos.SeldonMessage.Builder builderForValue) {
if (truthBuilder_ == null) {
truth_ = builderForValue.build();
onChanged();
} else {
truthBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public Builder mergeTruth(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (truthBuilder_ == null) {
if (truth_ != null) {
truth_ =
io.seldon.protos.PredictionProtos.SeldonMessage.newBuilder(truth_).mergeFrom(value).buildPartial();
} else {
truth_ = value;
}
onChanged();
} else {
truthBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public Builder clearTruth() {
if (truthBuilder_ == null) {
truth_ = null;
onChanged();
} else {
truth_ = null;
truthBuilder_ = null;
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage.Builder getTruthBuilder() {
onChanged();
return getTruthFieldBuilder().getBuilder();
}
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getTruthOrBuilder() {
if (truthBuilder_ != null) {
return truthBuilder_.getMessageOrBuilder();
} else {
return truth_ == null ?
io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : truth_;
}
}
/**
* optional .seldon.protos.SeldonMessage truth = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>
getTruthFieldBuilder() {
if (truthBuilder_ == null) {
truthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>(
getTruth(),
getParentForChildren(),
isClean());
truth_ = null;
}
return truthBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:seldon.protos.Feedback)
}
// @@protoc_insertion_point(class_scope:seldon.protos.Feedback)
private static final io.seldon.protos.PredictionProtos.Feedback DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.seldon.protos.PredictionProtos.Feedback();
}
public static io.seldon.protos.PredictionProtos.Feedback getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Feedback parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Feedback(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.seldon.protos.PredictionProtos.Feedback getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:seldon.protos.RequestResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
boolean hasRequest();
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
io.seldon.protos.PredictionProtos.SeldonMessage getRequest();
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getRequestOrBuilder();
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
boolean hasResponse();
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
io.seldon.protos.PredictionProtos.SeldonMessage getResponse();
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getResponseOrBuilder();
}
/**
* Protobuf type {@code seldon.protos.RequestResponse}
*/
public static final class RequestResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:seldon.protos.RequestResponse)
RequestResponseOrBuilder {
// Use RequestResponse.newBuilder() to construct.
private RequestResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private RequestResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
io.seldon.protos.PredictionProtos.SeldonMessage.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(io.seldon.protos.PredictionProtos.SeldonMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.seldon.protos.PredictionProtos.SeldonMessage.Builder subBuilder = null;
if (response_ != null) {
subBuilder = response_.toBuilder();
}
response_ = input.readMessage(io.seldon.protos.PredictionProtos.SeldonMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(response_);
response_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_RequestResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_RequestResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.RequestResponse.class, io.seldon.protos.PredictionProtos.RequestResponse.Builder.class);
}
public static final int REQUEST_FIELD_NUMBER = 1;
private io.seldon.protos.PredictionProtos.SeldonMessage request_;
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public boolean hasRequest() {
return request_ != null;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getRequest() {
return request_ == null ? io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : request_;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getRequestOrBuilder() {
return getRequest();
}
public static final int RESPONSE_FIELD_NUMBER = 2;
private io.seldon.protos.PredictionProtos.SeldonMessage response_;
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public boolean hasResponse() {
return response_ != null;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getResponse() {
return response_ == null ? io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : response_;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getResponseOrBuilder() {
return getResponse();
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (request_ != null) {
output.writeMessage(1, getRequest());
}
if (response_ != null) {
output.writeMessage(2, getResponse());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequest());
}
if (response_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResponse());
}
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 io.seldon.protos.PredictionProtos.RequestResponse)) {
return super.equals(obj);
}
io.seldon.protos.PredictionProtos.RequestResponse other = (io.seldon.protos.PredictionProtos.RequestResponse) obj;
boolean result = true;
result = result && (hasRequest() == other.hasRequest());
if (hasRequest()) {
result = result && getRequest()
.equals(other.getRequest());
}
result = result && (hasResponse() == other.hasResponse());
if (hasResponse()) {
result = result && getResponse()
.equals(other.getResponse());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
if (hasResponse()) {
hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getResponse().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.seldon.protos.PredictionProtos.RequestResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.RequestResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.RequestResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.seldon.protos.PredictionProtos.RequestResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.RequestResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.RequestResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.RequestResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.RequestResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.seldon.protos.PredictionProtos.RequestResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.seldon.protos.PredictionProtos.RequestResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.seldon.protos.PredictionProtos.RequestResponse 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code seldon.protos.RequestResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:seldon.protos.RequestResponse)
io.seldon.protos.PredictionProtos.RequestResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_RequestResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_RequestResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.seldon.protos.PredictionProtos.RequestResponse.class, io.seldon.protos.PredictionProtos.RequestResponse.Builder.class);
}
// Construct using io.seldon.protos.PredictionProtos.RequestResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (requestBuilder_ == null) {
request_ = null;
} else {
request_ = null;
requestBuilder_ = null;
}
if (responseBuilder_ == null) {
response_ = null;
} else {
response_ = null;
responseBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.seldon.protos.PredictionProtos.internal_static_seldon_protos_RequestResponse_descriptor;
}
public io.seldon.protos.PredictionProtos.RequestResponse getDefaultInstanceForType() {
return io.seldon.protos.PredictionProtos.RequestResponse.getDefaultInstance();
}
public io.seldon.protos.PredictionProtos.RequestResponse build() {
io.seldon.protos.PredictionProtos.RequestResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.seldon.protos.PredictionProtos.RequestResponse buildPartial() {
io.seldon.protos.PredictionProtos.RequestResponse result = new io.seldon.protos.PredictionProtos.RequestResponse(this);
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.build();
}
if (responseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = responseBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.seldon.protos.PredictionProtos.RequestResponse) {
return mergeFrom((io.seldon.protos.PredictionProtos.RequestResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.seldon.protos.PredictionProtos.RequestResponse other) {
if (other == io.seldon.protos.PredictionProtos.RequestResponse.getDefaultInstance()) return this;
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (other.hasResponse()) {
mergeResponse(other.getResponse());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.seldon.protos.PredictionProtos.RequestResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.seldon.protos.PredictionProtos.RequestResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.seldon.protos.PredictionProtos.SeldonMessage request_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder> requestBuilder_;
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public Builder setRequest(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public Builder setRequest(
io.seldon.protos.PredictionProtos.SeldonMessage.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public Builder mergeRequest(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
io.seldon.protos.PredictionProtos.SeldonMessage.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : request_;
}
}
/**
* optional .seldon.protos.SeldonMessage request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private io.seldon.protos.PredictionProtos.SeldonMessage response_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder> responseBuilder_;
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public boolean hasResponse() {
return responseBuilder_ != null || response_ != null;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage getResponse() {
if (responseBuilder_ == null) {
return response_ == null ? io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : response_;
} else {
return responseBuilder_.getMessage();
}
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public Builder setResponse(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
responseBuilder_.setMessage(value);
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public Builder setResponse(
io.seldon.protos.PredictionProtos.SeldonMessage.Builder builderForValue) {
if (responseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public Builder mergeResponse(io.seldon.protos.PredictionProtos.SeldonMessage value) {
if (responseBuilder_ == null) {
if (response_ != null) {
response_ =
io.seldon.protos.PredictionProtos.SeldonMessage.newBuilder(response_).mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
responseBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public Builder clearResponse() {
if (responseBuilder_ == null) {
response_ = null;
onChanged();
} else {
response_ = null;
responseBuilder_ = null;
}
return this;
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public io.seldon.protos.PredictionProtos.SeldonMessage.Builder getResponseBuilder() {
onChanged();
return getResponseFieldBuilder().getBuilder();
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
public io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder getResponseOrBuilder() {
if (responseBuilder_ != null) {
return responseBuilder_.getMessageOrBuilder();
} else {
return response_ == null ?
io.seldon.protos.PredictionProtos.SeldonMessage.getDefaultInstance() : response_;
}
}
/**
* optional .seldon.protos.SeldonMessage response = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>
getResponseFieldBuilder() {
if (responseBuilder_ == null) {
responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.seldon.protos.PredictionProtos.SeldonMessage, io.seldon.protos.PredictionProtos.SeldonMessage.Builder, io.seldon.protos.PredictionProtos.SeldonMessageOrBuilder>(
getResponse(),
getParentForChildren(),
isClean());
response_ = null;
}
return responseBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:seldon.protos.RequestResponse)
}
// @@protoc_insertion_point(class_scope:seldon.protos.RequestResponse)
private static final io.seldon.protos.PredictionProtos.RequestResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.seldon.protos.PredictionProtos.RequestResponse();
}
public static io.seldon.protos.PredictionProtos.RequestResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RequestResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.seldon.protos.PredictionProtos.RequestResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_seldon_protos_SeldonMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_seldon_protos_SeldonMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_seldon_protos_DefaultData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_seldon_protos_DefaultData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_seldon_protos_Tensor_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_seldon_protos_Tensor_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_seldon_protos_Meta_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_seldon_protos_Meta_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_seldon_protos_Meta_TagsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_seldon_protos_Meta_TagsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_seldon_protos_Meta_RoutingEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_seldon_protos_Meta_RoutingEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_seldon_protos_SeldonMessageList_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_seldon_protos_SeldonMessageList_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_seldon_protos_Status_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_seldon_protos_Status_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_seldon_protos_Feedback_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_seldon_protos_Feedback_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_seldon_protos_RequestResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_seldon_protos_RequestResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\020prediction.proto\022\rseldon.protos\032\034googl" +
"e/protobuf/struct.proto\"\271\001\n\rSeldonMessag" +
"e\022%\n\006status\030\001 \001(\0132\025.seldon.protos.Status" +
"\022!\n\004meta\030\002 \001(\0132\023.seldon.protos.Meta\022*\n\004d" +
"ata\030\003 \001(\0132\032.seldon.protos.DefaultDataH\000\022" +
"\021\n\007binData\030\004 \001(\014H\000\022\021\n\007strData\030\005 \001(\tH\000B\014\n" +
"\ndata_oneof\"\202\001\n\013DefaultData\022\r\n\005names\030\001 \003" +
"(\t\022\'\n\006tensor\030\002 \001(\0132\025.seldon.protos.Tenso" +
"rH\000\022-\n\007ndarray\030\003 \001(\0132\032.google.protobuf.L" +
"istValueH\000B\014\n\ndata_oneof\"/\n\006Tensor\022\021\n\005sh",
"ape\030\001 \003(\005B\002\020\001\022\022\n\006values\030\002 \003(\001B\002\020\001\"\351\001\n\004Me" +
"ta\022\014\n\004puid\030\001 \001(\t\022+\n\004tags\030\002 \003(\0132\035.seldon." +
"protos.Meta.TagsEntry\0221\n\007routing\030\003 \003(\0132 " +
".seldon.protos.Meta.RoutingEntry\032C\n\tTags" +
"Entry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goog" +
"le.protobuf.Value:\0028\001\032.\n\014RoutingEntry\022\013\n" +
"\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\"I\n\021SeldonM" +
"essageList\0224\n\016seldonMessages\030\001 \003(\0132\034.sel" +
"don.protos.SeldonMessage\"\216\001\n\006Status\022\014\n\004c" +
"ode\030\001 \001(\005\022\014\n\004info\030\002 \001(\t\022\016\n\006reason\030\003 \001(\t\022",
"0\n\006status\030\004 \001(\0162 .seldon.protos.Status.S" +
"tatusFlag\"&\n\nStatusFlag\022\013\n\007SUCCESS\020\000\022\013\n\007" +
"FAILURE\020\001\"\246\001\n\010Feedback\022-\n\007request\030\001 \001(\0132" +
"\034.seldon.protos.SeldonMessage\022.\n\010respons" +
"e\030\002 \001(\0132\034.seldon.protos.SeldonMessage\022\016\n" +
"\006reward\030\003 \001(\002\022+\n\005truth\030\004 \001(\0132\034.seldon.pr" +
"otos.SeldonMessage\"p\n\017RequestResponse\022-\n" +
"\007request\030\001 \001(\0132\034.seldon.protos.SeldonMes" +
"sage\022.\n\010response\030\002 \001(\0132\034.seldon.protos.S" +
"eldonMessage2\211\003\n\007Generic\022N\n\016TransformInp",
"ut\022\034.seldon.protos.SeldonMessage\032\034.seldo" +
"n.protos.SeldonMessage\"\000\022O\n\017TransformOut" +
"put\022\034.seldon.protos.SeldonMessage\032\034.seld" +
"on.protos.SeldonMessage\"\000\022E\n\005Route\022\034.sel" +
"don.protos.SeldonMessage\032\034.seldon.protos" +
".SeldonMessage\"\000\022M\n\tAggregate\022 .seldon.p" +
"rotos.SeldonMessageList\032\034.seldon.protos." +
"SeldonMessage\"\000\022G\n\014SendFeedback\022\027.seldon" +
".protos.Feedback\032\034.seldon.protos.SeldonM" +
"essage\"\0002P\n\005Model\022G\n\007Predict\022\034.seldon.pr",
"otos.SeldonMessage\032\034.seldon.protos.Seldo" +
"nMessage\"\0002\230\001\n\006Router\022E\n\005Route\022\034.seldon." +
"protos.SeldonMessage\032\034.seldon.protos.Sel" +
"donMessage\"\000\022G\n\014SendFeedback\022\027.seldon.pr" +
"otos.Feedback\032\034.seldon.protos.SeldonMess" +
"age\"\0002]\n\013Transformer\022N\n\016TransformInput\022\034" +
".seldon.protos.SeldonMessage\032\034.seldon.pr" +
"otos.SeldonMessage\"\0002d\n\021OutputTransforme" +
"r\022O\n\017TransformOutput\022\034.seldon.protos.Sel" +
"donMessage\032\034.seldon.protos.SeldonMessage",
"\"\0002Y\n\010Combiner\022M\n\tAggregate\022 .seldon.pro" +
"tos.SeldonMessageList\032\034.seldon.protos.Se" +
"ldonMessage\"\0002\232\001\n\006Seldon\022G\n\007Predict\022\034.se" +
"ldon.protos.SeldonMessage\032\034.seldon.proto" +
"s.SeldonMessage\"\000\022G\n\014SendFeedback\022\027.seld" +
"on.protos.Feedback\032\034.seldon.protos.Seldo" +
"nMessage\"\000B$\n\020io.seldon.protosB\020Predicti" +
"onProtosb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.StructProto.getDescriptor(),
}, assigner);
internal_static_seldon_protos_SeldonMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_seldon_protos_SeldonMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_seldon_protos_SeldonMessage_descriptor,
new java.lang.String[] { "Status", "Meta", "Data", "BinData", "StrData", "DataOneof", });
internal_static_seldon_protos_DefaultData_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_seldon_protos_DefaultData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_seldon_protos_DefaultData_descriptor,
new java.lang.String[] { "Names", "Tensor", "Ndarray", "DataOneof", });
internal_static_seldon_protos_Tensor_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_seldon_protos_Tensor_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_seldon_protos_Tensor_descriptor,
new java.lang.String[] { "Shape", "Values", });
internal_static_seldon_protos_Meta_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_seldon_protos_Meta_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_seldon_protos_Meta_descriptor,
new java.lang.String[] { "Puid", "Tags", "Routing", });
internal_static_seldon_protos_Meta_TagsEntry_descriptor =
internal_static_seldon_protos_Meta_descriptor.getNestedTypes().get(0);
internal_static_seldon_protos_Meta_TagsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_seldon_protos_Meta_TagsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_seldon_protos_Meta_RoutingEntry_descriptor =
internal_static_seldon_protos_Meta_descriptor.getNestedTypes().get(1);
internal_static_seldon_protos_Meta_RoutingEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_seldon_protos_Meta_RoutingEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_seldon_protos_SeldonMessageList_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_seldon_protos_SeldonMessageList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_seldon_protos_SeldonMessageList_descriptor,
new java.lang.String[] { "SeldonMessages", });
internal_static_seldon_protos_Status_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_seldon_protos_Status_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_seldon_protos_Status_descriptor,
new java.lang.String[] { "Code", "Info", "Reason", "Status", });
internal_static_seldon_protos_Feedback_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_seldon_protos_Feedback_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_seldon_protos_Feedback_descriptor,
new java.lang.String[] { "Request", "Response", "Reward", "Truth", });
internal_static_seldon_protos_RequestResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_seldon_protos_RequestResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_seldon_protos_RequestResponse_descriptor,
new java.lang.String[] { "Request", "Response", });
com.google.protobuf.StructProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy